• 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: What causes NSFileManager's stringWithFileSystemRepresentation to return nil?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What causes NSFileManager's stringWithFileSystemRepresentation to return nil?


  • Subject: Re: What causes NSFileManager's stringWithFileSystemRepresentation to return nil?
  • From: Graham Cox <email@hidden>
  • Date: Wed, 27 Oct 2010 18:13:43 +1100

On 27/10/2010, at 6:06 PM, G S wrote:

> NSString* test = [[theApp fileManager]


What is [theApp fileManager]?

The usual idiom is [NSFileManager defaultManager]

Try breaking the line apart and see what this part returns. If it's nil, then the result will be nil, and the conclusion will be that you don't have a valid file manager object, not that it isn't doing the right thing with the string.

--Graham


_______________________________________________

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: 
 >What causes NSFileManager's stringWithFileSystemRepresentation to return nil? (From: G S <email@hidden>)
 >Re: What causes NSFileManager's stringWithFileSystemRepresentation to return nil? (From: Andy Lee <email@hidden>)
 >Re: What causes NSFileManager's stringWithFileSystemRepresentation to return nil? (From: G S <email@hidden>)

  • Prev by Date: Re: What causes NSFileManager's stringWithFileSystemRepresentation to return nil?
  • Next by Date: Writing an Uninstaller
  • Previous by thread: Re: What causes NSFileManager's stringWithFileSystemRepresentation to return nil?
  • Next by thread: Choosing a correct font size when resizing
  • Index(es):
    • Date
    • Thread