• 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
performSelector doesn't work for modal window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: performSelector doesn't work for modal window
      • From: Ken Thomases <email@hidden>
    • Re: performSelector doesn't work for modal window
      • From: "Paul Sanders" <email@hidden>
  • Prev by Date: Re: Use of KVC Array operators
  • Next by Date: tracking Responder chain.
  • Previous by thread: Re: What would cause persistentStoreForURL: to return nil?
  • Next by thread: Re: performSelector doesn't work for modal window
  • Index(es):
    • Date
    • Thread