Re: KVO Oddity
Re: KVO Oddity
- Subject: Re: KVO Oddity
- From: "Louis C. Sacha" <email@hidden>
- Date: Fri, 14 May 2004 13:19:55 -0700
Hello...
I agree that it would probably be better if the matching followed the
pattern <key>, then _<key>.
But if you have accessor methods, then don't those have priority anyway?
Louis
Where the argument is to avoid 'name clashes', but with KVC this
seems to be inevitable. I.e. if we have:
@interface AppleStuff { id _foo; } @end
And then
@interface MyStuff : AppleStuff { id foo; } @end
Then I can do "obj->foo" and Apple can do "obj->_foo" w/o clashes.
But [obj valueForKey:@"foo"] return Apple's private version.
This is actually a quite serious flaw in the guidelines IMHO.
_______________________________________________
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.