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, I have my NSWindowController subclass declared as:
>> 
>> @interface MainWindowController : NSWindowController <NSWindowDelegate> 
>> 
>> and have a property (and ivar) in my NSViewController subclass:
>> 
>> @property (assign) MainWindowController *windowController;
>> 
>> 
>> So, in MasterDetailController, if I call:
>> 
>> [[[windowController window] contentView] setNeedsDisplay:YES];
>> 
>> I get the warning: 
>> 
>> 'window' maybe deprecated because receiver type is unknown
>> 
>> and doing this:
>> 
>> NSWindow * wind = [windowController window];
>> 
>> I get this one:
>> 
>> 'window' is deprecated
>> 
>> I've tried to clean the project, but the warnings are still there…
>> 
>> 
>> Thanks for your reply,
>> 
>> 
>> Andre Masse
>> 
>> 
>> On 23/07/2011, at 14:05 , Nick Zitzmann wrote:
>> 
>>> 
>>> 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 window] is not deprecated, but 
>>> -[NSCachedImageRep window] was deprecated a while ago, so maybe the 
>>> compiler confused the two…
>>> 
>>> Nick Zitzmann
>>> <http://www.chronosnet.com/>
>>> 
>>> 
>>> 
>> 
>> _______________________________________________
>> 
>> 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/devlists%40shadowlab.org
>> 
>> This email sent to devli...@shadowlab.org
> 
> -- Jean-Daniel
> 
> 
> 
> 

_______________________________________________

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 arch...@mail-archive.com

Reply via email to