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

NSTableView


  • Subject: NSTableView
  • From: Mahaboob <email@hidden>
  • Date: Tue, 04 Nov 2008 16:43:43 +0530
  • Thread-topic: NSTableView

Hi,
My TableView contains some columns. I need to access all the column values
of all selected rows. So I coded like:

NSString    *content;
for(i=0;i<[tableView numberOfRows];i++)
        {
            if([tableView isRowSelected:i])
            {
               content = [[[[[tableView
tableColumnWithIdentifier:@"MediaType"] dataCellForRow:i]stringValue]
stringByAppendingString:@","]
stringByAppendingString:[[[tableView tableColumnWithIdentifier:@"Category"]
dataCellForRow:i]stringValue]] ;

NSLog(@"%@",content);
            }
        }

But the log file shows last selected row values only. Where I got wrong?
How can I access all selected row values?

Thanks in advance.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTableView
      • From: Chris Hanson <email@hidden>
    • Re: NSTableView
      • From: Graham Cox <email@hidden>
    • Re: NSTableView
      • From: Graham Cox <email@hidden>
    • Re: NSTableView
      • From: Steven Riggs <email@hidden>
  • Prev by Date: Downloading a pls file
  • Next by Date: Re: FW: NSNumberFormatter: Display INT as decimal
  • Previous by thread: Downloading a pls file
  • Next by thread: Re: NSTableView
  • Index(es):
    • Date
    • Thread