Ignore:
Timestamp:
01/02/03 05:30:03 (22 years ago)
Author:
Nicholas Riley
Message:

Updated for Pester 1.1a5 (very limited release).

Pester 1.1a4 was never released.

Location:
trunk/Cocoa/Pester/Source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source

    • Property svn:ignore
      •  

        old new  
        11build
         2.gdb_history
  • trunk/Cocoa/Pester/Source/BDAlias.m

    r39 r53  
    245245}
    246246
     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
    247268- (NSString *)fullPath
    248269{
Note: See TracChangeset for help on using the changeset viewer.