From 5fed85f62bffa1fe61a423ae68080643846f141d Mon Sep 17 00:00:00 2001 From: Nick Takayama Date: Wed, 15 Oct 2008 08:54:16 +0800 Subject: [PATCH] style correction Signed-off-by: Nick Takayama --- AppKit/CPControl.j | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/AppKit/CPControl.j b/AppKit/CPControl.j index e946f47..1ceff31 100644 --- a/AppKit/CPControl.j +++ b/AppKit/CPControl.j @@ -390,7 +390,8 @@ var CPControlBlackColor = [CPColor blackColor]; [super setBackgroundColor:[self backgroundColorForName:aName]]; } -- (void)textDidBeginEditing:(CPNotification)note { +- (void)textDidBeginEditing:(CPNotification)note +{ //this looks to prevent false propagation of notifications for other objects if([note object] != self) return; @@ -398,7 +399,8 @@ var CPControlBlackColor = [CPColor blackColor]; [[CPNotificationCenter defaultCenter] postNotificationName:CPControlTextDidBeginEditingNotification object:self userInfo:[CPDictionary dictionaryWithObject:[note object] forKey:@"CPFieldEditor"]]; } -- (void)textDidChange:(CPNotification)note { +- (void)textDidChange:(CPNotification)note +{ //this looks to prevent false propagation of notifications for other objects if([note object] != self) return; @@ -406,7 +408,8 @@ var CPControlBlackColor = [CPColor blackColor]; [[CPNotificationCenter defaultCenter] postNotificationName:CPControlTextDidChangeNotification object:self userInfo:[CPDictionary dictionaryWithObject:[note object] forKey:@"CPFieldEditor"]]; } -- (void)textDidEndEditing:(CPNotification)note { +- (void)textDidEndEditing:(CPNotification)note +{ //this looks to prevent false propagation of notifications for other objects if([note object] != self) return; -- 1.5.4.5