• 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: Runloop hangs/stops when clicking programmatically on GUI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Runloop hangs/stops when clicking programmatically on GUI


  • Subject: Re: Runloop hangs/stops when clicking programmatically on GUI
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 29 Oct 2009 11:00:24 -0700

2009/10/29 Gabriel Höhener <email@hidden>:
> How can I avoid that my program "hangs" when I programmatically simulate a
> mouseclick on my app window?

Why are you simulating mouse clicks?  This is usually an indication of
a very poor design.

> If I simulate a click on the desktop or any other app or app component,
> everything works fine, but if I click programmatically
> on a let's say a button or a slider, the GUI tries to update itself and the
> program hangs and I cannot simulate any other
> mouseclick.

Methinks you might want to brush up on the MVC pattern again.  Don't
manipulate the view in order to change your model.  That's what the
controller layer is for.

--Kyle Sluder
_______________________________________________

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: 
 >Runloop hangs/stops when clicking programmatically on GUI (From: Gabriel Höhener <email@hidden>)

  • Prev by Date: Re: Binding To Array Controller From A Different XIB?
  • Next by Date: re: EXC_BAD_ACCESS when migrating a store, but only sometimes...
  • Previous by thread: Runloop hangs/stops when clicking programmatically on GUI
  • Next by thread: Binding To Array Controller From A Different XIB?
  • Index(es):
    • Date
    • Thread