Re: [Swingosc-devel] [ok-to-commit?] open, openURL
Brought to you by:
sciss
From: nescivi <ne...@gm...> - 2009-01-04 16:24:22
|
On Saturday 03 January 2009 17:34:59 Sciss wrote: > ok! i mean are the WARNING thingees still there when you click on a > link in the help browser? I don't see WARNING thingies. But do you mean links from the help files displayed in JSCTextView? These still don't work. The links from the columns on the right don't post warnings. sincerely, Marije > > Am 03.01.2009 um 23:32 schrieb nescivi: > > On Saturday 03 January 2009 14:40:01 Sciss wrote: > >> i assume you have tested it works as expected and will provide the > >> same behaviour as SCTextView? if so, no problem, go ahead! > > > > I can't test the same behaviour as SCTextView, but it works and is as > > conferred with Scott on the sc-dev list. > > > > sincerely, > > Marije > > > >> ciao, .h.h. > >> > >> Am 03.01.2009 um 04:16 schrieb nescivi: > >>> Hiho, > >>> > >>> following the discussion today with Scott... > >>> ok to commit this? > >>> > >>> sincerely, > >>> Marije > >>> > >>> Index: SuperCollider/SCClassLibrary/SwingOSC/JSCViews1.sc > >>> =================================================================== > >>> --- SuperCollider/SCClassLibrary/SwingOSC/JSCViews1.sc (revision > >>> 131) > >>> +++ SuperCollider/SCClassLibrary/SwingOSC/JSCViews1.sc (working > >>> copy) > >>> @@ -2314,7 +2314,12 @@ > >>> path = path.tr($\\, $/); > >>> }); > >>> path = path.replace( ' ', '%20' ); > >>> - this.openURL( "file://"++path ); > >>> + > >>> + if ( path.contains( "://" ).not, { > >>> + if ( path.first.asString != "/" ) { path = > >>> String.scDir +/+ path; }; > >>> + path = "file://"++path; > >>> + }); > >>> + this.openURL( path ); > >>> } > >>> > >>> defaultKeyDownAction { arg key, modifiers, unicode; > >>> > >>> -------------------------------------------------------------------- > >>> -- > >>> -------- > >>> _______________________________________________ > >>> Swingosc-devel mailing list > >>> Swi...@li... > >>> https://lists.sourceforge.net/lists/listinfo/swingosc-devel |