On Mar 19, 2012, at 3:22 PM, Brian Lambert wrote: > Hi Alex, > > Regarding you having to "repair" code where "UI elements that have been > hardcoded in place with the approach of: Just define the CGRect and we're > all good." I think you're seeing things as being "gross" when they are not. > > "Just define the CGRect and we're all good" is what IB does. A XIB file is > nothing more than a set of hardcoded values stored in XML vs. being > hand-coded in Objective-C. [snip] > ... > The programmer who hand-coded the label didn't do anything better or worse > than the programmer who used IB to lay out a XIB file. In fact, in some > cases, it's way easier to "see" UI in Objective-C vs. Interface Builder. > In Objective-C an experienced UI coder can "see" a bunch of controls, and > all their properties, on one screen vs. having to click on each one and > inspect their properties in Interface Builder.
Except that the runtime can easily substitute another XIB file dynamically to support different layout in iPhone vs iPad (or a different localization). If you hard code this into your code, you've got to hard code in all the differences in device layout as well as any localization specialization. Glenn Andreas [email protected] The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
