Skip to content

fix: add build.zig.zon #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3,345 changes: 2,668 additions & 677 deletions Frameworks/AppKit.framework/Versions/C/AppKit.tbd

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion Frameworks/AppKit.framework/Versions/C/Headers/AppKit.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
AppKit.h
Application Kit
Copyright (c) 1994-2023, Apple Inc.
Copyright (c) 1994-2024, Apple Inc.
All rights reserved.

This file is included by all AppKit application source files for easy building. Using this file is preferred over importing individual files because it will use a precompiled version.
Expand Down Expand Up @@ -34,6 +34,7 @@
#import <AppKit/NSColorSampler.h>
#import <AppKit/NSControl.h>
#import <AppKit/NSDiffableDataSource.h>
#import <AppKit/NSDirection.h>
#import <AppKit/NSDockTile.h>
#import <AppKit/NSFont.h>
#import <AppKit/NSFontAssetRequest.h>
Expand Down Expand Up @@ -126,6 +127,7 @@
#import <AppKit/NSScroller.h>
#import <AppKit/NSSegmentedControl.h>
#import <AppKit/NSSegmentedCell.h>
#import <AppKit/NSSharingCollaborationModeRestriction.h>
#import <AppKit/NSSharingService.h>
#import <AppKit/NSSlider.h>
#import <AppKit/NSSliderCell.h>
Expand Down Expand Up @@ -276,3 +278,8 @@
#import <AppKit/NSTextLineFragment.h>
#import <AppKit/NSTextViewportLayoutController.h>
#import <AppKit/NSTextAttachmentCell.h>
#import <AppKit/NSAdaptiveImageGlyph.h>

#import <AppKit/NSWritingToolsCoordinatorAnimationParameters.h>
#import <AppKit/NSWritingToolsCoordinatorContext.h>
#import <AppKit/NSWritingToolsCoordinator.h>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
AppKitDefines.h
Application Kit
Copyright (c) 1995-2023, Apple Inc.
Copyright (c) 1995-2024, Apple Inc.
All rights reserved.
*/
#ifndef _APPKITDEFINES_H
Expand Down
10 changes: 9 additions & 1 deletion Frameworks/AppKit.framework/Versions/C/Headers/AppKitErrors.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
AppKitErrors.h
Application Kit
Copyright (c) 2004-2023, Apple Inc.
Copyright (c) 2004-2024, Apple Inc.
All rights reserved.
*/

Expand Down Expand Up @@ -56,6 +56,14 @@ enum {
NSWindowSharingRequestUnspecifiedError API_AVAILABLE(macos(13.3)) = 67458,
NSWindowSharingErrorMinimum API_AVAILABLE(macos(13.3)) = 67456,
NSWindowSharingErrorMaximum API_AVAILABLE(macos(13.3)) = 67466,

// NSPasteboard
NSPasteboardMiscellaneousError API_AVAILABLE(macos(15.4)) = 67584,
NSPasteboardCommunicationError API_AVAILABLE(macos(15.4)) = 67585,
NSPasteboardInvalidArgumentError API_AVAILABLE(macos(15.4)) = 67586,
NSPasteboardContentsNotAvailableError API_AVAILABLE(macos(15.4)) = 67587,
NSPasteboardErrorMinimum API_AVAILABLE(macos(15.4)) = 67584,
NSPasteboardErrorMaximum API_AVAILABLE(macos(15.4)) = 67839,
};

API_UNAVAILABLE_END
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
NSATSTypesetter.h
Application Kit
Copyright (c) 2002-2023, Apple Inc.
Copyright (c) 2002-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAccessibility.h
Application Kit
Copyright (c) 2001-2023, Apple Inc.
Copyright (c) 2001-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAccessibilityColor.h
Application Kit
Copyright (c) 2020-2023, Apple Inc.
Copyright (c) 2020-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAccessibilityConstants.h
Application Kit
Copyright (c) 2001-2023, Apple Inc.
Copyright (c) 2001-2024, Apple Inc.
All rights reserved.
*/
#import <AppKit/AppKitDefines.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAccessibilityCustomAction.h
Application Kit
Copyright (c) 2017-2023, Apple Inc. All rights reserved.
Copyright (c) 2017-2024, Apple Inc. All rights reserved.
*/

#import <Foundation/Foundation.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAccessibilityCustomRotor.h
Application Kit
Copyright (c) 2016-2023, Apple Inc.
Copyright (c) 2016-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAccessibilityElement.h
Application Kit
Copyright (c) 2013-2023, Apple Inc.
Copyright (c) 2013-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAccessibilityProtocols.h
Application Kit
Copyright (c) 2013-2023, Apple Inc.
Copyright (c) 2013-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSActionCell.h
Application Kit
Copyright (c) 1994-2023, Apple Inc.
Copyright (c) 1994-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#if (defined(USE_APPKIT_PUBLIC_HEADERS) && USE_APPKIT_PUBLIC_HEADERS) || !__has_include(<UIFoundation/NSAdaptiveImageGlyph.h>)
#include <TargetConditionals.h>

#if !TARGET_OS_IPHONE
//
// NSAdaptiveImageGlyph.h
// Text Kit
//
// Copyright (c) 2024, Apple Inc. All rights reserved.
//

#import <Foundation/NSAttributedString.h>
#import <CoreText/CTRunDelegate.h>
#import <AppKit/AppKitDefines.h>

@protocol CTAdaptiveImageProviding;
@class UTType;

NS_HEADER_AUDIT_BEGIN(nullability, sendability)

// NSAdaptiveImageGlyph is a data model object representing an image containing multiple resolutions and representations conforming to the image format described by NSAdaptiveImageGlyph.contentType. It can be applied to a range of text with NSAttributedString.Key.adaptiveImageGlyph (NSAdaptiveImageGlyphAttributeName).

API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0), visionos(2.0)) NS_SWIFT_SENDABLE
@interface NSAdaptiveImageGlyph : NSObject <NSCopying, NSSecureCoding, CTAdaptiveImageProviding>

- (instancetype)initWithImageContent:(NSData *)imageContent NS_DESIGNATED_INITIALIZER; // Initialization: imageContent must conform to the image data format identified by contentType
- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
- (instancetype)init NS_UNAVAILABLE;

@property (readonly) NSData *imageContent;

// Unique identifier, derived from the underlying image data which can be used as a persistent / durable way to reference the content represented by this adaptive image glyph instance.
@property (readonly) NSString *contentIdentifier;

// Brief textual alternate representation of the represented contents, useful for non-graphical depiction of the image data or searching. Note that the value of this property is derived from the underlying image data.
@property (readonly, copy) NSString *contentDescription;

@property (class, readonly) UTType *contentType; // A UTType identifying the image data format
@end

@interface NSAttributedString (NSAttributedStringAdaptiveImageGlyphConveniences)
// A convenience method for creating an attributed string containing an NSAdaptiveImageGlyph with attributes using NSAttachmentCharacter as the base character.
+ (instancetype)attributedStringWithAdaptiveImageGlyph:(NSAdaptiveImageGlyph *)adaptiveImageGlyph attributes:(NSDictionary<NSAttributedStringKey, id> *)attributes API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0), visionos(2.0));
@end
NS_HEADER_AUDIT_END(nullability, sendability)
#endif // !TARGET_OS_IPHONE
#else
#import <UIFoundation/NSAdaptiveImageGlyph.h>
#endif
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAffineTransform.h
Application Kit
Copyright (c) 1997-2023, Apple Inc.
Copyright (c) 1997-2024, Apple Inc.
All rights reserved.
*/

Expand Down
2 changes: 1 addition & 1 deletion Frameworks/AppKit.framework/Versions/C/Headers/NSAlert.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAlert.h
Application Kit
Copyright (c) 1994-2023, Apple Inc.
Copyright (c) 1994-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAlignmentFeedbackFilter.h
Application Kit
Copyright (c) 2015-2023, Apple Inc.
Copyright (c) 2015-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAnimation.h
Application Kit
Copyright (c) 2004-2023, Apple Inc.
Copyright (c) 2004-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAnimationContext.h
Application Kit
Copyright (c) 2006-2023, Apple Inc.
Copyright (c) 2006-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAppearance.h
Application Kit
Copyright (c) 2011-2023, Apple Inc.
Copyright (c) 2011-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSAppleScriptExtensions.h
Application Kit
Copyright (c) 2002-2023, Apple Inc.
Copyright (c) 2002-2024, Apple Inc.
All rights reserved.
*/

Expand Down
17 changes: 9 additions & 8 deletions Frameworks/AppKit.framework/Versions/C/Headers/NSApplication.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSApplication.h
Application Kit
Copyright (c) 1994-2023, Apple Inc.
Copyright (c) 1994-2024, Apple Inc.
All rights reserved.
*/

Expand Down Expand Up @@ -209,7 +209,8 @@ APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR
- (void)deactivate;

/// Makes the receiver the active app.
- (void)activateIgnoringOtherApps:(BOOL)flag API_DEPRECATED("This method will be deprecated in a future release. Use NSApp.activate instead.", macos(10.0, API_TO_BE_DEPRECATED));
/// - Parameter ignoreOtherApps: If `NO`, the app is activated only if no other app is currently active. If `YES`, the app activates regardless.
- (void)activateIgnoringOtherApps:(BOOL)ignoreOtherApps API_DEPRECATED("This method will be deprecated in a future release. Use NSApp.activate instead.", macos(10.0, API_TO_BE_DEPRECATED));

/// Makes the receiver the active app, if possible.
///
Expand Down Expand Up @@ -344,7 +345,7 @@ typedef NS_ENUM(NSUInteger, NSApplicationDelegateReply) {

@interface NSApplication(NSEvent)
- (void)sendEvent:(NSEvent *)event;
- (void)postEvent:(NSEvent *)event atStart:(BOOL)flag;
- (void)postEvent:(NSEvent *)event atStart:(BOOL)atStart;
@property (nullable, readonly, strong) NSEvent *currentEvent;
- (nullable NSEvent *)nextEventMatchingMask:(NSEventMask)mask untilDate:(nullable NSDate *)expiration inMode:(NSRunLoopMode)mode dequeue:(BOOL)deqFlag;
- (void)discardEventsMatchingMask:(NSEventMask)mask beforeEvent:(nullable NSEvent *)lastEvent;
Expand All @@ -369,9 +370,9 @@ typedef NS_ENUM(NSUInteger, NSApplicationDelegateReply) {
@end

@interface NSApplication(NSFullKeyboardAccess)
/**
Use this method to get the status of Full Keyboard Access, as configured in the Keyboard preference pane. You may use this status to implement your own key loop or to implement in-control tabbing behavior similar to @c NSTableView. Because of the nature of the preference storage, you will not be notified of changes to the key if you attempt to observe it via key-value observing; however, calling this method is fairly inexpensive, so you should always call it when you need the underlying value instead of caching it.
*/
/// A Boolean value indicating whether keyboard navigation is enabled in System Settings > Keyboard.
/// - Note: The value of this property is `YES` if keyboard navigation is enabled or `NO` if it’s not. You might use this value to implement your own key loop or to implement in-control tabbing behavior similar to `NSTableView`. Because of the nature of the preference storage, you won’t be notified of changes to this property if you attempt to observe it through key-value observing; however, accessing this property is fairly inexpensive, so you can access it directly rather than caching it.
/// - Note: This property’s value isn’t necessarily reflective of the separate accessibility setting named “Full Keyboard Access” in System Settings > Accessibility > Keyboard.
@property (getter=isFullKeyboardAccessEnabled, readonly) BOOL fullKeyboardAccessEnabled API_AVAILABLE(macos(10.6));
@end

Expand Down Expand Up @@ -415,7 +416,7 @@ typedef NS_ENUM(NSUInteger, NSApplicationPrintReply) {
- (BOOL)application:(NSApplication *)sender printFile:(NSString *)filename NS_SWIFT_UI_ACTOR;
- (NSApplicationPrintReply)application:(NSApplication *)application printFiles:(NSArray<NSString *> *)fileNames withSettings:(NSDictionary<NSPrintInfoAttributeKey, id> *)printSettings showPrintPanels:(BOOL)showPrintPanels NS_SWIFT_UI_ACTOR;
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender NS_SWIFT_UI_ACTOR;
- (BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag NS_SWIFT_UI_ACTOR;
- (BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)hasVisibleWindows NS_SWIFT_UI_ACTOR;
- (nullable NSMenu *)applicationDockMenu:(NSApplication *)sender NS_SWIFT_UI_ACTOR;
- (NSError *)application:(NSApplication *)application willPresentError:(NSError *)error NS_SWIFT_UI_ACTOR;

Expand Down Expand Up @@ -700,7 +701,7 @@ enum {
- (void)endSheet:(NSWindow *)sheet API_DEPRECATED("Use -[NSWindow endSheet:] instead", macos(10.0,10.10));
- (void)endSheet:(NSWindow *)sheet returnCode:(NSInteger)returnCode API_DEPRECATED("Use -[NSWindow endSheet:returnCode:] instead", macos(10.0,10.10));

- (nullable NSWindow *)makeWindowsPerform:(SEL)selector inOrder:(BOOL)flag API_DEPRECATED("Use -enumerateWindowsWithOptions:usingBlock: instead", macos(10.0,10.14));
- (nullable NSWindow *)makeWindowsPerform:(SEL)selector inOrder:(BOOL)inOrder API_DEPRECATED("Use -enumerateWindowsWithOptions:usingBlock: instead", macos(10.0,10.14));

/**
This method is deprecated as of macOS 10.12. Beginning in OS X 10.11 it would always return nil. Prior to this it would return an undefined graphics context that was not generally suitable for drawing.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSApplicationScripting.h
AppKit Framework
Copyright (c) 1997-2023, Apple Inc.
Copyright (c) 1997-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
NSArrayController.h
Application Kit
Copyright (c) 2002-2023, Apple Inc.
Copyright (c) 2002-2024, Apple Inc.
All rights reserved.
*/

Expand Down
Loading