Re: A Data Object in Cocoa
Re: A Data Object in Cocoa
- Subject: Re: A Data Object in Cocoa
- From: Thomas Davie <email@hidden>
- Date: Fri, 9 Jan 2009 16:16:59 +0100
On 9 Jan 2009, at 16:13, Andy Lee wrote:
I haven't checked, but I suspect the compiler chooses the right
thing, since this is only a warning. Maybe someone knows a way to
disable the warning? In Java, I wouldn't be surprised if there were
a way to enable a similar warning.
The compiler will chose the name binding from the inner-most scope, so
in this case, label will refer to the argument. In practice though,
it's a bad idea to name the two the same – I tend to use
initPropertyName in my init functions, and newPropertyName in my
setters (if I'm using @dynamic). But then this is coming from the
point of view of someone who uses -Wall -Werror.
Bob_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden