mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-20 09:20:41 +00:00
nib2cib support for button and radio button tags.
This commit is contained in:
@@ -269,6 +269,8 @@ var NSButtonIsBorderedMask = 0x00800000,
|
||||
_highlightsBy = [cell highlightsBy];
|
||||
_showsStateBy = [cell showsStateBy];
|
||||
|
||||
[self setTag:[cell tag]];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
CPFont _font @accessors(readonly, getter=font);
|
||||
int _lineBreakMode @accessors(readonly, getter=lineBreakMode);
|
||||
CPFormatter _formatter @accessors(readonly, getter=formatter);
|
||||
int _tag @accessors(readonly, getter=tag);
|
||||
}
|
||||
|
||||
- (id)initWithCoder:(CPCoder)aCoder
|
||||
@@ -81,6 +82,8 @@
|
||||
_font = [aCoder decodeObjectForKey:@"NSSupport"];
|
||||
|
||||
_formatter = [aCoder decodeObjectForKey:@"NSFormatter"];
|
||||
|
||||
_tag = [aCoder decodeIntForKey:@"NSTag"];
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
@@ -115,6 +115,7 @@ var NSMatrixRadioModeMask = 0x40000000,
|
||||
[self setAllowsMixedState:[aCell allowsMixedState]];
|
||||
[self setObjectValue:[aCell objectValue]];
|
||||
[self setEnabled:[aCell isEnabled]];
|
||||
[self setTag:[aCell tag]];
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
Reference in New Issue
Block a user