• 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: Constant for Application directory ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Constant for Application directory ?


  • Subject: Re: Constant for Application directory ?
  • From: Andy Lee <email@hidden>
  • Date: Sat, 1 Jan 2005 05:26:59 -0500

On Jan 1, 2005, at 5:13 AM, Simon alias Trax wrote:
I want my openPanel's default directory to be the application's directory.
Is there any constant that designates such directory ?

See the +mainBundle class method of NSBundle:

mainBundle

+ (NSBundle *)mainBundle
Returns an NSBundle that corresponds to the directory where the application executable is located or nil if this executable is not located in an accessible bundle directory. This method allocates and initializes the returned NSBundle if it doesn’t already exist.


In general, the main bundle corresponds to an application file package or application wrapper: a directory that bears the name of the application and is marked by a “.app” extension.


See Also: + bundleForClass:, + bundleWithPath:

--Andy

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Constant for Application directory ? (From: "Simon alias Trax" <email@hidden>)

  • Prev by Date: Constant for Application directory ?
  • Next by Date: Re: Constant for Application directory ?
  • Previous by thread: Constant for Application directory ?
  • Next by thread: Re: Constant for Application directory ?
  • Index(es):
    • Date
    • Thread