Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use IKFilterUIViews to manipulate the filters array when applied to CALayer?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.