• 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: binding relationship to checkbox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binding relationship to checkbox


  • Subject: Re: binding relationship to checkbox
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 06 Mar 2011 11:49:42 -0800

On 2011 Mar 05, at 08:20, Amy Heavey wrote:

> This sounds to me like something that should be doable with the 'magic' of bindings

Well, bindings should certainly be involved, but there is more to it than that.  The most important is the view that will display your "checkbox column".  Assuming that the user can add and delete 'categories', this view will need to grow or shrink and/or scroll with the number of objects it contains, and it would be nice to avoid writing that code.  I would study these options:

(a) an NSTableView in source list style.
(b) an NSCollectionView
(c) Last resort, a custom view that you code yourself, containing an array of checkboxes

Then, the 'categories' in your data model should interface to this view via an array controller, and that's where you'll use bindings.

_______________________________________________

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:
    • Re: binding relationship to checkbox
      • From: Amy Gibbs <email@hidden>
References: 
 >binding relationship to checkbox (From: Amy Heavey <email@hidden>)

  • Prev by Date: Re: rerunning an NSOperation object
  • Next by Date: Re: rerunning an NSOperation object
  • Previous by thread: binding relationship to checkbox
  • Next by thread: Re: binding relationship to checkbox
  • Index(es):
    • Date
    • Thread