FROM : j o a r
DATE : Wed Nov 24 15:48:40 2004
You could almost certainly achieve the behaviour you're looking for
using the "accessoryView" functionality of the standard NSOpenPanel.
Just add a custom view with the table view and buttons that you
describe as the accessory view of the open panel.
j o a r
On 2004-11-24, at 15.07, Richard Humiston wrote:
> I would like to have an openPanel that has the following features /
> behavior.
>
> 1 A browser at the top to select files, and a section below with a
> "list", and add and delete buttons.
>
> 2 I want to be able to select a file in the browser, and click the add
> button, which would add it to the list. The delete button would
> remove the file from the list.
>
> 3 When the openPanel is dismissed it would return the list of files,
> in an Array.
>
> I am using Jaguar 10.2.8. I can't seem to find a way to achieve this
> without writing my own panel. This would also require a customized
> browser. This is the route I have chosen to go at present. So my
> problem is the following:
>
> I am trying to write code that will let an NSBrowser duplicate the
> browser behavior that is observed in an openPanel or savePanel...ie
> data is organized as in the finder. I have looked at the various code
> samples out there including the simpleBrowser sample from Apple. None
> of them filters or organizes the data to achieve the result that I am
> looking for. Does anybody have any suggestions or strategy on how to
> achieve the desired result? Or (hopefully) is there a way to do this
> without having to write a custom panel and browser?
>
> Any help would be appreciated.
DATE : Wed Nov 24 15:48:40 2004
You could almost certainly achieve the behaviour you're looking for
using the "accessoryView" functionality of the standard NSOpenPanel.
Just add a custom view with the table view and buttons that you
describe as the accessory view of the open panel.
j o a r
On 2004-11-24, at 15.07, Richard Humiston wrote:
> I would like to have an openPanel that has the following features /
> behavior.
>
> 1 A browser at the top to select files, and a section below with a
> "list", and add and delete buttons.
>
> 2 I want to be able to select a file in the browser, and click the add
> button, which would add it to the list. The delete button would
> remove the file from the list.
>
> 3 When the openPanel is dismissed it would return the list of files,
> in an Array.
>
> I am using Jaguar 10.2.8. I can't seem to find a way to achieve this
> without writing my own panel. This would also require a customized
> browser. This is the route I have chosen to go at present. So my
> problem is the following:
>
> I am trying to write code that will let an NSBrowser duplicate the
> browser behavior that is observed in an openPanel or savePanel...ie
> data is organized as in the finder. I have looked at the various code
> samples out there including the simpleBrowser sample from Apple. None
> of them filters or organizes the data to achieve the result that I am
> looking for. Does anybody have any suggestions or strategy on how to
> achieve the desired result? Or (hopefully) is there a way to do this
> without having to write a custom panel and browser?
>
> Any help would be appreciated.
| Related mails | Author | Date |
|---|---|---|
| Richard Humiston | Nov 24, 15:07 | |
| j o a r | Nov 24, 15:48 | |
| M. Uli Kusterer | Nov 25, 22:15 |






Cocoa mail archive

