Re: Newbie error
Re: Newbie error
- Subject: Re: Newbie error
- From: Nir Soffer <email@hidden>
- Date: Fri, 2 Jun 2006 15:19:07 +0300
On 02/06/2006, at 13:02, Graham wrote:
These will make your code more readable by others:
@interface BrowserDelegate : NSObject {
Person *me;
Rename me to person.
}
- (id)initWith:(NSBrowser *)brow;
Rename to initWithBrowser:(NSBrowser *)browser
- (void)setSelf:(Person *)me;
Rename to setPerson:(Person *)aPerson
Browser delegate should not be created with a browser - usually an
object that use a delegate have a setDelegate: method, and the
delegate does not need to know about its parent object, it just have
to respond to some messages.
Best Regards,
Nir Soffer
_______________________________________________
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