Re: NSButton
Re: NSButton
- Subject: Re: NSButton
- From: Hasani Hunter <email@hidden>
- Date: Mon, 8 Oct 2007 15:37:18 -0500
Yes you're right. I stand corrected.
Cheers,
Hasani
On Oct 8, 2007, at 3:30 PM, Emanuele ∞ Vulcano wrote:
Il giorno 08/ott/07, alle ore 21:47, Hasani Hunter ha scritto:
I agree with Mike.. to add to what he has already said, I would
look at NSThread documentation and before your thread exits, call
the [ buttonReference setEnabled:YES ]. Providing that you have a
reference to the button in your code somewhere.
Note that the advice is good but misleading -- AppKit classes, such
as buttons, should not be manipulated by secondary threads. A good
way would be to call something with performSelectorOnMainThread:...
which in turn does the setEnabled: bit.
- ∞
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden