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
Post a Comment