Re: [Swingosc-devel] JSCTextView addition
Brought to you by:
sciss
From: Sciss <co...@sc...> - 2008-03-24 06:18:30
|
thanks! the "Yukk" messages occurs with special characters which currently produce a wrong 'size' of a string on the SuperCollider side, e.g. "ü".size returns 2 instead of 1. swingOSC checks the string size against the returned string and reports discrepancies. this should be harmless in the case of loading text files and using them read-only. problem occurs when using programmatic editing, as the cursor position on client and server side will differ. this problem will disappear when SuperCollider properly handles unicode characters. ciao, -sciss- Am 23.03.2008 um 18:09 schrieb nescivi: > Hiho, > > I just committed the diff below. > > sincerely, > marije > > > > Index: trunk/SuperCollider/SCClassLibrary/SwingOSC/JSCViews1.sc > =================================================================== > --- trunk/SuperCollider/SCClassLibrary/SwingOSC/JSCViews1.sc > (revision 62) > +++ trunk/SuperCollider/SCClassLibrary/SwingOSC/JSCViews1.sc > (working copy) > @@ -2254,6 +2254,11 @@ > // XXX update client send string rep. > } > > + open{ arg path; > + path = path.replace( ' ', '%20' ); > + this.openURL( "file://"++path ); > + } > + > defaultKeyDownAction { arg key, modifiers, unicode; > // check for 'ctrl+enter' = interprete > if( (unicode == 0x0D) and: { ((modifiers & > 0x40000) != 0) && > enterInterpretsSelection }, { > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Swingosc-devel mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swingosc-devel |