Re: XCode 2.0 warning with @class?
Re: XCode 2.0 warning with @class?
- Subject: Re: XCode 2.0 warning with @class?
- From: Marc Respass <email@hidden>
- Date: Wed, 28 Sep 2005 16:45:03 -0400
On Sep 28, 2005, at 4:11 PM, Andy Lee wrote:
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.
Thanks Andy,
So what's the deal with @class then? In the past, I have used it and
not gotten that error.
Marc
_______________________________________________
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