• 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: How to change mouse cursor in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to change mouse cursor in NSTextView


  • Subject: Re: How to change mouse cursor in NSTextView
  • From: Andreas Mayer <email@hidden>
  • Date: Wed, 23 Feb 2005 09:45:39 +0100


Am 23. Feb 2005 um 08:50 Uhr schrieb Tan Dung Ho:

I want to change mouse cursor when mouse enter NSTextView.

See NSView's addCursorRect:cursor: method:

"- (void)addCursorRect:(NSRect)aRect cursor:(NSCursor *)aCursor

Establishes aCursor as the cursor to be used when the mouse pointer lies within aRect. Cursor rectangles aren’t subject to clipping by superviews, nor are they intended for use with rotated NSViews. You should explicitly confine a cursor rectangle to the NSView’s visible rectangle to prevent improper behavior.

This method is intended to be invoked only by the resetCursorRects method. If invoked in any other way, the resulting cursor rectangle will be discarded the next time the NSView’s cursor rectangles are rebuilt."

More about Cocoa cursor management:
<http://developer.apple.com/documentation/Cocoa/Conceptual/CursorMgmt/ index.html>


In the future please search the documentation - both, on your machine and at Apple's servers - and the archives before asking the list.

Local documentation:
<file:///Developer/ADC Reference Library/documentation/>

Apple's online documentation:
<http://developer.apple.com/documentation/>

List archives:
<http://www.cocoabuilder.com/>

Oh - and don't forget to ask Google. :)


Andreas _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How to change mouse cursor in NSTextView
      • From: Dan Saul <email@hidden>
References: 
 >How to change mouse cursor in NSTextView (From: Tan Dung Ho <email@hidden>)

  • Prev by Date: Problem related to web services
  • Next by Date: Cocoa equivalent of AppleScript "choose folder"
  • Previous by thread: How to change mouse cursor in NSTextView
  • Next by thread: Re: How to change mouse cursor in NSTextView
  • Index(es):
    • Date
    • Thread