Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

55 lines (41 sloc) 1.098 kB
//
// GBComment.m
// appledoc
//
// Created by Tomaz Kragelj on 27.8.10.
// Copyright (C) 2010, Gentle Bytes. All rights reserved.
//
#import "GBDataObjects.h"
#import "GBComment.h"
@implementation GBComment
#pragma mark Initialization & disposal
+ (id)commentWithStringValue:(NSString *)value {
return [self commentWithStringValue:value sourceInfo:nil];
}
+ (id)commentWithStringValue:(NSString *)value sourceInfo:(GBSourceInfo *)info {
GBComment *result = [[[self alloc] init] autorelease];
result.stringValue = value;
result.sourceInfo = info;
return result;
}
- (id)init {
self = [super init];
if (self) {
self.longDescription = [GBCommentComponentsList componentsList];
}
return self;
}
#pragma mark Overriden methods
- (NSString *)description {
return [NSString stringWithFormat:@"Comment '%@'", [self.stringValue normalizedDescription]];
}
- (NSString *)debugDescription {
return [self description];
}
#pragma mark Properties
@synthesize isCopied;
@synthesize sourceInfo;
@synthesize stringValue;
@synthesize shortDescription;
@synthesize longDescription;
@end
Jump to Line
Something went wrong with that request. Please try again.