Created
September 23, 2008 11:55
-
-
Save mmower/12267 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)setNoteTool:(ELBeatTool *)_noteTool_ { | |
| [self removeTool:(ELTool *)noteTool]; | |
| noteTool = _noteTool_; | |
| [self addTool:noteTool]; **BOOM** | |
| } | |
| - (void)addTool:(ELTool *)_tool_ { | |
| if( _tool_ ) { | |
| [tools addObject:_tool_]; | |
| [_tool_ addedToLayer:layer atPosition:self]; | |
| for( NSString *keyPath in [_tool_ observableValues] ) { | |
| [_tool_ addObserver:self forKeyPath:keyPath options:NSKeyValueObservingOptionNew|NSKeyValueObservingOptionOld context:nil]; //) | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment