mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 04:00:00 +00:00
More stubs and fixes for Xcode
This commit is contained in:
parent
a23a4bab20
commit
ac4514c596
@ -154,6 +154,10 @@ set(AppKit_sources
|
||||
nib.subproj/NSClassSwapper.m
|
||||
nib.subproj/NSNibAXRelationshipConnector.m
|
||||
nib.subproj/NSIBUserDefinedRuntimeAttributesConnector.m
|
||||
nib.subproj/NSNibAuxiliaryActionConnector.m
|
||||
nib.subproj/NSNibExternalObjectPlaceholder.m
|
||||
nib.subproj/NSIBHelpConnector.m
|
||||
nib.subproj/UINibCoding.m
|
||||
|
||||
NSTextFieldCell.m
|
||||
NSFormCell.m
|
||||
@ -439,6 +443,11 @@ set(AppKit_sources
|
||||
NSCollectionViewLayoutInvalidationContext.m
|
||||
NSLayoutGuide.m
|
||||
NSPressGestureRecognizer.m
|
||||
NSGridView.m
|
||||
NSHaptics.m
|
||||
NSDataAsset.m
|
||||
NSSwitch.m
|
||||
NSTextFinder.m
|
||||
)
|
||||
|
||||
set_source_files_properties(${AppKit_sources} LANGUAGE C)
|
||||
|
@ -24,6 +24,10 @@
|
||||
#import <CoreData/NSPersistentStoreCoordinator.h>
|
||||
#import <Foundation/NSRaise.h>
|
||||
|
||||
// not sure where to put this
|
||||
NSString *const NSDataBinding = @"NSDataBinding";
|
||||
NSString *const NSDisplayNameBindingOption = @"NSDisplayNameBindingOption";
|
||||
|
||||
@implementation NSPersistentDocument
|
||||
|
||||
- (id) init {
|
||||
|
@ -1,6 +1,7 @@
|
||||
#import <AppKit/AppKitExport.h>
|
||||
#import <Foundation/NSString.h>
|
||||
#import <AppKit/NSAccessibilityConstants.h>
|
||||
#import <AppKit/NSView.h>
|
||||
|
||||
NSString *const NSAccessibilityChildrenAttribute =
|
||||
@"NSAccessibilityChildrenAttribute";
|
||||
@ -43,6 +44,8 @@ NSString *const NSAccessibilityVisibleChildrenAttribute =
|
||||
@"NSAccessibilityVisibleChildrenAttribute";
|
||||
NSString *const NSAccessibilityWindowAttribute =
|
||||
@"NSAccessibilityWindowAttribute";
|
||||
NSString *const NSAccessibilityIdentifierAttribute =
|
||||
@"NSAccessibilityIdentifierAttribute";
|
||||
|
||||
NSString *const NSAccessibilityInsertionPointLineNumberAttribute =
|
||||
@"NSAccessibilityInsertionPointLineNumberAttribute";
|
||||
@ -574,6 +577,11 @@ NSString *const NSAccessibilityAnnouncementKey = @"AXAnnouncementKey";
|
||||
NSString *const NSAccessibilityAnnouncementRequestedNotification = @"AXAnnouncementRequested";
|
||||
NSString *const NSAccessibilityPriorityKey = @"AXPriorityKey";
|
||||
|
||||
NSRect NSAccessibilityFrameInView(NSView *parentView, NSRect frame) {
|
||||
printf("STUB %s\n", __PRETTY_FUNCTION__);
|
||||
return frame;
|
||||
}
|
||||
|
||||
void NSAccessibilityPostNotification(id element, NSString *notification) {
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,8 @@
|
||||
|
||||
NSString *const NSAppearanceNameAqua = @"NSAppearanceNameAqua";
|
||||
NSString *const NSAppearanceNameDarkAqua = @"NSAppearanceNameDarkAqua";
|
||||
NSString *const NSAppearanceNameSystem = @"NSAppearanceNameSystem";
|
||||
NSString *const NSAppearanceNameTouchBar = @"NSAppearanceNameTouchBar";
|
||||
NSString *const NSAppearanceNameLightContent = @"NSAppearanceNameLightContent";
|
||||
NSString *const NSAppearanceNameVibrantDark = @"NSAppearanceNameVibrantDark";
|
||||
NSString *const NSAppearanceNameVibrantLight = @"NSAppearanceNameVibrantLight";
|
||||
@ -28,6 +30,8 @@ NSString *const NSAppearanceNameAccessibilityHighContrastAqua =
|
||||
@"NSAppearanceNameAccessibilityAqua";
|
||||
NSString *const NSAppearanceNameAccessibilityHighContrastDarkAqua =
|
||||
@"NSAppearanceNameAccessibilityDarkAqua";
|
||||
NSString *const NSAppearanceNameAccessibilityHighContrastSystem =
|
||||
@"NSAppearanceNameAccessibilityHighContrastSystem";
|
||||
NSString *const NSAppearanceNameAccessibilityHighContrastVibrantLight =
|
||||
@"NSAppearanceNameAccessibilityVibrantLight";
|
||||
NSString *const NSAppearanceNameAccessibilityHighContrastVibrantDark =
|
||||
|
@ -31,4 +31,9 @@
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
+ (instancetype)newWithCoder:(NSCoder *)coder zone:(NSZone *)zone
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
@ -1163,6 +1163,11 @@ static NSString *NSStringFromCellType(NSCellType type) {
|
||||
_objectValue];
|
||||
}
|
||||
|
||||
- (void) _validateEditing: (id)unknown
|
||||
{
|
||||
// required by ibtool
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
void NSDrawThreePartImage(NSRect frame, NSImage *startCap, NSImage *centerFill,
|
||||
@ -1172,3 +1177,14 @@ void NSDrawThreePartImage(NSRect frame, NSImage *startCap, NSImage *centerFill,
|
||||
{
|
||||
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();
|
||||
};
|
||||
|
@ -19,6 +19,9 @@
|
||||
|
||||
#import <AppKit/NSCollectionViewLayout.h>
|
||||
|
||||
@interface NSCollectionViewGridLayout : NSCollectionViewLayout
|
||||
@end
|
||||
|
||||
NSCollectionViewSupplementaryElementKind const
|
||||
NSCollectionElementKindInterItemGapIndicator =
|
||||
@"NSCollectionElementKindInterItemGapIndicator";
|
||||
@ -36,3 +39,17 @@ NSCollectionViewSupplementaryElementKind const
|
||||
}
|
||||
|
||||
@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
|
||||
|
@ -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. */
|
||||
|
||||
#import <AppKit/NSColorSpace.h>
|
||||
#import <Foundation/NSRaise.h>
|
||||
|
||||
// not sure where these belong
|
||||
NSString *const _NSColorCoreUICatalogMainBundleID =
|
||||
@"_NSColorCoreUICatalogMainBundleID";
|
||||
NSString *const _NSColorCoreUICatalogNamePrefix =
|
||||
@"_NSColorCoreUICatalogNamePrefix";
|
||||
|
||||
@implementation NSColorSpace
|
||||
|
||||
@ -53,3 +60,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
NSString* _NSColorSpaceNameFromNum(void) {
|
||||
NSUnimplementedFunction();
|
||||
return nil;
|
||||
};
|
||||
|
5
AppKit/NSDataAsset.h
Normal file
5
AppKit/NSDataAsset.h
Normal file
@ -0,0 +1,5 @@
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
@interface NSDataAsset : NSObject
|
||||
|
||||
@end
|
15
AppKit/NSDataAsset.m
Normal file
15
AppKit/NSDataAsset.m
Normal 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
|
@ -19,6 +19,12 @@
|
||||
|
||||
#import <AppKit/NSGestureRecognizer.h>
|
||||
|
||||
@interface NSMagnificationGestureRecognizer : NSGestureRecognizer
|
||||
@end
|
||||
|
||||
@interface NSRotationGestureRecognizer : NSGestureRecognizer
|
||||
@end
|
||||
|
||||
@implementation NSGestureRecognizer
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
@ -32,3 +38,31 @@
|
||||
}
|
||||
|
||||
@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
|
||||
|
@ -42,6 +42,7 @@ NSString *const NSCalibratedWhiteColorSpace = @"NSCalibratedWhiteColorSpace";
|
||||
NSString *const NSCalibratedRGBColorSpace = @"NSCalibratedRGBColorSpace";
|
||||
NSString *const NSNamedColorSpace = @"NSNamedColorSpace";
|
||||
NSString *const NSPatternColorSpace = @"NSPatternColorSpace";
|
||||
NSString *const NSCustomColorSpace = @"NSCustomColorSpace";
|
||||
|
||||
NSString *const NSDeviceIsScreen = @"NSDeviceIsScreen";
|
||||
NSString *const NSDeviceIsPrinter = @"NSDeviceIsPrinter";
|
||||
@ -538,3 +539,7 @@ void NSShowAnimationEffect(NSAnimationEffect effect, NSPoint center,
|
||||
didEndSelector: didEndSelector
|
||||
contextInfo: context];
|
||||
}
|
||||
|
||||
void NSSetFocusRingStyle(NSFocusRingPlacement placement) {
|
||||
printf("STUB: %s\n", __PRETTY_FUNCTION__);
|
||||
}
|
||||
|
68
AppKit/NSGridView.m
Normal file
68
AppKit/NSGridView.m
Normal 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
9
AppKit/NSHaptics.h
Normal file
@ -0,0 +1,9 @@
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
@interface NSHapticFeedbackManager : NSObject
|
||||
|
||||
@end
|
||||
|
||||
@interface NSAlignmentFeedbackFilter : NSObject
|
||||
|
||||
@end
|
29
AppKit/NSHaptics.m
Normal file
29
AppKit/NSHaptics.m
Normal 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
|
153
AppKit/NSImage.m
153
AppKit/NSImage.m
@ -103,15 +103,162 @@ NSImageName const NSImageNameUserGroup = @"NSUserGroup";
|
||||
NSImageName const NSImageNameUserGuest = @"NSUserGuest";
|
||||
NSImageName const NSImageNameGoBackTemplate = @"NSGoBackTemplate";
|
||||
NSImageName const NSImageNameGoForwardTemplate = @"NSGoForwardTemplate";
|
||||
|
||||
NSImageHintKey const NSImageHintInterpolation = @"NSImageHintInterpolation";
|
||||
NSImageHintKey const NSImageHintCTM = @"NSImageHintCTM";
|
||||
|
||||
NSImageName const NSImageNameTouchBarDeleteTemplate =
|
||||
@"NSTouchBarDeleteTemplate";
|
||||
NSImageName const NSImageNameTouchBarPauseTemplate = @"NSTouchBarPauseTemplate";
|
||||
NSImageName const NSImageNameTouchBarPlayTemplate = @"NSTouchBarPlayTemplate";
|
||||
NSImageName const NSImageNameTouchBarRecordStopTemplate =
|
||||
@"NSTouchBarRecordStopTemplate";
|
||||
|
||||
NSImageHintKey const NSImageHintInterpolation = @"NSImageHintInterpolation";
|
||||
NSImageHintKey const NSImageHintCTM = @"NSImageHintCTM";
|
||||
NSImageName const NSImageNameTouchBarAddDetailTemplate =
|
||||
@"NSImageNameTouchBarAddDetailTemplate";
|
||||
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
|
||||
// 10.4 does something like that - probably for more than just getting the
|
||||
|
@ -72,7 +72,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
}
|
||||
_cellClass = [NSCell class];
|
||||
}
|
||||
_prototype = [[keyed decodeObjectForKey: @"NSProtoCell"] retain];
|
||||
_protoCell = [[keyed decodeObjectForKey: @"NSProtoCell"] retain];
|
||||
_cells = [[NSMutableArray alloc]
|
||||
initWithArray: [keyed decodeObjectForKey: @"NSCells"]];
|
||||
id selectedCell = [keyed decodeObjectForKey: @"NSSelectedCell"];
|
||||
@ -102,7 +102,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
_keyCellIndex = -1;
|
||||
_cellSize = NSMakeSize(frame.size.width, 20);
|
||||
_intercellSpacing = NSMakeSize(0, 0);
|
||||
_prototype = nil;
|
||||
_protoCell = nil;
|
||||
_cellClass = [NSCell class];
|
||||
_mode = NSListModeMatrix;
|
||||
_tabKeyTraversesCells = YES;
|
||||
@ -121,11 +121,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
[self initWithFrame: frame];
|
||||
|
||||
_mode = mode;
|
||||
_prototype = [prototype copy];
|
||||
_protoCell = [prototype copy];
|
||||
_numberOfRows = rows;
|
||||
_numberOfColumns = columns;
|
||||
for (i = 0; i < rows * columns; i++)
|
||||
[_cells addObject: [[_prototype copy] autorelease]];
|
||||
[_cells addObject: [[_protoCell copy] autorelease]];
|
||||
|
||||
return self;
|
||||
}
|
||||
@ -155,7 +155,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
[_backgroundColor release];
|
||||
[_cellBackgroundColor release];
|
||||
[_cells release];
|
||||
[_prototype release];
|
||||
[_protoCell release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
@ -262,7 +262,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
}
|
||||
|
||||
- prototype {
|
||||
return _prototype;
|
||||
return _protoCell;
|
||||
}
|
||||
|
||||
- (NSArray *) cells {
|
||||
@ -494,8 +494,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
- (void) setPrototype: (NSCell *) cell {
|
||||
cell = [cell retain];
|
||||
[_prototype release];
|
||||
_prototype = cell;
|
||||
[_protoCell release];
|
||||
_protoCell = cell;
|
||||
}
|
||||
|
||||
- (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 *result = [[_prototype copy] autorelease];
|
||||
NSCell *result = [[_protoCell copy] autorelease];
|
||||
|
||||
if (result == nil)
|
||||
result = [[[_cellClass alloc] init] autorelease];
|
||||
|
@ -28,6 +28,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
const NSNotificationName NSMenuDidBeginTrackingNotification = @"NSMenuDidBeginTrackingNotification";
|
||||
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
|
||||
|
||||
|
@ -23,6 +23,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
#import <AppKit/NSMenu.h>
|
||||
#import <AppKit/NSMenuItem.h>
|
||||
#import <Foundation/NSKeyedArchiver.h>
|
||||
#import <AppKit/NSButtonCell.h>
|
||||
|
||||
@interface NSMenuItemCell : NSButtonCell
|
||||
@end
|
||||
|
||||
@implementation NSMenuItem
|
||||
|
||||
@ -398,3 +402,17 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
}
|
||||
|
||||
@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
|
||||
|
@ -34,6 +34,13 @@ NSString *const NSScrollViewWillStartLiveScrollNotification =
|
||||
@"NSScrollViewWillStartLiveScrollNotification";
|
||||
NSString *const NSScrollViewDidLiveScrollNotification =
|
||||
@"NSScrollViewDidLiveScrollNotification";
|
||||
NSString *const NSScrollViewWillStartLiveMagnifyNotification =
|
||||
@"NSScrollViewWillStartLiveMagnifyNotification";
|
||||
NSString *const NSScrollViewDidEndLiveMagnifyNotification =
|
||||
@"NSScrollViewDidEndLiveMagnifyNotification";
|
||||
|
||||
NSString *const NSPreferredScrollerStyleDidChangeNotification =
|
||||
@"NSPreferredScrollerStyleDidChangeNotification";
|
||||
|
||||
@implementation NSScrollView
|
||||
|
||||
|
@ -19,6 +19,9 @@
|
||||
|
||||
#import <AppKit/NSStoryboard.h>
|
||||
|
||||
@interface NSStoryboardControllerPlaceholder : NSObject
|
||||
@end
|
||||
|
||||
@implementation NSStoryboard
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
@ -32,3 +35,17 @@
|
||||
}
|
||||
|
||||
@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
18
AppKit/NSSwitch.m
Normal 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
|
@ -29,6 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
#import <AppKit/NSWindow.h>
|
||||
#import <Foundation/NSKeyedArchiver.h>
|
||||
|
||||
id _NSTabViewFloatingCell = nil;
|
||||
|
||||
@interface NSTabViewItem (NSTabViewItem_private)
|
||||
- (void) setTabView: (NSTabView *) tabView;
|
||||
- (void) setTabState: (NSTabState) tabState;
|
||||
|
15
AppKit/NSTextFinder.m
Normal file
15
AppKit/NSTextFinder.m
Normal 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
|
@ -34,6 +34,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
// Those occurences are marked with "Should...".
|
||||
#define TEXTFIELD_MARGIN 3.0
|
||||
|
||||
// not sure where to put this
|
||||
NSString *const NSToolTipHelpKey = @"NSToolTipHelp";
|
||||
|
||||
@implementation NSToolTipWindow
|
||||
|
||||
+ (NSToolTipWindow *) sharedToolTipWindow {
|
||||
|
@ -34,6 +34,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
#import <AppKit/NSToolbarView.h>
|
||||
#import <AppKit/NSWindow.h>
|
||||
|
||||
NSString *const _NSToolbarItemDragType = @"NSToolbarItemDragType";
|
||||
NSString *const _NSToolbarItemIdentifierPboardType = @"NSToolbarItemIdentifierPboardType";
|
||||
|
||||
@interface NSToolbar (Private)
|
||||
- (NSArray *) _itemsWithIdentifiers: (NSArray *) identifiers;
|
||||
- (NSArray *) _allowedToolbarItems;
|
||||
|
@ -84,6 +84,8 @@ const NSNotificationName NSWindowAnimatingNotification =
|
||||
const NSNotificationName NSWindowDidAnimateNotification =
|
||||
@"NSWindowDidAnimateNotification";
|
||||
|
||||
const NSNotificationName NSWindowDidChangeBackingPropertiesNotification =
|
||||
@"NSWindowDidChangeBackingPropertiesNotification";
|
||||
const NSNotificationName NSWindowDidChangeOcclusionStateNotification =
|
||||
@"NSWindowDidChangeOcclusionStateNotification";
|
||||
const NSNotificationName NSWindowDidChangeScreenNotification =
|
||||
|
@ -88,6 +88,8 @@ typedef enum {
|
||||
NSFont *_keyEquivalentFont;
|
||||
NSColor *_backgroundColor;
|
||||
float _periodicDelay, _periodicInterval;
|
||||
NSImage *_alternateImageOrKeyEquivalentFont;
|
||||
NSUInteger _bcFlags;
|
||||
}
|
||||
|
||||
- (BOOL) isTransparent;
|
||||
|
@ -111,6 +111,7 @@ enum {
|
||||
NSFocusRingType _focusRingType;
|
||||
NSLineBreakMode _lineBreakMode;
|
||||
NSBackgroundStyle _backgroundStyle;
|
||||
NSUInteger _cFlags; // required for Xcode
|
||||
|
||||
BOOL _isEnabled;
|
||||
BOOL _isEditable;
|
||||
|
@ -42,7 +42,7 @@ typedef enum {
|
||||
NSInteger _keyCellIndex;
|
||||
NSSize _cellSize;
|
||||
NSSize _intercellSpacing;
|
||||
id _prototype;
|
||||
id _protoCell;
|
||||
Class _cellClass;
|
||||
NSMatrixMode _mode;
|
||||
BOOL _selectionByRect;
|
||||
|
@ -7,3 +7,7 @@
|
||||
@protocol NSTextFinderClient <NSObject>
|
||||
|
||||
@end
|
||||
|
||||
@interface NSTextFinder : NSObject
|
||||
|
||||
@end
|
||||
|
18
AppKit/nib.subproj/NSIBHelpConnector.m
Normal file
18
AppKit/nib.subproj/NSIBHelpConnector.m
Normal 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
|
@ -32,6 +32,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
NSString *const NSNibOwner = @"NSOwner";
|
||||
NSString *const NSNibTopLevelObjects = @"NSNibTopLevelObjects";
|
||||
|
||||
// IB = Interface Builder; i'm guessing this subproject is a good place for it
|
||||
NSString *const IBCocoaFramework = @"Cocoa";
|
||||
|
||||
@implementation NSNib
|
||||
|
||||
- initWithCoder: (NSCoder *) coder {
|
||||
|
@ -1,5 +1,32 @@
|
||||
#import "NSNibAXRelationshipConnector.h"
|
||||
|
||||
@interface NSNibAXAttributeConnector : NSObject
|
||||
@end
|
||||
|
||||
@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
|
||||
|
18
AppKit/nib.subproj/NSNibAuxiliaryActionConnector.m
Normal file
18
AppKit/nib.subproj/NSNibAuxiliaryActionConnector.m
Normal 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
|
18
AppKit/nib.subproj/NSNibExternalObjectPlaceholder.m
Normal file
18
AppKit/nib.subproj/NSNibExternalObjectPlaceholder.m
Normal 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
|
@ -23,17 +23,20 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
@class NSView;
|
||||
|
||||
@interface NSWindowTemplate : NSObject {
|
||||
// the ivars without a `_` prefix are like that because Xcode
|
||||
// requires them to be named like that.
|
||||
|
||||
NSSize _maxSize;
|
||||
NSSize _minSize;
|
||||
NSRect _screenRect;
|
||||
NSRect screenRect;
|
||||
id _viewClass;
|
||||
unsigned _wtFlags;
|
||||
int _windowBacking;
|
||||
NSString *_windowClass;
|
||||
NSRect _windowRect;
|
||||
NSRect windowRect;
|
||||
int _windowStyleMask;
|
||||
NSString *_windowTitle;
|
||||
NSView *_windowView;
|
||||
NSView *windowView;
|
||||
NSString *_windowAutosave;
|
||||
}
|
||||
|
||||
|
@ -35,25 +35,25 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
_maxSize = [keyed decodeSizeForKey: @"NSMaxSize"];
|
||||
_minSize = [keyed decodeSizeForKey: @"NSMinSize"];
|
||||
_screenRect =
|
||||
screenRect =
|
||||
[keyed decodeRectForKey: @"NSScreenRect"]; // screen created on
|
||||
_viewClass = [[keyed decodeObjectForKey: @"NSViewClass"] retain];
|
||||
_wtFlags = [keyed decodeIntForKey: @"NSWTFlags"];
|
||||
_windowBacking = [keyed decodeIntForKey: @"NSWindowBacking"];
|
||||
_windowClass = [[keyed decodeObjectForKey: @"NSWindowClass"] retain];
|
||||
_windowRect = [keyed decodeRectForKey: @"NSWindowRect"];
|
||||
windowRect = [keyed decodeRectForKey: @"NSWindowRect"];
|
||||
_windowStyleMask = [keyed decodeIntForKey: @"NSWindowStyleMask"];
|
||||
_windowTitle = [[keyed decodeObjectForKey: @"NSWindowTitle"] retain];
|
||||
_windowView = [[keyed decodeObjectForKey: @"NSWindowView"] retain];
|
||||
windowView = [[keyed decodeObjectForKey: @"NSWindowView"] retain];
|
||||
_windowAutosave =
|
||||
[[keyed decodeObjectForKey: @"NSFrameAutosaveName"] retain];
|
||||
|
||||
if ([NSScreen mainScreen])
|
||||
_windowRect.origin.y -= _screenRect.size.height -
|
||||
windowRect.origin.y -= screenRect.size.height -
|
||||
[[NSScreen mainScreen] frame].size.height;
|
||||
if ([NSClassFromString(_windowClass)
|
||||
hasMainMenuForStyleMask: _windowStyleMask])
|
||||
_windowRect.origin.y -= [NSMainMenuView
|
||||
windowRect.origin.y -= [NSMainMenuView
|
||||
menuHeight]; // compensation for the additional menu bar
|
||||
} else {
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
@ -67,7 +67,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
[_viewClass release];
|
||||
[_windowClass release];
|
||||
[_windowTitle release];
|
||||
[_windowView release];
|
||||
[windowView release];
|
||||
[_windowAutosave release];
|
||||
[super dealloc];
|
||||
}
|
||||
@ -85,7 +85,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
class = [NSWindow class];
|
||||
}
|
||||
defer = (_wtFlags & 0x20000000) ? YES : NO;
|
||||
result = [[class alloc] initWithContentRect: _windowRect
|
||||
result = [[class alloc] initWithContentRect: windowRect
|
||||
styleMask: _windowStyleMask
|
||||
backing: _windowBacking
|
||||
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 setTitle: _windowTitle];
|
||||
|
||||
[result setContentView: _windowView];
|
||||
[_windowView setAutoresizesSubviews: YES];
|
||||
[_windowView setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable];
|
||||
[result setContentView: windowView];
|
||||
[windowView setAutoresizesSubviews: YES];
|
||||
[windowView setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable];
|
||||
|
||||
if ([_viewClass isKindOfClass: [NSToolbar class]]) {
|
||||
[result setToolbar: _viewClass];
|
||||
|
18
AppKit/nib.subproj/UINibCoding.m
Normal file
18
AppKit/nib.subproj/UINibCoding.m
Normal 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
|
@ -20,6 +20,9 @@
|
||||
#import <QuartzCore/CAFilter.h>
|
||||
|
||||
NSString *const kCAFilterColorMatrix = @"colorMatrix";
|
||||
NSString *const kCAFilterColorBrightness = @"colorBrightness";
|
||||
NSString *const kCAFilterColorHueRotate = @"colorHueRotate";
|
||||
NSString *const kCAFilterMultiplyBlendMode = @"multiplyBlendMode";
|
||||
|
||||
@implementation CAFilter
|
||||
|
||||
|
18
QuartzCore/CATransformLayer.m
Normal file
18
QuartzCore/CATransformLayer.m
Normal 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
|
@ -61,6 +61,7 @@ set(QuartzCore_sources
|
||||
CAMetalLayer.mm
|
||||
CAMetalDrawable.mm
|
||||
CASpringAnimation.m
|
||||
CATransformLayer.m
|
||||
)
|
||||
|
||||
#set_source_files_properties(${QuartzCore_sources} LANGUAGE C)
|
||||
|
Loading…
Reference in New Issue
Block a user