Re: forward class warning
Re: forward class warning
- Subject: Re: forward class warning
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 15 Nov 2007 01:20:48 -0700
On Nov 14, 2007, at 10:56 PM, email@hidden wrote:
In Leopard I opened a project I created in Tiger. It now gets 3
warnings, just like the following:
warning: PreferenceController is a forward class and corresponding
@interface may not exist.
PreferenceController is a NSWindowController subclass. I can't find
anything about "forward class" when searching Apple's Developer
Connection web site (not surprising). Can anyone explain to me what
this warning means?
It means you declared an @class somewhere but did not include a more
concrete definition anywhere. In Xcode 2.x and earlier, GCC didn't
really care if you did that, but starting in Leopard, it does. You
probably just need to add a #import on the proper file at the top of
the implementation.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden