NSNotification and undos
NSNotification and undos
- Subject: NSNotification and undos
- From: Andrew Merenbach <email@hidden>
- Date: Sun, 15 Sep 2002 15:54:23 -0700
I'm implementing undo in my application, and everything is working
well, except that when I open a saved document, then tab out of the
first highlighted text field, the document becomes "dirty" again, even
if I don't change anything. I went back to the SimpleComboBox example
and tried saving a document from that, and when I reopened it the same
thing happened.
Am I right in assuming that, to fix this issue, I will need to post a
notification of some sort? I've tried the following after the
addObserver: code:
[[NSNotificationCenter defaultCenter] postNotificationName:
NSControlTextDidBeginEditingNotification object: myTextField];
but it doesn't seem to have any effect. (Perhaps I can't post
notifications from within windowControllerDidLoadNib:?)
Take care,
Andrew Merenbach
_______________________________________________
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.