[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with NSCursor, please...

From: Richard Frith-Macdonald
Subject: Re: Help with NSCursor, please...
Date: Thu, 18 Jan 2001 06:25:37 +0000

On Wednesday, January 17, 2001, at 12:22 AM, Frederic wrote:

> Hi, 
> I'm trying to display a busy cursor during a long task. 
> (For testing purpose, I used the IBeamCursor) 
> The only thing I managed to do is to change the cursor AFTER the task is 
> completed. 
> I there any way to force the update of the cursor? 
> busyCursor = [NSCursor IBeamCursor]; 
> [busyCursor push]; 
> [busyCursor setOnMouseEntered:YES]; 
> [tv addCursorRect:[tv frame] cursor:busyCursor]; 
> // A long task 
> ... 
> Thanks is advance. 

This might work if the problem is simply that stuff hasn't got to the X server -

[[[NSGraphicsContext] currentContext] flush];

reply via email to

[Prev in Thread] Current Thread [Next in Thread]