Skip to content

Instantly share code, notes, and snippets.

@mmower
Created September 23, 2008 11:55
Show Gist options
  • Select an option

  • Save mmower/12267 to your computer and use it in GitHub Desktop.

Select an option

Save mmower/12267 to your computer and use it in GitHub Desktop.
- (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