Re: Binding both animate and isIndeterminate on NSProgressIndicator (SOLVED)
Re: Binding both animate and isIndeterminate on NSProgressIndicator (SOLVED)
- Subject: Re: Binding both animate and isIndeterminate on NSProgressIndicator (SOLVED)
- From: Aaron Burghardt <email@hidden>
- Date: Thu, 11 Jan 2007 23:20:34 -0500
I think I have resolved the issue. Originally, I had bound the
NSProgressIndicator bindings directly to my app controller object, but
I had the problem described below. I was able to get it to work by
adding an NSObjectController instance to the NIB, connecting content
outlet to the app controller, then binding all of the progress
indicator bindings to the NSObjectController. It now works as
expected, but I'm curious--is the NSObjectController required?
Cheers,
Aaron
On Jan 11, 2007, at 5:35 PM, Aaron Burghardt wrote:
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
_______________________________________________
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
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