Application runs multiple times
Application runs multiple times
- Subject: Application runs multiple times
- From: MANISH CHATURVEDI <email@hidden>
- Date: Sun, 10 Dec 2006 17:11:30 +0530 (IST)
Hi All,
I am writing a sync application where I've used Interface builder to design the GUI.Sync runs when we click a button .I've disabled the button after first click of user by using [m_syncButton setEnable:NO], but this is not working at all.If I click on the button multiple times, all my clicks are getting queued and these clicks are triggering my sync again and again i.e. equal to number of clicks.
I am disabling the button of the very first click of sync Button.This is some thing code looks like
- (IBAction)sync:(id)sender
{
[m_syncButton setEnable:NO]
// Code for running sync............
[self triggerSync:syncSession];
}
The action performed by clicking thy m_sync Button is there in sync method where I am disabling the the button in the very first statement of sync method ,but still it triggers the sync two times if I double click the button. According to me button should get disable after first sync and should not run yet another sync.
Is there is some thing that I am missing!!
Regards,
Manish.
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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