How to use IKFilterUIViews to manipulate the filters array when applied to CALayer?
How to use IKFilterUIViews to manipulate the filters array when applied to CALayer?
- Subject: How to use IKFilterUIViews to manipulate the filters array when applied to CALayer?
- From: Ivan Scott <email@hidden>
- Date: Fri, 1 Feb 2008 09:32:43 +0000
Greetings, Code masters.
I have set an array of core image to a CALayer for generating some
effects. In order to adjust the properties of these filters, I uses
the IKFilterUIViews responding to every filter.
However, I found when I adjusted the properties of the
IKFilterUIViews' control value, the CALayer effects don't change. I
found an example named "IUUIApplicationDemo". Its solution is to add a
controller to be the observer of the filters. Code like these:
[Filter addObserver:self
forKeyPath:@"outputImage"
options:NSKeyValueObservingOptionNew
context:nil];
It didn't work for my application. For I applied the filters to a
CALayer. So in the corresponding observe method:
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object
change:(NSDictionary *)change context:(void *)context;
{
NSLog(@"Value changed");
//[renderView setImage:[self filteredImage]];
}
Instead of getting the message "Value changed", I got the following
message:
CIBloom: bloom: nil value for argument #0 (src)
I don't know how to solve this problem. Can anyone help me?
Thank you very much for any answers.
_______________________________________________
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