On Sep 25, 2014, at 8:02 PM, Roland King <[email protected]> wrote:

> 
>> On 26 Sep 2014, at 7:53 am, [email protected] 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? 

This is always the first thing that you want to try if this parameter is 
available. NSError objects even have a localizedDescription property that 
contains an explanation of the error, which can sometimes aid in debugging.

> 
> iOS or OSX?
> 
> who's the 'user' in this case. 
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/sevenbitstech%40gmail.com
> 
> This email sent to [email protected]

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to