Re: Instance method declaration
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