• 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: Locating application bundle from a nib file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Locating application bundle from a nib file


  • Subject: Re: Locating application bundle from a nib file
  • From: Todd Lair <email@hidden>
  • Date: Sun, 29 Feb 2004 15:21:59 -0500

NSBundle *mainBundle = [NSApp mainBundle];

On Feb 29, 2004, at 3:12 PM, Ken Tozier wrote:

I'm sure this is an easy one, but I can't seem to find the answer...

I have a document window loaded from a nib file and want some of the window buttons to have the option of running user defined AppleScripts which will be stored in a folder at the same level as the application. The question is, how does the window get a reference to my application bundle?

Thanks,

Ken
_______________________________________________
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.
_______________________________________________
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: 
 >Locating application bundle from a nib file (From: Ken Tozier <email@hidden>)

  • Prev by Date: What are argc and argv from Finder (was "Voodoo...")
  • Next by Date: NSDecimalNumber and 10.2.x: is this bug a secret?
  • Previous by thread: Locating application bundle from a nib file
  • Next by thread: Re: Locating application bundle from a nib file
  • Index(es):
    • Date
    • Thread