• 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
NSTableView questions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSTableView questions...
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: URL parsing
  • Next by Date: Re: NSTableView questions...
  • Previous by thread: Re: URL parsing
  • Next by thread: Re: NSTableView questions...
  • Index(es):
    • Date
    • Thread