FROM : Andreas Mayer
DATE : Mon Nov 18 10:28:36 2002
Am Montag, 18.11.02 um 06:28 Uhr schrieb Rixstep:
> With the NSTableView, the delegate idea requires my program - my
> controlling class - to maintain a mutable array with all the
> records.
As Alex already pointed out, the table view does not care how you
maintain your data.
You simply get a request for the contents of any cell that's about to
be displayed and tell the table view what it should put there.
> I am going to get separate messages sent for every record in my table
> view
You will only get messages for those cells that are actually being
displayed, AFAIK.
> Even if I could associate data - without creating a class, something
> I would prefer, as this is just cold data to me and it's going to
> have to be formatted as CSV or TSV - with each record in a table
> view, I would still be stuck - or so I think - with individual calls
> to free() whenever my user wanted to start a new file.
I don't understand. If you would like to allocate one big chunck of
memory and manage it on your own - go ahead. Nothing is going to stop
you. Objective-C is a superset of C after all.
bye. Andreas.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Mon Nov 18 10:28:36 2002
Am Montag, 18.11.02 um 06:28 Uhr schrieb Rixstep:
> With the NSTableView, the delegate idea requires my program - my
> controlling class - to maintain a mutable array with all the
> records.
As Alex already pointed out, the table view does not care how you
maintain your data.
You simply get a request for the contents of any cell that's about to
be displayed and tell the table view what it should put there.
> I am going to get separate messages sent for every record in my table
> view
You will only get messages for those cells that are actually being
displayed, AFAIK.
> Even if I could associate data - without creating a class, something
> I would prefer, as this is just cold data to me and it's going to
> have to be formatted as CSV or TSV - with each record in a table
> view, I would still be stuck - or so I think - with individual calls
> to free() whenever my user wanted to start a new file.
I don't understand. If you would like to allocate one big chunck of
memory and manage it on your own - go ahead. Nothing is going to stop
you. Objective-C is a superset of C after all.
bye. Andreas.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Rixstep | Nov 18, 06:28 | |
| Alex Rice | Nov 18, 08:54 | |
| Alex Rice | Nov 18, 09:11 | |
| Andreas Mayer | Nov 18, 10:28 | |
| <rixstep000 | Nov 18, 13:43 | |
| <rixstep000 | Nov 18, 14:10 | |
| <rixstep000 | Nov 18, 16:27 | |
| Alex Rice | Nov 18, 20:14 | |
| Andreas Mayer | Nov 18, 22:07 | |
| j o a r | Nov 18, 22:49 | |
| j o a r | Nov 18, 23:34 | |
| David Remahl | Nov 19, 00:23 | |
| Terrence Asselin | Nov 19, 01:39 | |
| Kevin Elliott | Nov 19, 18:27 | |
| Alex Rice | Nov 19, 19:16 | |
| Clark S. Cox III | Nov 19, 22:20 | |
| Rosyna | Nov 20, 07:25 |






Cocoa mail archive

