objective c - Is there a way in Cocoa to know if a NSTextField is dirty ? If it has been edited? -


is there way in cocoa know if nstextfield dirty ? if has been edited ?

i know there delegate method:

- (void)textdidchange:(nsnotification *)notification; 

but know after editing, when i'm closing window if nstextfield has been edited.

in delegate method - textdidbeginediting or textdidchange can set bool variable, , later can check value of bool variable.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -