Changeset 2703
- Timestamp:
- 04/29/05 22:46:21 (3 years ago)
- Files:
-
- ZankaAdditions/trunk/NSFileManager-ZAAdditions.m (modified) (1 diff)
- ZankaAdditions/trunk/NSString-ZAAdditions.m (modified) (3 diffs)
- ZankaAdditions/trunk/ZAObject.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ZankaAdditions/trunk/NSFileManager-ZAAdditions.m
r1629 r2703 85 85 if([self fileExistsAtPath:path]) { 86 86 if(hasResourceFork) { 87 if(FSPathMakeRef( [path fileSystemRepresentation], &fsRef, NULL) == noErr) {87 if(FSPathMakeRef((unsigned char *) [path fileSystemRepresentation], &fsRef, NULL) == noErr) { 88 88 if(FSGetCatalogInfo(&fsRef, kFSCatInfoRsrcSizes, &fsInfo, NULL, NULL, NULL) == noErr) 89 89 *hasResourceFork = (fsInfo.rsrcLogicalSize > 0); ZankaAdditions/trunk/NSString-ZAAdditions.m
r1629 r2703 434 434 @implementation NSAttributedString(ZAAttributedStringAdditions) 435 435 436 + ( NSAttributedString *)attributedString {436 + (id)attributedString { 437 437 return [[[self alloc] initWithString:@""] autorelease]; 438 438 } … … 440 440 441 441 442 + ( NSAttributedString *)attributedStringWithString:(NSString *)string {442 + (id)attributedStringWithString:(NSString *)string { 443 443 return [[[self alloc] initWithString:string] autorelease]; 444 444 } … … 446 446 447 447 448 + ( NSAttributedString *)attributedStringWithString:(NSString *)string attributes:(NSDictionary *)attributes {448 + (id)attributedStringWithString:(NSString *)string attributes:(NSDictionary *)attributes { 449 449 return [[[self alloc] initWithString:string attributes:attributes] autorelease]; 450 450 } 451 451 452 452 @end 453 454 455 456 @implementation NSMutableAttributedString(ZAURLScanning)457 458 459 460 @endZankaAdditions/trunk/ZAObject.m
r1629 r2703 38 38 39 39 - (id)retain { 40 ZAAtomicIncrement( &_ZA_retainCount);40 ZAAtomicIncrement((int *) & _ZA_retainCount); 41 41 42 42 return self; … … 46 46 47 47 - (oneway void)release { 48 if(ZAAtomicDecrement( &_ZA_retainCount) == -1)48 if(ZAAtomicDecrement((int *) &_ZA_retainCount) == -1) 49 49 [self dealloc]; 50 50 }
