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
]
NSControl fix
,
Andreas Höschler
<=
Re: NSControl fix
,
Fred Kiefer
,
2007/08/30
Re: NSControl fix
,
Andreas Höschler
,
2007/08/30
Prev by Date:
Re: GNUstep applications via ssh
Next by Date:
Re: focus problem
Previous by thread:
GNUstep applications via ssh
Next by thread:
Re: NSControl fix
Index(es):
Date
Thread