• 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: Refreshing an NSTableView with an NSMutableArray dataSource
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refreshing an NSTableView with an NSMutableArray dataSource


  • Subject: Re: Refreshing an NSTableView with an NSMutableArray dataSource
  • From: Simon Wolf <email@hidden>
  • Date: Mon, 26 May 2008 20:56:39 +0100

On 26 May 2008, at 19:52, Hamish Allan wrote:

On Mon, May 26, 2008 at 7:30 PM, Simon Wolf <email@hidden> wrote:

I know this is a horrible newbie question but I am hoping that someone can
simply confirm that I'm not missing something. Am I correct in assuming that
the only way to reflect changes made to an NSMutableArray in an NSTableView
which is using the array as a dataSource is by using reloadData?

Yes. But here's what you may be missing: the NSTableView is not using the NSMutableArray as a datasource. It is using a controller object that happens to be quizzing an NSMutableArray to provide its answers, but could just as well be quizzing a database or a web service.

Thanks Hamish. I did miss that the whole controller object is the dataSource rather than just the NSMutableArray but it is stupidly obvious once I look at my code again.


Simon

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Refreshing an NSTableView with an NSMutableArray dataSource (From: Simon Wolf <email@hidden>)
 >Re: Refreshing an NSTableView with an NSMutableArray dataSource (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: How hard is it to learn Cocoa - Survey ?
  • Next by Date: Prevent computer from going to sleep but _not_ disable dimming
  • Previous by thread: Re: Refreshing an NSTableView with an NSMutableArray dataSource
  • Next by thread: Just a simple general question...
  • Index(es):
    • Date
    • Thread