• 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: custom openPanel an browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom openPanel an browser


  • Subject: Re: custom openPanel an browser
  • From: j o a r <email@hidden>
  • Date: Wed, 24 Nov 2004 15:48:40 +0100

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.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >custom openPanel an browser (From: Richard Humiston <email@hidden>)

  • Prev by Date: custom openPanel an browser
  • Next by Date: character palette trashes attributes
  • Previous by thread: custom openPanel an browser
  • Next by thread: Re: custom openPanel an browser
  • Index(es):
    • Date
    • Thread