Re: How to change mouse cursor in NSTextView
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