On 12 Apr 2012, at 5:44 AM, Ariel Feinerman wrote: I was surprised when all templates which uses Main Window nib no longer exist in Xcode . Can anyone say why? The feature was very useful to configure Navigation controller in IB
I'm not Apple, and can only guess.
* In the simplest cases, it's not much harder to populate navigation and tab controllers in code.
* In more complex cases, code is much easier. You don't have cross-NIB references between MainWindow and the leaf controllers. You need to import the subcontrollers, and even if you could represent an object in an external NIB, the controllers aren't in any NIBs. They're just those NIBs' File's Owners.
* The layers of visible elements (tabs, views), controllers, and intermediary items (navigation items, tab items) are confusing, and nearly impossible to clearly represent in a graphical UI. How do you represent adding a tab item? Drag a tab bar item into the tab bar controller? Drag the view into the tab bar? Drag some sort of representation of the (view? controller?) imported from another XIB? Into what? The tab bar, and let the bar controller and bar item appear magically? An empty bar item that you somehow insert yourself? Where do you edit the item label and icon? I'm sure practice would have let me sort it out (I despair of finding it explicitly documented), but in three or four apps, I never figured it out.
* Code documents the tree of relationships without hidden intermediaries, and all in one place.
* And come on — configuring the root view controller for a nav controller is four lines of code. How hard can that be?
— F |