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

Re: How to get NSTableView to notice a change in NSTableDataModel


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

Corbin Dunn wrote on Friday, May 27, 2005:

>> 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?
>
>
>Try noteNumberOfRowsChanged (also, see the docs for more info about
>it).

Ah ha!  I didn't see that one.  It was catagorized with the other "Layout" methods, and I wasn't thinking that a data model update was a "layout" problem.  ;)

That works.  Thanks.

>But, are you using bindings to display your data, or a normal
>datasource? If you are using bindings, it sounds like you aren't
>sending out the proper KVO messages when add a new item.

Plain ol' hand-coded NSTableDataSource object.

--
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: Scott Stevenson <email@hidden>
References: 
 >Re: How to get NSTableView to notice a change in NSTableDataModel (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: How to get NSTableView to notice a change in NSTableDataModel
  • Next by Date: Re: IB Instances
  • Previous by thread: Re: How to get NSTableView to notice a change in NSTableDataModel
  • Next by thread: Re: How to get NSTableView to notice a change in NSTableDataModel
  • Index(es):
    • Date
    • Thread