• 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: Dan Saul <email@hidden>
  • Date: Wed, 23 Feb 2005 08:01:27 -0600

Actually that will cause problems when you resize, I reccomend
NSScrollView's -setDocumentCursor: as an added bonus its easier.

http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/Classes/NSScrollView.html#//apple_ref/doc/uid/20000341/setDocumentCursor_

On Wed, 23 Feb 2005 09:45:39 +0100, Andreas Mayer <email@hidden> wrote:
>
> 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
>
 _______________________________________________
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

References: 
 >How to change mouse cursor in NSTextView (From: Tan Dung Ho <email@hidden>)
 >Re: How to change mouse cursor in NSTextView (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Help. How to use the argument list passed in NSApplicationMain?
  • Next by Date: Re: Overlapping sibling subviews recommendations
  • Previous by thread: Re: How to change mouse cursor in NSTextView
  • Next by thread: Cropped Italic Letters
  • Index(es):
    • Date
    • Thread