Stub a couple things and define some constants

This commit is contained in:
Ariel Abreu 2021-02-17 13:22:59 -05:00
parent f585c80808
commit a2fe3674f3
No known key found for this signature in database
GPG Key ID: BB20848279B910AC
11 changed files with 38 additions and 0 deletions

View File

@ -417,6 +417,9 @@ set(AppKit_sources
NSMovie.m
NSMovieView.m
NSTextInput.m
NSInputManager.m
)
set_source_files_properties(${AppKit_sources} LANGUAGE C)

View File

@ -34,6 +34,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
static int NSColor_ignoresAlpha = -1;
NSString *const NSSystemColorsDidChangeNotification = @"NSSystemColorsDidChangeNotification";
@interface NSColor (private)
- (NSString *) catalogName;
- (NSString *) colorName;

5
AppKit/NSInputManager.m Normal file
View File

@ -0,0 +1,5 @@
#import <AppKit/NSInputManager.h>
@implementation NSInputManager
@end

View File

@ -48,6 +48,7 @@ const NSPasteboardType NSTabularTextPboardType = @"NSTabularTextPboardType";
const NSPasteboardType NSTIFFPboardType = @"NSTIFFPboardType";
const NSPasteboardType NSURLPboardType = @"NSURLPboardType";
const NSPasteboardType NSHTMLPboardType = @"Apple HTML pasteboard type";
const NSPasteboardType NSVCardPboardType = @"NSVCardPboardType";
const NSPasteboardType NSFilesPromisePboardType =
@"Apple files promise pasteboard type";

View File

@ -57,6 +57,8 @@ NSString *const NSPrintHorizontallyCentered = @"NSPrintHorizontallyCentered";
NSString *const NSPrintVerticallyCentered = @"NSPrintVerticallyCentered";
NSString *const NSPrintHeaderAndFooter = @"NSPrintHeaderAndFooter";
NSString *const NSPrintMustCollate = @"NSPrintMustCollate";
NSString *const NSPrintSelectionOnly = @"NSPrintSelectionOnly";
const NSPrintingPaginationMode NSFitPagination = NSPrintingPaginationModeFit;
const NSPrintingPaginationMode NSAutoPagination =

7
AppKit/NSTextInput.m Normal file
View File

@ -0,0 +1,7 @@
#include <AppKit/NSTextInput.h>
NSString *const NSTextInputContextKeyboardSelectionDidChangeNotification = @"NSTextInputContextKeyboardSelectionDidChangeNotification";
@implementation NSTextInputContext
@end

View File

@ -21,6 +21,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#import <ApplicationServices/ApplicationServices.h>
#import <Foundation/Foundation.h>
APPKIT_EXPORT NSString *const NSSystemColorsDidChangeNotification;
@class NSImage;
@class NSPasteboard;

View File

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

View File

@ -53,6 +53,7 @@ APPKIT_EXPORT const NSPasteboardType NSTabularTextPboardType;
APPKIT_EXPORT const NSPasteboardType NSTIFFPboardType;
APPKIT_EXPORT const NSPasteboardType NSURLPboardType;
APPKIT_EXPORT const NSPasteboardType NSHTMLPboardType;
APPKIT_EXPORT const NSPasteboardType NSVCardPboardType;
APPKIT_EXPORT const NSPasteboardType NSFilesPromisePboardType;
APPKIT_EXPORT const NSPasteboardType NSPasteboardNameDrag;

View File

@ -71,6 +71,8 @@ APPKIT_EXPORT NSString *const NSPrintHorizontallyCentered;
APPKIT_EXPORT NSString *const NSPrintVerticallyCentered;
APPKIT_EXPORT NSString *const NSPrintHeaderAndFooter;
APPKIT_EXPORT NSString *const NSPrintMustCollate;
APPKIT_EXPORT NSString *const NSPrintSelectionOnly;
@interface NSPrintInfo : NSObject <NSCopying> {
NSMutableDictionary *_attributes;

View File

@ -18,6 +18,14 @@ 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 <Foundation/NSGeometry.h>
#import <Foundation/NSRange.h>
#import <Foundation/NSObject.h>
#import <AppKit/AppKitExport.h>
APPKIT_EXPORT NSString *const NSTextInputContextKeyboardSelectionDidChangeNotification;
@interface NSTextInputContext : NSObject
@end
@protocol NSTextInput
- (NSRect) firstRectForCharacterRange: (NSRange) range;