getting a cell value [was: creating an NSTableColumn}
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.