Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

silentnosie

macrumors newbie
Original poster
May 27, 2009
6
0
Have two questions about IB in xcode3.1

In IB if is there some way to organize your modules (windows, objects, etc....) in the .xib window into folders or something of that nature for easier navigation when linking commands?

Is there a way for IB to behave like it did in xcode3.0 making you aware of what will not work in different a OS?
 

Krevnik

macrumors 601
Sep 8, 2003
4,100
1,309
The functionality that existed in 3.0 should also exist in 3.1. The only difference I am aware of is that in 3.1, XCode/IB default to creating XIBs targeting 10.5, so most warnings will get suppressed. You will want to bring up the file's info (in IB) to check/edit this.

If you have a single NIB/XIB that is getting complicated to the point where you need to figure out how to organize it... it is too big. There isn't anything like folders, but you can split it up into multiple NIBs/XIBs and load them programmatically.

An example would be: A XIB for the main program window, another for program preferences, a third for Get Info-like windows, etc.

This method of splitting up the XIB is also useful because a window in its own XIB that you load programmatically can be loaded multiple times and its window spawned multiple times. Something you can't do nearly as easily if the window lives in the same XIB as everything else.
 

Sayer

macrumors 6502a
Jan 4, 2002
981
0
Austin, TX
Another salient point to mention is that when the NIB is loaded all of its objects are instantiated (loaded into memory, initialized, etc).

If you don't need everything at startup, then you should split out to separate NIBs (XIBs are just XML-based NIBs that get compiled into read-only NIBs on build).
 

silentnosie

macrumors newbie
Original poster
May 27, 2009
6
0
stuff

that really is horrible thing it's doing with it suppressing the warnings. Guess the rumors about snow-leopard have some truth to them.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.