• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSButton (From: santosh <email@hidden>)
 >Re: NSButton (From: Mike Abdullah <email@hidden>)
 >Re: NSButton (From: Hasani Hunter <email@hidden>)

  • Prev by Date: Re: Saving to application support folder.
  • Next by Date: NSTableView error message
  • Previous by thread: Re: NSButton
  • Next by thread: NSManagedObject class method error
  • Index(es):
    • Date
    • Thread