Discussion:
can I change the cursor to wait cursor?
shyam
2003-05-27 04:17:07 UTC
Permalink
Hi,

I'm developing an application using Cocoa/Objective-C. During some opeartion I need to change the cursor to "wait cursor" so that the user cannot do any other operation that time. The system is not changing the cursor automatically to a wait cursor. Can I do it explicitly by writing some code? If that is not possible, then what is the way out to restrict the user to do any other operation that time.

Thanks,

Shyam
Greg Hulands
2003-05-27 04:24:02 UTC
Permalink
If you don't want the user to do something like click a button, before
starting the task, just disable it and any other control [myControl
setEnabled:NO]; and once finished just reenable it.

HTH,
Greg
Post by shyam
Hi,
 
I'm developing an application using Cocoa/Objective-C. During some
opeartion I need to change the cursor to "wait cursor" so that the
user cannot do any other operation that time. The system is not
changing the cursor automatically to a wait cursor. Can I do
it explicitly by writing some code? If that is not possible, then what
is the way out to restrict the user to do any other operation that
time.
 
Thanks,
 
Shyam
shyam
2003-05-27 05:36:03 UTC
Permalink
Thanks for your response. I cannot disable everything. In my application, I have a NSBrowser. I cannot prevent the user clicking on it. So what all I need to do is that to change the cursor style "busy". Is there any method in Cocoa/Objective-c to do that?

Thx,
Shyam
----- Original Message -----
From: Greg Hulands
To: shyam
Cc: macosx-***@omnigroup.com
Sent: Tuesday, May 27, 2003 11:56 AM
Subject: Re: can I change the cursor to wait cursor?


If you don't want the user to do something like click a button, before starting the task, just disable it and any other control [myControl setEnabled:NO]; and once finished just reenable it.

HTH,
Greg
On Tuesday, May 27, 2003, at 04:10 PM, shyam wrote:


Hi,

I'm developing an application using Cocoa/Objective-C. During some opeartion I need to change the cursor to "wait cursor" so that the user cannot do any other operation that time. The system is not changing the cursor automatically to a wait cursor. Can I do it explicitly by writing some code? If that is not possible, then what is the way out to restrict the user to do any other operation that time.

Thanks,

Shyam
Clark S. Cox III
2003-05-27 13:58:10 UTC
Permalink
Post by shyam
Thanks for your response. I cannot disable everything. In my
application, I have a NSBrowser. I cannot prevent the user clicking on
it. So what all I need to do is that to change the cursor style
"busy". Is there any method in Cocoa/Objective-c to do that?
There is no method to do that, but there is a function in the
ApplicationServices framework

QDDisplayWaitCursor(Boolean forceWaitCursor);

Call it with true to display the busy cursor, and call it again with
false to reset the cursor.
--
http://homepage.mac.com/clarkcox3/
***@mac.com
Clark S. Cox, III
Continue reading on narkive:
Loading...