mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-01 16:33:35 +00:00
fixed: typing font was nil in sometimes cib-generated textviews
This commit is contained in:
@@ -133,7 +133,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
CPColor _textColor @accessors(property=textColor);
|
||||
CPDictionary _selectedTextAttributes @accessors(property=selectedTextAttributes);
|
||||
CPDictionary _typingAttributes @accessors(property=typingAttributes);
|
||||
CPFont _font @accessors(property=font);
|
||||
CPFont _font;
|
||||
CPLayoutManager _layoutManager @accessors(getter=layoutManager);
|
||||
CPRange _selectionRange @accessors(getter=selectedRange);
|
||||
CPSelectionGranularity _selectionGranularity @accessors(property=selectionGranularity);
|
||||
@@ -1586,6 +1586,11 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
#pragma mark -
|
||||
#pragma mark Font methods
|
||||
|
||||
- (CPFont)font
|
||||
{
|
||||
return _font || [CPFont systemFontOfSize:12.0];
|
||||
}
|
||||
|
||||
- (void)setFont:(CPFont)font
|
||||
{
|
||||
_font = font;
|
||||
|
||||
Reference in New Issue
Block a user