mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-17 04:00:42 +00:00
fix two small bugs in CPApperance
This commit is contained in:
1 parent
6d67d30aee
commit
20289ff81b
2 files changed
+9
No files matched your search
@@ -119,6 +119,14 @@ var _CPAppearanceCurrent = nil,
|
||||
#pragma mark -
|
||||
#pragma mark Implementation
|
||||
|
||||
- (BOOL)isEqual:(id)anObject
|
||||
{
|
||||
if (![anObject isKindOfClass:CPAppearance])
|
||||
return NO;
|
||||
|
||||
return self._name == anObject._name;
|
||||
}
|
||||
|
||||
- (CPString)description
|
||||
{
|
||||
return @"<CPAppearance @" + [self UID] + @" name: " + _name + ">";
|
||||
|
||||
@@ -52,6 +52,7 @@ var NSViewAutoresizingMask = 0x3F,
|
||||
_window = [aCoder decodeObjectForKey:@"NSWindow"];
|
||||
_superview = [aCoder decodeObjectForKey:@"NSSuperview"];
|
||||
_subviews = [aCoder decodeObjectForKey:@"NSSubviews"];
|
||||
_appearance = [aCoder decodeObjectForKey:@"NSAppearance"];
|
||||
|
||||
_hierarchyScaleSize = CGSizeMake(1.0 , 1.0);
|
||||
_scaleSize = CGSizeMake(1.0, 1.0);
|
||||
|
||||
Reference in new issue
Block a user