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" <tony...@hotmail.com>
To: "Cocoa Developers" <Cocoa-dev@lists.apple.com>
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 (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 arch...@mail-archive.com
  • EventLoop Tony Romano
    • Re: EventLoop Paul Sanders

Reply via email to