[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with NSCursor, please...
From: |
Frederic |
Subject: |
Re: Help with NSCursor, please... |
Date: |
Wed, 17 Jan 2001 21:41:04 +0100 |
Richard Frith-Macdonald wrote:
>
> 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
> > ...
>
> This might work if the problem is simply that stuff hasn't got to the X
> server -
>
> [[[NSGraphicsContext] currentContext] flush];
It works.
Thanks.
Frederic