• 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: "john chen" <email@hidden>
  • Date: Thu, 15 Nov 2007 22:31:15 -0600

Nick is right, added  #import "PreferenceController.h" at the class that
uses PreferenceController should work.

John


On 11/15/07, Nick Zitzmann <email@hidden> wrote:
>
>
> 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
>
_______________________________________________

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

References: 
 >forward class warning (From: email@hidden)
 >Re: forward class warning (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Multiple NSDocuments in a single window
  • Next by Date: Resizing problem in PDFView sample SOLVED
  • Previous by thread: Re: forward class warning
  • Next by thread: is lockFocus main thread specific?
  • Index(es):
    • Date
    • Thread