Re: Ho do I flush an NSView immediately?



Eric Albert <ejalbert@xxxxxxxxxxxxxxx> wrote:

In article <1hc75qs.xb9d3w3yro2kN%matt@xxxxxxxxxxx>,
matt@xxxxxxxxxxx (matt neuburg) wrote:

Michael Ash <mike@xxxxxxxxxxx> wrote:

Steve Edwards <gfx@xxxxxxxxxxx> wrote:
Hi,

Is there a way of flushing all drawing in an NSView to be displayed
immediately, regardless of the event loop?

Another person has already answered the direct question, but I want to
jump in and say that you shouldn't be doing this in the first place. The
only reason you'd need this is if you have a long-running method that
blocks your runloop. You should not have such a method. You should return
control to your runloop frequently, either by using timers, threads, or a
modal session. Failing to do so will result in the Spinning Pizza of
Death, which users frequently take as a sign of a crash, and other bad
consquences.

I don't completely agree. For example, I have a CoreData application
that takes time to load the data on startup. I am not in control of this
(it's all being done by Apple's code behind the scenes), and the
Spinning Pizza shows. When I complained about this to Apple, they said,
"The Spinning Pizza is simply the modern equivalent of the old hourglass
cursor; it just means the program is busy. Users are wrong to associate
this with the program having frozen up."

Whoever told you that was wrong. Please file a bug report and send me
the bug number.

There is apparently no bug to file. However, I was wrong, it wasn't an
Apple person. But as this thread points out, Apple does show the SPOD
during long startup times of its own apps, even when there is a splash
screen.

<http://www.cocoabuilder.com/archive/message/cocoa/2006/1/23/155066>

m.

--
matt neuburg, phd = matt@xxxxxxxxxxx, http://www.tidbits.com/matt/
Tiger - http://www.takecontrolbooks.com/tiger-customizing.html
AppleScript - http://www.amazon.com/gp/product/0596102119
Read TidBITS! It's free and smart. http://www.tidbits.com
.



Relevant Pages

  • Re: Ho do I flush an NSView immediately?
    ... matt@xxxxxxxxxxx (matt neuburg) wrote: ... Spinning Pizza shows. ... When I complained about this to Apple, they said, ... Please file a bug report and send me ...
    (comp.sys.mac.programmer.help)
  • Re: Apple USB modem causes iMac core duo kernel panic.
    ... matt@xxxxxxxxxxx (matt neuburg) wrote: ... software update or make it possible for dialup users to get new hardware ... This is not Apple. ...
    (comp.sys.mac.comm)
  • Re: selection bug in Word 2004
    ... In article, matt neuburg ... > Possibly you're not following the directions for getting the bug. ...
    (microsoft.public.mac.office.word)
  • Re: selection bug
    ... > matt@tidbits.com (matt neuburg) wrote: ... >> If previous versions behaved the same way, then they had the same bug. ... You do know about the double-click-drag selection bug in Word 2004, ... AppleScript: The Definitive Guide ...
    (microsoft.public.mac.office.word)
  • Re: selection bug
    ... matt@tidbits.com (matt neuburg) wrote: ... That one is definitely a bug. ... accomplish things the way the technology wants me to, ... I first became aware of it with the Newton, ...
    (microsoft.public.mac.office.word)

Loading