• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Filling TableView with array of strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Filling TableView with array of strings


  • Subject: Filling TableView with array of strings
  • From: Austin Sarner <email@hidden>
  • Date: Sun, 17 Oct 2004 17:35:41 -0400

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!

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Filling TableView with array of strings
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: sortSubviewsUsingFunction Question?
  • Next by Date: Re: Building without depencies to Frameworks
  • Previous by thread: Re: sortSubviewsUsingFunction Question?
  • Next by thread: Re: Filling TableView with array of strings
  • Index(es):
    • Date
    • Thread