From 7537b27a58ada3ad97f7e00aadad9b7020488923 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Mon, 26 Dec 2016 22:11:11 +0100 Subject: [PATCH] fixed: pboad types were wrong when unarchiving from cib --- AppKit/CPTextView/CPTextView.j | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 692e4d204..f8cdde448 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -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