Re: [Swingosc-devel] [ok-to-commit?] open, openURL
Brought to you by:
sciss
From: Sciss <co...@sc...> - 2009-01-03 19:40:11
|
i assume you have tested it works as expected and will provide the same behaviour as SCTextView? if so, no problem, go ahead! 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 |