• 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: core data and dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: core data and dictionary


  • Subject: Re: core data and dictionary
  • From: Cornelius Jaeger <email@hidden>
  • Date: Mon, 23 May 2005 22:00:07 +0200

hi mmalc



No, you will only receive change notifications and benefit from undo support if the whole dictionary is replaced. This is analogous to the situation where you have an array attribute. Observing the array is not the same as observing the individual object in the array.

i have wondered about this in the past in an eof context.

would it be possible to register for a kvo notification and have the keypath analysed for the beginning of the keypath rather than the last entry in the keypath.

let's say i have the keypath
myobject.properties.foo

and i do something like

NSArray * keys =[NSArray arrayWithObjects: @"foo", @"bar", nil];
[self setKeys:keys triggerChangeNotificationsForPrincipalKey:@"properties"];


where self is myObject

that i would receive notifications that properties.foo and properties.bar changed?

eh, an academic excercise i guess, but it would come in handy for me.

i know this can be solved using another entity, but i come from the server world and joins are just not great for lightweight stuff, like storing an extra few values or dates.

thx

cornelius


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >core data and dictionary (From: Cornelius Jaeger <email@hidden>)
 >Re: core data and dictionary (From: mmalcolm crawford <email@hidden>)
 >Re: core data and dictionary (From: Cornelius Jaeger <email@hidden>)
 >Re: core data and dictionary (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: ~/library/application support/myapp directory creation
  • Next by Date: Re: ~/library/application support/myapp directory creation
  • Previous by thread: Re: core data and dictionary
  • Next by thread: NSOutlineView initial expanded status
  • Index(es):
    • Date
    • Thread