• 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: Instance method declaration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instance method declaration


  • Subject: Re: Instance method declaration
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 22 May 2006 04:50:11 +0200

Ryan,

On 22.5.2006, at 4:16, Ryan Britton wrote:

You will, however, get warnings for methods that are not declared in the interface.

No you won't.

You will get warnings for *unknown* ones. That's a difference:

@interface Foo:NSObject
-(void)declaredMessage;
@end
@implementation Foo
-(void)undeclaredMessage {
[self declaredMessage]; // no warning, known from header
}
-(void)anotherMessage {
[self undeclaredMessage]; // no warning either, known from above
[self unknownMessage]; // here be warning, for the message's not known at all
}
@end
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Instance method declaration (From: Angelo Chen <email@hidden>)
 >Re: Instance method declaration (From: Ryan Britton <email@hidden>)

  • Prev by Date: Re: Instance method declaration
  • Next by Date: Re: Problem connecting to Oracle 10g via 'Instant Client's dylibs'
  • Previous by thread: Re: Instance method declaration
  • Next by thread: Re: Instance method declaration
  • Index(es):
    • Date
    • Thread