• 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: Newbie error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Re: Newbie error (From: Graham <email@hidden>)

  • Prev by Date: Re: Newbie error
  • Next by Date: Problem with subview creation or it in somewhere else
  • Previous by thread: Re: Newbie error
  • Next by thread: Re: Newbie error
  • Index(es):
    • Date
    • Thread