Re: Using NSBrowser
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