More stubs and fixes for Xcode

This commit is contained in:
Ariel Abreu 2023-09-25 16:17:44 -04:00
parent a23a4bab20
commit ac4514c596
No known key found for this signature in database
GPG Key ID: 5B88AAAF4280706F
42 changed files with 638 additions and 26 deletions

View File

@ -154,6 +154,10 @@ set(AppKit_sources
nib.subproj/NSClassSwapper.m nib.subproj/NSClassSwapper.m
nib.subproj/NSNibAXRelationshipConnector.m nib.subproj/NSNibAXRelationshipConnector.m
nib.subproj/NSIBUserDefinedRuntimeAttributesConnector.m nib.subproj/NSIBUserDefinedRuntimeAttributesConnector.m
nib.subproj/NSNibAuxiliaryActionConnector.m
nib.subproj/NSNibExternalObjectPlaceholder.m
nib.subproj/NSIBHelpConnector.m
nib.subproj/UINibCoding.m
NSTextFieldCell.m NSTextFieldCell.m
NSFormCell.m NSFormCell.m
@ -439,6 +443,11 @@ set(AppKit_sources
NSCollectionViewLayoutInvalidationContext.m NSCollectionViewLayoutInvalidationContext.m
NSLayoutGuide.m NSLayoutGuide.m
NSPressGestureRecognizer.m NSPressGestureRecognizer.m
NSGridView.m
NSHaptics.m
NSDataAsset.m
NSSwitch.m
NSTextFinder.m
) )
set_source_files_properties(${AppKit_sources} LANGUAGE C) set_source_files_properties(${AppKit_sources} LANGUAGE C)

View File

@ -24,6 +24,10 @@
#import <CoreData/NSPersistentStoreCoordinator.h> #import <CoreData/NSPersistentStoreCoordinator.h>
#import <Foundation/NSRaise.h> #import <Foundation/NSRaise.h>
// not sure where to put this
NSString *const NSDataBinding = @"NSDataBinding";
NSString *const NSDisplayNameBindingOption = @"NSDisplayNameBindingOption";
@implementation NSPersistentDocument @implementation NSPersistentDocument
- (id) init { - (id) init {

View File

@ -1,6 +1,7 @@
#import <AppKit/AppKitExport.h> #import <AppKit/AppKitExport.h>
#import <Foundation/NSString.h> #import <Foundation/NSString.h>
#import <AppKit/NSAccessibilityConstants.h> #import <AppKit/NSAccessibilityConstants.h>
#import <AppKit/NSView.h>
NSString *const NSAccessibilityChildrenAttribute = NSString *const NSAccessibilityChildrenAttribute =
@"NSAccessibilityChildrenAttribute"; @"NSAccessibilityChildrenAttribute";
@ -43,6 +44,8 @@ NSString *const NSAccessibilityVisibleChildrenAttribute =
@"NSAccessibilityVisibleChildrenAttribute"; @"NSAccessibilityVisibleChildrenAttribute";
NSString *const NSAccessibilityWindowAttribute = NSString *const NSAccessibilityWindowAttribute =
@"NSAccessibilityWindowAttribute"; @"NSAccessibilityWindowAttribute";
NSString *const NSAccessibilityIdentifierAttribute =
@"NSAccessibilityIdentifierAttribute";
NSString *const NSAccessibilityInsertionPointLineNumberAttribute = NSString *const NSAccessibilityInsertionPointLineNumberAttribute =
@"NSAccessibilityInsertionPointLineNumberAttribute"; @"NSAccessibilityInsertionPointLineNumberAttribute";
@ -574,6 +577,11 @@ NSString *const NSAccessibilityAnnouncementKey = @"AXAnnouncementKey";
NSString *const NSAccessibilityAnnouncementRequestedNotification = @"AXAnnouncementRequested"; NSString *const NSAccessibilityAnnouncementRequestedNotification = @"AXAnnouncementRequested";
NSString *const NSAccessibilityPriorityKey = @"AXPriorityKey"; NSString *const NSAccessibilityPriorityKey = @"AXPriorityKey";
NSRect NSAccessibilityFrameInView(NSView *parentView, NSRect frame) {
printf("STUB %s\n", __PRETTY_FUNCTION__);
return frame;
}
void NSAccessibilityPostNotification(id element, NSString *notification) { void NSAccessibilityPostNotification(id element, NSString *notification) {
} }

View File

@ -21,6 +21,8 @@
NSString *const NSAppearanceNameAqua = @"NSAppearanceNameAqua"; NSString *const NSAppearanceNameAqua = @"NSAppearanceNameAqua";
NSString *const NSAppearanceNameDarkAqua = @"NSAppearanceNameDarkAqua"; NSString *const NSAppearanceNameDarkAqua = @"NSAppearanceNameDarkAqua";
NSString *const NSAppearanceNameSystem = @"NSAppearanceNameSystem";
NSString *const NSAppearanceNameTouchBar = @"NSAppearanceNameTouchBar";
NSString *const NSAppearanceNameLightContent = @"NSAppearanceNameLightContent"; NSString *const NSAppearanceNameLightContent = @"NSAppearanceNameLightContent";
NSString *const NSAppearanceNameVibrantDark = @"NSAppearanceNameVibrantDark"; NSString *const NSAppearanceNameVibrantDark = @"NSAppearanceNameVibrantDark";
NSString *const NSAppearanceNameVibrantLight = @"NSAppearanceNameVibrantLight"; NSString *const NSAppearanceNameVibrantLight = @"NSAppearanceNameVibrantLight";
@ -28,6 +30,8 @@ NSString *const NSAppearanceNameAccessibilityHighContrastAqua =
@"NSAppearanceNameAccessibilityAqua"; @"NSAppearanceNameAccessibilityAqua";
NSString *const NSAppearanceNameAccessibilityHighContrastDarkAqua = NSString *const NSAppearanceNameAccessibilityHighContrastDarkAqua =
@"NSAppearanceNameAccessibilityDarkAqua"; @"NSAppearanceNameAccessibilityDarkAqua";
NSString *const NSAppearanceNameAccessibilityHighContrastSystem =
@"NSAppearanceNameAccessibilityHighContrastSystem";
NSString *const NSAppearanceNameAccessibilityHighContrastVibrantLight = NSString *const NSAppearanceNameAccessibilityHighContrastVibrantLight =
@"NSAppearanceNameAccessibilityVibrantLight"; @"NSAppearanceNameAccessibilityVibrantLight";
NSString *const NSAppearanceNameAccessibilityHighContrastVibrantDark = NSString *const NSAppearanceNameAccessibilityHighContrastVibrantDark =

View File

@ -31,4 +31,9 @@
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
} }
+ (instancetype)newWithCoder:(NSCoder *)coder zone:(NSZone *)zone
{
return nil;
}
@end @end

View File

@ -1163,6 +1163,11 @@ static NSString *NSStringFromCellType(NSCellType type) {
_objectValue]; _objectValue];
} }
- (void) _validateEditing: (id)unknown
{
// required by ibtool
}
@end @end
void NSDrawThreePartImage(NSRect frame, NSImage *startCap, NSImage *centerFill, void NSDrawThreePartImage(NSRect frame, NSImage *startCap, NSImage *centerFill,
@ -1172,3 +1177,14 @@ void NSDrawThreePartImage(NSRect frame, NSImage *startCap, NSImage *centerFill,
{ {
NSUnimplementedFunction(); NSUnimplementedFunction();
} }
void NSDrawNinePartImage(NSRect frame, NSImage* topLeftCorner,
NSImage* topEdgeFill, NSImage* topRightCorner,
NSImage* leftEdgeFill, NSImage* centerFill,
NSImage* rightEdgeFill, NSImage* bottomLeftCorner,
NSImage* bottomEdgeFill, NSImage* bottomRightCorner,
NSCompositingOperation operation, CGFloat alpha,
BOOL flipped)
{
NSUnimplementedFunction();
};

View File

@ -19,6 +19,9 @@
#import <AppKit/NSCollectionViewLayout.h> #import <AppKit/NSCollectionViewLayout.h>
@interface NSCollectionViewGridLayout : NSCollectionViewLayout
@end
NSCollectionViewSupplementaryElementKind const NSCollectionViewSupplementaryElementKind const
NSCollectionElementKindInterItemGapIndicator = NSCollectionElementKindInterItemGapIndicator =
@"NSCollectionElementKindInterItemGapIndicator"; @"NSCollectionElementKindInterItemGapIndicator";
@ -36,3 +39,17 @@ NSCollectionViewSupplementaryElementKind const
} }
@end @end
@implementation NSCollectionViewGridLayout
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -18,6 +18,13 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#import <AppKit/NSColorSpace.h> #import <AppKit/NSColorSpace.h>
#import <Foundation/NSRaise.h>
// not sure where these belong
NSString *const _NSColorCoreUICatalogMainBundleID =
@"_NSColorCoreUICatalogMainBundleID";
NSString *const _NSColorCoreUICatalogNamePrefix =
@"_NSColorCoreUICatalogNamePrefix";
@implementation NSColorSpace @implementation NSColorSpace
@ -53,3 +60,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
} }
@end @end
NSString* _NSColorSpaceNameFromNum(void) {
NSUnimplementedFunction();
return nil;
};

5
AppKit/NSDataAsset.h Normal file
View File

@ -0,0 +1,5 @@
#import <Foundation/NSObject.h>
@interface NSDataAsset : NSObject
@end

15
AppKit/NSDataAsset.m Normal file
View File

@ -0,0 +1,15 @@
#import <AppKit/NSDataAsset.h>
@implementation NSDataAsset
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -19,6 +19,12 @@
#import <AppKit/NSGestureRecognizer.h> #import <AppKit/NSGestureRecognizer.h>
@interface NSMagnificationGestureRecognizer : NSGestureRecognizer
@end
@interface NSRotationGestureRecognizer : NSGestureRecognizer
@end
@implementation NSGestureRecognizer @implementation NSGestureRecognizer
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
@ -32,3 +38,31 @@
} }
@end @end
@implementation NSRotationGestureRecognizer
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end
@implementation NSMagnificationGestureRecognizer
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -42,6 +42,7 @@ NSString *const NSCalibratedWhiteColorSpace = @"NSCalibratedWhiteColorSpace";
NSString *const NSCalibratedRGBColorSpace = @"NSCalibratedRGBColorSpace"; NSString *const NSCalibratedRGBColorSpace = @"NSCalibratedRGBColorSpace";
NSString *const NSNamedColorSpace = @"NSNamedColorSpace"; NSString *const NSNamedColorSpace = @"NSNamedColorSpace";
NSString *const NSPatternColorSpace = @"NSPatternColorSpace"; NSString *const NSPatternColorSpace = @"NSPatternColorSpace";
NSString *const NSCustomColorSpace = @"NSCustomColorSpace";
NSString *const NSDeviceIsScreen = @"NSDeviceIsScreen"; NSString *const NSDeviceIsScreen = @"NSDeviceIsScreen";
NSString *const NSDeviceIsPrinter = @"NSDeviceIsPrinter"; NSString *const NSDeviceIsPrinter = @"NSDeviceIsPrinter";
@ -538,3 +539,7 @@ void NSShowAnimationEffect(NSAnimationEffect effect, NSPoint center,
didEndSelector: didEndSelector didEndSelector: didEndSelector
contextInfo: context]; contextInfo: context];
} }
void NSSetFocusRingStyle(NSFocusRingPlacement placement) {
printf("STUB: %s\n", __PRETTY_FUNCTION__);
}

68
AppKit/NSGridView.m Normal file
View File

@ -0,0 +1,68 @@
#import <AppKit/NSView.h>
const CGFloat NSGridViewSizeForContent = 0;
@interface NSGridView : NSView
@end
@interface NSGridCell : NSObject
@end
@interface NSGridColumn : NSObject
@end
@interface NSGridRow : NSObject
@end
@implementation NSGridView
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end
@implementation NSGridCell
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end
@implementation NSGridColumn
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end
@implementation NSGridRow
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

9
AppKit/NSHaptics.h Normal file
View File

@ -0,0 +1,9 @@
#import <Foundation/NSObject.h>
@interface NSHapticFeedbackManager : NSObject
@end
@interface NSAlignmentFeedbackFilter : NSObject
@end

29
AppKit/NSHaptics.m Normal file
View File

@ -0,0 +1,29 @@
#import <AppKit/NSHaptics.h>
@implementation NSHapticFeedbackManager
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end
@implementation NSAlignmentFeedbackFilter
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -103,15 +103,162 @@ NSImageName const NSImageNameUserGroup = @"NSUserGroup";
NSImageName const NSImageNameUserGuest = @"NSUserGuest"; NSImageName const NSImageNameUserGuest = @"NSUserGuest";
NSImageName const NSImageNameGoBackTemplate = @"NSGoBackTemplate"; NSImageName const NSImageNameGoBackTemplate = @"NSGoBackTemplate";
NSImageName const NSImageNameGoForwardTemplate = @"NSGoForwardTemplate"; NSImageName const NSImageNameGoForwardTemplate = @"NSGoForwardTemplate";
NSImageHintKey const NSImageHintInterpolation = @"NSImageHintInterpolation";
NSImageHintKey const NSImageHintCTM = @"NSImageHintCTM";
NSImageName const NSImageNameTouchBarDeleteTemplate = NSImageName const NSImageNameTouchBarDeleteTemplate =
@"NSTouchBarDeleteTemplate"; @"NSTouchBarDeleteTemplate";
NSImageName const NSImageNameTouchBarPauseTemplate = @"NSTouchBarPauseTemplate"; NSImageName const NSImageNameTouchBarPauseTemplate = @"NSTouchBarPauseTemplate";
NSImageName const NSImageNameTouchBarPlayTemplate = @"NSTouchBarPlayTemplate"; NSImageName const NSImageNameTouchBarPlayTemplate = @"NSTouchBarPlayTemplate";
NSImageName const NSImageNameTouchBarRecordStopTemplate = NSImageName const NSImageNameTouchBarRecordStopTemplate =
@"NSTouchBarRecordStopTemplate"; @"NSTouchBarRecordStopTemplate";
NSImageName const NSImageNameTouchBarAddDetailTemplate =
NSImageHintKey const NSImageHintInterpolation = @"NSImageHintInterpolation"; @"NSImageNameTouchBarAddDetailTemplate";
NSImageHintKey const NSImageHintCTM = @"NSImageHintCTM"; NSImageName const NSImageNameTouchBarAddTemplate =
@"NSImageNameTouchBarAddTemplate";
NSImageName const NSImageNameTouchBarAlarmTemplate =
@"NSImageNameTouchBarAlarmTemplate";
NSImageName const NSImageNameTouchBarAudioInputMuteTemplate =
@"NSImageNameTouchBarAudioInputMuteTemplate";
NSImageName const NSImageNameTouchBarAudioInputTemplate =
@"NSImageNameTouchBarAudioInputTemplate";
NSImageName const NSImageNameTouchBarAudioOutputMuteTemplate =
@"NSImageNameTouchBarAudioOutputMuteTemplate";
NSImageName const NSImageNameTouchBarAudioOutputVolumeHighTemplate =
@"NSImageNameTouchBarAudioOutputVolumeHighTemplate";
NSImageName const NSImageNameTouchBarAudioOutputVolumeLowTemplate =
@"NSImageNameTouchBarAudioOutputVolumeLowTemplate";
NSImageName const NSImageNameTouchBarAudioOutputVolumeMediumTemplate =
@"NSImageNameTouchBarAudioOutputVolumeMediumTemplate";
NSImageName const NSImageNameTouchBarAudioOutputVolumeOffTemplate =
@"NSImageNameTouchBarAudioOutputVolumeOffTemplate";
NSImageName const NSImageNameTouchBarBookmarksTemplate =
@"NSImageNameTouchBarBookmarksTemplate";
NSImageName const NSImageNameTouchBarColorPickerFill =
@"NSImageNameTouchBarColorPickerFill";
NSImageName const NSImageNameTouchBarColorPickerFont =
@"NSImageNameTouchBarColorPickerFont";
NSImageName const NSImageNameTouchBarColorPickerStroke =
@"NSImageNameTouchBarColorPickerStroke";
NSImageName const NSImageNameTouchBarCommunicationAudioTemplate =
@"NSImageNameTouchBarCommunicationAudioTemplate";
NSImageName const NSImageNameTouchBarCommunicationVideoTemplate =
@"NSImageNameTouchBarCommunicationVideoTemplate";
NSImageName const NSImageNameTouchBarComposeTemplate =
@"NSImageNameTouchBarComposeTemplate";
NSImageName const NSImageNameTouchBarDownloadTemplate =
@"NSImageNameTouchBarDownloadTemplate";
NSImageName const NSImageNameTouchBarEnterFullScreenTemplate =
@"NSImageNameTouchBarEnterFullScreenTemplate";
NSImageName const NSImageNameTouchBarExitFullScreenTemplate =
@"NSImageNameTouchBarExitFullScreenTemplate";
NSImageName const NSImageNameTouchBarFastForwardTemplate =
@"NSImageNameTouchBarFastForwardTemplate";
NSImageName const NSImageNameTouchBarFolderCopyToTemplate =
@"NSImageNameTouchBarFolderCopyToTemplate";
NSImageName const NSImageNameTouchBarFolderMoveToTemplate =
@"NSImageNameTouchBarFolderMoveToTemplate";
NSImageName const NSImageNameTouchBarFolderTemplate =
@"NSImageNameTouchBarFolderTemplate";
NSImageName const NSImageNameTouchBarGetInfoTemplate =
@"NSImageNameTouchBarGetInfoTemplate";
NSImageName const NSImageNameTouchBarGoBackTemplate =
@"NSImageNameTouchBarGoBackTemplate";
NSImageName const NSImageNameTouchBarGoDownTemplate =
@"NSImageNameTouchBarGoDownTemplate";
NSImageName const NSImageNameTouchBarGoForwardTemplate =
@"NSImageNameTouchBarGoForwardTemplate";
NSImageName const NSImageNameTouchBarGoUpTemplate =
@"NSImageNameTouchBarGoUpTemplate";
NSImageName const NSImageNameTouchBarHistoryTemplate =
@"NSImageNameTouchBarHistoryTemplate";
NSImageName const NSImageNameTouchBarIconViewTemplate =
@"NSImageNameTouchBarIconViewTemplate";
NSImageName const NSImageNameTouchBarListViewTemplate =
@"NSImageNameTouchBarListViewTemplate";
NSImageName const NSImageNameTouchBarMailTemplate =
@"NSImageNameTouchBarMailTemplate";
NSImageName const NSImageNameTouchBarNewFolderTemplate =
@"NSImageNameTouchBarNewFolderTemplate";
NSImageName const NSImageNameTouchBarNewMessageTemplate =
@"NSImageNameTouchBarNewMessageTemplate";
NSImageName const NSImageNameTouchBarOpenInBrowserTemplate =
@"NSImageNameTouchBarOpenInBrowserTemplate";
NSImageName const NSImageNameTouchBarPlayheadTemplate =
@"NSImageNameTouchBarPlayheadTemplate";
NSImageName const NSImageNameTouchBarPlayPauseTemplate =
@"NSImageNameTouchBarPlayPauseTemplate";
NSImageName const NSImageNameTouchBarQuickLookTemplate =
@"NSImageNameTouchBarQuickLookTemplate";
NSImageName const NSImageNameTouchBarRecordStartTemplate =
@"NSImageNameTouchBarRecordStartTemplate";
NSImageName const NSImageNameTouchBarRefreshTemplate =
@"NSImageNameTouchBarRefreshTemplate";
NSImageName const NSImageNameTouchBarRemoveTemplate =
@"NSImageNameTouchBarRemoveTemplate";
NSImageName const NSImageNameTouchBarRewindTemplate =
@"NSImageNameTouchBarRewindTemplate";
NSImageName const NSImageNameTouchBarRotateLeftTemplate =
@"NSImageNameTouchBarRotateLeftTemplate";
NSImageName const NSImageNameTouchBarRotateRightTemplate =
@"NSImageNameTouchBarRotateRightTemplate";
NSImageName const NSImageNameTouchBarSearchTemplate =
@"NSImageNameTouchBarSearchTemplate";
NSImageName const NSImageNameTouchBarShareTemplate =
@"NSImageNameTouchBarShareTemplate";
NSImageName const NSImageNameTouchBarSidebarTemplate =
@"NSImageNameTouchBarSidebarTemplate";
NSImageName const NSImageNameTouchBarSkipAhead15SecondsTemplate =
@"NSImageNameTouchBarSkipAhead15SecondsTemplate";
NSImageName const NSImageNameTouchBarSkipAhead30SecondsTemplate =
@"NSImageNameTouchBarSkipAhead30SecondsTemplate";
NSImageName const NSImageNameTouchBarSkipAheadTemplate =
@"NSImageNameTouchBarSkipAheadTemplate";
NSImageName const NSImageNameTouchBarSkipBack15SecondsTemplate =
@"NSImageNameTouchBarSkipBack15SecondsTemplate";
NSImageName const NSImageNameTouchBarSkipBack30SecondsTemplate =
@"NSImageNameTouchBarSkipBack30SecondsTemplate";
NSImageName const NSImageNameTouchBarSkipBackTemplate =
@"NSImageNameTouchBarSkipBackTemplate";
NSImageName const NSImageNameTouchBarSkipToEndTemplate =
@"NSImageNameTouchBarSkipToEndTemplate";
NSImageName const NSImageNameTouchBarSkipToStartTemplate =
@"NSImageNameTouchBarSkipToStartTemplate";
NSImageName const NSImageNameTouchBarSlideshowTemplate =
@"NSImageNameTouchBarSlideshowTemplate";
NSImageName const NSImageNameTouchBarTagIconTemplate =
@"NSImageNameTouchBarTagIconTemplate";
NSImageName const NSImageNameTouchBarTextBoldTemplate =
@"NSImageNameTouchBarTextBoldTemplate";
NSImageName const NSImageNameTouchBarTextBoxTemplate =
@"NSImageNameTouchBarTextBoxTemplate";
NSImageName const NSImageNameTouchBarTextCenterAlignTemplate =
@"NSImageNameTouchBarTextCenterAlignTemplate";
NSImageName const NSImageNameTouchBarTextItalicTemplate =
@"NSImageNameTouchBarTextItalicTemplate";
NSImageName const NSImageNameTouchBarTextJustifiedAlignTemplate =
@"NSImageNameTouchBarTextJustifiedAlignTemplate";
NSImageName const NSImageNameTouchBarTextLeftAlignTemplate =
@"NSImageNameTouchBarTextLeftAlignTemplate";
NSImageName const NSImageNameTouchBarTextListTemplate =
@"NSImageNameTouchBarTextListTemplate";
NSImageName const NSImageNameTouchBarTextRightAlignTemplate =
@"NSImageNameTouchBarTextRightAlignTemplate";
NSImageName const NSImageNameTouchBarTextStrikethroughTemplate =
@"NSImageNameTouchBarTextStrikethroughTemplate";
NSImageName const NSImageNameTouchBarTextUnderlineTemplate =
@"NSImageNameTouchBarTextUnderlineTemplate";
NSImageName const NSImageNameTouchBarUserAddTemplate =
@"NSImageNameTouchBarUserAddTemplate";
NSImageName const NSImageNameTouchBarUserGroupTemplate =
@"NSImageNameTouchBarUserGroupTemplate";
NSImageName const NSImageNameTouchBarUserTemplate =
@"NSImageNameTouchBarUserTemplate";
NSImageName const NSImageNameTouchBarVolumeDownTemplate =
@"NSImageNameTouchBarVolumeDownTemplate";
NSImageName const NSImageNameTouchBarVolumeUpTemplate =
@"NSImageNameTouchBarVolumeUpTemplate";
// Private class used so the context knows the flipped status of a locked image // Private class used so the context knows the flipped status of a locked image
// 10.4 does something like that - probably for more than just getting the // 10.4 does something like that - probably for more than just getting the

View File

@ -72,7 +72,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
} }
_cellClass = [NSCell class]; _cellClass = [NSCell class];
} }
_prototype = [[keyed decodeObjectForKey: @"NSProtoCell"] retain]; _protoCell = [[keyed decodeObjectForKey: @"NSProtoCell"] retain];
_cells = [[NSMutableArray alloc] _cells = [[NSMutableArray alloc]
initWithArray: [keyed decodeObjectForKey: @"NSCells"]]; initWithArray: [keyed decodeObjectForKey: @"NSCells"]];
id selectedCell = [keyed decodeObjectForKey: @"NSSelectedCell"]; id selectedCell = [keyed decodeObjectForKey: @"NSSelectedCell"];
@ -102,7 +102,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
_keyCellIndex = -1; _keyCellIndex = -1;
_cellSize = NSMakeSize(frame.size.width, 20); _cellSize = NSMakeSize(frame.size.width, 20);
_intercellSpacing = NSMakeSize(0, 0); _intercellSpacing = NSMakeSize(0, 0);
_prototype = nil; _protoCell = nil;
_cellClass = [NSCell class]; _cellClass = [NSCell class];
_mode = NSListModeMatrix; _mode = NSListModeMatrix;
_tabKeyTraversesCells = YES; _tabKeyTraversesCells = YES;
@ -121,11 +121,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
[self initWithFrame: frame]; [self initWithFrame: frame];
_mode = mode; _mode = mode;
_prototype = [prototype copy]; _protoCell = [prototype copy];
_numberOfRows = rows; _numberOfRows = rows;
_numberOfColumns = columns; _numberOfColumns = columns;
for (i = 0; i < rows * columns; i++) for (i = 0; i < rows * columns; i++)
[_cells addObject: [[_prototype copy] autorelease]]; [_cells addObject: [[_protoCell copy] autorelease]];
return self; return self;
} }
@ -155,7 +155,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
[_backgroundColor release]; [_backgroundColor release];
[_cellBackgroundColor release]; [_cellBackgroundColor release];
[_cells release]; [_cells release];
[_prototype release]; [_protoCell release];
[super dealloc]; [super dealloc];
} }
@ -262,7 +262,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
} }
- prototype { - prototype {
return _prototype; return _protoCell;
} }
- (NSArray *) cells { - (NSArray *) cells {
@ -494,8 +494,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
- (void) setPrototype: (NSCell *) cell { - (void) setPrototype: (NSCell *) cell {
cell = [cell retain]; cell = [cell retain];
[_prototype release]; [_protoCell release];
_prototype = cell; _protoCell = cell;
} }
- (void) _deselectAllCells { - (void) _deselectAllCells {
@ -522,7 +522,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
} }
- (NSCell *) makeCellAtRow: (NSInteger) row column: (NSInteger) column { - (NSCell *) makeCellAtRow: (NSInteger) row column: (NSInteger) column {
NSCell *result = [[_prototype copy] autorelease]; NSCell *result = [[_protoCell copy] autorelease];
if (result == nil) if (result == nil)
result = [[[_cellClass alloc] init] autorelease]; result = [[[_cellClass alloc] init] autorelease];

View File

@ -28,6 +28,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
const NSNotificationName NSMenuDidBeginTrackingNotification = @"NSMenuDidBeginTrackingNotification"; const NSNotificationName NSMenuDidBeginTrackingNotification = @"NSMenuDidBeginTrackingNotification";
const NSNotificationName NSMenuDidEndTrackingNotification = @"NSMenuDidEndTrackingNotification"; const NSNotificationName NSMenuDidEndTrackingNotification = @"NSMenuDidEndTrackingNotification";
NSString *const _NSFontMenuName = @"Font";
NSString *const _NSHelpMenuName = @"Help";
NSString *const _NSMainMenuName = @"Application";
NSString *const _NSRecentDocumentsMenuName = @"Recents";
NSString *const _NSServicesMenuName = @"Services";
NSString *const _NSWindowsMenuName = @"Window";
@implementation NSMenu @implementation NSMenu

View File

@ -23,6 +23,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#import <AppKit/NSMenu.h> #import <AppKit/NSMenu.h>
#import <AppKit/NSMenuItem.h> #import <AppKit/NSMenuItem.h>
#import <Foundation/NSKeyedArchiver.h> #import <Foundation/NSKeyedArchiver.h>
#import <AppKit/NSButtonCell.h>
@interface NSMenuItemCell : NSButtonCell
@end
@implementation NSMenuItem @implementation NSMenuItem
@ -398,3 +402,17 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
} }
@end @end
@implementation NSMenuItemCell
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -34,6 +34,13 @@ NSString *const NSScrollViewWillStartLiveScrollNotification =
@"NSScrollViewWillStartLiveScrollNotification"; @"NSScrollViewWillStartLiveScrollNotification";
NSString *const NSScrollViewDidLiveScrollNotification = NSString *const NSScrollViewDidLiveScrollNotification =
@"NSScrollViewDidLiveScrollNotification"; @"NSScrollViewDidLiveScrollNotification";
NSString *const NSScrollViewWillStartLiveMagnifyNotification =
@"NSScrollViewWillStartLiveMagnifyNotification";
NSString *const NSScrollViewDidEndLiveMagnifyNotification =
@"NSScrollViewDidEndLiveMagnifyNotification";
NSString *const NSPreferredScrollerStyleDidChangeNotification =
@"NSPreferredScrollerStyleDidChangeNotification";
@implementation NSScrollView @implementation NSScrollView

View File

@ -19,6 +19,9 @@
#import <AppKit/NSStoryboard.h> #import <AppKit/NSStoryboard.h>
@interface NSStoryboardControllerPlaceholder : NSObject
@end
@implementation NSStoryboard @implementation NSStoryboard
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
@ -32,3 +35,17 @@
} }
@end @end
@implementation NSStoryboardControllerPlaceholder
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

18
AppKit/NSSwitch.m Normal file
View File

@ -0,0 +1,18 @@
#import <AppKit/NSControl.h>
@interface NSSwitch : NSControl
@end
@implementation NSSwitch
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -29,6 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#import <AppKit/NSWindow.h> #import <AppKit/NSWindow.h>
#import <Foundation/NSKeyedArchiver.h> #import <Foundation/NSKeyedArchiver.h>
id _NSTabViewFloatingCell = nil;
@interface NSTabViewItem (NSTabViewItem_private) @interface NSTabViewItem (NSTabViewItem_private)
- (void) setTabView: (NSTabView *) tabView; - (void) setTabView: (NSTabView *) tabView;
- (void) setTabState: (NSTabState) tabState; - (void) setTabState: (NSTabState) tabState;

15
AppKit/NSTextFinder.m Normal file
View File

@ -0,0 +1,15 @@
#import <AppKit/NSTextFinder.h>
@implementation NSTextFinder
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -34,6 +34,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
// Those occurences are marked with "Should...". // Those occurences are marked with "Should...".
#define TEXTFIELD_MARGIN 3.0 #define TEXTFIELD_MARGIN 3.0
// not sure where to put this
NSString *const NSToolTipHelpKey = @"NSToolTipHelp";
@implementation NSToolTipWindow @implementation NSToolTipWindow
+ (NSToolTipWindow *) sharedToolTipWindow { + (NSToolTipWindow *) sharedToolTipWindow {

View File

@ -34,6 +34,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#import <AppKit/NSToolbarView.h> #import <AppKit/NSToolbarView.h>
#import <AppKit/NSWindow.h> #import <AppKit/NSWindow.h>
NSString *const _NSToolbarItemDragType = @"NSToolbarItemDragType";
NSString *const _NSToolbarItemIdentifierPboardType = @"NSToolbarItemIdentifierPboardType";
@interface NSToolbar (Private) @interface NSToolbar (Private)
- (NSArray *) _itemsWithIdentifiers: (NSArray *) identifiers; - (NSArray *) _itemsWithIdentifiers: (NSArray *) identifiers;
- (NSArray *) _allowedToolbarItems; - (NSArray *) _allowedToolbarItems;

View File

@ -84,6 +84,8 @@ const NSNotificationName NSWindowAnimatingNotification =
const NSNotificationName NSWindowDidAnimateNotification = const NSNotificationName NSWindowDidAnimateNotification =
@"NSWindowDidAnimateNotification"; @"NSWindowDidAnimateNotification";
const NSNotificationName NSWindowDidChangeBackingPropertiesNotification =
@"NSWindowDidChangeBackingPropertiesNotification";
const NSNotificationName NSWindowDidChangeOcclusionStateNotification = const NSNotificationName NSWindowDidChangeOcclusionStateNotification =
@"NSWindowDidChangeOcclusionStateNotification"; @"NSWindowDidChangeOcclusionStateNotification";
const NSNotificationName NSWindowDidChangeScreenNotification = const NSNotificationName NSWindowDidChangeScreenNotification =

View File

@ -88,6 +88,8 @@ typedef enum {
NSFont *_keyEquivalentFont; NSFont *_keyEquivalentFont;
NSColor *_backgroundColor; NSColor *_backgroundColor;
float _periodicDelay, _periodicInterval; float _periodicDelay, _periodicInterval;
NSImage *_alternateImageOrKeyEquivalentFont;
NSUInteger _bcFlags;
} }
- (BOOL) isTransparent; - (BOOL) isTransparent;

View File

@ -111,6 +111,7 @@ enum {
NSFocusRingType _focusRingType; NSFocusRingType _focusRingType;
NSLineBreakMode _lineBreakMode; NSLineBreakMode _lineBreakMode;
NSBackgroundStyle _backgroundStyle; NSBackgroundStyle _backgroundStyle;
NSUInteger _cFlags; // required for Xcode
BOOL _isEnabled; BOOL _isEnabled;
BOOL _isEditable; BOOL _isEditable;

View File

@ -42,7 +42,7 @@ typedef enum {
NSInteger _keyCellIndex; NSInteger _keyCellIndex;
NSSize _cellSize; NSSize _cellSize;
NSSize _intercellSpacing; NSSize _intercellSpacing;
id _prototype; id _protoCell;
Class _cellClass; Class _cellClass;
NSMatrixMode _mode; NSMatrixMode _mode;
BOOL _selectionByRect; BOOL _selectionByRect;

View File

@ -7,3 +7,7 @@
@protocol NSTextFinderClient <NSObject> @protocol NSTextFinderClient <NSObject>
@end @end
@interface NSTextFinder : NSObject
@end

View File

@ -0,0 +1,18 @@
#import <Foundation/Foundation.h>
@interface NSIBHelpConnector : NSObject
@end
@implementation NSIBHelpConnector
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -32,6 +32,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
NSString *const NSNibOwner = @"NSOwner"; NSString *const NSNibOwner = @"NSOwner";
NSString *const NSNibTopLevelObjects = @"NSNibTopLevelObjects"; NSString *const NSNibTopLevelObjects = @"NSNibTopLevelObjects";
// IB = Interface Builder; i'm guessing this subproject is a good place for it
NSString *const IBCocoaFramework = @"Cocoa";
@implementation NSNib @implementation NSNib
- initWithCoder: (NSCoder *) coder { - initWithCoder: (NSCoder *) coder {

View File

@ -1,5 +1,32 @@
#import "NSNibAXRelationshipConnector.h" #import "NSNibAXRelationshipConnector.h"
@interface NSNibAXAttributeConnector : NSObject
@end
@implementation NSNibAXRelationshipConnector @implementation NSNibAXRelationshipConnector
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end
@implementation NSNibAXAttributeConnector
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end @end

View File

@ -0,0 +1,18 @@
#import <Foundation/Foundation.h>
@interface NSNibAuxiliaryActionConnector : NSObject
@end
@implementation NSNibAuxiliaryActionConnector
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -0,0 +1,18 @@
#import <Foundation/NSObject.h>
@interface NSNibExternalObjectPlaceholder : NSObject
@end
@implementation NSNibExternalObjectPlaceholder
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -23,17 +23,20 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
@class NSView; @class NSView;
@interface NSWindowTemplate : NSObject { @interface NSWindowTemplate : NSObject {
// the ivars without a `_` prefix are like that because Xcode
// requires them to be named like that.
NSSize _maxSize; NSSize _maxSize;
NSSize _minSize; NSSize _minSize;
NSRect _screenRect; NSRect screenRect;
id _viewClass; id _viewClass;
unsigned _wtFlags; unsigned _wtFlags;
int _windowBacking; int _windowBacking;
NSString *_windowClass; NSString *_windowClass;
NSRect _windowRect; NSRect windowRect;
int _windowStyleMask; int _windowStyleMask;
NSString *_windowTitle; NSString *_windowTitle;
NSView *_windowView; NSView *windowView;
NSString *_windowAutosave; NSString *_windowAutosave;
} }

View File

@ -35,25 +35,25 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
_maxSize = [keyed decodeSizeForKey: @"NSMaxSize"]; _maxSize = [keyed decodeSizeForKey: @"NSMaxSize"];
_minSize = [keyed decodeSizeForKey: @"NSMinSize"]; _minSize = [keyed decodeSizeForKey: @"NSMinSize"];
_screenRect = screenRect =
[keyed decodeRectForKey: @"NSScreenRect"]; // screen created on [keyed decodeRectForKey: @"NSScreenRect"]; // screen created on
_viewClass = [[keyed decodeObjectForKey: @"NSViewClass"] retain]; _viewClass = [[keyed decodeObjectForKey: @"NSViewClass"] retain];
_wtFlags = [keyed decodeIntForKey: @"NSWTFlags"]; _wtFlags = [keyed decodeIntForKey: @"NSWTFlags"];
_windowBacking = [keyed decodeIntForKey: @"NSWindowBacking"]; _windowBacking = [keyed decodeIntForKey: @"NSWindowBacking"];
_windowClass = [[keyed decodeObjectForKey: @"NSWindowClass"] retain]; _windowClass = [[keyed decodeObjectForKey: @"NSWindowClass"] retain];
_windowRect = [keyed decodeRectForKey: @"NSWindowRect"]; windowRect = [keyed decodeRectForKey: @"NSWindowRect"];
_windowStyleMask = [keyed decodeIntForKey: @"NSWindowStyleMask"]; _windowStyleMask = [keyed decodeIntForKey: @"NSWindowStyleMask"];
_windowTitle = [[keyed decodeObjectForKey: @"NSWindowTitle"] retain]; _windowTitle = [[keyed decodeObjectForKey: @"NSWindowTitle"] retain];
_windowView = [[keyed decodeObjectForKey: @"NSWindowView"] retain]; windowView = [[keyed decodeObjectForKey: @"NSWindowView"] retain];
_windowAutosave = _windowAutosave =
[[keyed decodeObjectForKey: @"NSFrameAutosaveName"] retain]; [[keyed decodeObjectForKey: @"NSFrameAutosaveName"] retain];
if ([NSScreen mainScreen]) if ([NSScreen mainScreen])
_windowRect.origin.y -= _screenRect.size.height - windowRect.origin.y -= screenRect.size.height -
[[NSScreen mainScreen] frame].size.height; [[NSScreen mainScreen] frame].size.height;
if ([NSClassFromString(_windowClass) if ([NSClassFromString(_windowClass)
hasMainMenuForStyleMask: _windowStyleMask]) hasMainMenuForStyleMask: _windowStyleMask])
_windowRect.origin.y -= [NSMainMenuView windowRect.origin.y -= [NSMainMenuView
menuHeight]; // compensation for the additional menu bar menuHeight]; // compensation for the additional menu bar
} else { } else {
[NSException raise: NSInvalidArgumentException [NSException raise: NSInvalidArgumentException
@ -67,7 +67,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
[_viewClass release]; [_viewClass release];
[_windowClass release]; [_windowClass release];
[_windowTitle release]; [_windowTitle release];
[_windowView release]; [windowView release];
[_windowAutosave release]; [_windowAutosave release];
[super dealloc]; [super dealloc];
} }
@ -85,7 +85,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
class = [NSWindow class]; class = [NSWindow class];
} }
defer = (_wtFlags & 0x20000000) ? YES : NO; defer = (_wtFlags & 0x20000000) ? YES : NO;
result = [[class alloc] initWithContentRect: _windowRect result = [[class alloc] initWithContentRect: windowRect
styleMask: _windowStyleMask styleMask: _windowStyleMask
backing: _windowBacking backing: _windowBacking
defer: defer]; defer: defer];
@ -96,9 +96,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
[result setHidesOnDeactivate: (_wtFlags & 0x80000000) ? YES : NO]; [result setHidesOnDeactivate: (_wtFlags & 0x80000000) ? YES : NO];
[result setTitle: _windowTitle]; [result setTitle: _windowTitle];
[result setContentView: _windowView]; [result setContentView: windowView];
[_windowView setAutoresizesSubviews: YES]; [windowView setAutoresizesSubviews: YES];
[_windowView setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable]; [windowView setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable];
if ([_viewClass isKindOfClass: [NSToolbar class]]) { if ([_viewClass isKindOfClass: [NSToolbar class]]) {
[result setToolbar: _viewClass]; [result setToolbar: _viewClass];

View File

@ -0,0 +1,18 @@
#import <Foundation/Foundation.h>
@interface UINibEncoder : NSCoder
@end
@implementation UINibEncoder
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -20,6 +20,9 @@
#import <QuartzCore/CAFilter.h> #import <QuartzCore/CAFilter.h>
NSString *const kCAFilterColorMatrix = @"colorMatrix"; NSString *const kCAFilterColorMatrix = @"colorMatrix";
NSString *const kCAFilterColorBrightness = @"colorBrightness";
NSString *const kCAFilterColorHueRotate = @"colorHueRotate";
NSString *const kCAFilterMultiplyBlendMode = @"multiplyBlendMode";
@implementation CAFilter @implementation CAFilter

View File

@ -0,0 +1,18 @@
#import <Foundation/NSObject.h>
@interface CATransformLayer : NSObject
@end
@implementation CATransformLayer
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -61,6 +61,7 @@ set(QuartzCore_sources
CAMetalLayer.mm CAMetalLayer.mm
CAMetalDrawable.mm CAMetalDrawable.mm
CASpringAnimation.m CASpringAnimation.m
CATransformLayer.m
) )
#set_source_files_properties(${QuartzCore_sources} LANGUAGE C) #set_source_files_properties(${QuartzCore_sources} LANGUAGE C)