I did see the array operators ... and in IB ... i have the label set up to BIND ValueWithPattern ... bound to the controller, keypath "[EMAIL PROTECTED]".

I'm sure i'm just missing something VERY obvious/simple. sigh.

Thanks !!!

Jack
On Aug 10, 2008, at Sun-08 /10 /08-12:37 PM, Keary Suska wrote:

8/10/08 10:09 AM, also sprach [EMAIL PROTECTED]:

I am attempting to understand KVC and am having a bit of trouble
understanding some of the examples, as well as the documentation.

What i'd like to be able to do is have a label in a window
automagically updated with the current count of an array. I've tried
several things in IB and in code but do not actually get the "count"
of the items in the array.

in the controller, the array is called "browserData" and basically
drives a coverflow view and an IKBrowserView. the label is to show how
many objects are in the array.

I very much see the value in KVC/O and am wanting to make this a part
of my basic coding practices but for some reason ( maybe lack of
coffee/caffeine at this point) is preventing me from actually grasping
it.

You need an array operator:
http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Con
cepts/ArrayOperators.html#//apple_ref/doc/uid/20002176-184206

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/intrntmn%40aol.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to