On Sep 25, 2014, at 8:02 PM, Roland King <r...@rols.org> wrote: > >> On 26 Sep 2014, at 7:53 am, trid...@ihug.co.nz 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 (Cocoa-dev@lists.apple.com) > > 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 sevenbitst...@gmail.com
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com