• 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
cursor rects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cursor rects


  • Subject: cursor rects
  • From: "Mike R. Manzano" <email@hidden>
  • Date: Fri, 8 Sep 2006 12:06:09 -0700

You do call it yourself, but as Apple states, you do it by overriding resetCursorRects. Here's some code I just wrote. Works great:

- (void)resetCursorRects
	{
	[ self addCursorRect:[ self visibleRect ] cursor:anNSCursorInstance ] ;
	}





Apple says:


Changing the cursor is such a common operation that NSView defines several
convenience methods to ease the process.



And later...


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 view's cursor rectangles are rebuilt.



So how do I do this if I can't call it myself?



    ~     Mike
        alephx01 (at) mac (dot) com





_______________________________________________
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


  • Prev by Date: Re: Yet another memory management question - THANKS
  • Next by Date: NSXML and DTD
  • Previous by thread: NSPredicate evaluateWithObject: not recursive!
  • Next by thread: NSXML and DTD
  • Index(es):
    • Date
    • Thread