• 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: model for NSTableView (newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: model for NSTableView (newbie)


  • Subject: Re: model for NSTableView (newbie)
  • From: Seth Willits <email@hidden>
  • Date: Mon, 7 Feb 2005 12:19:44 -0800

On Feb 7, 2005, at 11:55 AM, Daniel Child wrote:

I have worked through an example of NSTableView where the data structure consisted of an array of dictionaries. That particular example did not entail the idea of sorting or searching on the columns, however. So I am wondering: what model would be best for sorting and searching, given the methods provided in the AppKit?

I thought that one obvious approach might be an array of objects, each object having fields corresponding to the columns. Are there any other "standard" approaches to setting up the data for a TableView?

There's nothing wrong with an array of dictionaries. The form of the model is entirely up to you. I use dictionaries or objects depending on what I need.




Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic


"When one door of happiness closes, another opens; but often we look so
long at the closed door that we do not see the one which has opened for us."
-- Hellen Keller
------------------------------------------------------------------------ ---


_______________________________________________
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


References: 
 >model for NSTableView (newbie) (From: Daniel Child <email@hidden>)

  • Prev by Date: Re: What's the best way to get a Shortcut List to look like it does in Mail.app?
  • Next by Date: "Subclass" NSMutableArray basic concept?
  • Previous by thread: model for NSTableView (newbie)
  • Next by thread: editing sheet Cocoa idiom
  • Index(es):
    • Date
    • Thread