undo oddness
undo oddness
- Subject: undo oddness
- From: Robert Goldsmith <email@hidden>
- Date: Wed, 12 May 2004 18:29:22 +0100
Hi :)
Ok, I'm stumped. I have a text view in a scroll view in a split view in
a window. I have set the text view to use undo in IB and it's delegate
responds to undoManagerForTextView:. This all -seems- to work, in that
I know the delegate method is called etc. However, the undo and redo
menu items are never available. They are connected to the first
responder so should work just like cut, copy, paste etc (which all DO
work).
My only thought is that I do odd stuff with the text storage for the
text view (I swap in and out multiple text storages), and I set the
text view to editable and non-editable (and, for good measure, at the
same time, setAllowUndo: yes/no). But my experience of responder chains
and auto-enabling menu items is that they check every time so all the
storage switching should have no effect on them.
So has anyone any idea why my undo and redo menu items are never
enabled?
Thanks
Robert
---
GnuPG public key:
http://www.Far-Blue.co.uk/
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
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.