• 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: Conditionally modifying NIBs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditionally modifying NIBs?


  • Subject: Re: Conditionally modifying NIBs?
  • From: Uli Kusterer <email@hidden>
  • Date: Sun, 18 May 2008 11:14:55 +0200

Am 14.05.2008 um 19:37 schrieb Mike Fischer:
Given the recent/ongoing discussion about bypassing Interface Builder I have one question/issue for which IB does not seem to provide any solution. Interface Builder and NIBs are nice and have many advantages but I am missing a way to build different versions of nib files depending on Project targets/settings. I'm wondering how others handle this?


I generally split up the NIB into several NIBs. That way, I can load the master NIB containing the window, and then load the sub-NIBs using NSViewController depending on which version of the app is built.

I also have some view classes not unlike Javas GridBag and similar that arrange their subviews and, when used as a window's content view, can resize the window to fit their contents. Comes in very handy for all sorts of dynamic view arrangements, including using bindings to show/hide non-applicable parts and having the window magically re- layout in response to that. Though in that case I often just embed the views in an NSView that have to be shown/hidden together, without loading them from separate NIBs.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

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: Conditionally modifying NIBs?
      • From: Mike Fischer <email@hidden>
References: 
 >Conditionally modifying NIBs? (From: Mike Fischer <email@hidden>)

  • Prev by Date: releasing NSKeyedUnarchiver causes crash
  • Next by Date: Cocoa et al as HCI usability problem
  • Previous by thread: Re: Conditionally modifying NIBs?
  • Next by thread: Re: Conditionally modifying NIBs?
  • Index(es):
    • Date
    • Thread