Permalink
Browse files

[UI] fix warnings with LLVM 3.0

  • Loading branch information...
1 parent 65b3f64 commit 43301ff4981e0774bb673e9268d4cbcc53cbe406 @diederich diederich committed Aug 23, 2011
Showing with 6 additions and 9 deletions.
  1. +6 −9 src/Three20UI/Sources/TTPickerTextField.m
@@ -130,9 +130,8 @@ - (void)updateHeight {
self.height = newHeight;
[self setNeedsDisplay];
- SEL sel = @selector(textFieldDidResize:);
- if ([self.delegate respondsToSelector:sel]) {
- [self.delegate performSelector:sel withObject:self];
+ if ([self.delegate respondsToSelector:@selector(textFieldDidResize:)]) {
+ [(id)self.delegate textFieldDidResize:self];
}
[self scrollToVisibleLine:YES];
@@ -424,9 +423,8 @@ - (void)addCellWithObject:(id)object {
// Reset text so the cursor moves to be at the end of the cellViews
self.text = kEmpty;
- SEL sel = @selector(textField:didAddCellAtIndex:);
- if ([self.delegate respondsToSelector:sel]) {
- [self.delegate performSelector:sel withObject:self withObject:(id)(_cellViews.count-1)];
+ if ([self.delegate respondsToSelector:@selector(textField:didAddCellAtIndex:)]) {
+ [(id)self.delegate textField:self didAddCellAtIndex:_cellViews.count-1];
}
}
@@ -439,9 +437,8 @@ - (void)removeCellWithObject:(id)object {
[_cellViews removeObjectAtIndex:i];
[cell removeFromSuperview];
- SEL sel = @selector(textField:didRemoveCellAtIndex:);
- if ([self.delegate respondsToSelector:sel]) {
- [self.delegate performSelector:sel withObject:self withObject:(id)i];
+ if ([self.delegate respondsToSelector:@selector(textField:didRemoveCellAtIndex:)]) {
+ [(id)self.delegate textField:self didRemoveCellAtIndex:i];
}
break;
}

0 comments on commit 43301ff

Please sign in to comment.