Re: EventLoop
Re: EventLoop
- Subject: Re: EventLoop
- From: "Paul Sanders" <email@hidden>
- Date: Mon, 8 Mar 2010 22:57:57 -0000
Calling -[NSView displayIfNeeded] on the NSMatrix before you
display the modal sheet might do what you want. You might also
need to call -[NSWindow flushWindow] on the window containing
the NSMatrix, but try it first without. Unnecessary flushes
hurt performance.
Paul Sanders.
----- Original Message -----
From: "Tony Romano" <email@hidden>
To: "Cocoa Developers" <email@hidden>
Sent: Monday, March 08, 2010 10:49 PM
Subject: EventLoop
I have an application that updates the image on a cell.
Sometimes I present a modal sheet right after I setImage. This
code is executing in an action sent from the NSMatrix containing
the cells. The behavior I am seeing is the sheet rendering
occurs then the image is updated. I suspect since the event
loop hasn't run prior to my call to beginSheetModalForWindow,
the messages to update the cell image are not being processed.
I've done a fair bit of research looking into the event loop and
nothing pops out as the best method. Any thoughts?
TIA,
-tony
_______________________________________________
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: | |
| >EventLoop (From: Tony Romano <email@hidden>) |