• 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 both animate and isIndeterminate on NSProgressIndicator (SOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Binding both animate and isIndeterminate on NSProgressIndicator (SOLVED)
      • From: Jim Correia <email@hidden>
References: 
 >Binding both animate and isIndeterminate on NSProgressIndicator (From: Aaron Burghardt <email@hidden>)

  • Prev by Date: Re: NOT solved: using long double math functions like sinl() with Cocoa
  • Next by Date: Re: int and short int on intel
  • Previous by thread: Binding both animate and isIndeterminate on NSProgressIndicator
  • Next by thread: Re: Binding both animate and isIndeterminate on NSProgressIndicator (SOLVED)
  • Index(es):
    • Date
    • Thread