-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Scott Squires wrote:

> If I handle a mouse event and am processing it in a time consuming
> method which includes display, what's the cleanest way to peek at events
> during this time (to get updated mouse info,etc ) or to allow the run
> loop to continue enough to make another pass?
> Is there a clean way to allow the main thread to update?
> 
> I know I could create another thread for the routine but with issues of
> events, drawing and handling mutable arrays  I thought I'd see if there
> was a simpler method I was overlooking.

I'm very much looking forward to seeing a civilized solution to this.

I'm using a state machine that steps through a complex process one piece
per state, and sticking a 1ms timer (to pass control back to the run
loop) at the end of every case.

Seems to work, and the process I'm using it on is long, but things
change with every state and the timing is being judged by a mortal so
the gaps are pretty much invisible...

- --
Glenn English
[EMAIL PROTECTED]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIjfDI04yQfZbbTLYRAin+AKCVwqJgQx4dtMFqC3bbrUoUNQJYnQCgiSEs
j729AMtAP5aOnp66ZVOZwvI=
=LA2g
-----END PGP SIGNATURE-----
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to