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

Problem with cursor rects?


  • Subject: Problem with cursor rects?
  • From: Andreas Schwarz <email@hidden>
  • Date: Wed, 15 May 2002 14:20:24 -0700

Hello everyone.

I have an NSScrollView which may contain different types of document views depending on user action (specifically, an NSImageView, an NSTextView, and NSMovieView, or a custom view of mine). The problem is this: If the scroll view contains the NSTextView and then the text view is removed and one of the other views put in its place (via [myScrollView setDocumentView:theNewView]), the cursor rect for the text view remains (meaning that when the user moves the mouse over the new view, the I-beam cursor appears).

It sticks around no matter how many times the view changes after that, and resizing the window/scroll view doesn't make it go away either; it actually gets updated to the proper size! I tried every variation on "discardCursorRects" and "resetCursorRects" (tried calling it on the window, the scroll view, the clip view, the text view, the new view, and every imaginable combination thereof) and the cursor rect sticks around anyway.

What is going on? I have confirmed that the text view is autoreleased properly by setDocumentView:, so it isn't sticking around past the current event loop. Who is updating the cursor rect? Why can't I make it go away? Anybody have any ideas as to what I can do about this?

Thanks,
Andreas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: NSTextField setting text programatically?
  • Next by Date: Re: Is there a tutorial/sample for displaying...
  • Previous by thread: Embedding external applications in a window
  • Next by thread: Key Equivalents
  • Index(es):
    • Date
    • Thread