Re: Father and child
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.