Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 24, 2006, 03:53 PM   #1
Eraserhead
macrumors G4
 
Eraserhead's Avatar
 
Join Date: Nov 2005
Location: UK
Cocoa Table Question

I am (trying to) create a Cocoa app atm, and have a table I would like to display. In the first column I would like to simply display the entry number (starting from 1 if possible, like how it is displayed in Interface Builder.) and in the second the relevant value. I am reading through Cocoa, Programming for OS X (which is excellent) and this seems similar to the RaiseMan Application except that I just want the entry number instead of the persons name in the first column. How would you code this?

Thanks
__________________
If they have to tell you every day they are fair you can bet they arent, if they tell you they are balanced then you should know they are not - Don't Hurt me

Last edited by Eraserhead; Aug 24, 2006 at 04:00 PM. Reason: removing attached image
Eraserhead is offline   0 Reply With Quote
Old Aug 24, 2006, 04:26 PM   #2
kpua
macrumors 6502
 
Join Date: Jul 2006
Take a look at the NSTableView documentation. Look specifically at the

Code:
-(id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
method.
kpua is offline   0 Reply With Quote
Old Aug 24, 2006, 05:28 PM   #3
Eraserhead
Thread Starter
macrumors G4
 
Eraserhead's Avatar
 
Join Date: Nov 2005
Location: UK
Quote:
Originally Posted by kpua
Take a look at the NSTableView documentation. Look specifically at the

Code:
-(id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
method.
Thanks, I should be able to get it sorted.
__________________
If they have to tell you every day they are fair you can bet they arent, if they tell you they are balanced then you should know they are not - Don't Hurt me
Eraserhead is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Table Basics Question - UITableViewCell newtomac123 iPhone/iPad Programming 7 Jan 11, 2014 02:36 PM
How do I take this off my table ventuss iMac 13 Oct 24, 2013 05:52 PM
Table View Question. DavidBlack Mac Programming 12 Oct 6, 2013 10:10 AM
XCode - Cocoa-applescript question djjasonsa Mac Programming 3 Feb 21, 2013 03:50 PM
Table in a table idonotliketostu Mac Programming 0 Oct 11, 2012 04:43 PM

Forum Jump

All times are GMT -5. The time now is 10:39 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC