Invalid exception being thrown: CIUnsharpMask is not kvc for the key inputIntensity - except that it is
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