Skip navigation.
 
mlFilling TableView with array of strings
FROM : Austin Sarner
DATE : Sun Oct 17 23:35:41 2004

Hey, I just recently moved over from RB :-[ but am really liking cocoa.
  Now I have my application set up as thus: I have a folderController
object with outlets to an item and folder list.  Inside it is an
NSMutableArray of folders.  Each folder has an NSMutableArray of items
and an NSString name.  Basically I have no clue how to utilize the data
source for a tableview - and after looking through various examples
online I discovered that most people used a dictionary.  However,
because it's simply a set of strings (the name property of each folder)
that needs to go into the tableview...I see no need for one.  In RB you
would loop through the array of folders adding a row for its name
string value - of course I'm not exactly sure how to go about acheiving
the same effect in cocoa.  Thankyou very much.

Two other little questions: is there any native way to make those cool
gradient listboxes? Also is there a 'styledtext' class - basically an
object i can use effectively as a fake textview that maintains styles,
pictures, and such and then can be loaded into the view (or would
simply writing the file out be a better method?)  Thanks a bunch!

Related mailsAuthorDate
mlFilling TableView with array of strings Austin Sarner Oct 17, 23:35
mlRe: Filling TableView with array of strings Scott Stevenson Oct 18, 00:10