|
From: kimura wataru<ki...@us...> - 2006-02-22 13:02:55
|
Hi,
I think it is an easy way to use thread. But we have a bug report
ruby's thread on RubyCocoa sometimes crashes.
def loadDroite(sender)
disableAllButtons ####### here i disable all buttons
Thread.new {
loadXmlDroite("firefox.xml", "Barre personnelle")
@xmlDroite="firefox.xml"
@labelDroite.setStringValue "Firefox"
enableAllButtons ####### here i re-enable all buttons
}
end
Wed, Feb 22, 2006 11:58:41 AM, Yvon Thoraval wrote:
> def loadDroite(sender)
> disableAllButtons ####### here i disable all
>buttons
> loadXmlDroite("firefox.xml", "Barre personnelle")
> @xmlDroite="firefox.xml"
> @labelDroite.setStringValue "Firefox"
> enableAllButtons ####### here i re-enable
>all buttons
> end
>
>i do the "same" (isableAllButtons [...] enableAllButtons) for all the
>actions corresponding to all the buttons.
>
--
kimura wataru
|