• 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: How does MainMenu.xib get loaded in a Cocoa application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does MainMenu.xib get loaded in a Cocoa application?


  • Subject: Re: How does MainMenu.xib get loaded in a Cocoa application?
  • From: Sherm Pendley <email@hidden>
  • Date: Fri, 5 Dec 2008 14:08:24 -0500

On Dec 4, 2008, at 10:03 PM, Debajit Adhikary wrote:

I'm new to Cocoa and am trying to understand File Owner's and Nibs.
When I create a simple Cocoa application and build and run it, a window --
specified in MainMenu.xib -- opens. How exactly does this window open? Is
there any code for this anywhere? I wasn't able to find any.

In NSApplicationMain(), which is called from your main(), there's code that loads the "Main Nib File" as specified in your target's properties, and makes the shared NSApplication instance that nib's owner.


Why do you ask? Normally, it's not something you'd really need to worry about.

sherm--

_______________________________________________

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: How does MainMenu.xib get loaded in a Cocoa application?
      • From: Andy Lee <email@hidden>
References: 
 >How does MainMenu.xib get loaded in a Cocoa application? (From: "Debajit Adhikary" <email@hidden>)

  • Prev by Date: Re: Cant Load an Image into a CALayer
  • Next by Date: Re: New to Cocoa and Objective C, and I need some basic pointers
  • Previous by thread: How does MainMenu.xib get loaded in a Cocoa application?
  • Next by thread: Re: How does MainMenu.xib get loaded in a Cocoa application?
  • Index(es):
    • Date
    • Thread