Subclassing NSArrayController ?
Subclassing NSArrayController ?
- Subject: Subclassing NSArrayController ?
- From: Kubernan from 10191 Technologies <email@hidden>
- Date: Thu, 7 Jul 2005 13:05:39 +0200
Hello,
Since my data model doesn't match easily with the GUI (i.e.
NSTableView)
i think i have to create a subclass of NSArrayController but i don't
know if its a good solution.
- The data i want to display in the table view are stored as NSNumber
in a NSMutableArray.
Then each item of the array should be displayed in a column of the
table view.
The column name and the cell format are available in another part
(class) of the data
model.
- Collection of these data are stored in other Array and could be
used as the content of
the controller. Each item of this collection should be a row in the
table view.
The problem is :
May be i'm wrong but since there is no NSMutableDictionary in my data
model there is no
easy way to bind a column of the table view to my data model.
May be i should subclass NSArrayController but :
1- What method should i override for that (i'm little bit
confused with arrangeObject and so on) ?
2- Because my data model can contain large amount of data, it
could be a penalty of
performance doing that ?
Other idea ?
Thanks for your help (and sorry for my english),
K.
_______________________________________________
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