• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: applicationSupportDirectory access for admin and standard users
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: applicationSupportDirectory access for admin and standard users
      • From: Jens Alfke <email@hidden>
References: 
 >applicationSupportDirectory access for admin and standard users (From: Jonathan Mitchell <email@hidden>)

  • Prev by Date: Re: Finder-like user interface?
  • Next by Date: Kernel Panics Developing for SpriteKit
  • Previous by thread: Re: applicationSupportDirectory access for admin and standard users
  • Next by thread: Re: applicationSupportDirectory access for admin and standard users
  • Index(es):
    • Date
    • Thread