Binding both animate and isIndeterminate on NSProgressIndicator
Binding both animate and isIndeterminate on NSProgressIndicator
- Subject: Binding both animate and isIndeterminate on NSProgressIndicator
- From: Aaron Burghardt <email@hidden>
- Date: Thu, 11 Jan 2007 17:35:59 -0500
Hi all,
I am trying to bind the animate and isIndeterminate bindings of an
NSProgressIndicator, but I get an exception when the animate bound
value changes. The descriptions for the binding in IB are:
animate: NSNegateBoolean(currentTask.paused) [AppController
(AppController)]
isIndeterminate: NSNegateBoolean(currentTask.determinateProgress)
[AppController (AppController)]
When the app launches, currentTask is nil. When the task is started,
currentTask is set to my task object, which is when I get the
following exception:
-------
Exception raised during posting of notification. Ignored. exception:
***- observeValueForKeyPath:ofObject:change:context: only defined for
abstract class. Define -[NSCFString
observeValueForKeyPath:ofObject:change:context:]!
-------
I have tried breaking on -[NSException raise], and the exception
happens when the paused ivar is changed. I am really puzzled by the
apparent fact that a string is bound to the paused property. As far
as I can tell, I haven't created one.
I have tested each binding by itself and they work as expected, so I
believe they are set up correctly and that the KVO is working. It is
only when they are both set that I get the exception.
I've tried searching for "binding isIndeterminate" and some other
combinations, but I haven't find any answers.
TIA,
Aaron
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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