• 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
How to get NSTableView to notice a change in NSTableDataModel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get NSTableView to notice a change in NSTableDataModel


  • Subject: How to get NSTableView to notice a change in NSTableDataModel
  • From: James Bucanek <email@hidden>
  • Date: Fri, 27 May 2005 11:01:37 -0700

Greetings,

Hopefully, this should be an easy one.

I have an NSTableView.  The values in my NSTableDataModel change.  Specifically, I add a new row.  How do I get NSTableView to update its display?

Coming from the Java world, I started to look for a notification that would be sent from the data model to the view, telling it that there was a new row.  But I've searched the documentation and I don't see anything like this.

I tried calling [tableView reloadData], but that just redisplays the visible rows.  It doesn't pick up the fact that the number of rows changed.

--
James Bucanek <mailto:email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to get NSTableView to notice a change in NSTableDataModel
      • From: mmalcolm crawford <email@hidden>
    • Re: How to get NSTableView to notice a change in NSTableDataModel
      • From: Corbin Dunn <email@hidden>
    • Re: How to get NSTableView to notice a change in NSTableDataModel
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: IB Instances
  • Next by Date: NSApp nextEventMatchingMask Question
  • Previous by thread: Re: IB Instances
  • Next by thread: Re: How to get NSTableView to notice a change in NSTableDataModel
  • Index(es):
    • Date
    • Thread