That was it. Thanks. On Tue, Oct 7, 2008 at 11:41 PM, Graham Cox <[EMAIL PROTECTED]> wrote:
> > On 8 Oct 2008, at 4:00 pm, Nirias wrote: > > It seems I must be doing something wrong since the NSWindow class have a >> property for NSWIndowController isnt documented to always return NULL. >> And >> it is hard to believe that the architects of cocoa intended to require >> that >> every bit of shared data be defined as global. >> > > > Your approach looks basically right to me. > > If [window windowController] is returning nil it may suggest that you > haven't hooked everything together properly in IB. Have you connected the > 'window' outlet of the controller to the window object? Forgetting to do > that is common and very often things almost work anyway, so it might not > leap out as an obvious problem. > >> >> > > > hth, Graham > _______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]