On Apr 12, 2010, at 1:15 PM, James Walker wrote: > The documentation for the filters property of the CALayer class says: "Filter > properties should be modified by calling setValue:forKeyPath: on each layer > that the filter is attached to." But I don't understand exactly how to write > the key path, since the filters property is an array rather than a single > CIFilter. I looked through the KVC guide, and though I saw array operators > like @count, I couldn't find any way to just ask for item number 0 in an > array.
You need to assign a name to each filter, then you can create keypaths like @"filters.myfiltername.property". -- David Duncan Apple DTS Animation and Printing _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com