That isn't quite safe because someone might create some GUI widgets in
swing, then switch to cocoa while the swing objects still exist. That
should rarely happen, but if something breaks because we didn't think
of a corner case, that's kind of bad.
In any event, my situation is checking a specific widget, not for the
overall GUI scheme.
hjh
On Jan 15, 2008 4:46 PM, Jan Trutzschler <sc3@xxxxxxxxxxxxxxxxx>
wrote:
don't know if this is relevant here, but i check for swing like this:
if(GUI.current == SwingGUI){"swing ".postln}{"cocoa ".postln};
--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman
_______________________________________________
Sc-devel mailing list
Sc-devel@xxxxxxxxxxxxxxx
http://lists.create.ucsb.edu/mailman/listinfo/sc-devel