Skip to content

Commit

Permalink
Various fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Boucher committed Feb 7, 2009
1 parent 1b8aca2 commit db0e88d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 580 deletions.
16 changes: 16 additions & 0 deletions AppKit/CPControl.j
Expand Up @@ -23,6 +23,7 @@
@import "CPFont.j"
@import "CPShadow.j"
@import "CPView.j"
@import "CPKeyValueBinding.j"

#include "Platform/Platform.h"

Expand Down Expand Up @@ -118,6 +119,19 @@ var CPControlBlackColor = [CPColor blackColor];
CPString _currentBackgroundColorName;
}

+ (void)initialize
{
[self exposeBinding:"value"];
}

+ (BOOL)automaticallyNotifiesObserversForKey:(CPString)aKey
{
if (aKey === @"value")
return NO;

return YES;
}

- (id)initWithFrame:(CGRect)aFrame
{
self = [super initWithFrame:aFrame];
Expand Down Expand Up @@ -478,7 +492,9 @@ var CPControlBlackColor = [CPColor blackColor];
*/
- (void)setObjectValue:(id)anObject
{
[self willChangeValueForKey:@"value"];
_value = anObject;
[self didChangeValueForKey:@"value"];
}

/*!
Expand Down
80 changes: 0 additions & 80 deletions Foundation/CPController.j

This file was deleted.

0 comments on commit db0e88d

Please sign in to comment.