• 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
NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSButton


  • Subject: NSButton
  • From: santosh <email@hidden>
  • Date: Mon, 8 Oct 2007 18:31:32 +0530

Hi,
I want to disable the NSButton on click of it and enabled it again when it finish it work.
I have written a code for this like follow;
(IBAction)setDestination:(id)sender
{
[sender setEnabled:NO];
/*
My function code here
*/
[sender setEnabled:YES];
}

But if i debug this code it's not disabled the button after first statement so if i click on the button continuously it hangs the application.


_______________________________________________

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


  • Follow-Ups:
    • Re: NSButton
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: (no subject)
  • Next by Date: Re: NSTableView questions
  • Previous by thread: Re: NSTreeController -removeObjectsAtArrangedObjectIndexPath:
  • Next by thread: Re: NSButton
  • Index(es):
    • Date
    • Thread