• 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
getting a cell value [was: creating an NSTableColumn}
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting a cell value [was: creating an NSTableColumn}


  • Subject: getting a cell value [was: creating an NSTableColumn}
  • From: John Spicer <email@hidden>
  • Date: Fri, 16 Jul 2004 10:16:18 -0500

I figured out the creation of the column (I think) using this code:

NSTableColumn *col = [[NSTableColumn alloc] init];
[col setIdentifier:@"MY_COLUMN"];

which I **think** is correct. However, I want the value in that cell, I
thought this would do it:

NSString *tempPK = (NSString *) [self tableView:myView
objectValueForTableColumn:col row:[myView selectedRow]];

but it returns an id, which I don't (or can't? convert into a string).

This is probably a job for takeValueForKey man, but I just don't get it
(yet).

Can someone point me in the right direction?
_______________________________________________
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: getting a cell value [was: creating an NSTableColumn}
      • From: j o a r <email@hidden>
  • Prev by Date: Re: When do bound objects get updated?
  • Next by Date: Re: creating an NSTableColumn
  • Previous by thread: Re: creating an NSTableColumn
  • Next by thread: Re: getting a cell value [was: creating an NSTableColumn}
  • Index(es):
    • Date
    • Thread