NSDocument fileURL
NSDocument fileURL
- Subject: NSDocument fileURL
- From: Pax <email@hidden>
- Date: Thu, 23 Jan 2014 21:12:50 +0000
Hopefully this is a nice, easy, problem for you to ponder on a Thursday evening.
I'm opening a document as follows:
- (BOOL)readFromData:(NSData *)pData
ofType:(NSString *)pTypeName
error:(NSError **)pOutError
{
if ([pTypeName compare:@"CPro"] == NSOrderedSame)
{
//Nothing to do (yet)
}
else if ([pTypeName compare:@"Zip"] == NSOrderedSame)
{
contentData = pData;
decode = YES;
return YES;
}
return NO;
}
Later (in windowControllerDidLoadNib), I try to get the file path - but I turn up a blank (it returns null):
NSLog(@"%@",[self fileURL]);
Very strange. And yet the file does get processed correctly - it's just that I can't display all the useful information that I'd like to be able to display.
Any ideas?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden