facebook/three20 — Issue #714: why call selector [setTabBar:]  with object [self] in  TTTab.m
Author: jey-song
Created: 2011-11-02 14:51:07+00:00
State: open

```objective-c
- (void)setTabItem:(TTTabItem*)tabItem {
if (tabItem != _tabItem) {
[_tabItem performSelector:@selector(setTabBar:) withObject:nil];
[_tabItem release];
_tabItem = [tabItem retain];
[_tabItem performSelector:@selector(setTabBar:) withObject:self];

[self setTitle:_tabItem.title forState:UIControlStateNormal];
[self setImage:_tabItem.icon forState:UIControlStateNormal];

if (_tabItem.badgeNumber) {
[self updateBadgeNumber];
}
}
}
```