Re: Updating parameters of a CI filter on a CA layer
Re: Updating parameters of a CI filter on a CA layer
- Subject: Re: Updating parameters of a CI filter on a CA layer
- From: David Duncan <email@hidden>
- Date: Mon, 12 Apr 2010 13:22:53 -0700
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 (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