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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to