Re(2): is [uiObject display] necessary ?
Re(2): is [uiObject display] necessary ?
- Subject: Re(2): is [uiObject display] necessary ?
- From: Jens Bauer <email@hidden>
- Date: Wed, 5 Dec 2001 18:10:46 +0100
Hi Ondra,
On Wed, 5 Dec, 2001, Ondra Cada <email@hidden> wrote:
>
>>>>>> John Hornkvist (JH) wrote at Wed, 5 Dec 2001 11:17:57 +0100:
>
JH> >[icon setImage[NSImage imageNamed:@"Yep"]]];
>
JH> >[icon display];
>
JH>
>
JH> It's generally not needed. And even if it was needed, this would usually
>
JH> be the wrong way to do it.
>
JH>
>
JH> When you do need to make something refresh, you call [icon
>
JH> setNeedsDisplay:YES], allowing the system to aggregate display calls.
>
>
Unless you want to redisplay an object before the current event loop ends,
>
like in a loop. Which, so far as I know, should be more or less the only
>
case
>
when display is in order indeed.
OK, then I think I need to "force" the display to give proper feedback,
as it's
an installer-like application, which is running through steps 1 through 5.
Thankyou very much for your help, everyone. :)
(I learned Cocoa in one day, and feel like both a beginner and a pro at
the same time!)
Love,
Jens