• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Change NSCursor globally
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change NSCursor globally


  • Subject: Re: Change NSCursor globally
  • From: Uli Kusterer <email@hidden>
  • Date: Sat, 11 Feb 2017 14:07:19 +0100

On 6 Feb 2017, at 18:57, Colas <email@hidden> 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 (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Change NSCursor globally
      • From: Colas B <email@hidden>
References: 
 >Change NSCursor globally (From: Colas <email@hidden>)

  • Prev by Date: Re: Intercept Save when closing NSDocument
  • Next by Date: Re: AVSimplePlayer in Swift?
  • Previous by thread: Change NSCursor globally
  • Next by thread: Re: Change NSCursor globally
  • Index(es):
    • Date
    • Thread