39 ms·
This example does not even begin to describe what Interface Builder is good for. Why should I write any imperative code at all to set the font, font-size, text
by swannodette 17y ago
This example does not even begin to describe what Interface Builder is good for. Why should I write any imperative code at all to set the font, font-size, text layout, subtle drop shadow, font-weight, font-style, etc. ?
In anything but the most trivial applications you will simply be wasting time not leveraging Interface Builder as well as generating pointless code.
Interface builder is the CSS of Cocoa development.
EDIT: How about HTML+CSS ? ;)
- blasdel 17y agoNo! Interface Builder produces the HTML of Cocoa development. When Shaun Inman does some whizbang fancy rich web development, does he insist that the body of the HTTP Response contain nothing but code: <!doctype html><html><head><script> ... </script></head><body></body></html> Of course he doesn't write a ton of shitty procedural client-side code to slowly build up the DOM programatically -- the browser gets a clean independent serialization, with bindings to code for events on elements. This is exactly how Cocoa works. Interface Builder doesn't generate bolierplate code like nearly every other GUI designer ever to exist -- it instantiates objects and serializes them.