Re: NSDocumentController typeForContentsOfURL - inAbsoluteURL is null when path has space in it?
Re: NSDocumentController typeForContentsOfURL - inAbsoluteURL is null when path has space in it?
- Subject: Re: NSDocumentController typeForContentsOfURL - inAbsoluteURL is null when path has space in it?
- From: aaron smith <email@hidden>
- Date: Sun, 8 Nov 2009 12:14:19 -0800
I figured it out.
There was a couple places where I was creating NSURL with [NSURL
URLWithString:[@"file:// stringByAppendingString:@"whatever"]]; I switched
it to use [NSURL fileURLWithPath:path isDirectory:true]
On Sun, Nov 8, 2009 at 11:53 AM, aaron smith <
email@hidden> wrote:
> Hey All, quick question.
>
> Has anyone ever run across null parameters being passed to the
> typeForContentsOfURL when a directory has a space in it?
>
> My app uses directories as the document types, but when a space is in the
> path I get null parameters.
>
> Any ideas?
> Thanks
>
_______________________________________________
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