Add stub for NSCandidateListTouchBarItem

This commit is contained in:
Duncan Cunningham 2024-03-10 13:42:24 +01:00
parent e9ece9d6cf
commit 4bb6117f35
4 changed files with 59 additions and 0 deletions

View File

@ -395,6 +395,7 @@ set(AppKit_sources
NSAppearance.m
NSAccessibilityElement.m
NSKeyValueBinding.m
NSCandidateListTouchBarItem.m
NSCollectionViewFlowLayout.m
NSTouchBarItem.m
NSLayoutConstraint.m

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/NSCandidateListTouchBarItem.h>
@implementation NSCandidateListTouchBarItem
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -39,6 +39,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#import <AppKit/NSButtonCell.h>
#import <AppKit/NSCIImageRep.h>
#import <AppKit/NSCachedImageRep.h>
#import <AppKit/NSCandidateListTouchBarItem.h>
#import <AppKit/NSCell.h>
#import <AppKit/NSClickGestureRecognizer.h>
#import <AppKit/NSClipView.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 <AppKit/NSTouchBarItem.h>
@interface NSCandidateListTouchBarItem<__covariant CandidateType> : NSTouchBarItem
@end