• 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: Using NSBrowser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSBrowser


  • Subject: Re: Using NSBrowser
  • From: Sam Stigler <email@hidden>
  • Date: Tue, 24 Apr 2007 16:58:52 +1000

I ran into this problem a while back; I realized that probably the best way is to use an NSOpenPanel with a "Choose" button instead of an "Open" button. Such functionality is provided for by the framework; have a look at the methods of the NSOpenPanel class (http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSOpenPanel_Class/Reference/Reference.html). Of course, what this method doesn't let you do is embed such a browser directly inside one of your views; I'm not sure how to do that. Does anyone know an answer to that one?

Sam


On Apr 24, 2007, at 4:17 PM, Tim Simon wrote:

Im trying to use NSBrowser to allow the user to browse to a file, then
press a button which should return the path of the selected object. It
compiles fine but when it runs, the browser is just blank. I searched
the documentaion but im not sure how to do this. I experimented with
NSBrowserCell but didnt have much luck.
Is using NSBrowser the best way to allow a user to search the Hdd? if
so, how do i impement it?
_______________________________________________

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

_______________________________________________

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: 
 >Using NSBrowser (From: "Tim Simon" <email@hidden>)

  • Prev by Date: Using NSBrowser
  • Next by Date: Re: off screen drawing with cocoa
  • Previous by thread: Using NSBrowser
  • Next by thread: Re: Using NSBrowser
  • Index(es):
    • Date
    • Thread