• 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
Re: Binding to CoreImage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding to CoreImage?


  • Subject: Re: Binding to CoreImage?
  • From: Troy Stephens <email@hidden>
  • Date: Fri, 21 Oct 2005 18:11:36 -0700

Your bind:... message send looks fine. Are you certain you're binding to the same CIFilter instance whose state you're logging? (Probably so, but worth asking.)

Do any suspicious messages appear in the console?

Troy

On Oct 21, 2005, at 4:27 PM, Colin Cornaby wrote:
The redrawn image is unaltered, and when I get a description the filter is still at their default value. I don't actually have observer code present yet, I just have a button set up to manually redraw. On the manual redraw, it prints out a description of the filter it's trying to draw. I throw the slider around and I always get for the description:

2005-10-21 15:59:23.268 Catalyst[7243] {CIHueAdjust {inputAngle = 0; inputImage = {CIImage [0 0 22 26]}; }}
2005-10-21 15:59:23.438 Catalyst[7243] {CIHueAdjust {inputAngle = 0; inputImage = {CIImage [0 0 22 26]}; }}
2005-10-21 15:59:23.640 Catalyst[7243] {CIHueAdjust {inputAngle = 0; inputImage = {CIImage [0 0 22 26]}; }}
2005-10-21 15:59:24.348 Catalyst[7243] {CIHueAdjust {inputAngle = 0; inputImage = {CIImage [0 0 22 26]}; }}
2005-10-21 15:59:24.528 Catalyst[7243] {CIHueAdjust {inputAngle = 0; inputImage = {CIImage [0 0 22 26]}; }}
2005-10-21 15:59:24.708 Catalyst[7243] {CIHueAdjust {inputAngle = 0; inputImage = {CIImage [0 0 22 26]}; }}


The key that I am trying to bind to is "inputAngle" but inputAngle is never changing. The binding code with the variables substituted in is something like:

[newSlider bind:@"value" toObject:(CIHueAdjust here) withKeyPath:@"inputAngle" options:bindingOptions];

-Colin

On Oct 21, 2005, at 3:18 PM, Troy Stephens wrote:

This looks like it should work as written. I have some very similar code in a project that works fine. In what sense is this broken? Is it a matter of your image display not refreshing when you move one of the sliders, or are you seeing the corresponding attribute unchanged when you read its value back from the filter?

One thing to be sure to do (which might be in code you elided below) is set the min and max values of the slider to be compatible with the attribute's recommended range (kCIAttributeSliderMin to kCIAttributeSliderMax).

Troy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Binding to CoreImage?
      • From: Colin Cornaby <email@hidden>
References: 
 >Binding to CoreImage? (From: Colin Cornaby <email@hidden>)
 >Re: Binding to CoreImage? (From: Troy Stephens <email@hidden>)
 >Re: Binding to CoreImage? (From: Colin Cornaby <email@hidden>)
 >Re: Binding to CoreImage? (From: Troy Stephens <email@hidden>)
 >Re: Binding to CoreImage? (From: Colin Cornaby <email@hidden>)

  • Prev by Date: Re: Binding to CoreImage?
  • Next by Date: Re: Saving the rows order of a table view
  • Previous by thread: Re: Binding to CoreImage?
  • Next by thread: Re: Binding to CoreImage?
  • Index(es):
    • Date
    • Thread