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

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

  • Follow-Ups:
    • Re: Binding both animate and isIndeterminate on NSProgressIndicator (SOLVED)
      • From: Aaron Burghardt <email@hidden>
  • Prev by Date: Re: When NSArray is not an Array
  • Next by Date: Embedded database server or CoreData?
  • Previous by thread: Re: Hiding the Dock
  • Next by thread: Re: Binding both animate and isIndeterminate on NSProgressIndicator (SOLVED)
  • Index(es):
    • Date
    • Thread