• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: forward class warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: forward class warning
      • From: "john chen" <email@hidden>
References: 
 >forward class warning (From: email@hidden)

  • Prev by Date: Re: Having trouble just displaying a window
  • Next by Date: Re: Having trouble just displaying a window
  • Previous by thread: forward class warning
  • Next by thread: Re: forward class warning
  • Index(es):
    • Date
    • Thread