いくつかの NSTextField の変更をテストしようとしています。
私は使用しています:
- (void)controlTextDidEndEditing:(NSNotification *)notification {
if ([notification object] == field1)
NSLog(@"field1: stringValue == %@", [field1 stringValue]);
if ([notification object] == field2)
NSLog(@"field2: stringValue == %@", [field2 stringValue]);
if ([notification object] == field3)
NSLog(@"field3: stringValue == %@", [field3 stringValue]);
}
これはうまくいきますが、もっと良い方法があるのではないかと思います。ありがとう