On 6 Feb 2017, at 18:57, Colas <colasj...@yahoo.fr> wrote:
> I am developing an application with several windows and views (NSTextView, 
> etc.).
> I would like to change the cursor globally in my application, so that even if 
> the cursor enters the trackingRect of (for instance) an NSTextView it does 
> not change.
> Is this possible?
> I need also to revert back to the usual behaviour.

Can you give a bit more info on what is this for? Is this for a longer time 
where the user will be interacting normally with your application (e.g. your 
app has an "I'm on a projector make the cursor huge and red" mode, or is a 
presentation in a kiosk system that needs to look different), or is this just 
temporarily (e.g. while drawing out a selection rectangle for a screenshot of a 
subsection of the screen)? 

For the former, you'll have to override methods on each individual kind of 
view. For the latter, you can just create a transparent, borderless window and 
give it a tracking area that sets your cursor.

I can give more detailed suggestions for these approaches, but there are many 
ways to do the same thing that work better or worse depending on what your 
needs are.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to