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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Powerpoint tables question chrisbb Mac Applications and Mac App Store 1 Mar 31, 2009 03:45 PM
Turn Table Question Patmian212 Music Discussion 21 Jun 1, 2006 02:23 AM
Alt-Enter cocoa/perl question superbovine Mac Programming 0 May 4, 2005 07:18 PM
cocoa code question (help!) FredAkbar Mac Applications and Mac App Store 21 Jun 11, 2004 07:51 PM


All times are GMT -5. The time now is 03:46 AM.

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

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