• 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: Bill Cheeseman <email@hidden>
  • Date: Fri, 28 May 2004 07:11:30 -0400

on 2004-05-28 6:08 AM, Greg Pfeil at email@hidden wrote:

> 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
>> ??
>
> You don't push data into NSTableView. You implement NSTableDataSource
> and let the NSTableView pull data from that class.

And so, if you want your table view to always include certain data, even if
other data changes, you just write your data source so that it is composed
of two arrays that you merge when the table view is reloaded: an array of
always-present items that you don't allow the user to delete, and an array
of volatile items that you do allow the user to delete. It introduces a
little complexity, but it works.

In case that's what the original poster wanted to know.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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.


References: 
 >Re: Data in NSTableView (From: Greg Pfeil <email@hidden>)

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