discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSControl fix


From: Andreas Höschler
Subject: NSControl fix
Date: Thu, 30 Aug 2007 00:12:50 +0200

Hi all,

NSControl
The delegate of an NSControl should be able to access validated values with objectValue in -controlTextDidChange:(NSNotification *)obj (at least that's the behavior on MacOSX).

- (void)textDidChange: (NSNotification *)aNotification
{
NSMutableDictionary *dict;

[self validateEditing]; // <---------------- add this


dict = [[NSMutableDictionary alloc] initWithDictionary:
[aNotification userInfo]];
[dict setObject: [aNotification object] forKey: @"NSFieldEditor"];

[nc postNotificationName: NSControlTextDidChangeNotification
object: self
userInfo: dict];
RELEASE(dict);
}

Regards,

Andreas

reply via email to

[Prev in Thread] Current Thread [Next in Thread]