Paste number 54729: bdalias

Index of paste annotations: 1

Paste number 54729: bdalias
Pasted by: ccgus
11 months, 2 weeks ago
None
Paste contents:
Raw Source | XML | Display As
- (id)initWithPath:(NSString *)path relativeToPath:(NSString *)relativePath; {
    OSStatus        anErr = noErr;
    FSRef                ref, relRef;
    
    // MODIFIED BY GUS
    /*
    anErr = PathToFSRef((CFStringRef) [relPath stringByAppendingPathComponent:path],
                        &ref);
    */
    
    anErr = PathToFSRef((CFStringRef) path, &ref);
    
    if (anErr != noErr) {
        return nil;
    }
    
    anErr = PathToFSRef((CFStringRef) relativePath, &relRef);
    
    if (anErr != noErr) {
        debug(@"anErr b: %d", anErr);
        return nil;
    }
    
    return [self initWithFSRef:&ref relativeToFSRef:&relRef];
}

Annotations for this paste:

Annotation number 1: bdalias ccgus patch reason
Pasted by: rentzsch
11 months, 2 weeks ago
Paste contents:
Raw Source | Display As
"a user was complaining about moving files with documents that were relative to em, to another volume, and it was breaking"

Colorize as:
Show Line Numbers
Index of paste annotations: 1

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.