performSelector doesn't work for modal window
performSelector doesn't work for modal window
- Subject: performSelector doesn't work for modal window
- From: Alexander Bokovikov <email@hidden>
- Date: Fri, 12 Mar 2010 21:34:26 +0500
Hi, All,
Unfortunately NSButton click is called when button is pressed, but not
when it is released. Therefore any timeconsumming process, executed on
the button click, will keep the button pressed. To avoid it I've
decided to use performSelector:withObject:afterDelay: message. This
approach works OK for main window, but it doesn't work for a modal
popup panel. More exactly, this message is sent only when modal window
is closed and NSApplication is returned to the main messages loop.
It looks like this is a fundamental Cocoa specifics, though I don't
understand it. So, how to send a message to a modal window messages
loop? I don't like to use multithreading here, though I will do it if
I'll can't find another solution.
Any ideas?
Thanks.
_______________________________________________
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