• 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: EventLoop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: EventLoop
  • Next by Date: Re: [NSTableview] can't make selected text stay black
  • Previous by thread: EventLoop
  • Next by thread: Objective-C Garbage Collection problems
  • Index(es):
    • Date
    • Thread