• 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: Bundles work differently depending on application launch path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bundles work differently depending on application launch path?


  • Subject: Re: Bundles work differently depending on application launch path?
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 16 Jan 2004 09:49:22 -0800

On Jan 16, 2004, at 6:07 AM, Stuart Halloway wrote:

[NSBundle mainBundle] works to load classes from the mainBundle if you launch a console application from the current directory. However, if you launch from some other directory, specifying a relative path to the application, you can no longer use [NSBundle mainBundle] to load classes.

NSBundle is not guaranteed to be able to locate the main bundle unless the process is launched with an absolute path. It makes every attempt to do so, but under Unix there is no entirely reliable method of locating the current executable.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Bundles work differently depending on application launch path? (From: Stuart Halloway <email@hidden>)

  • Prev by Date: Re: How to completely release every object allocated when opening a NIB file ?
  • Next by Date: Tooltips in NSBrowser
  • Previous by thread: Bundles work differently depending on application launch path?
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread