Re: applicationSupportDirectory access for admin and standard users
Re: applicationSupportDirectory access for admin and standard users
- Subject: Re: applicationSupportDirectory access for admin and standard users
- From: Uli Kusterer <email@hidden>
- Date: Mon, 28 Dec 2015 09:50:24 +0100
On 21 Dec 2015, at 23:16, Jonathan Mitchell <email@hidden> wrote:
> NSURL *appSupportDir = [[NSURL alloc] initFileURLWithPath:[[NSFileManager defaultManager] applicationSupportDirectory] isDirectory:YES];
Have you tried running this code in the debugger? Have you checked whether there are any console logs when you run this code? Why haven't you posted any results of those?
I just plonked this code into CodeRunner and immediately get the following exception log:
2015-12-28 09:46:51.689 Untitled[44980:2704545] -[NSFileManager applicationSupportDirectory]: unrecognized selector sent to instance 0x7fe969402450
2015-12-28 09:46:51.694 Untitled[44980:2704545] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSFileManager applicationSupportDirectory]: unrecognized selector sent to instance 0x7fe969402450'
And, in fact, when I check the NSFileManager.h header in the 10.11 SDK that seems to be true: NSFileManager doesn't declare an applicationSupportDirectory method, it seems.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://stacksmith.org
_______________________________________________
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