• 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: XCode 2.0 warning with @class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode 2.0 warning with @class?


  • Subject: Re: XCode 2.0 warning with @class?
  • From: Andy Lee <email@hidden>
  • Date: Wed, 28 Sep 2005 16:11:41 -0400

On Sep 28, 2005, at 3:53 PM, Marc Respass wrote:
I use @class PersonNameOnlyTransformer for each transformer since they are only used when I setup the tranformers. I get the following warning.

Controller.m:29: warning: `PersonNameOnlyTransformer' may not respond to `+alloc'

It seems a silly warning but I suspect I set some level of warning too high and can't find the setting now. Anyone know how I can get around this warning?

If the compiler hasn't seen a class declaration for PersonNameOnlyTransformer, it doesn't know that it inherits from NSObject and therefore can't be sure that it responds to +alloc, hence the warning. Personally I would go ahead and #import PersonNameOnlyTransformer.h in place of the @class declaration.


--Andy

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: XCode 2.0 warning with @class?
      • From: Marc Respass <email@hidden>
References: 
 >XCode 2.0 warning with @class? (From: Marc Respass <email@hidden>)

  • Prev by Date: Re: viewing globals?
  • Next by Date: Oh, to build an app NOT bundled...
  • Previous by thread: XCode 2.0 warning with @class?
  • Next by thread: Re: XCode 2.0 warning with @class?
  • Index(es):
    • Date
    • Thread