• 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
Re: Newbie: Dynamically filling NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: Dynamically filling NSTableView


  • Subject: Re: Newbie: Dynamically filling NSTableView
  • From: Ryan Harter <email@hidden>
  • Date: Mon, 26 Feb 2007 11:44:39 +0100

I've got the NSOpenPanel figured out, I'm just stuck on connecting the table to an array, if that's the way I should do it. I used the documentation to get the NSOpenPanel done, but haven't found very good documentation on the NSTableView and data source linking.

The program is a video converter. I left that part out because I have that working and didn't think it was important. In number 3, when the user loads video files into the program, there will be a status icon in one of the columns saying that the file is pending conversion. As that file is being converted, there will be an icon for "In Progress" and upon finishing, there will be a pretty green check mark. I believe this would have to be done using key/value coding since the status must correspond to the correct file. I found some documentation on using NSDictionarys in NSArrays to achieve this, perhaps this is not the right approach?

- Ryan


On Feb 26, 2007, at 07:49 , Scott Stevenson wrote:


On Feb 25, 2007, at 11:16 AM, Ryan Harter wrote:

1. User clicks the '+' button and an NSOpenPanel opens allowing the user to select files.
Drag and drop can be added later with NSPasteBoard, I think.
2. User selects item(s) and the paths are extracted, converted to NSStrings and added to the array connected to the table.
3. status is set to pending until the files are worked on.
4. NSTableView reloads data from the array and the file paths are displayed.


Let me know if you have any ideas. Is this an accurate approach?

This all looks good, though I'm not sure what you mean by number 3.

Which part are you stuck on? Have you read the documentation for NSOpenPanel? I think it should give you everything you need.

    - Scott
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Newbie: Dynamically filling NSTableView (From: Ryan Harter <email@hidden>)
 >Re: Newbie: Dynamically filling NSTableView (From: Scott Stevenson <email@hidden>)
 >Re: Newbie: Dynamically filling NSTableView (From: Ryan Harter <email@hidden>)
 >Re: Newbie: Dynamically filling NSTableView (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Re: NSError question
  • Next by Date: Re: Newbie: Dynamically filling NSTableView
  • Previous by thread: Re: Newbie: Dynamically filling NSTableView
  • Next by thread: Re: Newbie: Dynamically filling NSTableView
  • Index(es):
    • Date
    • Thread