Re: How to avoid warning?
Re: How to avoid warning?
- Subject: Re: How to avoid warning?
- From: Uli Kusterer <email@hidden>
- Date: Wed, 23 Jan 2013 14:13:41 +0100
On Jan 22, 2013, at 8:12 PM, Jens Alfke <email@hidden> wrote:
> @interface SomeFictionalClassName
> - (id) initWithManager: (Foo*)manager;
> @end
That feels a bit "dirty" to me. I'd recommend using a protocol instead. As long as the compiler has seen the method *somewhere*, it will consider it having been declared. So
@protocol AvoidCompilerWarning
- (id) initWithManager: (Foo*)manager;
@end
is, for the purposes of this particular discussion, equivalent to Jens's fictional class interface, but doesn't imply that such a class might exist to a (human) reader.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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