• 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: How can I populate certain table-columns with image cells while using NSArrayController?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I populate certain table-columns with image cells while using NSArrayController?


  • Subject: Re: How can I populate certain table-columns with image cells while using NSArrayController?
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 15 Jan 2010 12:33:18 -0800

On Jan 15, 2010, at 09:50, Michael A. Crawford wrote:

> Normally, when not using NSArrayController, I would make my controller the data-source for the table.  When the -[tableView:objectValueForTableColumn:row:] method is called for the BOOL columns, I would return an NSImageCell.  I was assuming that I cannot do this while using bindings and the NSArrayController.  However, when I coded it up, I got the callbacks even though the table was bound to the array-controller
>
> Is this the correct way to do this?  I'm worried that using both the DataSource callbacks and bindings to an array-controller might not be what Apple had in mind and will lead to unforeseen issues.

FWIW, this mixing of bindings and data source has always worked perfectly well for me, and appears to be designed to do so.


_______________________________________________

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

References: 
 >How can I populate certain table-columns with image cells while using NSArrayController? (From: "Michael A. Crawford" <email@hidden>)

  • Prev by Date: Re: Unable to get animation of NSProgressIndicator on my custom view (subclassed)
  • Next by Date: Re: Core Video CIFilters/ playback / compression suggestions?
  • Previous by thread: Re: How can I populate certain table-columns with image cells while using NSArrayController?
  • Next by thread: Changing TextEditField to StaticTextField
  • Index(es):
    • Date
    • Thread