Skip navigation.
 
mlRe: awakeFromNib
FROM : Jens Alfke
DATE : Mon Jun 16 18:04:49 2008

On 16 Jun '08, at 8:27 AM, David Harper wrote:

> After some exploration into NSWindowController methods, I found that 
> invoking [... window] after initWithWindowNibName had the desired 
> result.


Oh, I see what you mean now. Yes, NSWindowController loads the nib 
lazily. -initWithWindowNibName: only stores the name of the nib; it 
doesn't actually load the nib until something explicitly asks for the 
window object. What you're doing now is a fairly standard technique.

—Jens

Related mailsAuthorDate
mlawakeFromNib David Harper Jun 16, 17:07
mlawakeFromNib David Harper Jun 16, 17:27
mlRe: awakeFromNib Jens Alfke Jun 16, 17:46
mlRe: awakeFromNib j o a r Jun 16, 17:59
mlRe: awakeFromNib Jens Alfke Jun 16, 18:04