mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-04 20:05:03 +00:00
determine NSControl enabled state from NSCellFlags
This commit is contained in:
1 parent
a11f12ab09
commit
163550c3d5
1 file changed
+3
-1
@@ -43,7 +43,9 @@
|
||||
[self setFont:[cell font]];
|
||||
[self setAlignment:[cell alignment]];
|
||||
|
||||
[self setEnabled:[aCoder decodeObjectForKey:@"NSEnabled"]];
|
||||
// The NSEnabled flag is never changed when changing the enabled state of a control
|
||||
// Enabled state should is derived from the NSCellFlags decoded by NSCell
|
||||
[self setEnabled:[cell isEnabled]];
|
||||
[self setContinuous:[cell isContinuous]];
|
||||
|
||||
[self setTarget:[aCoder decodeObjectForKey:@"NSTarget"]];
|
||||
|
||||
Reference in new issue
Block a user