Re: What causes NSFileManager's stringWithFileSystemRepresentation to return nil?
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