bug-gnustep
[Top][All Lists]
Advanced

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

Re: DnD improvements


From: Adam Fedor
Subject: Re: DnD improvements
Date: Mon, 10 Dec 2001 21:35:28 -0700
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.4) Gecko/20010915

Willem Rein Oudshoorn wrote:


Well, it seems a complicated way to go about it. Might be the best way, but I got the following naive idea:

* We have a list of all windows of the application, right?
* If we set the cursor, why not set them for all windows at the same time.
* Keep a global variable, currentCursor.
* When creating a cursor set the cursor for this window to the current cursor.



Sounds like a good idea. P.S. The already is a currentCursor method in NSCursor.


Seems somewhat simpler. (Note that this not solve the problem when application A changes the cursor
and the cursor is hovering application B, but neither thus the current
approach)


I'm not sure but I think we might need to unset/set the cursor when the application loses or gets focus.


Besides that, I was wondering if it would not be better to have different cursors for the green and black cursors, instead of coloring them with the DPSsetcursor function. Than we can leave all the cursor setting etc. to the NSCursor class
(whose job it is anyway).  On the other hand, the DPS functions
should be implemented anyway.



Yes, maybe a GNUstep specific method. the DPSsetcursorcolor isn't even a real DPS method. I just made it up to work better with the X environment.




--
Adam Fedor, Digital Optics            | I'm glad I hate spinach, because
http://www.doc.com                    | if I didn't, I'd eat it, and you
http://www.gnustep.org                | know how I hate the stuff.




reply via email to

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