NSTableView questions...
NSTableView questions...
- Subject: NSTableView questions...
- From: Thomas McQuitty <email@hidden>
- Date: Sat, 6 Sep 2003 21:26:03 -0600
Ok, please forgive my ignorance...
I am writing an application to export some data and I am still getting
used to Cocoa, as the breadth of my experience has been writing MFC
based applications...
I was thinking that NSTableView would be similar to a listbox, for
example, but the differences are astounding (I never had to create and
link a data source to a list box, for example).
In my Windows development, for a task like this, I would simply iterate
through the list and determine the selected lines and perform a
GetWindowText, or some other method for getting the selected row's
contents. However, in Cocoa, I am finding no similar function.
Here's my issue, and I may be looking at it all wrong..
I run through and get a list of data...
The user will select one or more items from the NSTableView.
I go to process this data when they select a button...
Now, I need to get a list of the items selected (like NSTableView
-isRowSelected:) but I cannot see an easy way to translate this back to
the text...
My questions are:
Am I approaching this the right way? Would scanning for the correlated
data in the datasource object be the right way to go? Are these kept
correlated? (I assume not).
What would the proper approach be, from a cocoa perspective...
Thanks,
Thomas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.