Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > How to display 'records' using Cocoa?

How to display 'records' using Cocoa?
Thread Tools
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Mar 21, 2002, 01:28 PM
 
I am having trouble figuring out how to display some data in a Cocoa application. Basically, I have 10-20 'records' that I would like to display in a scrolling interface. Each record contains 6 or 7 fields of information and takes up 3-4 lines. The records are not editable and double-clicking on any part of a record should open a new window.

Should my strategy be to put 1 column of NSCells in an NSMatrix with mulitple text fields in each cell? Any recommendations on implementing such a strategy?

thanks,
kman
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Mar 21, 2002, 05:47 PM
 
Sounds like an NSTableView would be more to your liking, actually. You'll have to set the row height to be pretty big, but it's a good place to start looking, anyway.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Mar 21, 2002, 06:05 PM
 
I agree - use an NSTableView. You might need to use a custom NSCell, but you should be able to use the default NSTextCell.
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:22 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2