• 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: Father and child
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Father and child


  • Subject: Re: Father and child
  • From: Andreas Mayer <email@hidden>
  • Date: Sun, 9 May 2004 20:42:16 +0200

Am 09.05.2004 um 19:58 schrieb Lorenzo:

In other words, is some API that lets an object know who is his father?

What is a 'father'? The object that instantiated the child object? Why do you need to know? There might not even *be* a 'father' object.

When you need to reference an associated object that object is often called a delegate. Or it has a special name that denotes it's function like a table's data source.

- (id)initByFather:(id)sender

Although this is not explicitly mentioned in the coding guidelines, initBy... is not a common Cocoa method name. I'd use initWith... instead.

http://developer.apple.com/documentation/Cocoa/Conceptual/ CodingGuidelines/index.html


Andreas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Father and child (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: custom sheet modal to window
  • Next by Date: Re: Callbacks, GUI updates and threading
  • Previous by thread: Father and child
  • Next by thread: close menu weirdness
  • Index(es):
    • Date
    • Thread