• 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: file browsing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file browsing?


  • Subject: Re: file browsing?
  • From: "David Piasecki" <email@hidden>
  • Date: Mon, 26 Apr 2004 11:43:45 -0700

I see. You have to create it in code and attach it to a window using modelForWindow and set a delegate for when it returns with modalDelegate. It's a little more complicated than the simple windoze way of doing things, but not too bad.

David


On Apr 26, 2004, at 11:24 AM, Larry Fransson wrote:


On Apr 26, 2004, at 10:04, David Piasecki wrote:

How does one give access to the file system through an NSBrowser or other object? I placed an NSBrowser in an NSPanel, but I can't seem to figure out how to give the user the option to select files.

Is this something you could use an NSOpenPanel or NSSavePanel for? I have successfully used both in applications for browsing and selecting file locations without actually opening or saving anything. You can change the prompt on the default button is "Open" or "Save" is not appropriate for what you're doing.

Larry Fransson
Seattle, WA
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >file browsing? (From: "David Piasecki" <email@hidden>)
 >Re: file browsing? (From: Larry Fransson <email@hidden>)

  • Prev by Date: Custom view problems
  • Next by Date: Saving an object to a file
  • Previous by thread: Re: file browsing?
  • Next by thread: Re: setApplicationIconImage
  • Index(es):
    • Date
    • Thread