Re: NSWindowController window deprecated

2011-07-23 Thread Andre Masse
Wow! I feel so stupid! That was it! Thanks, Andre Masse On 23/07/2011, at 15:55 , Jean-Daniel Dupas wrote: > Make sure you import all the required headers (especially the one defining > MainWindowController). > > Le 23 juil. 2011 à 21:29, Andre Masse a écrit : > >> Not sure what's going on,

Re: NSWindowController window deprecated

2011-07-23 Thread Jens Alfke
On Jul 23, 2011, at 12:29 PM, Andre Masse wrote: > So, in MasterDetailController, if I call: > > [[[windowController window] contentView] setNeedsDisplay:YES]; > > I get the warning: > > 'window' maybe deprecated because receiver type is unknown What’s the type of the local variable ‘windowC

Re: NSWindowController window deprecated

2011-07-23 Thread Jean-Daniel Dupas
Make sure you import all the required headers (especially the one defining MainWindowController). Le 23 juil. 2011 à 21:29, Andre Masse a écrit : > Not sure what's going on, I have my NSWindowController subclass declared as: > > @interface MainWindowController : NSWindowController > > and ha

Re: NSWindowController window deprecated

2011-07-23 Thread Andre Masse
Not sure what's going on, I have my NSWindowController subclass declared as: @interface MainWindowController : NSWindowController and have a property (and ivar) in my NSViewController subclass: @property (assign) MainWindowController *windowController; So, in MasterDetailController, if I cal

Re: NSWindowController window deprecated

2011-07-23 Thread Nick Zitzmann
On Jul 23, 2011, at 7:50 AM, Andre Masse wrote: > Hi, > > Got this warning in Xcode 4.1 on Lion. Is this really deprecated? There's no > indication in NSWindowController header… Are you sure the object is typed as an NSWindowController and not an id or something else? -[NSWindowController win

NSWindowController window deprecated

2011-07-23 Thread Andre Masse
Hi, Got this warning in Xcode 4.1 on Lion. Is this really deprecated? There's no indication in NSWindowController header… Thanks, Andre Masse___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator commen