• 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: Data in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Data in NSTableView


  • Subject: Re: Data in NSTableView
  • From: Greg Pfeil <email@hidden>
  • Date: Fri, 28 May 2004 03:08:15 -0700

On 27 May 2004, at 23:57, Rahul Verma wrote:

Can some one help in hard code some data in to my NSTableView? Any example
??

Wow, I was just discussing the genius of this API tonight to someone who probably had no clue what I was talking about. When I first saw the way to do this, I was like "What the...?" then it suddenly dawned on me how perfect this method was, and I was instantly converted to the Cocoa/OpenStep way.


You don't push data into NSTableView. You implement NSTableDataSource and let the NSTableView pull data from that class. tableView:objectValueForTableColumn:row: is the important method -- it returns the value for a particular cell. The NSTableView will pull data for only the cells that are visible in the UI.

This is exactly the situation that made Cocoa/OpenStep click for me. It was an "Ah-ha!" moment.

Sorry if this is a little non-coherent. It's a bit late here ...
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Data in NSTableView
      • From: Bill Cheeseman <email@hidden>
References: 
 >Data in NSTableView (From: Rahul Verma <email@hidden>)

  • Prev by Date: Data in NSTableView
  • Next by Date: Re: Data in NSTableView
  • Previous by thread: Data in NSTableView
  • Next by thread: Re: Data in NSTableView
  • Index(es):
    • Date
    • Thread