Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 24, 2006, 04: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
__________________
Actually it does make sense. Man created god, so if we exist, He exists. - obeygiant

Last edited by Eraserhead; Aug 24, 2006 at 05:00 PM. Reason: removing attached image
Eraserhead is online now   0 Reply With Quote
Old Aug 24, 2006, 05: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, 06: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.
__________________
Actually it does make sense. Man created god, so if we exist, He exists. - obeygiant
Eraserhead is online now   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 03:36 PM
How do I take this off my table ventuss iMac 13 Oct 24, 2013 06:52 PM
Table View Question. DavidBlack Mac Programming 12 Oct 6, 2013 11:10 AM
XCode - Cocoa-applescript question djjasonsa Mac Programming 3 Feb 21, 2013 04:50 PM
Table in a table idonotliketostu Mac Programming 0 Oct 11, 2012 05:43 PM

Forum Jump

All times are GMT -5. The time now is 11:47 AM.

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

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