Fixed: nib2cib of combo box parsed enabled state twice.

It's sufficient to read the _enabled state in the superclass NSCell, no need to read it again in the subclass.

Refs #1868.
This commit is contained in:
Alexander Ljungberg committed 2013-03-19 23:17:35 +00:00
1 parent 5b3386af2f
commit 085654e751
1 file changed
-5
-5
View File
@@ -94,7 +94,6 @@
BOOL _completes @accessors(readonly, getter=completes);
CPArray _itemList @accessors(readonly, getter=itemList);
BOOL _borderedButton @accessors(readonly, getter=borderedButton);
BOOL _enabled @accessors(readonly, getter=isEnabled);
}
- (id)initWithCoder:(CPCoder)aCoder
@@ -115,10 +114,6 @@
// NSButtonBordered key is present only if the value is NO, go figure
_borderedButton = [aCoder containsValueForKey:@"NSButtonBordered"] ? [aCoder decodeBoolForKey:@"NSButtonBordered"] : YES;
var flags = [aCoder decodeIntForKey:@"NSCellFlags"];
_enabled = (flags & 0x20000000) ? NO : YES;
}
return self;