Using CIFilter and IKFilterUIView
Using CIFilter and IKFilterUIView
- Subject: Using CIFilter and IKFilterUIView
- From: Graham Cox <email@hidden>
- Date: Mon, 10 Nov 2008 09:21:58 +1100
I'm using CIFilter to perform some special effects in my app, and I'm
using IKFilterUIView to provide the interactive parameters to this.
Leaving aside the problem of this UI being all over the place, layout-
wise, I'm also having difficulty understanding what I need to do to
actually make a functional system here.
IKFilterUIView uses an NSObjectController internally to connect the
CIFilter to the UI controls. That seems fine, but then what? How can I
get notified when the filter has changed and so update the objects
that use the filter "live"? It looks as if I'll already have to modify
my data model to handle this, since previously I created the CIFilter
on the fly as needed and just stored its name and attributes
dictionary in my object - looks like I need to cache the actual
filter. But it's still not clear how I can pick up any change to the
filter when the UI changes it via the controller. KVO possibly, but on
what property? CIFilter has very few, and none that appear to be KVO
compatible.
Stumped,
Graham
_______________________________________________
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