• 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
NSNotification and undos
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Undo/redo in sheets?
  • Next by Date: Re: [newbie] /r invoking button instead of going to textfield?
  • Previous by thread: Foundation/BSD problems and the Firewall
  • Next by thread: Creating DMG that are compressed+encrypted+EULA
  • Index(es):
    • Date
    • Thread