diff --git a/AppKit/NSAccessibility.m b/AppKit/NSAccessibility.m index da252763..5616911b 100644 --- a/AppKit/NSAccessibility.m +++ b/AppKit/NSAccessibility.m @@ -1,5 +1,6 @@ #import #import +#import NSString *const NSAccessibilityChildrenAttribute = @"NSAccessibilityChildrenAttribute"; @@ -567,6 +568,12 @@ NSString *const NSAccessibilityLayoutChangedNotification = @"AXLayoutChanged"; NSString *const NSAccessibilityUIElementsKey = @"AXUIElementsKey"; NSString *const NSAccessibilityToggleSubrole = @"NSAccessibilityToggleSubrole"; +NSString *const NSAccessibilityFullScreenButtonSubrole = @"AXFullScreenButton"; + +NSString *const NSAccessibilityAnnouncementKey = @"AXAnnouncementKey"; +NSString *const NSAccessibilityAnnouncementRequestedNotification = @"AXAnnouncementRequested"; +NSString *const NSAccessibilityPriorityKey = @"AXPriorityKey"; + void NSAccessibilityPostNotification(id element, NSString *notification) { } @@ -577,3 +584,22 @@ NSString *NSAccessibilityRoleDescription(NSString *role, NSString *subrole) { id NSAccessibilityUnignoredAncestor(id element) { return nil; } + +id NSAccessibilityUnignoredDescendant(id element) { + return nil; +} + +NSArray *NSAccessibilityUnignoredChildren(NSArray *originalChildren) { + return nil; +} + +NSArray *NSAccessibilityUnignoredChildrenForOnlyChild(id originalChild) { + return nil; +} + +void NSAccessibilityPostNotificationWithUserInfo(id element, + NSAccessibilityNotificationName notification, + NSDictionary *userInfo) +{ + printf("STUB %s\n", __PRETTY_FUNCTION__); +} diff --git a/AppKit/NSImage.m b/AppKit/NSImage.m index e8fb8407..b1e0f9e5 100644 --- a/AppKit/NSImage.m +++ b/AppKit/NSImage.m @@ -111,6 +111,7 @@ NSImageName const NSImageNameTouchBarRecordStopTemplate = @"NSTouchBarRecordStopTemplate"; NSImageHintKey const NSImageHintInterpolation = @"NSImageHintInterpolation"; +NSImageHintKey const NSImageHintCTM = @"NSImageHintCTM"; // 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 diff --git a/AppKit/NSMenu.subproj/NSMenu.m b/AppKit/NSMenu.subproj/NSMenu.m index e79625ed..0ef891cc 100644 --- a/AppKit/NSMenu.subproj/NSMenu.m +++ b/AppKit/NSMenu.subproj/NSMenu.m @@ -26,8 +26,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #import #import -const NSNotificationName NSMenuDidEndTrackingNotification = - @"NSMenuDidEndTrackingNotification"; +const NSNotificationName NSMenuDidBeginTrackingNotification = @"NSMenuDidBeginTrackingNotification"; +const NSNotificationName NSMenuDidEndTrackingNotification = @"NSMenuDidEndTrackingNotification"; @implementation NSMenu diff --git a/AppKit/NSPasteboard.m b/AppKit/NSPasteboard.m index 7a4bf9d9..ae0cc8af 100644 --- a/AppKit/NSPasteboard.m +++ b/AppKit/NSPasteboard.m @@ -32,6 +32,7 @@ const NSPasteboardType NSPasteboardTypeTabularText = @"NSTabularTextPboardType"; const NSPasteboardType NSPasteboardTypeFont = @"NSFontPboardType"; const NSPasteboardType NSPasteboardTypeRuler = @"NSRulerPboardType"; const NSPasteboardType NSPasteboardTypeColor = @"NSColorPboardType"; +const NSPasteboardType NSPasteboardTypeFileURL = @"public.file-url"; const NSPasteboardType NSColorPboardType = @"NSColorPboardType"; const NSPasteboardType NSFileContentsPboardType = @"NSFileContentsPboardType"; @@ -179,4 +180,12 @@ const NSPasteboardReadingOptionKey return NO; } +- (BOOL) canReadItemWithDataConformingToTypes:(NSArray *) types { + return NO; +} + +- (nullable NSArray *)readObjectsForClasses:(NSArray *)classArray options:(nullable NSDictionary *) options { + return nil; +} + @end diff --git a/AppKit/NSWorkspace.m b/AppKit/NSWorkspace.m index 11c69e1f..ff8a491e 100644 --- a/AppKit/NSWorkspace.m +++ b/AppKit/NSWorkspace.m @@ -62,6 +62,10 @@ const NSNotificationName NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification = @"NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification"; +NSNotificationName NSWorkspaceDidMountNotification = @"NSWorkspaceDidMountNotification"; +NSNotificationName NSWorkspaceDidUnmountNotification = @"NSWorkspaceDidUnmountNotification"; +NSNotificationName NSWorkspaceWillUnmountNotification = @"NSWorkspaceWillUnmountNotification"; + @implementation NSWorkspace + (NSWorkspace *) sharedWorkspace { @@ -312,3 +316,10 @@ const NSNotificationName } @end + +@implementation NSWorkspaceOpenConfiguration ++ (instancetype)configuration { + return self; +} + +@end \ No newline at end of file diff --git a/AppKit/include/AppKit/NSAccessibility.h b/AppKit/include/AppKit/NSAccessibility.h index 80813b8f..e441489d 100644 --- a/AppKit/include/AppKit/NSAccessibility.h +++ b/AppKit/include/AppKit/NSAccessibility.h @@ -11,6 +11,9 @@ APPKIT_EXPORT NSString *const NSAccessibilityRoleDescription(NSString *role, NSString *subrole); APPKIT_EXPORT id NSAccessibilityUnignoredAncestor(id element); +APPKIT_EXPORT id NSAccessibilityUnignoredDescendant(id element); +APPKIT_EXPORT NSArray *NSAccessibilityUnignoredChildren(NSArray *originalChildren); +APPKIT_EXPORT NSArray *NSAccessibilityUnignoredChildrenForOnlyChild(id originalChild); @interface NSObject (NSAccessibility) - (NSArray *) accessibilityAttributeNames; diff --git a/AppKit/include/AppKit/NSAccessibilityConstants.h b/AppKit/include/AppKit/NSAccessibilityConstants.h index 623bbc12..f3ce4c50 100644 --- a/AppKit/include/AppKit/NSAccessibilityConstants.h +++ b/AppKit/include/AppKit/NSAccessibilityConstants.h @@ -98,7 +98,6 @@ APPKIT_EXPORT NSString *const NSAccessibilityWindowsAttribute; APPKIT_EXPORT NSString *const NSAccessibilityColumnCountAttribute; APPKIT_EXPORT NSString *const NSAccessibilityOrderedByRowAttribute; APPKIT_EXPORT NSString *const NSAccessibilityRowCountAttribute; - APPKIT_EXPORT NSString *const NSAccessibilityColumnHeaderUIElementsAttribute; APPKIT_EXPORT NSString *const NSAccessibilityColumnsAttribute; APPKIT_EXPORT NSString *const NSAccessibilityRowHeaderUIElementsAttribute; @@ -346,3 +345,17 @@ APPKIT_EXPORT NSString *const NSAccessibilityLayoutChangedNotification; APPKIT_EXPORT NSString *const NSAccessibilityUIElementsKey; APPKIT_EXPORT NSString *const NSAccessibilityToggleSubrole; + +APPKIT_EXPORT NSString *const NSAccessibilityFullScreenButtonSubrole; + +typedef NSString * NSAccessibilityNotificationName; +typedef NSString * NSAccessibilityNotificationUserInfoKey; + +APPKIT_EXPORT NSAccessibilityNotificationUserInfoKey const NSAccessibilityAnnouncementKey; +APPKIT_EXPORT NSAccessibilityNotificationName const NSAccessibilityAnnouncementRequestedNotification; +APPKIT_EXPORT NSAccessibilityNotificationUserInfoKey const NSAccessibilityPriorityKey; + +APPKIT_EXPORT void NSAccessibilityPostNotificationWithUserInfo(id element, + NSAccessibilityNotificationName notification, + NSDictionary *userInfo); + diff --git a/AppKit/include/AppKit/NSImage.h b/AppKit/include/AppKit/NSImage.h index 9dfbad6b..dcc683c2 100644 --- a/AppKit/include/AppKit/NSImage.h +++ b/AppKit/include/AppKit/NSImage.h @@ -231,3 +231,4 @@ APPKIT_EXPORT NSImageName const NSImageNameTouchBarPlayTemplate; APPKIT_EXPORT NSImageName const NSImageNameTouchBarRecordStopTemplate; APPKIT_EXPORT NSImageHintKey const NSImageHintInterpolation; +APPKIT_EXPORT NSImageHintKey const NSImageHintCTM; diff --git a/AppKit/include/AppKit/NSMenu.h b/AppKit/include/AppKit/NSMenu.h index 4366b489..05ec5bb2 100644 --- a/AppKit/include/AppKit/NSMenu.h +++ b/AppKit/include/AppKit/NSMenu.h @@ -24,6 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ @protocol NSMenuDelegate; +APPKIT_EXPORT const NSNotificationName NSMenuDidBeginTrackingNotification; APPKIT_EXPORT const NSNotificationName NSMenuDidEndTrackingNotification; @interface NSMenu : NSObject { diff --git a/AppKit/include/AppKit/NSPasteboard.h b/AppKit/include/AppKit/NSPasteboard.h index ce4fa435..9cbf7ca1 100644 --- a/AppKit/include/AppKit/NSPasteboard.h +++ b/AppKit/include/AppKit/NSPasteboard.h @@ -36,6 +36,7 @@ APPKIT_EXPORT const NSPasteboardType NSPasteboardTypeTabularText; APPKIT_EXPORT const NSPasteboardType NSPasteboardTypeFont; APPKIT_EXPORT const NSPasteboardType NSPasteboardTypeRuler; APPKIT_EXPORT const NSPasteboardType NSPasteboardTypeColor; +APPKIT_EXPORT const NSPasteboardType NSPasteboardTypeFileURL; // Old Pasteboard Types APPKIT_EXPORT const NSPasteboardType NSColorPboardType; @@ -108,6 +109,8 @@ APPKIT_EXPORT const NSPasteboardReadingOptionKey - (BOOL) setData: (NSData *) data forType: (NSPasteboardType) type; - (BOOL) setString: (NSString *) string forType: (NSPasteboardType) type; - (BOOL) setPropertyList: plist forType: (NSPasteboardType) type; +- (BOOL) canReadItemWithDataConformingToTypes:(NSArray *) types; +- (NSArray *)readObjectsForClasses:(NSArray *)classArray options:(NSDictionary *) options; @end diff --git a/AppKit/include/AppKit/NSWorkspace.h b/AppKit/include/AppKit/NSWorkspace.h index f2e12c9f..daa49779 100644 --- a/AppKit/include/AppKit/NSWorkspace.h +++ b/AppKit/include/AppKit/NSWorkspace.h @@ -42,7 +42,10 @@ APPKIT_EXPORT const NSNotificationName NSWorkspaceScreensDidSleepNotification; APPKIT_EXPORT const NSNotificationName NSWorkspaceScreensDidWakeNotification; APPKIT_EXPORT const NSNotificationName NSWorkspaceWillSleepNotification; APPKIT_EXPORT const NSNotificationName NSWorkspaceSessionDidBecomeActiveNotification; -APPKIT_EXPORT const NSNotificationName NSWorkspaceSessionDidResignActiveNotification; + +APPKIT_EXPORT NSNotificationName NSWorkspaceDidMountNotification; +APPKIT_EXPORT NSNotificationName NSWorkspaceDidUnmountNotification; +APPKIT_EXPORT NSNotificationName NSWorkspaceWillUnmountNotification; typedef NSUInteger NSWorkspaceIconCreationOptions; @@ -144,3 +147,22 @@ typedef NSUInteger NSWorkspaceIconCreationOptions; - (BOOL) isFileHiddenAtPath: (NSString *) path; @end + +@interface NSWorkspaceOpenConfiguration : NSObject ++ (instancetype)configuration; + +@property BOOL requiresUniversalLinks; +@property (getter=isForPrinting) BOOL forPrinting; +@property BOOL activates; +@property BOOL addsToRecentItems; +@property BOOL allowsRunningApplicationSubstitution; +@property BOOL createsNewApplicationInstance; +@property BOOL hides; +@property BOOL hidesOthers; +@property BOOL promptsUserIfNeeded; +@property (strong) NSAppleEventDescriptor *appleEvent; +@property (copy) NSArray *arguments; +@property (copy) NSDictionary *environment; +@property cpu_type_t architecture; + +@end