Re: Clueless about this warning
Re: Clueless about this warning
- Subject: Re: Clueless about this warning
- From: Andre Masse <email@hidden>
- Date: Sat, 04 Oct 2008 11:02:49 -0400
Ah! That's it! I forgot about this order of declaration in C source
files.
Thanks,
Andre Masse
On Oct 4, 2008, at 10:49, Jonathan del Strother wrote:
I'm guessing that the times where it doesn't warn occur after "-
(void)prepareAttributes" ?
To avoid those warnings, the method declaration or definition needs to
appear before it's used. I usually add a private category at the top
of my .m files where you can declare private methods - something like
this :
@interface BigLetterView ()
- (void)prepareAttributes;
@end
@implementation BigLetterView
- (id)initWithFrame:(NSRect)rect {
...
}
-(void)prepareAttributes {
...
}
@end
_______________________________________________
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