Changeset 53 for trunk/Cocoa/Pester/Source/BDAlias.m
- Timestamp:
- 01/02/03 05:30:03 (22 years ago)
- Location:
- trunk/Cocoa/Pester/Source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source
- Property svn:ignore
-
old new 1 1 build 2 .gdb_history
-
- Property svn:ignore
-
trunk/Cocoa/Pester/Source/BDAlias.m
r39 r53 245 245 } 246 246 247 - (NSString *)displayNameWithKindString:(NSString **)outKindString; 248 { 249 AliasHandle alias = [self alias]; 250 FSRef ref; 251 Boolean wasChanged; 252 CFStringRef name; 253 254 if (alias == NULL) return nil; 255 if (FSResolveAlias(NULL, alias, &ref, &wasChanged) != noErr) return nil; 256 257 if (LSCopyDisplayNameForRef(&ref, &name) != noErr) return nil; 258 [(NSString *)name autorelease]; 259 260 if (outKindString != NULL) { 261 if (LSCopyKindStringForRef(&ref, (CFStringRef *)outKindString) != noErr) return nil; 262 [*outKindString autorelease]; 263 } 264 265 return (NSString *)name; 266 } 267 247 268 - (NSString *)fullPath 248 269 {
Note:
See TracChangeset
for help on using the changeset viewer.