• 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: error displaying @count via bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error displaying @count via bindings


  • Subject: Re: error displaying @count via bindings
  • From: Keary Suska <email@hidden>
  • Date: Mon, 02 Apr 2007 14:52:10 -0600
  • Thread-topic: error displaying @count via bindings

on 4/2/07 1:00 PM, email@hidden purportedly said:

> How would this play out in code? Would I have an NSArrayController
> for each instance of my class? Or should I just put custom willChange/
> didChange notices in each of my NSMutableArray accessors and setters
> in my class?

Theoretically, you would have a single arraycontoller whose contentArray
binding is bound to the "parent" arraycontroller key "selection" using the
key path to the array in question--I am using general terms since I don't
remember exactly how you were set up. You would then bind the table column
value to the new arraycontreoller, arrangedObjects key, @count path.

If that doesn't work, then you best bet--which may be the "proper" way to do
it anyway--is to have a property in your model that maintains the array
count.

Best,

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


_______________________________________________

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

References: 
 >Re: error displaying @count via bindings (From: email@hidden)

  • Prev by Date: Re: error displaying @count via bindings
  • Next by Date: Re: optimizing background image drawing with -drawRect
  • Previous by thread: Re: error displaying @count via bindings
  • Next by thread: Re: updating UI during long loop using cocoa objective-c
  • Index(es):
    • Date
    • Thread