• 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: Saving to application support folder.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving to application support folder.


  • Subject: Re: Saving to application support folder.
  • From: glenn andreas <email@hidden>
  • Date: Mon, 8 Oct 2007 15:03:38 -0500


On Oct 8, 2007, at 2:55 PM, Sandro Noel wrote:

I'm not trying to write to my bundle Sorry i must of missed typing a word ...
I want to find out the name of the bundle, or application so i can append that name to the
string I will use to create the application support Path.
I just didn't want to hard code it.


so I'm looking for the application's name [application.app] without the "app"

I use:

[[NSBundle mainBundle] objectForInfoDictionaryKey: @"CFBundleExecutable"]

This has the advantage over using the name of the application bundle that if the user renames the app, this value remains unchanged.


Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures, fractals, art



_______________________________________________

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: Saving to application support folder.
      • From: Andrew Merenbach <email@hidden>
    • Re: Saving to application support folder.
      • From: Sandro Noel <email@hidden>
References: 
 >Saving to application support folder. (From: Sandro Noel <email@hidden>)
 >Re: Saving to application support folder. (From: Nick Zitzmann <email@hidden>)
 >Re: Saving to application support folder. (From: Sandro Noel <email@hidden>)
 >Re: Saving to application support folder. (From: Steven W Riggins <email@hidden>)
 >Re: Saving to application support folder. (From: Sandro Noel <email@hidden>)
 >Re: Saving to application support folder. (From: Murat Konar <email@hidden>)
 >Re: Saving to application support folder. (From: Sandro Noel <email@hidden>)

  • Prev by Date: Re: NSTreeController -removeObjectsAtArrangedObjectIndexPath:
  • Next by Date: Re: Saving to application support folder.
  • Previous by thread: Re: Saving to application support folder.
  • Next by thread: Re: Saving to application support folder.
  • Index(es):
    • Date
    • Thread