Re: Core Data: arrangedObjects for multiple selections
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