Re: NSUserDirectory returns nil
Re: NSUserDirectory returns nil
- Subject: Re: NSUserDirectory returns nil
- From: Roland King <email@hidden>
- Date: Fri, 26 Sep 2014 08:02:08 +0800
> On 26 Sep 2014, at 7:53 am, email@hidden wrote:
>
>
>
> Why does [[NSFileManager defaultManager]
> URLForDirectory:NSUserDirectory inDomain:NSUserDomainMask
> appropriateForURL:nil create:NO error:nil]
>
> return nil?
>
>
> [[NSFileManager defaultManager] URLsForDirectory:NSUserDirectory
> inDomains:NSUserDomainMask] returns an empty array.
>
> I am aware of
> NSHomeDir().
>
Have you tried passing in an error-out parameter to the first method to see what error, if any, is returned?
iOS or OSX?
who's the 'user' in this case.
_______________________________________________
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