Re: model for NSTableView (newbie)
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