• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDocumentController typeForContentsOfURL - inAbsoluteURL is null when path has space in it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSDocumentController typeForContentsOfURL - inAbsoluteURL is null when path has space in it? (From: aaron smith <email@hidden>)

  • Prev by Date: Re: Compile error using @synchronized on methods that return values
  • Next by Date: Re: Hardware UUID
  • Previous by thread: NSDocumentController typeForContentsOfURL - inAbsoluteURL is null when path has space in it?
  • Next by thread: NSTreeController and object retain counts
  • Index(es):
    • Date
    • Thread