• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to use IKFilterUIViews to manipulate the filters array when applied to CALayer?
[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?


  • 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


  • Follow-Ups:
    • systemStatusBar notification for mouse click
      • From: Vance <email@hidden>
  • Prev by Date: IKFilterUIView appearance in a NSPanel with the HUD style
  • Next by Date: systemStatusBar notification for mouse click
  • Previous by thread: IKFilterUIView appearance in a NSPanel with the HUD style
  • Next by thread: systemStatusBar notification for mouse click
  • Index(es):
    • Date
    • Thread