Re: [Swingosc-devel] [ok-to-commit?] open, openURL
Brought to you by:
sciss
From: nescivi <ne...@gm...> - 2009-01-03 22:32:58
|
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 |