RE: warning: local declaration hides instance variable
RE: warning: local declaration hides instance variable
- Subject: RE: warning: local declaration hides instance variable
- From: Jeff Laing <email@hidden>
- Date: Tue, 4 Sep 2007 11:05:26 +1000
> And if you don't have Apple's guideline wired in, you can use the
> prefix '_' and still make it clear what's instance data. You don't
> have to write
I guess thats the point I was trying to make, somewhat obtusely.
Apple *do* have a naming convention thats being assumed by KVC - use leading
'_' if you want to get *some* of your implementation for free. So you can't
choose to use leading 'm_' without taking on extra coding effort.
Personally, I'm not convinced that having KVC automagically work in this way
is a good thing, since it exposes more of the internals of your classes to
abuse in the nib. (ie, people can start setting things that you didn't
think you exposed). But thats a seperate discussion, better held
elsewhere...
> - (NSString*) bullets { return _bullets; }
>
> for KVM, but you still need to write the setter...
Why? Doesn't it do the right thing for setting NSString as well as getting?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden