• 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: docs for binding options in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: docs for binding options in IB


  • Subject: Re: docs for binding options in IB
  • From: Daryn <email@hidden>
  • Date: Wed, 24 Dec 2003 13:28:16 -0600

On Dec 23, 2003, at 11:58 PM, Scott Anguish wrote:
> The biggest Mystery Option is the "Handle as Compound Value". I
> believe (that is, I've not heard back from engineering) that when it is
> off, the values for the key are accessed using either
> valueForKey:/mutableArrayValueForKey: (which will return an array of
> the keys at that keypath in the array i.e.
> allTheFirstNames=[theUserData valueForKey:@"allTheUsers.firstName"].
> If it is checked, then the indexed accessors are tried instead. Again
> __I AM NOT 100% ON THIS BEHAVIOR__ (just want to make sure nobody
> misreads that).

Through trial and error, I've noticed that "Handle as Compound Value"
generally seems to cause the entire managed object to be updated.
Perhaps this is just a side-effect of the theory above.

For an object, updating any subkey causes the model keypath to be
updated. For example, if NSObjectController is managing model.me,
updating model.me.name will trigger an update for model.me.

For an array, updating any object in the array causes the model keypath
to be updated. For instance, if a NSArrayController is managing
model.people, and model.people.3.name is updated, then an update is
triggered for model.people.

The disturbing part is that there doesn't seem to be a way to
programatically set this behavior outside of IB, but I'd love to be
wrong.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.

References: 
 >Re: docs for binding options in IB (From: matt neuburg <email@hidden>)
 >Re: docs for binding options in IB (From: mmalcolm crawford <email@hidden>)
 >Re: docs for binding options in IB (From: Scott Anguish <email@hidden>)

  • Prev by Date: table row numbers with NSArrayController
  • Next by Date: Re: table row numbers with NSArrayController
  • Previous by thread: Re: docs for binding options in IB
  • Next by thread: who is putting up this dialog?
  • Index(es):
    • Date
    • Thread