• 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
Problem binding NSProgressIndicator maxValue to array.@count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem binding NSProgressIndicator maxValue to array.@count


  • Subject: Problem binding NSProgressIndicator maxValue to array.@count
  • From: Kenny Leung <email@hidden>
  • Date: Wed, 23 Jan 2008 14:58:33 -0800

Hi All.

It seems natural to me to bind NSProgressIndicator's maxValue to array.@count, and to bind value to the current index as you iterate through that array. However, I'm having trouble binding maxValue to an array's @count value. When I try to run the program, I get the error:

2008-01-23 14:46:12.779 NSProgressIndicatorBindings[137] *** Uncaught exception: <NSInvalidArgumentException> [<NSCFArray 0x363e00> addObserver:forKeyPath:options:context:] is not supported. Key path: @count

I consulted the Google for an answer, and found this:

    http://www.cocoabuilder.com/archive/message/cocoa/2004/8/17/114844

which eventually points to this:

http://developer.apple.com/documentation/Cocoa/Conceptual/ KeyValueCoding/Concepts/ArrayOperators.html

and it seems that I'm doing it right.

You can find a sample project at

http://www.hexdreams.com/CodeSamples/ NSProgressIndicatorBindings.tar.gz

Has anybody run into this?

Thanks!

-Kenny

_______________________________________________

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


  • Prev by Date: Re: NSRuleEditor
  • Next by Date: Re: Singleton ADC example - dealloc and assignment
  • Previous by thread: totals
  • Next by thread: Using custom, yet animated outline cell images in NSOutlineViews
  • Index(es):
    • Date
    • Thread