[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] 3.2: OSX server GUI stuff



AH! I remember there was a trick!

Thanks for the workaround. Works perfectly

Best

-a-


On 30 Jan 2008, at 16:58, Sciss wrote:

it is indeed a little bit tricky ;-)))

SwingOSC.default.waitForBoot({
{ var oldWin;
Server.internal.window.close ;
oldWin = Server.local.window;
oldWin. GUI.useID( \swing,  
{ Server.local.makeWindow })});
oldWin.close;
}.defer;
});


cheers, -sciss-



Am 30.01.2008 um 15:57 schrieb Andrea Valle:

This does not work in my startup. (The problem is startup)


GUI.swing ;

Server.internal.window.close ;
Server.local.window.close ;

SwingOSC.default.boot ;

SwingOSC.default.waitForBoot({
Server.local.makeWindow;
});


ERROR: Primitive '_SCWindow_ToFront' failed.
operation cannot be called from this Process.

Best

-a-

On 30 Jan 2008, at 14:34, James Harkins wrote:

On Jan 30, 2008, at 8:28 AM, Andrea Valle wrote:

You mean the "3.wait"? See the discussions over the past two or  
three
days about the Windows port, there was some discussion about  
exactly
this and IIRC there was a more elegant way to do it, but I can't
remember what right now.

Hmm, I  haven't notice it. I'll take a look.

The interface is the same as scsynth for this. On scsynth, you  
wouldn't do

s.boot;
SynthDef(....).send(s);

Better is

s.waitForBoot({
SynthDef(...).send(s);
});

So it is with SwingOSC.

SwingOSC.default.waitForBoot({
s.makeWindow;
});

Not so exotic, really.
hjh


: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

_______________________________________________
Sc-devel mailing list

--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------


"
Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty
"
(Ken Perlin on noise)





_______________________________________________
Sc-devel mailing list

_______________________________________________
Sc-devel mailing list

--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------


"
Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty
"
(Ken Perlin on noise)