- (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];
}"a user was complaining about moving files with documents that were relative to em, to another volume, and it was breaking"