Fix a couple of Fred's concerns.

This commit is contained in:
Gregory John Casamento 2020-01-17 08:20:33 -05:00
parent e17c1287b3
commit 9f2869bc82
2 changed files with 7 additions and 14 deletions

View file

@ -7,7 +7,6 @@ MISSING HEADERS
> NSAccessibilityElement.h
> NSAccessibilityProtocols.h
> NSAlignmentFeedbackFilter.h
> NSAppearance.h
> NSCollectionViewCompositionalLayout.h
> NSCollectionViewFlowLayout.h
> NSCollectionViewGridLayout.h
@ -76,7 +75,7 @@ MISSING HEADERS
> NSWindowRestoration.h
> NSWindowTab.h
> NSWindowTabGroup.h
Total: 82
Total: 75
Completed
---
@ -86,7 +85,8 @@ Completed
> NSPDFPanel.h
> NSPICTImageRep.h
> NSDockTile.h
Total: 6
> NSAppearance.h
Total: 7
Mac Specific
---

View file

@ -1,5 +1,5 @@
/* Implementation of class NSAppearance
Copyright (C) 2019 Free Software Foundation, Inc.
Copyright (C) 2020 Free Software Foundation, Inc.
By: Gregory John Casamento
Date: Wed Jan 15 07:03:39 EST 2020
@ -38,7 +38,7 @@ NSAppearance *__currentAppearance = nil;
- (instancetype) initWithAppearanceNamed: (NSString *)name bundle: (NSBundle *)bundle
{
self = [super init];
if(self)
if (self)
{
ASSIGNCOPY(_name, name);
_allowsVibrancy = NO;
@ -48,7 +48,7 @@ NSAppearance *__currentAppearance = nil;
- (instancetype) initWithCoder: (NSCoder *)coder
{
if([coder allowsKeyedCoding])
if ([coder allowsKeyedCoding])
{
}
else
@ -61,7 +61,7 @@ NSAppearance *__currentAppearance = nil;
- (void) encodeWithCoder: (NSCoder *)coder
{
if([coder allowsKeyedCoding])
if ([coder allowsKeyedCoding])
{
}
else
@ -71,13 +71,6 @@ NSAppearance *__currentAppearance = nil;
}
}
- (instancetype) copyWithZone: (NSZone *)zone
{
NSAppearance *copy = [[NSAppearance allocWithZone: zone] initWithAppearanceNamed: [self name]
bundle: nil];
return copy;
}
// Getting the appearance name
- (NSString *) name
{