Re: KVC beginners question
Re: KVC beginners question
- Subject: Re: KVC beginners question
- From: Keary Suska <email@hidden>
- Date: Sun, 10 Aug 2008 10:37:11 -0600
- Thread-topic: KVC beginners question
8/10/08 10:09 AM, also sprach email@hidden:
> 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 (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