• 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
Invalid exception being thrown: CIUnsharpMask is not kvc for the key inputIntensity - except that it is
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Invalid exception being thrown: CIUnsharpMask is not kvc for the key inputIntensity - except that it is


  • Subject: Invalid exception being thrown: CIUnsharpMask is not kvc for the key inputIntensity - except that it is
  • From: Mark Aufflick <email@hidden>
  • Date: Wed, 9 Jun 2010 15:35:23 +1000

Hi all,

So I have a property, unsharpMaskFilter, setup in init like so:

        CIFilter *filter = [CIFilter filterWithName:@"CIUnsharpMask"];
        [filter setDefaults];
        [filter setValue:[NSNumber numberWithFloat:0.1]
forKey:@"inputIntensity"];
        [filter setValue:[NSNumber numberWithFloat:0.2] forKey:@"inputRadius"];

        NSLog(@"filter:%@ ii:%@ ir:%@", filter, [filter
valueForKey:@"inputIntensity"], [filter valueForKey:@"inputRadius"]);
        self.unsharpMaskFilter = filter;

the NSLog line shows that we can call valueForKey on inputIntensity,
but when it is assigned to the property, bindings in the xib kick in
(there's a slider and a text field whose value is bound to
unsharpMaskFilter.inputIntensity) and I get the following exception:

        *** Terminating app due to uncaught exception
'NSUnknownKeyException', reason: '[<CIUnsharpMask 0x2000648c0>
valueForUndefinedKey:]: this class is not key value coding-compliant
for the key inputIntensity.'

What on earth is going on here? The very line before the exception is
triggered we successfully call [filter valueForKey:@"inputIntensity"].
I feel like I've tried everything including rebuilding a brand new xib
from scratch with nothing but a single text field.

A fresh idea would be welcomed!

Cheers,

Mark.

--
Mark Aufflick
  http://mark.aufflick.com/about/contact
_______________________________________________

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:
    • Re: Invalid exception being thrown: CIUnsharpMask is not kvc for the key inputIntensity - except that it is
      • From: "Stephen J. Butler" <email@hidden>
  • Prev by Date: Re: get the selection in an NSOutlineView
  • Next by Date: Re: Invalid exception being thrown: CIUnsharpMask is not kvc for the key inputIntensity - except that it is
  • Previous by thread: Re: get the selection in an NSOutlineView
  • Next by thread: Re: Invalid exception being thrown: CIUnsharpMask is not kvc for the key inputIntensity - except that it is
  • Index(es):
    • Date
    • Thread