mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-23 10:50:42 +00:00
fixed: pboad types were wrong when unarchiving from cib
This commit is contained in:
@@ -202,13 +202,6 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
_typingAttributes = [[CPDictionary alloc] initWithObjects:[_font, _textColor] forKeys:[CPFontAttributeName, CPForegroundColorAttributeName]];
|
||||
}
|
||||
|
||||
var pboardTypes = [CPColorDragType, CPStringPboardType];
|
||||
|
||||
if ([self isRichText])
|
||||
pboardTypes.push(CPRTFPboardType);
|
||||
|
||||
[self registerForDraggedTypes:pboardTypes];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@@ -242,6 +235,13 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
|
||||
_caret = [[_CPCaret alloc] initWithTextView:self];
|
||||
[_caret setRect:CGRectMake(0, 0, 1, 11)]
|
||||
|
||||
var pboardTypes = [CPStringPboardType, CPColorDragType];
|
||||
|
||||
if ([self isRichText])
|
||||
pboardTypes.push(CPRTFPboardType);
|
||||
|
||||
[self registerForDraggedTypes:pboardTypes];
|
||||
}
|
||||
|
||||
- (void)_setObserveWindowKeyNotifications:(BOOL)shouldObserve
|
||||
|
||||
Reference in New Issue
Block a user