• 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: Clueless about this warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Clueless about this warning (From: Andre Masse <email@hidden>)
 >Re: Clueless about this warning (From: "Jonathan del Strother" <email@hidden>)

  • Prev by Date: Re: Clueless about this warning
  • Next by Date: Re: Customize NSScroller
  • Previous by thread: Re: Clueless about this warning
  • Next by thread: Class Extensions (Re: Clueless about this warning)
  • Index(es):
    • Date
    • Thread