Theocacao
Leopard
Design Element
Comment on "Interview with Aaron Hillegass"
by JordyJediknil — May 31
Well, it's not exactly true that you can live completely without a nib file; getting the main menu to work correctly is harder than it, well, ought to be, and NSApplicationMain() loads a nib by default. Jeff Johnson did a series on Working without a nib, and it's worth adding that (at least for now), NSApplicationMain() is still about equivalent to the following code (according to the NSApplication docs):

[NSApplication sharedApplication]; [NSBundle loadNibNamed: [[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSMainNibFile"] owner:NSApp]; [NSApp run];

Of course, you could always use a minimal MainMenu.nib and create the rest of your interface in code, avoiding the need for the few secret overrides Jeff discovers.
Back to "Interview with Aaron Hillegass"
Design Element

Copyright © Scott Stevenson 2004-2015