mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 18:30:59 +00:00
minor cleanup
This commit is contained in:
1 parent
ee7d89331b
commit
74cd11c763
1 file changed
+3
-5
@@ -1028,6 +1028,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
|
||||
- (void)mouseDragged:(CPEvent)event
|
||||
{
|
||||
|
||||
if (![self isSelectable])
|
||||
return;
|
||||
|
||||
@@ -1054,9 +1055,6 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
|
||||
- (void)mouseUp:(CPEvent)event
|
||||
{
|
||||
if (![self isSelectable])
|
||||
return;
|
||||
|
||||
_movingSelection = nil;
|
||||
|
||||
// will post CPTextViewDidChangeSelectionNotification
|
||||
@@ -2103,11 +2101,11 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
|
||||
- (BOOL)isSelectable
|
||||
{
|
||||
return [super isSelectable] && !_placeholderString
|
||||
return [super isSelectable] && _placeholderString === nil;
|
||||
}
|
||||
- (BOOL)isEditable
|
||||
{
|
||||
return [super isEditable] && !_placeholderString
|
||||
return [super isEditable] && _placeholderString === nil;
|
||||
}
|
||||
|
||||
- (void)_setPlaceholderString:(CPString)aString
|
||||
|
||||
Reference in new issue
Block a user