• 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: whether to use core data...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: whether to use core data...


  • Subject: Re: whether to use core data...
  • From: Colin Howarth <email@hidden>
  • Date: Sat, 3 Oct 2009 22:06:48 +0200

On 3 Oct, 2009, at 21:31, Mike Abdullah wrote:

Well for a start your translation is wrong. Being able to do this:

baz = foo.bar;
foo.bar = baz;

is an Objective-C 2.0 feature – Dot Notation. It is completely orthogonal to Key-Value Coding.

Dot Notation works by the compiler figuring out which method calls the dots correspond to.

Key-Value Coding happens at run-time where the object receives a - valueForKey: or -setValue:forKey: message and then decides how to handle it based upon the key.

Hey, stop trying to confuse me. :-)

I know the dot notation is an Objective C 2.0 feature - and I was assuming you experts knew it too. I didn't want to confuse things by mentioning attributed properties, since that's not the point.

If you use dot notation and properties, you are using the -value and - setValue: accessor methods, which is KVC compliant and means that KVO bits will get notified, no?_______________________________________________

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


References: 
 >whether to use core data... (From: Colin Howarth <email@hidden>)
 >Re: whether to use core data... (From: Sherm Pendley <email@hidden>)
 >Re: whether to use core data... (From: Colin Howarth <email@hidden>)
 >Re: whether to use core data... (From: Mike Abdullah <email@hidden>)

  • Prev by Date: NSPasteboard -> NSTextView
  • Next by Date: Re: whether to use core data...
  • Previous by thread: Re: whether to use core data...
  • Next by thread: KVC, KVO and dot notation. Was: whether to use core data...
  • Index(es):
    • Date
    • Thread