• 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: Version nib loading?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Version nib loading?


  • Subject: Re: Version nib loading?
  • From: Uli Kusterer <email@hidden>
  • Date: Wed, 20 Jun 2007 21:49:17 +0200

On 20.06.2007, at 16:44, Stephane wrote:
It is mainly possible to achieve this by yourself right now for secondary nib (it requires code), but this would not deal with the Main Nib since it's loaded automatically by the Cocoa NSApplication runtime.

I think someone from Apple once posted code to this list that is roughly equivalent to NSApplicationMain(). Have you tried tracking down that code (or come up with your own), and modifying it so it looks up whatever NIB you want it to load?


Or you could have a second NIB that your application delegate loads, and only put stuff in your main NIB that is the same across platforms. Loading a NIB is a fairly straightforward process, especially since for the main NIB you don't even have to use the call that gives you an array of the top-level objects so you can release them when needed. After all, the main NIB doesn't get unloaded and released either, it just gets cleaned up with the rest of your app's memory at application termination.

 I wouldn't do that weird localization trick. It's too likely to break.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Version nib loading? (From: Stephane <email@hidden>)

  • Prev by Date: Re: request for advice on using Core Data
  • Next by Date: Re: Why the need for the id type?
  • Previous by thread: Version nib loading?
  • Next by thread: Re: Version Nib Loading?
  • Index(es):
    • Date
    • Thread