• 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: KVO Oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: KVO Oddity
      • From: Allan Odgaard <email@hidden>
References: 
 >KVO Oddity (From: Chris Pavicich <email@hidden>)
 >Re: KVO Oddity (From: Scott Anguish <email@hidden>)
 >Re: KVO Oddity (From: Joakim Danielson <email@hidden>)
 >Re: KVO Oddity (From: "Louis C. Sacha" <email@hidden>)
 >Re: KVO Oddity (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Bringing app to front
  • Next by Date: Re: KVO Oddity
  • Previous by thread: Re: KVO Oddity
  • Next by thread: Re: KVO Oddity
  • Index(es):
    • Date
    • Thread