• 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: arrangedObjects for multiple selections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: arrangedObjects for multiple selections


  • Subject: Re: Core Data: arrangedObjects for multiple selections
  • From: Luc Vandal <email@hidden>
  • Date: Tue, 03 Feb 2009 15:06:25 -0500

Nice! That worked! However, should I use Content Array or Content Array for Multiple Selection? Are they basically the same thing but allow you to define different behaviors depending on how many master items were selected?

Luc



On 3-Feb-09, at 2:31 PM, Timothy Larkin wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, this is a multiple selection issue.

The easiest way to handle this is to set controller key in the detail controller to "selectedObjects" of the master controller, and then model key path to @distinctUnionOfSets.foo, where foo is the field of interest. There are other possibilities besides @distinceUnionOfSets, which may work better in your application. See the section "Set and Array Operators" in the "Key-Value coding programming guide".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)


iEYEARECAAYFAkmIm38ACgkQOzculQ5SMWQiFQCcCVWgjHA5t+6OTTa3JArKgx6K
bJoAn39dKD9rhsJPWVi1eSdjCp7wD2qI
=O0pO
-----END PGP SIGNATURE-----

_______________________________________________

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: 
 >Core Data: arrangedObjects for multiple selections (From: Luc Vandal <email@hidden>)

  • Prev by Date: Re: garbage collection is ON NSCFDictionary crash
  • Next by Date: applicationShouldOpenUntitledFile in Core Data App?
  • Previous by thread: Core Data: arrangedObjects for multiple selections
  • Next by thread: re: Core Data: arrangedObjects for multiple selections
  • Index(es):
    • Date
    • Thread