Re:The Muggle Coder
by klodolph on Friday December 04, 2009 @06:22PM
(#977417)
XIBs are hardly magic. Make some UI objects in a XIB. They're just serialized to the XIB. "Outputs" are just fields with values. "Actions" are just objects and method names.
What this solves is that it's a pain to position UI elements with hand-coded coordinates. It also gets in the way of localizing the UI. You can't always just use the same UI in Germany where the words are longer. With XIBs, you just copy the XIB, resize the text boxes as necessary, and enter in the localized text.
I would agree, however, if you are writing a game then you wouldn't use XIBs. It's not because XIBs are magic (they're fairly straightforward) but because a game UI is nothing like the UI problem that XIBs were designed to solve.
What this solves is that it's a pain to position UI elements with hand-coded coordinates. It also gets in the way of localizing the UI. You can't always just use the same UI in Germany where the words are longer. With XIBs, you just copy the XIB, resize the text boxes as necessary, and enter in the localized text.
I would agree, however, if you are writing a game then you wouldn't use XIBs. It's not because XIBs are magic (they're fairly straightforward) but because a game UI is nothing like the UI problem that XIBs were designed to solve.