• 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: KVC beginners question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Bindings array count to a label ( was Re: KVC beginners question )
      • From: Jack Carbaugh <email@hidden>
References: 
 >KVC beginners question (From: Jack Carbaugh <email@hidden>)

  • Prev by Date: Insert token at selection of NSTokenField?
  • Next by Date: Bindings array count to a label ( was Re: KVC beginners question )
  • Previous by thread: KVC beginners question
  • Next by thread: Bindings array count to a label ( was Re: KVC beginners question )
  • Index(es):
    • Date
    • Thread