Re: NSBrowser_NSTextView
Re: NSBrowser_NSTextView
- Subject: Re: NSBrowser_NSTextView
- From: francois fauteux <email@hidden>
- Date: Wed, 10 Aug 2005 17:08:39 -0400
Dear Mr. Zitzmann.
I've set the single click action to that:
- (IBAction)browserSingleClick:(id)browser {
NSString *nodePath = [browser path];
[[NSWorkspace sharedWorkspace] openFile: nodePath];
}
This only opens anything that is clicked on in the default application
(a folder is opened in Finder for ex.).
I've set the Outlet of AppController to the textView, but I don't know
what message to send in SingleClick to get the file opened in the
textView.
Thank you so very much for your help !
François Fauteux
On 8/10/05, Nick Zitzmann <email@hidden> wrote:
>
> On Aug 10, 2005, at 12:27 PM, francois fauteux wrote:
>
> > How can I set the textView to automatically display the content of a
> > browser selection (say textfile) in the textView upon a single click ?
>
> You can start by setting the browser's single-click action.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
>
>
_______________________________________________
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