Hi, On Jun 13, 2012, at 4:15 PM, Robert Tillyard wrote:
> Thank you for your reply. You're welcome. > Window is created from a XIB using: > > - (id)initWithManagedObjectContext:(NSManagedObjectContext *)inMoc > { > if ((self = [super initWithWindowNibName:@"RunnersWindow" owner:self])) > [self setManagedObjectContext:inMoc]; > > return (self); > } > > - (void)windowDidLoad > { > [window setAutorecalculatesKeyViewLoop:NO]; > NSLog (@"windowDidLoad: Window = %@\n", window); > } If you're referring to it plain that way, then it must be an instance variable of your own, as Dennis suggested. Assuming this is a subclass of NSWindowController as it seems to be, then you should be using the window property that it defines. So, you'd do [self window] or self.window, not just window. Remove any extra window instance variable or property declaration from your class. > How would I know if I've instantiated the window controller in my NIB? would > I see two windowDidLoad messages? You would see an actual object, not the File's Owner placeholder, listed among the top-level objects of the NIB. It would usually be a blue cube "object" whose class you had set to be your window controller class. Regards, Ken _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com