This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appledoc --logformat xcode \ | |
--exit-threshold 4 \ | |
--create-html \ | |
--no-create-docset \ | |
-o $SOURCE_ROOT/../CoreParseDocs/ \ | |
--project-name CoreParse \ | |
--project-version 0.9 \ | |
--project-company Beelsebob \ | |
--ignore $SOURCE_ROOT/Various/Uninteresting/Places.h \ | |
$SOURCE_ROOT/CoreParse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2011-07-05 17:37:35.787 FS Battles[488:707] Getting title for row 0 | |
2011-07-05 17:37:35.789 FS Battles[488:707] Got back text: (null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)tokeniser:(CPTokeniser *)tokeniser shouldConsumeToken:(CPToken *)token | |
{ | |
return YES; | |
} | |
- (NSArray *)tokeniser:(CPTokeniser *)tokeniser willProduceToken:(CPToken *)token | |
{ | |
if ([token isKindOfClass:[CPWhiteSpaceToken class]] || [[token name] isEqualToString:@"Comment"]) | |
{ | |
return [NSArray array]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)connect | |
{ | |
CFReadStreamRef readStream; | |
CFWriteStreamRef writeStream; | |
CFStreamCreatePairWithSocketToHost(NULL, | |
SERVER, | |
PORT, | |
&readStream, | |
&writeStream); | |
[self setInputStream:(NSInputStream *)readStream]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation NSString(CamelCaseSpacing) | |
- (NSString *)stringBySpacingCamelCase | |
{ | |
NSMutableString *r = [NSMutableString string]; | |
NSString *dump; | |
NSScanner *scanner = [NSScanner scannerWithString:self]; | |
NSCharacterSet *uc = [NSCharacterSet uppercaseCharacterSet]; | |
BOOL scanned = [scanner scanCharactersFromSet:uc intoString:&dump]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (obj1.position.y < obj2.position.y) | |
{ | |
return NSOrderedAscending; | |
} | |
else if (obj1.position.y > obj2.position.y) | |
{ | |
return NSOrderedDescending; | |
} | |
else | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSString *)uuidString | |
{ | |
CFUUIDRef uuid = CFUUIDCreateFromUUIDBytes(NULL, identityBytes); | |
CFStringRef str = CFUUIDCreateString(NULL, uuid); | |
CFMakeCollectable(str); | |
CFRelease(uuid); | |
return [(NSString *)str autorelease]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
[[self sessionTable] setAllowsSelection:NO]; | |
UIPanGestureRecognizer *gr = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panned:)]; | |
[gr setMinimumNumberOfTouches:1]; | |
[gr setMaximumNumberOfTouches:1]; | |
[gr setDelegate:self]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)cpsSquence:(NSArray *)is | |
{ | |
[self cpsSquence:is atIndex:0]; | |
} | |
- (void)cpsSequence:(NSArray *)is atIndex:(NSUInteger)idx | |
{ | |
if ([is count] > idx) | |
{ | |
[[is objectAtIndex:idx] runWithCompletionBlock:^ () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation MyDocument | |
- (void)dealWithCompressionFinished:(TextureAtlas *)ta | |
{ | |
[textureController closeCompressingSheet]; | |
if (nil == [ta previewImage]) | |
{ | |
[[NSAlert alertWithMessageText:@"Invalid Texture" | |
defaultButton:@"OK" |
OlderNewer