Changeset 69794 for contrib/MacPorts_Framework
- Timestamp:
- Jul 16, 2010, 7:27:53 PM (14 years ago)
- Location:
- contrib/MacPorts_Framework
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/MacPorts_Framework/BetterAuthorizationSampleLib.c
r65491 r69794 1576 1576 1577 1577 if (errStr != NULL) { 1578 err = asl_log(asl, aslMsg, ASL_LEVEL_ERR, errStr);1578 err = asl_log(asl, aslMsg, ASL_LEVEL_ERR, "%s", errStr); 1579 1579 assert(err == 0); 1580 1580 } -
contrib/MacPorts_Framework/MPInterpreter.m
r65491 r69794 347 347 } 348 348 349 - (unsigned)retainCount { 350 return UINT_MAX; //denotes an object that cannot be released 349 - (NSUInteger)retainCount 350 { 351 return NSUIntegerMax; //denotes an object that cannot be released 351 352 } 352 353 … … 545 546 546 547 //In order to make the framework work normally by default ... we do a bare initialization 547 //of internalMacPortsAuthRef if the delegate hasn't ini itialzed it already548 //of internalMacPortsAuthRef if the delegate hasn't initialzed it already 548 549 if (internalMacPortsAuthRef == NULL) { 549 550 OSStatus res = AuthorizationCreate (NULL, kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &internalMacPortsAuthRef); -
contrib/MacPorts_Framework/MPMacPorts.m
r65491 r69794 116 116 } 117 117 118 - (unsigned)retainCount { 119 return UINT_MAX; //denotes an object that cannot be released 118 - (NSUInteger)retainCount 119 { 120 return NSUIntegerMax; //denotes an object that cannot be released 120 121 } 121 122 -
contrib/MacPorts_Framework/MPMutableDictionary.m
r38997 r69794 42 42 self = [super init]; 43 43 if (self != nil) { 44 embeddedDictionary = [ [NSMutableDictionary alloc] initWithCapacity:0];44 embeddedDictionary = [(NSMutableDictionary *)[NSMutableDictionary alloc] initWithCapacity:0]; 45 45 } 46 46 return self; … … 50 50 self = [super init]; 51 51 if (self != nil) { 52 embeddedDictionary = [ [NSMutableDictionary alloc] initWithCapacity:numItems];52 embeddedDictionary = [(NSMutableDictionary *)[NSMutableDictionary alloc] initWithCapacity:numItems]; 53 53 } 54 54 return self; -
contrib/MacPorts_Framework/MPNotifications.m
r39747 r69794 70 70 } 71 71 72 - ( unsigned)retainCount {73 return UINT_MAX; 72 - (NSUInteger)retainCount { 73 return NSUIntegerMax; //denotes an object that cannot be released 74 74 } 75 75 -
contrib/MacPorts_Framework/MPRegistry.m
r39309 r69794 73 73 } 74 74 75 - ( unsigned)retainCount {76 return UINT_MAX; //denotes an object that cannot be released75 - (NSUInteger)retainCount { 76 return NSUIntegerMax; //denotes an object that cannot be released 77 77 } 78 78 … … 101 101 id item; 102 102 raw = [self installedAsArray:name withVersion:version]; 103 result = [ [NSMutableDictionary alloc] initWithCapacity:[raw count]];103 result = [(NSMutableDictionary *)[NSMutableDictionary alloc] initWithCapacity:[raw count]]; 104 104 rawEnumerator = [raw objectEnumerator]; 105 105 while (item = [rawEnumerator nextObject]) { -
contrib/MacPorts_Framework/SimpleLog.m
r65491 r69794 27 27 if (tclResult == TCL_OK) { 28 28 if (tclCount > 0) { 29 NSLog( [NSString stringWithUTF8String:tclElements[0]]);29 NSLog(@"%@", [NSString stringWithUTF8String:tclElements[0]]); 30 30 data = [NSMutableString stringWithUTF8String:tclElements[0]]; 31 31 [data appendString:MPSEPARATOR]; 32 32 33 33 if(tclCount > 1 && tclElements[1]) { 34 NSLog( [NSString stringWithUTF8String:tclElements[1]]);34 NSLog(@"%@", [NSString stringWithUTF8String:tclElements[1]]); 35 35 [data appendString:[NSString stringWithUTF8String:tclElements[1]]]; 36 36 [data appendString:MPSEPARATOR]; … … 42 42 43 43 if(tclCount > 2 && tclElements[2]) { 44 NSLog( [NSString stringWithUTF8String:tclElements[2]]);44 NSLog(@"%@", [NSString stringWithUTF8String:tclElements[2]]); 45 45 [data appendString:[NSString stringWithUTF8String:tclElements[2]]]; 46 46 [data appendString:MPSEPARATOR];
Note: See TracChangeset
for help on using the changeset viewer.