• 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
undo w/ nstextview not automatically scrolling to action point
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

undo w/ nstextview not automatically scrolling to action point


  • Subject: undo w/ nstextview not automatically scrolling to action point
  • From: email@hidden
  • Date: Thu, 23 Feb 2006 00:06:52 -0500

Hello,

My undo support on a subclass of NSTextView is working fine with one small caveat: If the undo is taking place in an area not currently displayed in a scroll view, and I "undo" the change (like characters typed in), the view does not scroll to the point where the action is taking place. So the undo happens, but it's not obvious that it happens since it doesn't behave normally, like say, TextEdit does.

To my knowledge, simple undo support for this tasks should only require checking the box in IB that specifies to allow undo. I've spent a while digging around and can't pinpoint what's going on. I've also reviewed the various "create a text editor" tutorials and it doesn't look like I need to be doing anything special.

Any rough ideas of what could be happening that would prevent a text view from scrolling to the point of action with an undo? I'm sure I've mangled up something but am still working to figure out what it may be...

M.



_______________________________________________
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: JNI and JVM Version
  • Next by Date: How to build a popup menu and show this menu?
  • Previous by thread: - awakeFromFetch (Then Adding objects in a relationship)
  • Next by thread: How to build a popup menu and show this menu?
  • Index(es):
    • Date
    • Thread