mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-04 20:05:03 +00:00
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:
1 parent
5b3386af2f
commit
085654e751
1 file changed
-5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user