Add stub for NSFontCollection

This commit is contained in:
Duncan Cunningham 2024-03-10 13:03:33 +01:00
parent 4dac644abc
commit 3721b4f874
4 changed files with 59 additions and 0 deletions

View File

@ -292,6 +292,7 @@ set(AppKit_sources
NSPrintProgressPanelController.m
NSHelpManager.m
NSProgressIndicator.m
NSFontCollection.m
NSFontDescriptor.m
NSDisplay.m

34
AppKit/NSFontCollection.m Normal file
View File

@ -0,0 +1,34 @@
/*
This file is part of Darling.
Copyright (C) 2024 Darling developers
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/
#import <AppKit/NSFontCollection.h>
@implementation NSFontCollection
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -71,6 +71,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#import <AppKit/NSEvent.h>
#import <AppKit/NSFileWrapperExtensions.h>
#import <AppKit/NSFont.h>
#import <AppKit/NSFontCollection.h>
#import <AppKit/NSFontDescriptor.h>
#import <AppKit/NSFontManager.h>
#import <AppKit/NSFontPanel.h>

View File

@ -0,0 +1,23 @@
/*
This file is part of Darling.
Copyright (C) 2024 Darling developers
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/
#import <Foundation/NSObject.h>
@interface NSFontCollection: NSObject <NSCoding, NSCopying, NSMutableCopying>
@end