Added font methods so that nib2cib can do font substitution

This commit is contained in:
Aparajita Fishman committed 2011-03-28 23:51:45 -04:00
1 parent 7d62b6e1eb
commit 044a605e47
1 file changed
+21
+21
View File
@@ -268,6 +268,27 @@ var CPTabViewDidSelectTabViewItemSelector = 1,
return [_items objectAtIndex:_selectedIndex];
}
// Modifying the font
/*!
Returns the font for tab label text.
*/
- (CPFont)font
{
return _font;
}
/*!
Sets the font for tab label text to font.
*/
- (void)setFont:(CPFont)font
{
if ([_font isEqual:font])
return;
_font = font;
[_tabs setFont:_font];
}
//
/*!
Sets the tab view type.