├── .clang-format ├── .gitignore ├── AppKit ├── CGEvent.h ├── CMakeLists.txt ├── CoreData_ │ ├── NSPersistentDocument.h │ ├── NSPersistentDocument.m │ ├── _NSManagedProxy.h │ └── _NSManagedProxy.m ├── Info.plist ├── MacWorkspace.h ├── MacWorkspace.m ├── NSATSTypesetter.m ├── NSAccessibility.m ├── NSAccessibilityCustomChooser.m ├── NSAccessibilityElement.m ├── NSActionCell.m ├── NSActionTemplate.ai ├── NSActionTemplate.pdf ├── NSAddTemplate.ai ├── NSAddTemplate.pdf ├── NSAdvanced.ai ├── NSAdvanced.pdf ├── NSAffineTransform.m ├── NSAlert.m ├── NSAlertPanel.h ├── NSAlertPanel.m ├── NSAlertPanelExclamation.tiff ├── NSAnimation │ ├── NSAnimation.m │ ├── NSAnimationContext.h │ ├── NSAnimationContext.m │ └── NSViewAnimation.m ├── NSAnimationContext.h ├── NSAppearance.m ├── NSApplication.m ├── NSAttributedString.m ├── NSBezierPath.m ├── NSBidiHelper.h ├── NSBinder.h ├── NSBitmapImageRep-Private.h ├── NSBitmapImageRep.m ├── NSBox.m ├── NSBrowser.m ├── NSBrowserCell.m ├── NSBrowserCellArrow.tiff ├── NSBrowserCellColorList.h ├── NSButton.m ├── NSButtonCell.m ├── NSButtonCell_disclosure_highlighted.tif ├── NSButtonCell_disclosure_normal.tif ├── NSButtonCell_disclosure_selected.tif ├── NSButtonImageSource.h ├── NSCIImageRep.m ├── NSCachedImageRep.m ├── NSCachingBinder.h ├── NSCandidateListTouchBarItem.m ├── NSCatalogColor.m ├── NSCell.m ├── NSCellUndoManager.h ├── NSCellUndoManager.m ├── NSClassSwapper.h ├── NSClickGestureRecognizer.m ├── NSClipView.m ├── NSCoder+AppKit.h ├── NSCoder+AppKit.m ├── NSCollectionView │ ├── NSCollectionView.m │ └── NSCollectionViewItem.m ├── NSCollectionViewFlowLayout.m ├── NSCollectionViewLayout.m ├── NSCollectionViewLayoutAttributes.m ├── NSCollectionViewLayoutInvalidationContext.m ├── NSColor.subproj │ ├── NSColor.m │ ├── NSColor_CGColor.h │ ├── NSColor_CGColor.m │ ├── NSColor_catalog.h │ ├── NSColor_catalog.m │ └── conversions.h ├── NSColorList.m ├── NSColorPanel.m ├── NSColorPicker.subproj │ ├── NSBrowserCellColorList.h │ ├── NSBrowserCellColorList.m │ ├── NSColorPicker.m │ ├── NSColorPickerColorList.h │ ├── NSColorPickerColorList.m │ ├── NSColorPickerColorList.tiff │ ├── NSColorPickerListIcon.png │ ├── NSColorPickerSliders.h │ ├── NSColorPickerSliders.m │ ├── NSColorPickerSlidersCMYK.tiff │ ├── NSColorPickerSlidersGray.tiff │ ├── NSColorPickerSlidersHSB.tiff │ ├── NSColorPickerSlidersIcon.png │ ├── NSColorPickerSlidersRGB.tiff │ ├── NSColorPickerWheel.h │ ├── NSColorPickerWheel.m │ ├── NSColorPickerWheelIcon.png │ ├── NSColorPickerWheelView.h │ ├── NSColorPickerWheelView.m │ ├── NSColorWheel.png │ ├── de.lproj │ │ ├── NSColorPickerColorList.nib │ │ │ ├── designable.nib │ │ │ └── keyedobjects.nib │ │ ├── NSColorPickerSliders.nib │ │ │ ├── designable.nib │ │ │ └── keyedobjects.nib │ │ └── NSColorPickerWheel.nib │ │ │ ├── designable.nib │ │ │ └── keyedobjects.nib │ ├── en.lproj │ │ ├── NSColorPickerColorList.nib │ │ │ ├── classes.nib │ │ │ ├── info.nib │ │ │ └── keyedobjects.nib │ │ ├── NSColorPickerSliders.nib │ │ │ ├── classes.nib │ │ │ ├── designable.nib │ │ │ ├── info.nib │ │ │ └── keyedobjects.nib │ │ └── NSColorPickerWheel.nib │ │ │ ├── designable.nib │ │ │ └── keyedobjects.nib │ └── fr.lproj │ │ ├── NSColorPickerColorList.nib │ │ ├── classes.nib │ │ ├── info.nib │ │ └── keyedobjects.nib │ │ ├── NSColorPickerSliders.nib │ │ ├── designable.nib │ │ └── keyedobjects.nib │ │ └── NSColorPickerWheel.nib │ │ ├── designable.nib │ │ └── keyedobjects.nib ├── NSColorPickerColorList.h ├── NSColorPickerSliders.h ├── NSColorPickerWheel.h ├── NSColorPickerWheelView.h ├── NSColorSpace.m ├── NSColorWell.m ├── NSColor_CGColor.h ├── NSColor_catalog.h ├── NSComboBox.m ├── NSComboBoxCell.m ├── NSComboBoxCellDown.tiff ├── NSComboBoxView.h ├── NSComboBoxView.m ├── NSComboBoxWindow.h ├── NSComboBoxWindow.m ├── NSControl.m ├── NSControlAuxiliary.m ├── NSController │ ├── NSArrayController.m │ ├── NSController.m │ ├── NSControllerMarker.h │ ├── NSControllerMarker.m │ ├── NSControllerSelectionProxy.h │ ├── NSControllerSelectionProxy.m │ ├── NSDictionaryController.m │ ├── NSObjectController.m │ ├── NSObservationProxy.h │ ├── NSObservationProxy.m │ ├── NSTreeController.m │ ├── NSUserDefaultsController.m │ ├── NSUserDefaultsControllerProxy.h │ ├── NSUserDefaultsControllerProxy.m │ ├── _NSControllerArray.h │ └── _NSControllerArray.m ├── NSControllerMarker.h ├── NSControllerSelectionProxy.h ├── NSCursor.m ├── NSCursorRect.h ├── NSCursorRect.m ├── NSCustomImageRep.m ├── NSCustomObject.h ├── NSCustomResource.h ├── NSCustomTouchBarItem.m ├── NSCustomView.h ├── NSDataAsset.h ├── NSDataAsset.m ├── NSDatePicker.m ├── NSDatePickerCell.m ├── NSDisplay.m ├── NSDockTile.m ├── NSDocument.m ├── NSDocumentController.m ├── NSDraggingItem.m ├── NSDraggingManager.h ├── NSDraggingManager.m ├── NSDrawer.subproj │ ├── NSDrawer.m │ ├── NSDrawerWindow.h │ └── NSDrawerWindow.m ├── NSDrawerWindow.h ├── NSDynamicNamedColor.m ├── NSEPSImageRep.m ├── NSEnterFullScreenTemplate.ai ├── NSEnterFullScreenTemplate.pdf ├── NSErrors.h ├── NSErrors.m ├── NSEvent.subproj │ ├── NSEvent.m │ ├── NSEvent_CoreGraphics.h │ ├── NSEvent_CoreGraphics.m │ ├── NSEvent_keyboard.h │ ├── NSEvent_keyboard.m │ ├── NSEvent_mouse.h │ ├── NSEvent_mouse.m │ ├── NSEvent_other.h │ ├── NSEvent_other.m │ ├── NSEvent_periodic.h │ └── NSEvent_periodic.m ├── NSEvent_CoreGraphics.h ├── NSEvent_keyboard.h ├── NSEvent_mouse.h ├── NSEvent_other.h ├── NSEvent_periodic.h ├── NSExitFullScreenTemplate.ai ├── NSExitFullScreenTemplate.pdf ├── NSFileWrapperExtensions.m ├── NSFont.m ├── NSFontCollection.m ├── NSFontDescriptor.m ├── NSFontFamily.h ├── NSFontFamily.m ├── NSFontManager.m ├── NSFontMetric.h ├── NSFontMetric.m ├── NSFontPanel.m ├── NSFontPanelCell.h ├── NSFontPanelCell.m ├── NSFontTypeface.h ├── NSFontTypeface.m ├── NSForm.m ├── NSFormCell.m ├── NSGestureRecognizer.m ├── NSGlyphGenerator.m ├── NSGlyphInfo.m ├── NSGoLeftTemplate.ai ├── NSGoLeftTemplate.pdf ├── NSGoRightTemplate.ai ├── NSGoRightTemplate.pdf ├── NSGradient.m ├── NSGraphics.m ├── NSGraphicsContext.m ├── NSGraphicsContextFunctions.h ├── NSGraphicsStyle.h ├── NSGridView.m ├── NSGroupTouchBarItem.m ├── NSHaptics.h ├── NSHaptics.m ├── NSHelpManager.m ├── NSHighlightedBrowserCellArrow.tiff ├── NSHighlightedRadioButton.tiff ├── NSHighlightedSwitch.tiff ├── NSIBObjectData.h ├── NSImage.m ├── NSImageCell.m ├── NSImageRep.m ├── NSImageView.m ├── NSInfo.ai ├── NSInfo.pdf ├── NSInputManager.m ├── NSInterfaceGraphics.h ├── NSInterfacePart.h ├── NSInterfacePart │ ├── NSGraphicsStyle.h │ ├── NSGraphicsStyle.m │ ├── NSInterfaceGraphics.h │ ├── NSInterfaceGraphics.m │ ├── NSInterfacePart.h │ ├── NSInterfacePart.m │ ├── NSInterfacePartAttributedString.h │ ├── NSInterfacePartAttributedString.m │ ├── NSInterfacePartDisabledAttributedString.h │ └── NSInterfacePartDisabledAttributedString.m ├── NSInterfacePartAttributedString.h ├── NSInterfacePartDisabledAttributedString.h ├── NSInterfaceStyle.m ├── NSInvalidDataFreestandingTemplate.ai ├── NSInvalidDataFreestandingTemplate.pdf ├── NSKVOBinder.h ├── NSKeyBindingManager.m ├── NSKeyValueBinding.m ├── NSKeyValueBinding │ ├── NSBinder.h │ ├── NSBinder.m │ ├── NSCachingBinder.h │ ├── NSCachingBinder.m │ ├── NSKVOBinder.h │ ├── NSKVOBinder.m │ ├── NSMultipleValueBinder.h │ ├── NSMultipleValueBinder.m │ ├── NSObject+BindingSupport.h │ ├── NSObject+BindingSupport.m │ ├── NSTextBinder.h │ ├── NSTextBinder.m │ ├── NSTextFieldBinder.h │ ├── NSTextFieldBinder.m │ └── defaultBindingOptions.plist ├── NSKeyboardBinding.h ├── NSKeyboardBinding │ ├── NSKeyboardBinding.h │ ├── NSKeyboardBinding.m │ ├── NSKeyboardBindingManager.h │ ├── NSKeyboardBindingManager.m │ └── StandardKeyBindings.keybindings ├── NSKeyboardBindingManager.h ├── NSLayoutConstraint.m ├── NSLayoutGuide.m ├── NSLevelIndicator.m ├── NSLevelIndicatorCell.m ├── NSLockLockedTemplate.ai ├── NSLockLockedTemplate.pdf ├── NSLockUnlockedTemplate.ai ├── NSLockUnlockedTemplate.pdf ├── NSMainMenuView.h ├── NSMatrix.m ├── NSMeasurementUnit.h ├── NSMeasurementUnit.m ├── NSMenu.subproj │ ├── NSCarbonMenuImpl.m │ ├── NSMainMenuView.h │ ├── NSMainMenuView.m │ ├── NSMenu.m │ ├── NSMenuArrow.tiff │ ├── NSMenuItem.m │ ├── NSMenuView.h │ ├── NSMenuView.m │ ├── NSMenuViewDoubleRightArrow.tiff │ ├── NSMenuViewDoubleRightArrowGray.tiff │ ├── NSMenuWindow.h │ ├── NSMenuWindow.m │ ├── NSOverflowMenuView.h │ ├── NSOverflowMenuView.m │ ├── NSSubmenuView.h │ └── NSSubmenuView.m ├── NSMenuItemCell.m ├── NSMenuView.h ├── NSMenuWindow.h ├── NSModalSessionX.h ├── NSModalSessionX.m ├── NSMovie.m ├── NSMovieView.m ├── NSMultipleValueBinder.h ├── NSMutableAttributedString.m ├── NSMutableParagraphStyle.m ├── NSNibAXRelationshipConnector.h ├── NSNibBindingConnector.h ├── NSNibHelpConnector.h ├── NSObservationProxy.h ├── NSOpenGL │ ├── NSOpenGLContext.m │ ├── NSOpenGLDrawable.m │ ├── NSOpenGLPixelBuffer.m │ ├── NSOpenGLPixelFormat.m │ └── NSOpenGLView.m ├── NSOpenGLLayer.m ├── NSOutlineView.m ├── NSOverflowMenuView.h ├── NSPDFImageRep.m ├── NSPageController.m ├── NSPageLayout.m ├── NSPanGestureRecognizer.m ├── NSPanel.m ├── NSParagraphStyle.m ├── NSPasteboard.m ├── NSPasteboardItem.m ├── NSPathCell.m ├── NSPathComponentCell.m ├── NSPathControl.m ├── NSPersistentDocument.h ├── NSPoof.png ├── NSPoofAnimation.h ├── NSPoofAnimation.m ├── NSPopUpButton.m ├── NSPopUpButtonCell.m ├── NSPopUpButtonCellPopUp.tiff ├── NSPopUpButtonCellPullDown.tiff ├── NSPopUpView.h ├── NSPopUpView.m ├── NSPopUpWindow.h ├── NSPopUpWindow.m ├── NSPopover.m ├── NSPopoverTouchBarItem.m ├── NSPredicateEditor.h ├── NSPredicateEditor.m ├── NSPredicateEditorRowTemplate.h ├── NSPredicateEditorRowTemplate.m ├── NSPreferencesGeneral.ai ├── NSPreferencesGeneral.pdf ├── NSPressGestureRecognizer.m ├── NSPressureConfiguration.m ├── NSPrintInfo.m ├── NSPrintOperation.m ├── NSPrintPanel.m ├── NSPrintProgressPanelController.h ├── NSPrintProgressPanelController.m ├── NSPrinter.m ├── NSProgressIndicator.m ├── NSPulseGestureRecognizer.m ├── NSRadioButton.tiff ├── NSRangeArray.h ├── NSRefreshTemplate.ai ├── NSRefreshTemplate.pdf ├── NSRemoveTemplate.ai ├── NSRemoveTemplate.pdf ├── NSResponder.m ├── NSRichTextReader.h ├── NSRichTextWriter.h ├── NSRuleEditor.m ├── NSRuleEditorButtonCell.h ├── NSRuleEditorButtonCell.m ├── NSRuleEditorViewSliceRow.h ├── NSRuleEditorViewSliceRow.m ├── NSRulerMarker+NSTextExtensions.h ├── NSRulerMarker.m ├── NSRulerMarkerTab.tiff ├── NSRulerView.m ├── NSRunningApplication.m ├── NSSavePanel.subproj │ ├── NSOpenPanel.m │ ├── NSSavePanel.m │ ├── _NSFileSystemDataSource.h │ └── _NSFileSystemDataSource.m ├── NSScreen.m ├── NSScrollView.m ├── NSScroller.m ├── NSScrubber.m ├── NSScrubberItemView.m ├── NSSearchField.m ├── NSSearchFieldCell.m ├── NSSearchGlass.ai ├── NSSearchGlass.pdf ├── NSSecureLayoutManager.h ├── NSSecureTextField.m ├── NSSecureTextFieldCell.m ├── NSSecureTextView.h ├── NSSegmentItem.h ├── NSSegmentedControl │ ├── NSSegmentItem.h │ ├── NSSegmentItem.m │ ├── NSSegmentedCell.m │ └── NSSegmentedControl.m ├── NSShadow.m ├── NSSharingService.m ├── NSSheetContext.h ├── NSSheetContext.m ├── NSSlider.m ├── NSSliderCell.m ├── NSSound.m ├── NSSpaceTouchBarItem.m ├── NSSpeechSynthesizer.m ├── NSSpellChecker.m ├── NSSpellCheckerTagData.h ├── NSSpellCheckerTagData.m ├── NSSpellingViewController.h ├── NSSpellingViewController.m ├── NSSplitView.m ├── NSSplitViewController.m ├── NSSplitViewHDimple.tiff ├── NSSplitViewItem.m ├── NSSplitViewVDimple.tiff ├── NSStackView.m ├── NSStatusBar.m ├── NSStatusBar_(Private).h ├── NSStatusItem+Private.h ├── NSStatusItem.m ├── NSStepper.m ├── NSStepperCell.m ├── NSStopProgressFreestandingTemplate.ai ├── NSStopProgressFreestandingTemplate.pdf ├── NSStopProgressTemplate.ai ├── NSStopProgressTemplate.pdf ├── NSStoryboard.m ├── NSStringDrawer.h ├── NSStringDrawer.m ├── NSStringDrawing.m ├── NSSubmenuView.h ├── NSSwitch.m ├── NSSwitch.tiff ├── NSSystemInfoPanel.h ├── NSSystemInfoPanel │ ├── NSApplicationIcon.tiff │ ├── NSSystemInfoPanel.h │ ├── NSSystemInfoPanel.m │ ├── de.lproj │ │ └── NSSystemInfoPanel.nib │ │ │ ├── designable.nib │ │ │ └── keyedobjects.nib │ ├── en.lproj │ │ └── NSSystemInfoPanel.nib │ │ │ ├── classes.nib │ │ │ ├── info.nib │ │ │ └── keyedobjects.nib │ └── fr.lproj │ │ └── NSSystemInfoPanel.nib │ │ ├── classes.nib │ │ ├── info.nib │ │ └── keyedobjects.nib ├── NSTabView.m ├── NSTabViewController.m ├── NSTabViewItem.m ├── NSTableCellView.m ├── NSTableColumn.m ├── NSTableCornerView.h ├── NSTableCornerView.m ├── NSTableHeaderCell.m ├── NSTableHeaderView.m ├── NSTableRowView.m ├── NSTableView.m ├── NSTableViewRowAction.m ├── NSText.m ├── NSTextAttachment.m ├── NSTextAttachmentCell.m ├── NSTextBinder.h ├── NSTextField.m ├── NSTextFieldBinder.h ├── NSTextFieldCell.m ├── NSTextFinder.m ├── NSTextInput.m ├── NSTextList.m ├── NSTextStorage_concrete.h ├── NSTextTable │ ├── NSTextBlock.m │ ├── NSTextTable.m │ └── NSTextTableBlock.m ├── NSTextView.subproj │ ├── NSBidiHelper.h │ ├── NSBidiHelper.m │ ├── NSLayoutManager.m │ ├── NSRangeArray.h │ ├── NSRangeArray.m │ ├── NSRulerMarker+NSTextExtensions.h │ ├── NSRulerMarker+NSTextExtensions.m │ ├── NSSecureLayoutManager.h │ ├── NSSecureLayoutManager.m │ ├── NSSecureTextView.h │ ├── NSSecureTextView.m │ ├── NSTextContainer.m │ ├── NSTextStorage.m │ ├── NSTextStorage_concrete.h │ ├── NSTextStorage_concrete.m │ ├── NSTextTab.m │ ├── NSTextView.m │ ├── NSTextViewSharedData.h │ ├── NSTextViewSharedData.m │ ├── NSTypesetter.m │ ├── NSTypesetter_concrete.h │ ├── NSTypesetter_concrete.m │ ├── NSUndoTextOperation.h │ └── NSUndoTextOperation.m ├── NSTextViewSharedData.h ├── NSThemeFrame.h ├── NSThemeFrame.m ├── NSTitlebarAccessoryViewController.m ├── NSTokenAttachment.m ├── NSTokenAttachmentCell.h ├── NSTokenAttachmentCell.m ├── NSTokenField.m ├── NSTokenFieldCell.m ├── NSToolTipWindow.h ├── NSToolTipWindow.m ├── NSToolbar.subproj │ ├── NSToolbar.m │ ├── NSToolbarCustomizationPalette.h │ ├── NSToolbarCustomizationPalette.m │ ├── NSToolbarCustomizationView.h │ ├── NSToolbarCustomizationView.m │ ├── NSToolbarCustomizeToolbarItem.tiff │ ├── NSToolbarItem.m │ ├── NSToolbarItemGroup.m │ ├── NSToolbarItemView.h │ ├── NSToolbarItemView.m │ ├── NSToolbarMoreToolbarItems.tiff │ ├── NSToolbarOverflowArrow.pdf │ ├── NSToolbarOverflowArrow.tiff │ ├── NSToolbarPrintItem.tiff │ ├── NSToolbarShowColorsItem.tiff │ ├── NSToolbarShowFontsItem.tiff │ ├── NSToolbarView.h │ └── NSToolbarView.m ├── NSToolbarCustomizationPalette.h ├── NSToolbarCustomizationView.h ├── NSToolbarItemView.h ├── NSToolbarView.h ├── NSTouchBar.m ├── NSTouchBarItem.m ├── NSTouchDevice.m ├── NSTrackingArea.m ├── NSTreeNode.m ├── NSTypesetter_concrete.h ├── NSUndoTextOperation.h ├── NSUser.ai ├── NSUser.pdf ├── NSUserDefaultsControllerProxy.h ├── NSUserInterfaceItemIdentification.m ├── NSView.m ├── NSViewBackingLayer.h ├── NSViewBackingLayer.m ├── NSViewController.m ├── NSVisualEffectView.m ├── NSWindow-Drag.h ├── NSWindow-Drag.m ├── NSWindow-Private.h ├── NSWindow.m ├── NSWindowAnimationContext.h ├── NSWindowAnimationContext.m ├── NSWindowController.m ├── NSWindowScripting.h ├── NSWindowScripting.m ├── NSWindowTemplate.h ├── NSWorkspace.m ├── RTF.subproj │ ├── NSRichTextReader.h │ ├── NSRichTextReader.m │ ├── NSRichTextWriter.h │ └── NSRichTextWriter.m ├── UNIDATA │ ├── BidiMirroring.txt │ └── UnicodeData.txt ├── Win32.subproj │ ├── CGLContext.m │ ├── KTFont_gdi.h │ ├── KTFont_gdi.m │ ├── NSGraphicsStyle_uxtheme.h │ ├── NSGraphicsStyle_uxtheme.m │ ├── NSOpenPanel-Win32.h │ ├── NSOpenPanel-Win32.m │ ├── NSSavePanel-Win32.h │ ├── NSSavePanel-Win32.m │ ├── NSSound_DirectShow.h │ ├── NSSound_DirectShow.m │ ├── NSSound_win32.h │ ├── NSSound_win32.m │ ├── O2Context_gdi+AppKit.h │ ├── O2Context_gdi+AppKit.m │ ├── Win32Cursor.h │ ├── Win32Cursor.m │ ├── Win32DeviceContextPrinter.h │ ├── Win32DeviceContextPrinter.m │ ├── Win32DeviceContextWindow.h │ ├── Win32DeviceContextWindow.m │ ├── Win32Display.h │ ├── Win32Display.m │ ├── Win32DraggingManager.subproj │ │ ├── NSDragView.h │ │ ├── NSDragView.m │ │ ├── Win32DragSession.h │ │ ├── Win32DragSession.m │ │ ├── Win32DraggingManager.h │ │ ├── Win32DraggingManager.m │ │ ├── Win32DropPasteboard.h │ │ ├── Win32DropPasteboard.m │ │ ├── Win32FORMATETC.h │ │ ├── Win32FORMATETC.m │ │ ├── Win32GeneralPasteboard.h │ │ ├── Win32GeneralPasteboard.m │ │ ├── Win32IDataObjectClient.h │ │ ├── Win32IDataObjectClient.m │ │ ├── Win32IDataObjectServer.h │ │ ├── Win32IDataObjectServer.m │ │ ├── Win32IDropSourceServer.h │ │ ├── Win32IDropSourceServer.m │ │ ├── Win32IDropTargetServer.h │ │ ├── Win32IDropTargetServer.m │ │ ├── Win32IEnumFORMATETCServer.h │ │ ├── Win32IEnumFORMATETCServer.m │ │ ├── Win32IStreamClient.h │ │ ├── Win32IStreamClient.m │ │ ├── Win32IUnknownServer.h │ │ ├── Win32IUnknownServer.m │ │ ├── Win32Pasteboard.h │ │ ├── Win32Pasteboard.m │ │ ├── Win32TypesAndOwner.h │ │ ├── Win32TypesAndOwner.m │ │ ├── Win32Window-Drag.h │ │ └── Win32Window-Drag.m │ ├── Win32Event.h │ ├── Win32Event.m │ ├── Win32EventInputSource.h │ ├── Win32EventInputSource.m │ ├── Win32RunningCopyPipe.h │ ├── Win32RunningCopyPipe.m │ ├── Win32Window.h │ ├── Win32Window.m │ ├── Win32Workspace.h │ ├── Win32Workspace.m │ ├── dllmain.m │ ├── glweak.m │ ├── opengl_dll.h │ └── opengl_dll.m ├── X11.backend │ ├── CarbonKeys.h │ ├── Info.plist │ ├── X11Cursor.h │ ├── X11Cursor.m │ ├── X11Display.h │ ├── X11Display.m │ ├── X11Event.h │ ├── X11Event.m │ ├── X11KeySymToUCS.h │ ├── X11KeySymToUCS.m │ ├── X11Pasteboard.h │ ├── X11Pasteboard.m │ ├── X11SubWindow.h │ ├── X11SubWindow.m │ ├── X11Window.h │ └── X11Window.m ├── _NSControllerArray.h ├── _NSManagedProxy.h ├── _NSRuleEditorViewSliceHolder.h ├── _NSRuleEditorViewSliceHolder.m ├── conversions.h ├── de.lproj │ ├── Localizable.strings │ ├── NSColorPanel.nib │ │ ├── designable.nib │ │ └── keyedobjects.nib │ ├── NSFontPanel.nib │ │ ├── designable.nib │ │ └── keyedobjects.nib │ ├── NSSpellingViewController.xib │ └── NSToolbarCustomizationPalette.nib │ │ ├── designable.nib │ │ └── keyedobjects.nib ├── en.lproj │ ├── Localizable.strings │ ├── NSColorPanel.nib │ │ ├── classes.nib │ │ ├── designable.nib │ │ ├── info.nib │ │ └── keyedobjects.nib │ ├── NSFontPanel.nib │ │ ├── classes.nib │ │ ├── info.nib │ │ └── keyedobjects.nib │ ├── NSMenu.plist │ ├── NSOpenPanel.nib │ ├── NSPrintProgressPanel.xib │ ├── NSSavePanel.nib │ ├── NSSpellingViewController.xib │ └── NSToolbarCustomizationPalette.nib │ │ ├── classes.nib │ │ ├── info.nib │ │ ├── keyedobjects.nib │ │ └── objects.nib ├── fr.lproj │ ├── Localizable.strings │ ├── NSColorPanel.nib │ │ ├── designable.nib │ │ └── keyedobjects.nib │ ├── NSFontPanel.nib │ │ ├── designable.nib │ │ └── keyedobjects.nib │ ├── NSMenu.plist │ ├── NSSpellingViewController.xib │ └── NSToolbarCustomizationPalette.nib │ │ ├── designable.nib │ │ └── keyedobjects.nib ├── include │ └── AppKit │ │ ├── AppKit.h │ │ ├── AppKitExport.h │ │ ├── NSATSTypesetter.h │ │ ├── NSAccessibility.h │ │ ├── NSAccessibilityConstants.h │ │ ├── NSAccessibilityElement.h │ │ ├── NSAccessibilityProtocols.h │ │ ├── NSActionCell.h │ │ ├── NSAffineTransform.h │ │ ├── NSAlert.h │ │ ├── NSAnimation.h │ │ ├── NSAppearance.h │ │ ├── NSApplication.h │ │ ├── NSArrayController.h │ │ ├── NSAttributedString.h │ │ ├── NSBezierPath.h │ │ ├── NSBitmapImageRep.h │ │ ├── NSBox.h │ │ ├── NSBrowser.h │ │ ├── NSBrowserCell.h │ │ ├── NSButton.h │ │ ├── NSButtonCell.h │ │ ├── NSCIImageRep.h │ │ ├── NSCachedImageRep.h │ │ ├── NSCandidateListTouchBarItem.h │ │ ├── NSCatalogColor.h │ │ ├── NSCell.h │ │ ├── NSClickGestureRecognizer.h │ │ ├── NSClipView.h │ │ ├── NSCollectionView.h │ │ ├── NSCollectionViewFlowLayout.h │ │ ├── NSCollectionViewItem.h │ │ ├── NSCollectionViewLayout.h │ │ ├── NSCollectionViewLayoutAttributes.h │ │ ├── NSCollectionViewLayoutInvalidationContext.h │ │ ├── NSColor.h │ │ ├── NSColorList.h │ │ ├── NSColorPanel.h │ │ ├── NSColorPicker.h │ │ ├── NSColorSpace.h │ │ ├── NSColorWell.h │ │ ├── NSComboBox.h │ │ ├── NSComboBoxCell.h │ │ ├── NSControl.h │ │ ├── NSControlAuxiliary.h │ │ ├── NSController.h │ │ ├── NSCursor.h │ │ ├── NSCustomImageRep.h │ │ ├── NSCustomTouchBarItem.h │ │ ├── NSDatePicker.h │ │ ├── NSDatePickerCell.h │ │ ├── NSDictionaryController.h │ │ ├── NSDisplay.h │ │ ├── NSDockTile.h │ │ ├── NSDocument.h │ │ ├── NSDocumentController.h │ │ ├── NSDragging.h │ │ ├── NSDraggingItem.h │ │ ├── NSDrawer.h │ │ ├── NSDynamicNamedColor.h │ │ ├── NSEPSImageRep.h │ │ ├── NSEvent.h │ │ ├── NSFileWrapper.h │ │ ├── NSFileWrapperExtensions.h │ │ ├── NSFont.h │ │ ├── NSFontCollection.h │ │ ├── NSFontDescriptor.h │ │ ├── NSFontManager.h │ │ ├── NSFontPanel.h │ │ ├── NSForm.h │ │ ├── NSFormCell.h │ │ ├── NSGestureRecognizer.h │ │ ├── NSGlyphGenerator.h │ │ ├── NSGlyphInfo.h │ │ ├── NSGradient.h │ │ ├── NSGraphics.h │ │ ├── NSGraphicsContext.h │ │ ├── NSGroupTouchBarItem.h │ │ ├── NSHelpManager.h │ │ ├── NSImage.h │ │ ├── NSImageCell.h │ │ ├── NSImageRep.h │ │ ├── NSImageView.h │ │ ├── NSInputManager.h │ │ ├── NSInputServer.h │ │ ├── NSInterfaceStyle.h │ │ ├── NSKeyBindingManager.h │ │ ├── NSKeyValueBinding.h │ │ ├── NSLayoutConstraint.h │ │ ├── NSLayoutGuide.h │ │ ├── NSLayoutManager.h │ │ ├── NSLevelIndicator.h │ │ ├── NSLevelIndicatorCell.h │ │ ├── NSMatrix.h │ │ ├── NSMenu.h │ │ ├── NSMenuItem.h │ │ ├── NSMenuItemCell.h │ │ ├── NSMovie.h │ │ ├── NSMovieView.h │ │ ├── NSMutableAttributedString.h │ │ ├── NSMutableParagraphStyle.h │ │ ├── NSNib.h │ │ ├── NSNibConnector.h │ │ ├── NSNibControlConnector.h │ │ ├── NSNibLoading.h │ │ ├── NSNibOutletConnector.h │ │ ├── NSObject+BindingSupport.h │ │ ├── NSObjectController.h │ │ ├── NSOpenGL.h │ │ ├── NSOpenGLContext.h │ │ ├── NSOpenGLDrawable.h │ │ ├── NSOpenGLLayer.h │ │ ├── NSOpenGLPixelBuffer.h │ │ ├── NSOpenGLPixelFormat.h │ │ ├── NSOpenGLView.h │ │ ├── NSOpenPanel.h │ │ ├── NSOutlineView.h │ │ ├── NSPDFImageRep.h │ │ ├── NSPageController.h │ │ ├── NSPageLayout.h │ │ ├── NSPanGestureRecognizer.h │ │ ├── NSPanel.h │ │ ├── NSParagraphStyle.h │ │ ├── NSPasteboard.h │ │ ├── NSPasteboardItem.h │ │ ├── NSPathCell.h │ │ ├── NSPathComponentCell.h │ │ ├── NSPathControl.h │ │ ├── NSPopUpButton.h │ │ ├── NSPopUpButtonCell.h │ │ ├── NSPopover.h │ │ ├── NSPopoverTouchBarItem.h │ │ ├── NSPressGestureRecognizer.h │ │ ├── NSPressureConfiguration.h │ │ ├── NSPrintInfo.h │ │ ├── NSPrintOperation.h │ │ ├── NSPrintPanel.h │ │ ├── NSPrinter.h │ │ ├── NSProgressIndicator.h │ │ ├── NSPulseGestureRecognizer.h │ │ ├── NSRaise.h │ │ ├── NSResponder.h │ │ ├── NSRuleEditor.h │ │ ├── NSRulerMarker.h │ │ ├── NSRulerView.h │ │ ├── NSRunningApplication.h │ │ ├── NSSavePanel.h │ │ ├── NSScreen.h │ │ ├── NSScrollView.h │ │ ├── NSScroller.h │ │ ├── NSScrubber.h │ │ ├── NSScrubberItemView.h │ │ ├── NSSearchField.h │ │ ├── NSSearchFieldCell.h │ │ ├── NSSecureTextField.h │ │ ├── NSSecureTextFieldCell.h │ │ ├── NSSegmentedCell.h │ │ ├── NSSegmentedControl.h │ │ ├── NSShadow.h │ │ ├── NSSharingService.h │ │ ├── NSSlider.h │ │ ├── NSSliderCell.h │ │ ├── NSSound.h │ │ ├── NSSpaceTouchBarItem.h │ │ ├── NSSpeechRecognizer.h │ │ ├── NSSpeechSynthesizer.h │ │ ├── NSSpellChecker.h │ │ ├── NSSpellProtocol.h │ │ ├── NSSplitView.h │ │ ├── NSSplitViewController.h │ │ ├── NSSplitViewItem.h │ │ ├── NSStackView.h │ │ ├── NSStatusBar.h │ │ ├── NSStatusItem.h │ │ ├── NSStepper.h │ │ ├── NSStepperCell.h │ │ ├── NSStoryboard.h │ │ ├── NSStringDrawing.h │ │ ├── NSTabView.h │ │ ├── NSTabViewController.h │ │ ├── NSTabViewItem.h │ │ ├── NSTableCellView.h │ │ ├── NSTableColumn.h │ │ ├── NSTableHeaderCell.h │ │ ├── NSTableHeaderView.h │ │ ├── NSTableRowView.h │ │ ├── NSTableView.h │ │ ├── NSTableViewRowAction.h │ │ ├── NSText.h │ │ ├── NSTextAttachment.h │ │ ├── NSTextAttachmentCell.h │ │ ├── NSTextBlock.h │ │ ├── NSTextContainer.h │ │ ├── NSTextField.h │ │ ├── NSTextFieldCell.h │ │ ├── NSTextFinder.h │ │ ├── NSTextInput.h │ │ ├── NSTextInputClient.h │ │ ├── NSTextList.h │ │ ├── NSTextStorage.h │ │ ├── NSTextTab.h │ │ ├── NSTextTable.h │ │ ├── NSTextTableBlock.h │ │ ├── NSTextView.h │ │ ├── NSTitlebarAccessoryViewController.h │ │ ├── NSTokenAttachment.h │ │ ├── NSTokenField.h │ │ ├── NSTokenFieldCell.h │ │ ├── NSToolbar.h │ │ ├── NSToolbarItem.h │ │ ├── NSToolbarItemGroup.h │ │ ├── NSTouchBar.h │ │ ├── NSTouchBarItem.h │ │ ├── NSTouchDevice.h │ │ ├── NSTrackingArea.h │ │ ├── NSTreeController.h │ │ ├── NSTreeNode.h │ │ ├── NSTypesetter.h │ │ ├── NSUserDefaultsController.h │ │ ├── NSUserInterfaceItemIdentification.h │ │ ├── NSUserInterfaceItemSearching.h │ │ ├── NSUserInterfaceValidation.h │ │ ├── NSView.h │ │ ├── NSViewAnimation.h │ │ ├── NSViewController.h │ │ ├── NSVisualEffectView.h │ │ ├── NSWindow.h │ │ ├── NSWindowController.h │ │ ├── NSWindowRestoration.h │ │ └── NSWorkspace.h └── nib.subproj │ ├── NSButtonImageSource.h │ ├── NSButtonImageSource.m │ ├── NSClassSwapper.h │ ├── NSClassSwapper.m │ ├── NSCustomObject.h │ ├── NSCustomObject.m │ ├── NSCustomResource.h │ ├── NSCustomResource.m │ ├── NSCustomView.h │ ├── NSCustomView.m │ ├── NSIBHelpConnector.m │ ├── NSIBObjectData.h │ ├── NSIBObjectData.m │ ├── NSIBUserDefinedRuntimeAttributesConnector.h │ ├── NSIBUserDefinedRuntimeAttributesConnector.m │ ├── NSMenuTemplate.h │ ├── NSMenuTemplate.m │ ├── NSNib.m │ ├── NSNibAXRelationshipConnector.h │ ├── NSNibAXRelationshipConnector.m │ ├── NSNibAuxiliaryActionConnector.m │ ├── NSNibBindingConnector.h │ ├── NSNibBindingConnector.m │ ├── NSNibConnector.m │ ├── NSNibControlConnector.m │ ├── NSNibExternalObjectPlaceholder.m │ ├── NSNibHelpConnector.h │ ├── NSNibHelpConnector.m │ ├── NSNibLoading.m │ ├── NSNibOutletConnector.m │ ├── NSWindowTemplate.h │ ├── NSWindowTemplate.m │ └── UINibCoding.m ├── CMakeLists.txt ├── Cocoa ├── CMakeLists.txt ├── Cocoa.m ├── Info.plist └── include │ └── Cocoa │ └── Cocoa.h ├── CoreData ├── CMakeLists.txt ├── CoreDataErrors.m ├── English.lproj │ └── InfoPlist.strings ├── Info.plist ├── Linux │ └── CoreData.h ├── NSAtomicStore.m ├── NSAtomicStoreCacheNode.m ├── NSAttributeDescription.m ├── NSEntityDescription-Private.h ├── NSEntityDescription.m ├── NSFetchRequest.m ├── NSFetchedPropertyDescription.m ├── NSInMemoryPersistentStore.h ├── NSInMemoryPersistentStore.m ├── NSManagedObject-Private.h ├── NSManagedObject.m ├── NSManagedObjectContext-Private.h ├── NSManagedObjectContext.m ├── NSManagedObjectID-Private.h ├── NSManagedObjectID.m ├── NSManagedObjectModel.m ├── NSManagedObjectMutableSet.h ├── NSManagedObjectMutableSet.m ├── NSManagedObjectSet.h ├── NSManagedObjectSet.m ├── NSManagedObjectSetEnumerator.h ├── NSManagedObjectSetEnumerator.m ├── NSMergeConflict.m ├── NSMergePolicy.m ├── NSPersistentStore.m ├── NSPersistentStoreCoordinator-Private.h ├── NSPersistentStoreCoordinator.m ├── NSPropertyDescription.m ├── NSRelationshipDescription.m ├── NSXMLPersistentStore.h ├── NSXMLPersistentStore.m ├── dllmain.m └── include │ └── CoreData │ ├── CoreData.h │ ├── CoreDataErrors.h │ ├── CoreDataExports.h │ ├── NSAtomicStore.h │ ├── NSAtomicStoreCacheNode.h │ ├── NSAttributeDescription.h │ ├── NSEntityDescription.h │ ├── NSFetchRequest.h │ ├── NSFetchedPropertyDescription.h │ ├── NSManagedObject.h │ ├── NSManagedObjectContext.h │ ├── NSManagedObjectID.h │ ├── NSManagedObjectModel.h │ ├── NSMergeConflict.h │ ├── NSMergePolicy.h │ ├── NSPersistentStore.h │ ├── NSPersistentStoreCoordinator.h │ ├── NSPropertyDescription.h │ └── NSRelationshipDescription.h ├── CoreGraphics ├── CGAffineTransform.m ├── CGBitmapContext.m ├── CGColor.m ├── CGColorSpace.m ├── CGContext.m ├── CGConversions.h ├── CGDataConsumer.m ├── CGDataProvider.m ├── CGDirectDisplay.m ├── CGDisplayConfiguration.m ├── CGDisplayFade.m ├── CGEvent.m ├── CGEventObjC.h ├── CGEventObjC.m ├── CGEventSource.m ├── CGEventTap.m ├── CGEventTapInternal.h ├── CGFont.m ├── CGFunction.m ├── CGGeometry.m ├── CGGradient.m ├── CGImage.m ├── CGLPixelSurface.m ├── CGLayer.m ├── CGPDFContext.m ├── CGPDFDocument.m ├── CGPDFPage.m ├── CGPSConverter.m ├── CGPath.m ├── CGPattern.m ├── CGRemoteOperation.m ├── CGS.m ├── CGSConnection.m ├── CGSKeyboardLayout.m ├── CGSRegion.m ├── CGSScreen.m ├── CGSSurface.m ├── CGSWindow.m ├── CGShading.m ├── CGSubWindow.m ├── CGWindow.m ├── CGWindowLevel.m ├── CMakeLists.txt ├── Info.plist ├── KTFont+PDF.m ├── X11.backend │ ├── CGSConnectionX11.h │ ├── CGSConnectionX11.m │ ├── CGSSurfaceX11.h │ ├── CGSSurfaceX11.m │ ├── CGSWindowX11.h │ ├── CGSWindowX11.m │ ├── CMakeLists.txt │ ├── CarbonKeys.h │ ├── Info.plist │ ├── X11KeySymToUCS.h │ └── X11KeySymToUCS.m ├── include │ └── CoreGraphics │ │ ├── CGAffineTransform.h │ │ ├── CGBase.h │ │ ├── CGBitmapContext.h │ │ ├── CGColor.h │ │ ├── CGColorSpace.h │ │ ├── CGContext.h │ │ ├── CGDataConsumer.h │ │ ├── CGDataProvider.h │ │ ├── CGDirectDisplay.h │ │ ├── CGDisplayConfiguration.h │ │ ├── CGDisplayFade.h │ │ ├── CGError.h │ │ ├── CGEvent.h │ │ ├── CGEventSource.h │ │ ├── CGEventTypes.h │ │ ├── CGFont.h │ │ ├── CGFunction.h │ │ ├── CGGeometry.h │ │ ├── CGGradient.h │ │ ├── CGImage.h │ │ ├── CGLPixelSurface.h │ │ ├── CGLayer.h │ │ ├── CGPDFContext.h │ │ ├── CGPDFDictionary.h │ │ ├── CGPDFDocument.h │ │ ├── CGPDFObject.h │ │ ├── CGPDFPage.h │ │ ├── CGPSConverter.h │ │ ├── CGPath.h │ │ ├── CGPattern.h │ │ ├── CGRemoteOperation.h │ │ ├── CGSConnection.h │ │ ├── CGSKeyboardLayout.h │ │ ├── CGSScreen.h │ │ ├── CGSSurface.h │ │ ├── CGSWindow.h │ │ ├── CGShading.h │ │ ├── CGSubWindow.h │ │ ├── CGWindow.h │ │ ├── CGWindowLevel.h │ │ ├── CoreGraphics.h │ │ ├── CoreGraphicsExport.h │ │ ├── CoreGraphicsPrivate.h │ │ ├── CoreText.h │ │ └── KTFont+PDF.h └── src │ ├── CGEvent.c │ └── stubs.c ├── CoreText ├── CMakeLists.txt ├── CTFont.m ├── CTFontCollection.m ├── CTFontDescriptor.m ├── CTFontManager.m ├── CTFrame.m ├── CTFrameSetter.m ├── CTLine.m ├── CTParagraphStyle.m ├── CTRun.m ├── CTStringATtributes.m ├── Info.plist ├── KTFont.m ├── KTFont_FT.m ├── constants.c ├── include │ └── CoreText │ │ ├── CTFont.h │ │ ├── CTFontCollection.h │ │ ├── CTFontDescriptor.h │ │ ├── CTFontManager.h │ │ ├── CTFontTraits.h │ │ ├── CTFrame.h │ │ ├── CTFrameSetter.h │ │ ├── CTLine.h │ │ ├── CTParagraphStyle.h │ │ ├── CTRun.h │ │ ├── CTStringAttributes.h │ │ ├── CTTypesetter.h │ │ ├── CoreText.h │ │ ├── CoreTextExport.h │ │ ├── KTFont.h │ │ └── KTFont_FT.h └── stubs.c ├── LICENSE ├── Onyx2D ├── CMakeLists.txt ├── English.lproj │ └── InfoPlist.strings ├── Info.plist ├── O2AffineTransform.m ├── O2BitmapContext.m ├── O2ClipMask.m ├── O2ClipPhase.m ├── O2ClipState.m ├── O2Color.m ├── O2ColorSpace+PDF.m ├── O2ColorSpace.m ├── O2Context.m ├── O2Context_builtin.m ├── O2Context_builtin_FT.m ├── O2Context_distill.m ├── O2DataConsumer.m ├── O2DataProvider.m ├── O2Decoder_TIFF.m ├── O2EXIFDecoder.m ├── O2Encoder_JPG.m ├── O2Encoder_PNG.m ├── O2Encoder_TIFF.m ├── O2Encoding.m ├── O2Font+PDF.m ├── O2Font.m ├── O2Font_freetype.m ├── O2Font_ttf.m ├── O2Function+PDF.m ├── O2Function.m ├── O2Geometry.m ├── O2GlyphStencil.m ├── O2GraphicsState.m ├── O2Image+PDF.m ├── O2Image.m ├── O2ImageDecoder.m ├── O2ImageDecoder_JPEG_libjpeg.m ├── O2ImageDecoder_JPEG_stb.m ├── O2ImageDestination.m ├── O2ImageSource.m ├── O2ImageSource_BMP.m ├── O2ImageSource_GIF.m ├── O2ImageSource_ICNS.m ├── O2ImageSource_JPEG.m ├── O2ImageSource_PNG.m ├── O2ImageSource_TIFF.m ├── O2LZW.m ├── O2Layer.m ├── O2MutablePath.m ├── O2PDFArray.m ├── O2PDFBlock.m ├── O2PDFCharWidths.m ├── O2PDFContentStream.m ├── O2PDFContext.m ├── O2PDFDictionary.m ├── O2PDFDocument.m ├── O2PDFFilter.m ├── O2PDFFont.m ├── O2PDFFunction_Type0.m ├── O2PDFFunction_Type2.m ├── O2PDFFunction_Type3.m ├── O2PDFFunction_Type4.m ├── O2PDFObject.m ├── O2PDFObject_Boolean.m ├── O2PDFObject_Integer.m ├── O2PDFObject_Name.m ├── O2PDFObject_R.m ├── O2PDFObject_Real.m ├── O2PDFObject_const.m ├── O2PDFObject_identifier.m ├── O2PDFOperatorTable.m ├── O2PDFOperators.m ├── O2PDFPage.m ├── O2PDFScanner.m ├── O2PDFStream.m ├── O2PDFString.m ├── O2PDFxref.m ├── O2PDFxrefEntry.m ├── O2Paint.m ├── O2Paint_axialGradient.m ├── O2Paint_color.m ├── O2Paint_image.m ├── O2Paint_pattern.m ├── O2Paint_radialGradient.m ├── O2Paint_ramp.m ├── O2Path.m ├── O2Pattern.m ├── O2Shading+PDF.m ├── O2Shading.m ├── O2Surface.m ├── O2TIFFImageDirectory.m ├── O2TTFDecoder.m ├── O2argb32f.m ├── O2argb8u.m ├── O2zlib.m ├── VGPath.m ├── include │ └── Onyx2D │ │ ├── O2AffineTransform.h │ │ ├── O2BitmapContext.h │ │ ├── O2Blending.h │ │ ├── O2ClipMask.h │ │ ├── O2ClipPhase.h │ │ ├── O2ClipState.h │ │ ├── O2Color.h │ │ ├── O2ColorSpace+PDF.h │ │ ├── O2ColorSpace.h │ │ ├── O2Context.h │ │ ├── O2Context_builtin.h │ │ ├── O2Context_builtin_FT.h │ │ ├── O2Context_distill.h │ │ ├── O2DataConsumer.h │ │ ├── O2DataProvider.h │ │ ├── O2Decoder_TIFF.h │ │ ├── O2Defines_FreeType.h │ │ ├── O2Defines_libjpeg.h │ │ ├── O2Defines_libpng.h │ │ ├── O2Defines_libtiff.h │ │ ├── O2Defines_zlib.h │ │ ├── O2EXIFDecoder.h │ │ ├── O2Encoder_JPG.h │ │ ├── O2Encoder_PNG.h │ │ ├── O2Encoder_TIFF.h │ │ ├── O2Encoding.h │ │ ├── O2Exceptions.h │ │ ├── O2Font+PDF.h │ │ ├── O2Font.h │ │ ├── O2Font_freetype.h │ │ ├── O2Font_ttf.h │ │ ├── O2Function+PDF.h │ │ ├── O2Function.h │ │ ├── O2Geometry.h │ │ ├── O2GlyphStencil.h │ │ ├── O2GraphicsState.h │ │ ├── O2Image+PDF.h │ │ ├── O2Image.h │ │ ├── O2ImageDecoder.h │ │ ├── O2ImageDecoder_JPEG_libjpeg.h │ │ ├── O2ImageDecoder_JPEG_stb.h │ │ ├── O2ImageDestination.h │ │ ├── O2ImageSource.h │ │ ├── O2ImageSource_BMP.h │ │ ├── O2ImageSource_GIF.h │ │ ├── O2ImageSource_ICNS.h │ │ ├── O2ImageSource_JPEG.h │ │ ├── O2ImageSource_PNG.h │ │ ├── O2ImageSource_TIFF.h │ │ ├── O2LZW.h │ │ ├── O2Layer.h │ │ ├── O2MutablePath.h │ │ ├── O2PDFArray.h │ │ ├── O2PDFBlock.h │ │ ├── O2PDFCharWidths.h │ │ ├── O2PDFContentStream.h │ │ ├── O2PDFContext.h │ │ ├── O2PDFDictionary.h │ │ ├── O2PDFDocument.h │ │ ├── O2PDFFilter.h │ │ ├── O2PDFFont.h │ │ ├── O2PDFFunction_Type0.h │ │ ├── O2PDFFunction_Type2.h │ │ ├── O2PDFFunction_Type3.h │ │ ├── O2PDFFunction_Type4.h │ │ ├── O2PDFObject.h │ │ ├── O2PDFObject_Boolean.h │ │ ├── O2PDFObject_Integer.h │ │ ├── O2PDFObject_Name.h │ │ ├── O2PDFObject_R.h │ │ ├── O2PDFObject_Real.h │ │ ├── O2PDFObject_const.h │ │ ├── O2PDFObject_identifier.h │ │ ├── O2PDFOperatorTable.h │ │ ├── O2PDFOperators.h │ │ ├── O2PDFPage.h │ │ ├── O2PDFScanner.h │ │ ├── O2PDFStream.h │ │ ├── O2PDFString.h │ │ ├── O2PDFxref.h │ │ ├── O2PDFxrefEntry.h │ │ ├── O2Paint.h │ │ ├── O2Paint_axialGradient.h │ │ ├── O2Paint_color.h │ │ ├── O2Paint_image.h │ │ ├── O2Paint_pattern.h │ │ ├── O2Paint_radialGradient.h │ │ ├── O2Paint_ramp.h │ │ ├── O2Path.h │ │ ├── O2Pattern.h │ │ ├── O2Shading+PDF.h │ │ ├── O2Shading.h │ │ ├── O2Surface.h │ │ ├── O2TIFFImageDirectory.h │ │ ├── O2TTFDecoder.h │ │ ├── O2argb32f.h │ │ ├── O2argb8u.h │ │ ├── O2zlib.h │ │ ├── VGPath.h │ │ └── VGmath.h └── platform_Windows │ ├── O2Context_builtin_gdi.h │ ├── O2Context_builtin_gdi.m │ ├── O2Context_gdi.h │ ├── O2Context_gdi.m │ ├── O2DeviceContext_gdi.h │ ├── O2DeviceContext_gdi.m │ ├── O2DeviceContext_gdiDIBSection.h │ ├── O2DeviceContext_gdiDIBSection.m │ ├── O2Font_gdi.h │ ├── O2Font_gdi.m │ ├── O2Surface_DIBSection.h │ ├── O2Surface_DIBSection.m │ ├── Win32Font.h │ └── Win32Font.m ├── QuartzCore ├── CAAnimation.m ├── CAAnimationGroup.m ├── CABase.m ├── CABasicAnimation.m ├── CAConstraintLayoutManager.m ├── CAFilter.m ├── CAGradientLayer.m ├── CALayer.m ├── CALayerContext.m ├── CALayerInternal.h ├── CAMediaTiming.m ├── CAMediaTimingFunction.m ├── CAMetalDrawable.mm ├── CAMetalDrawableInternal.h ├── CAMetalLayer.mm ├── CAMetalLayerInternal.h ├── CAOpenGLLayer.m ├── CAPropertyAnimation.m ├── CARenderer.m ├── CAReplicatorLayer.m ├── CAScrollLayer.m ├── CAShapeLayer.m ├── CASpringAnimation.m ├── CATextLayer.m ├── CATransaction.m ├── CATransactionGroup.h ├── CATransactionGroup.m ├── CATransform3D.m ├── CATransformLayer.m ├── CATransition.m ├── CAValueFunction.m ├── CAWindowOpenGLContext.m ├── CIAffineTransform.m ├── CIBloom.h ├── CIBloom.m ├── CIBoxBlur.h ├── CIBoxBlur.m ├── CIColor.m ├── CIContext.m ├── CIFilter.m ├── CIImage.m ├── CILinearGradient.h ├── CILinearGradient.m ├── CIVector.m ├── CMakeLists.txt ├── English.lproj │ └── InfoPlist.strings ├── Info.plist └── include │ └── QuartzCore │ ├── CAAction.h │ ├── CAAnimation.h │ ├── CAAnimationGroup.h │ ├── CABase.h │ ├── CAConstraintLayoutManager.h │ ├── CAFilter.h │ ├── CAGradientLayer.h │ ├── CALayer.h │ ├── CALayerContext.h │ ├── CAMediaTiming.h │ ├── CAMediaTimingFunction.h │ ├── CAMetalDrawable.h │ ├── CAMetalLayer.h │ ├── CAOpenGLLayer.h │ ├── CARenderer.h │ ├── CAReplicatorLayer.h │ ├── CAScrollLayer.h │ ├── CAShapeLayer.h │ ├── CASpringAnimation.h │ ├── CATextLayer.h │ ├── CATransaction.h │ ├── CATransform3D.h │ ├── CATransition.h │ ├── CAValueFunction.h │ ├── CAWindowOpenGLContext.h │ ├── CIAffineTransform.h │ ├── CIColor.h │ ├── CIContext.h │ ├── CIFilter.h │ ├── CIImage.h │ ├── CIVector.h │ ├── CoreAnimation.h │ ├── CoreImage.h │ ├── CoreVideo.h │ └── QuartzCore.h ├── README.md ├── examples ├── CGShadingCreate │ ├── CMakeLists.txt │ ├── GradientView.h │ ├── GradientView.m │ ├── Info.plist │ ├── Resources │ │ └── English.lproj │ │ │ ├── InfoPlist.strings │ │ │ └── MainMenu.nib │ │ │ ├── classes.nib │ │ │ ├── info.nib │ │ │ └── keyedobjects.nib │ └── main.m ├── CMakeLists.txt ├── NSOpenGLView │ ├── CMakeLists.txt │ ├── Info.plist │ ├── MyOpenGLView.h │ ├── MyOpenGLView.m │ ├── Resources │ │ └── English.lproj │ │ │ ├── InfoPlist.strings │ │ │ ├── Localizable-windows.strings │ │ │ ├── Localizable.strings │ │ │ └── MainMenu.nib │ │ │ ├── classes.nib │ │ │ ├── info.nib │ │ │ └── keyedobjects.nib │ └── main.m └── TextEditor │ ├── CMakeLists.txt │ ├── Info.plist │ ├── MyDocument.h │ ├── MyDocument.m │ ├── Resources │ └── English.lproj │ │ ├── Credits.rtf │ │ ├── MainMenu.nib │ │ ├── designable.nib │ │ └── keyedobjects.nib │ │ └── MyDocument.nib │ │ ├── designable.nib │ │ └── keyedobjects.nib │ └── main.m └── formatting ├── build.sh ├── cocotron-styling.patch └── format.sh /.gitignore: -------------------------------------------------------------------------------- 1 | *.xcworkspace 2 | xcuserdata 3 | xcshareddata 4 | build 5 | system 6 | .DS_Store 7 | 8 | formatting/llvm 9 | -------------------------------------------------------------------------------- /AppKit/CGEvent.h: -------------------------------------------------------------------------------- 1 | #import 2 | -------------------------------------------------------------------------------- /AppKit/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | AppKit 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | org.cocotron.AppKit 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleSignature 18 | OBJC 19 | CFBundleVersion 20 | 1.0 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /AppKit/MacWorkspace.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | // NSWorkspace implemented on top of Launch Services and other macOS frameworks 4 | @interface MacWorkspace : NSWorkspace { 5 | } 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /AppKit/NSActionTemplate.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSActionTemplate.ai -------------------------------------------------------------------------------- /AppKit/NSActionTemplate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSActionTemplate.pdf -------------------------------------------------------------------------------- /AppKit/NSAddTemplate.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSAddTemplate.ai -------------------------------------------------------------------------------- /AppKit/NSAddTemplate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSAddTemplate.pdf -------------------------------------------------------------------------------- /AppKit/NSAdvanced.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSAdvanced.ai -------------------------------------------------------------------------------- /AppKit/NSAdvanced.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSAdvanced.pdf -------------------------------------------------------------------------------- /AppKit/NSAlertPanelExclamation.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSAlertPanelExclamation.tiff -------------------------------------------------------------------------------- /AppKit/NSAnimationContext.h: -------------------------------------------------------------------------------- 1 | NSAnimation/NSAnimationContext.h -------------------------------------------------------------------------------- /AppKit/NSBidiHelper.h: -------------------------------------------------------------------------------- 1 | NSTextView.subproj/NSBidiHelper.h -------------------------------------------------------------------------------- /AppKit/NSBinder.h: -------------------------------------------------------------------------------- 1 | NSKeyValueBinding/NSBinder.h -------------------------------------------------------------------------------- /AppKit/NSBrowserCellArrow.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSBrowserCellArrow.tiff -------------------------------------------------------------------------------- /AppKit/NSBrowserCellColorList.h: -------------------------------------------------------------------------------- 1 | NSColorPicker.subproj/NSBrowserCellColorList.h -------------------------------------------------------------------------------- /AppKit/NSButtonCell_disclosure_highlighted.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSButtonCell_disclosure_highlighted.tif -------------------------------------------------------------------------------- /AppKit/NSButtonCell_disclosure_normal.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSButtonCell_disclosure_normal.tif -------------------------------------------------------------------------------- /AppKit/NSButtonCell_disclosure_selected.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSButtonCell_disclosure_selected.tif -------------------------------------------------------------------------------- /AppKit/NSButtonImageSource.h: -------------------------------------------------------------------------------- 1 | nib.subproj/NSButtonImageSource.h -------------------------------------------------------------------------------- /AppKit/NSCIImageRep.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | 6 | @implementation CIImage (CIImageRepAdditions) 7 | 8 | - initWithBitmapImageRep: (NSBitmapImageRep *) bitmapImageRep { 9 | return [self initWithCGImage: [bitmapImageRep CGImage]]; 10 | } 11 | 12 | @end 13 | 14 | @interface NSCIImageRep : NSImageRep 15 | @end 16 | 17 | @implementation NSCIImageRep 18 | 19 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 20 | { 21 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 22 | } 23 | 24 | - (void)forwardInvocation:(NSInvocation *)anInvocation 25 | { 26 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /AppKit/NSClassSwapper.h: -------------------------------------------------------------------------------- 1 | nib.subproj/NSClassSwapper.h -------------------------------------------------------------------------------- /AppKit/NSCoder+AppKit.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface NSCoder (AppKit) 5 | - (NSColor *) decodeNXColor; 6 | @end 7 | -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/NSColorPickerColorList.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/NSColorPickerColorList.tiff -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/NSColorPickerListIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/NSColorPickerListIcon.png -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/NSColorPickerSlidersCMYK.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/NSColorPickerSlidersCMYK.tiff -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/NSColorPickerSlidersGray.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/NSColorPickerSlidersGray.tiff -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/NSColorPickerSlidersHSB.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/NSColorPickerSlidersHSB.tiff -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/NSColorPickerSlidersIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/NSColorPickerSlidersIcon.png -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/NSColorPickerSlidersRGB.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/NSColorPickerSlidersRGB.tiff -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/NSColorPickerWheelIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/NSColorPickerWheelIcon.png -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/NSColorPickerWheelView.h: -------------------------------------------------------------------------------- 1 | 2 | #import 3 | 4 | @interface NSColorPickerWheelView : NSView { 5 | 6 | IBOutlet id _delegate; 7 | 8 | NSPoint _handleLocation; 9 | CGFloat _hueValue; // Varies 10 | CGFloat _saturationValue; 11 | CGFloat _brightnessValue; 12 | } 13 | 14 | - (void) setHue: (CGFloat) hue; // 0-359 15 | - (CGFloat) hue; 16 | 17 | - (void) setSaturation: (CGFloat) saturation; // 0-99 18 | - (CGFloat) saturation; 19 | 20 | - (void) setBrightness: (CGFloat) brightness; // 0-99 21 | - (CGFloat) brightness; 22 | 23 | - (IBAction) brightnessChanged: (id) sender; 24 | 25 | @end 26 | 27 | @interface NSObject (NSColorPickerWheelViewDelegate) 28 | 29 | - (void) colorPickerWheelView: (NSColorPickerWheelView *) view 30 | didSelectHue: (CGFloat) hue 31 | saturation: (CGFloat) saturation 32 | andBrightness: (CGFloat) brightness; 33 | 34 | @end -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/NSColorWheel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/NSColorWheel.png -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/de.lproj/NSColorPickerColorList.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/de.lproj/NSColorPickerColorList.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/de.lproj/NSColorPickerSliders.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/de.lproj/NSColorPickerSliders.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/de.lproj/NSColorPickerWheel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/de.lproj/NSColorPickerWheel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/en.lproj/NSColorPickerColorList.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 677 7 | IBOldestOS 8 | 4 9 | IBOpenObjects 10 | 11 | 5 12 | 13 | IBSystem Version 14 | 9J61 15 | targetFramework 16 | IBCocoaFramework 17 | 18 | 19 | -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/en.lproj/NSColorPickerColorList.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/en.lproj/NSColorPickerColorList.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/en.lproj/NSColorPickerSliders.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 677 7 | IBOldestOS 8 | -100 9 | IBOpenObjects 10 | 11 | 178 12 | 13 | IBSystem Version 14 | 9J61 15 | targetFramework 16 | IBCocoaFramework 17 | 18 | 19 | -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/en.lproj/NSColorPickerSliders.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/en.lproj/NSColorPickerSliders.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/en.lproj/NSColorPickerWheel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/en.lproj/NSColorPickerWheel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/fr.lproj/NSColorPickerColorList.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 677 7 | IBOldestOS 8 | 4 9 | IBOpenObjects 10 | 11 | 5 12 | 13 | IBSystem Version 14 | 9J61 15 | targetFramework 16 | IBCocoaFramework 17 | 18 | 19 | -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/fr.lproj/NSColorPickerColorList.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/fr.lproj/NSColorPickerColorList.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/fr.lproj/NSColorPickerSliders.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/fr.lproj/NSColorPickerSliders.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/NSColorPicker.subproj/fr.lproj/NSColorPickerWheel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSColorPicker.subproj/fr.lproj/NSColorPickerWheel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/NSColorPickerSliders.h: -------------------------------------------------------------------------------- 1 | NSColorPicker.subproj/NSColorPickerSliders.h -------------------------------------------------------------------------------- /AppKit/NSColorPickerWheel.h: -------------------------------------------------------------------------------- 1 | NSColorPicker.subproj/NSColorPickerWheel.h -------------------------------------------------------------------------------- /AppKit/NSColorPickerWheelView.h: -------------------------------------------------------------------------------- 1 | NSColorPicker.subproj/NSColorPickerWheelView.h -------------------------------------------------------------------------------- /AppKit/NSColor_catalog.h: -------------------------------------------------------------------------------- 1 | NSColor.subproj/NSColor_catalog.h -------------------------------------------------------------------------------- /AppKit/NSComboBoxCellDown.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSComboBoxCellDown.tiff -------------------------------------------------------------------------------- /AppKit/NSControlAuxiliary.m: -------------------------------------------------------------------------------- 1 | #import "AppKit/NSControlAuxiliary.h" 2 | 3 | @implementation NSControlAuxiliary 4 | 5 | - (NSInteger) tag { 6 | return _tag; 7 | } 8 | 9 | - (void) setTag: (NSInteger) tag { 10 | _tag = tag; 11 | } 12 | 13 | - (id) target { 14 | return _target; 15 | } 16 | 17 | - (void) setTarget: (id) target { 18 | // weak 19 | _target = target; 20 | } 21 | 22 | - (SEL) action { 23 | return _action; 24 | } 25 | 26 | - (void) setAction: (SEL) action { 27 | _action = action; 28 | } 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /AppKit/NSController/NSObservationProxy.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | 6 | @interface _NSObservationProxy : NSObject { 7 | id _keyPath; 8 | id _observer; 9 | id _object; 10 | BOOL _notifyObject; 11 | // only as storage (context for _observer will be the one given in 12 | // observeValueForKeyPath:) 13 | // FIXME: write accessors, remove @public 14 | @public 15 | void *_context; 16 | NSKeyValueObservingOptions _options; 17 | } 18 | - initWithKeyPath: (NSString *) keyPath 19 | observer: (id) observer 20 | object: (id) object; 21 | - (id) observer; 22 | - (id) keyPath; 23 | - (void) setNotifyObject: (BOOL) val; 24 | - (void *) context; 25 | - (NSKeyValueObservingOptions) options; 26 | @end 27 | 28 | void NSStringKVCSplitOnDot(NSString *self, NSString **before, NSString **after); 29 | -------------------------------------------------------------------------------- /AppKit/NSController/NSUserDefaultsControllerProxy.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSUserDefaultsControllerProxy.h 3 | // AppKit 4 | // 5 | // Created by Johannes Fortmann on 26.09.08. 6 | // Copyright 2008 -. All rights reserved. 7 | // 8 | 9 | #import 10 | @class NSMutableDictionary, NSUserDefaultsController; 11 | 12 | @interface NSUserDefaultsControllerProxy : NSObject { 13 | NSUserDefaultsController *_controller; 14 | NSMutableDictionary *_cachedValues; 15 | } 16 | - (id) initWithController: (NSUserDefaultsController *) controller; 17 | - (void) save; 18 | - (void) revert; 19 | - (void) revertToInitialValues; 20 | - (BOOL) hasUnappliedChanges; 21 | @end 22 | -------------------------------------------------------------------------------- /AppKit/NSController/_NSControllerArray.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSMutableIndexSet; 4 | 5 | @interface _NSControllerArray : NSMutableArray { 6 | NSMutableArray *_array; 7 | NSMutableArray *_observationProxies; 8 | NSMutableIndexSet *_roi; 9 | } 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /AppKit/NSCustomObject.h: -------------------------------------------------------------------------------- 1 | nib.subproj/NSCustomObject.h -------------------------------------------------------------------------------- /AppKit/NSCustomResource.h: -------------------------------------------------------------------------------- 1 | nib.subproj/NSCustomResource.h -------------------------------------------------------------------------------- /AppKit/NSCustomView.h: -------------------------------------------------------------------------------- 1 | nib.subproj/NSCustomView.h -------------------------------------------------------------------------------- /AppKit/NSDataAsset.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSDataAsset : NSObject 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /AppKit/NSDataAsset.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSDataAsset 4 | 5 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 6 | { 7 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 8 | } 9 | 10 | - (void)forwardInvocation:(NSInvocation *)anInvocation 11 | { 12 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /AppKit/NSEnterFullScreenTemplate.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSEnterFullScreenTemplate.ai -------------------------------------------------------------------------------- /AppKit/NSEnterFullScreenTemplate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSEnterFullScreenTemplate.pdf -------------------------------------------------------------------------------- /AppKit/NSEvent_CoreGraphics.h: -------------------------------------------------------------------------------- 1 | NSEvent.subproj/NSEvent_CoreGraphics.h -------------------------------------------------------------------------------- /AppKit/NSExitFullScreenTemplate.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSExitFullScreenTemplate.ai -------------------------------------------------------------------------------- /AppKit/NSExitFullScreenTemplate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSExitFullScreenTemplate.pdf -------------------------------------------------------------------------------- /AppKit/NSFileWrapperExtensions.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSFileWrapper (NSFileWrapperExtensions) 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /AppKit/NSGoLeftTemplate.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSGoLeftTemplate.ai -------------------------------------------------------------------------------- /AppKit/NSGoLeftTemplate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSGoLeftTemplate.pdf -------------------------------------------------------------------------------- /AppKit/NSGoRightTemplate.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSGoRightTemplate.ai -------------------------------------------------------------------------------- /AppKit/NSGoRightTemplate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSGoRightTemplate.pdf -------------------------------------------------------------------------------- /AppKit/NSHaptics.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSHapticFeedbackManager : NSObject 4 | 5 | @end 6 | 7 | @interface NSAlignmentFeedbackFilter : NSObject 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /AppKit/NSHaptics.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSHapticFeedbackManager 4 | 5 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 6 | { 7 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 8 | } 9 | 10 | - (void)forwardInvocation:(NSInvocation *)anInvocation 11 | { 12 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 13 | } 14 | 15 | @end 16 | 17 | @implementation NSAlignmentFeedbackFilter 18 | 19 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 20 | { 21 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 22 | } 23 | 24 | - (void)forwardInvocation:(NSInvocation *)anInvocation 25 | { 26 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /AppKit/NSHighlightedBrowserCellArrow.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSHighlightedBrowserCellArrow.tiff -------------------------------------------------------------------------------- /AppKit/NSHighlightedRadioButton.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSHighlightedRadioButton.tiff -------------------------------------------------------------------------------- /AppKit/NSHighlightedSwitch.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSHighlightedSwitch.tiff -------------------------------------------------------------------------------- /AppKit/NSIBObjectData.h: -------------------------------------------------------------------------------- 1 | nib.subproj/NSIBObjectData.h -------------------------------------------------------------------------------- /AppKit/NSInfo.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSInfo.ai -------------------------------------------------------------------------------- /AppKit/NSInfo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSInfo.pdf -------------------------------------------------------------------------------- /AppKit/NSInputManager.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSInputManager 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /AppKit/NSInterfacePart.h: -------------------------------------------------------------------------------- 1 | NSInterfacePart/NSInterfacePart.h -------------------------------------------------------------------------------- /AppKit/NSInterfacePartAttributedString.h: -------------------------------------------------------------------------------- 1 | NSInterfacePart/NSInterfacePartAttributedString.h -------------------------------------------------------------------------------- /AppKit/NSInterfacePartDisabledAttributedString.h: -------------------------------------------------------------------------------- 1 | NSInterfacePart/NSInterfacePartDisabledAttributedString.h -------------------------------------------------------------------------------- /AppKit/NSInvalidDataFreestandingTemplate.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSInvalidDataFreestandingTemplate.ai -------------------------------------------------------------------------------- /AppKit/NSInvalidDataFreestandingTemplate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSInvalidDataFreestandingTemplate.pdf -------------------------------------------------------------------------------- /AppKit/NSKVOBinder.h: -------------------------------------------------------------------------------- 1 | NSKeyValueBinding/NSKVOBinder.h -------------------------------------------------------------------------------- /AppKit/NSKeyBindingManager.m: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @implementation NSKeyBindingManager 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/NSKeyboardBinding.h: -------------------------------------------------------------------------------- 1 | NSKeyboardBinding/NSKeyboardBinding.h -------------------------------------------------------------------------------- /AppKit/NSKeyboardBindingManager.h: -------------------------------------------------------------------------------- 1 | NSKeyboardBinding/NSKeyboardBindingManager.h -------------------------------------------------------------------------------- /AppKit/NSLayoutConstraint.m: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | const CGFloat NSViewNoInstrinsicMetric = 0xbff0000000000000; 23 | const CGFloat NSViewNoIntrinsicMetric = 0xbff0000000000000; 24 | -------------------------------------------------------------------------------- /AppKit/NSLockLockedTemplate.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSLockLockedTemplate.ai -------------------------------------------------------------------------------- /AppKit/NSLockLockedTemplate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSLockLockedTemplate.pdf -------------------------------------------------------------------------------- /AppKit/NSLockUnlockedTemplate.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSLockUnlockedTemplate.ai -------------------------------------------------------------------------------- /AppKit/NSLockUnlockedTemplate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSLockUnlockedTemplate.pdf -------------------------------------------------------------------------------- /AppKit/NSMenu.subproj/NSCarbonMenuImpl.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | // DUMMY 4 | 5 | @interface NSCarbonMenuImpl : NSObject 6 | @end 7 | 8 | @implementation NSCarbonMenuImpl 9 | - (NSMethodSignature *) methodSignatureForSelector: (SEL) aSelector { 10 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 11 | } 12 | 13 | - (void) forwardInvocation: (NSInvocation *) anInvocation { 14 | NSLog(@"Stub called: %@ in %@", 15 | NSStringFromSelector([anInvocation selector]), [self class]); 16 | } 17 | @end 18 | -------------------------------------------------------------------------------- /AppKit/NSMenu.subproj/NSMenuArrow.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSMenu.subproj/NSMenuArrow.tiff -------------------------------------------------------------------------------- /AppKit/NSMenu.subproj/NSMenuViewDoubleRightArrow.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSMenu.subproj/NSMenuViewDoubleRightArrow.tiff -------------------------------------------------------------------------------- /AppKit/NSMenu.subproj/NSMenuViewDoubleRightArrowGray.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSMenu.subproj/NSMenuViewDoubleRightArrowGray.tiff -------------------------------------------------------------------------------- /AppKit/NSMovie.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSMovie 4 | 5 | + (NSArray *) movieUnfilteredPasteboardTypes { 6 | return [[[NSArray alloc] init] autorelease]; 7 | } 8 | 9 | @end -------------------------------------------------------------------------------- /AppKit/NSMovieView.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSMovieView 4 | 5 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 6 | { 7 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 8 | } 9 | 10 | - (void)forwardInvocation:(NSInvocation *)anInvocation 11 | { 12 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 13 | } 14 | 15 | @end -------------------------------------------------------------------------------- /AppKit/NSMultipleValueBinder.h: -------------------------------------------------------------------------------- 1 | NSKeyValueBinding/NSMultipleValueBinder.h -------------------------------------------------------------------------------- /AppKit/NSNibAXRelationshipConnector.h: -------------------------------------------------------------------------------- 1 | nib.subproj/NSNibAXRelationshipConnector.h -------------------------------------------------------------------------------- /AppKit/NSNibBindingConnector.h: -------------------------------------------------------------------------------- 1 | nib.subproj/NSNibBindingConnector.h -------------------------------------------------------------------------------- /AppKit/NSNibHelpConnector.h: -------------------------------------------------------------------------------- 1 | nib.subproj/NSNibHelpConnector.h -------------------------------------------------------------------------------- /AppKit/NSObservationProxy.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | 6 | @interface _NSObservationProxy : NSObject { 7 | id _keyPath; 8 | id _observer; 9 | id _object; 10 | BOOL _notifyObject; 11 | // only as storage (context for _observer will be the one given in 12 | // observeValueForKeyPath:) 13 | // FIXME: write accessors, remove @public 14 | @public 15 | void *_context; 16 | NSKeyValueObservingOptions _options; 17 | } 18 | - initWithKeyPath: (NSString *) keyPath 19 | observer: (id) observer 20 | object: (id) object; 21 | - (id) observer; 22 | - (id) keyPath; 23 | - (void) setNotifyObject: (BOOL) val; 24 | - (void *) context; 25 | - (NSKeyValueObservingOptions) options; 26 | @end 27 | 28 | void NSStringKVCSplitOnDot(NSString *self, NSString **before, NSString **after); 29 | -------------------------------------------------------------------------------- /AppKit/NSOpenGL/NSOpenGLDrawable.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSOpenGLDrawable 4 | 5 | - initWithPixelFormat: (NSOpenGLPixelFormat *) pixelFormat 6 | view: (NSView *) view 7 | { 8 | return self; 9 | } 10 | 11 | - (CGLContextObj) createGLContext { 12 | return NULL; 13 | } 14 | 15 | - (void) invalidate { 16 | } 17 | 18 | - (void) updateWithView: (NSView *) view { 19 | } 20 | 21 | - (void) makeCurrentWithGLContext: (CGLContextObj) glContext { 22 | } 23 | 24 | - (void) clearCurrentWithGLContext: (CGLContextObj) glContext { 25 | } 26 | 27 | - (void) swapBuffers { 28 | } 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /AppKit/NSPageController.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSPageController 4 | 5 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 6 | { 7 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 8 | } 9 | 10 | - (void)forwardInvocation:(NSInvocation *)anInvocation 11 | { 12 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /AppKit/NSPoof.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSPoof.png -------------------------------------------------------------------------------- /AppKit/NSPoofAnimation.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSPoofAnimation.h 3 | // Poof 4 | // 5 | // Created by Airy ANDRE on 24/07/13. 6 | // Copyright (c) 2013 plasq. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSPoofAnimation : NSObject 12 | 13 | + (void) poofAtLocation: (NSPoint) location 14 | size: (NSSize) size 15 | animationDelegate: (id) animationDelegate 16 | didEndSelector: (SEL) didEndSelector 17 | contextInfo: (void *) contextInfo; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /AppKit/NSPopUpButtonCellPopUp.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSPopUpButtonCellPopUp.tiff -------------------------------------------------------------------------------- /AppKit/NSPopUpButtonCellPullDown.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSPopUpButtonCellPullDown.tiff -------------------------------------------------------------------------------- /AppKit/NSPopover.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | // DUMMY 4 | const NSString *NSPopoverDidCloseNotification = 5 | @"NSPopoverDidCloseNotification"; 6 | const NSString *NSPopoverWillCloseNotification = 7 | @"NSPopoverWillCloseNotification"; 8 | const NSString *NSPopoverDidShowNotification = 9 | @"NSPopoverDidShowNotification"; 10 | 11 | @interface NSPopover : NSObject 12 | @end 13 | 14 | @implementation NSPopover 15 | - (NSMethodSignature *) methodSignatureForSelector: (SEL) aSelector { 16 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 17 | } 18 | 19 | - (void) forwardInvocation: (NSInvocation *) anInvocation { 20 | NSLog(@"Stub called: %@ in %@", 21 | NSStringFromSelector([anInvocation selector]), [self class]); 22 | } 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/NSPredicateEditor.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSPredicateEditor : NSRuleEditor 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /AppKit/NSPredicateEditor.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @implementation NSPredicateEditor 5 | 6 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 7 | { 8 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 9 | } 10 | 11 | - (void)forwardInvocation:(NSInvocation *)anInvocation 12 | { 13 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 14 | } 15 | 16 | - (instancetype) initWithCoder: (NSCoder *) coder { 17 | NSUnimplementedMethod(); 18 | return self; 19 | } 20 | 21 | - (BOOL) _forceUseDelegate { 22 | NSUnimplementedMethod(); 23 | return NO; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /AppKit/NSPredicateEditorRowTemplate.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSPredicateEditorRowTemplate : NSObject 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /AppKit/NSPredicateEditorRowTemplate.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSPredicateEditorRowTemplate 4 | 5 | - initWithCoder: (NSCoder *) coder { 6 | return self; 7 | } 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /AppKit/NSPreferencesGeneral.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSPreferencesGeneral.ai -------------------------------------------------------------------------------- /AppKit/NSPreferencesGeneral.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSPreferencesGeneral.pdf -------------------------------------------------------------------------------- /AppKit/NSPrintProgressPanelController.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSPrintProgressPanelController.h 3 | // AppKit 4 | // 5 | // Created by Robert Grant on 7/25/13. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface NSPrintProgressPanelController : NSWindowController { 12 | IBOutlet NSProgressIndicator *progressIndicator; 13 | } 14 | 15 | + (NSPrintProgressPanelController *) printProgressPanelController; 16 | 17 | - (void) setTitle: (NSString *) title; 18 | 19 | - (void) setMaxPages: (NSInteger) maxPages; 20 | 21 | - (void) setCurrentPage: (NSInteger) currentPage; 22 | 23 | - (void) showPanel; 24 | - (void) hidePanel; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /AppKit/NSRadioButton.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSRadioButton.tiff -------------------------------------------------------------------------------- /AppKit/NSRangeArray.h: -------------------------------------------------------------------------------- 1 | NSTextView.subproj/NSRangeArray.h -------------------------------------------------------------------------------- /AppKit/NSRefreshTemplate.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSRefreshTemplate.ai -------------------------------------------------------------------------------- /AppKit/NSRefreshTemplate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSRefreshTemplate.pdf -------------------------------------------------------------------------------- /AppKit/NSRemoveTemplate.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSRemoveTemplate.ai -------------------------------------------------------------------------------- /AppKit/NSRemoveTemplate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSRemoveTemplate.pdf -------------------------------------------------------------------------------- /AppKit/NSRichTextReader.h: -------------------------------------------------------------------------------- 1 | RTF.subproj/NSRichTextReader.h -------------------------------------------------------------------------------- /AppKit/NSRichTextWriter.h: -------------------------------------------------------------------------------- 1 | RTF.subproj/NSRichTextWriter.h -------------------------------------------------------------------------------- /AppKit/NSRuleEditor.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | NSString *const NSRuleEditorRowsDidChangeNotification = 4 | @"NSRuleEditorRowsDidChangeNotification"; 5 | 6 | @implementation NSRuleEditor 7 | 8 | - initWithCoder: (NSCoder *) coder { 9 | [super initWithCoder: coder]; 10 | 11 | return self; 12 | } 13 | 14 | - (void) encodeWithCoder: (NSCoder *) coder { 15 | } 16 | @end 17 | -------------------------------------------------------------------------------- /AppKit/NSRuleEditorButtonCell.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSRuleEditorButtonCell : NSButtonCell { 4 | } 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /AppKit/NSRuleEditorButtonCell.m: -------------------------------------------------------------------------------- 1 | #import "NSRuleEditorButtonCell.h" 2 | 3 | @implementation NSRuleEditorButtonCell 4 | 5 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 6 | { 7 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 8 | } 9 | 10 | - (void)forwardInvocation:(NSInvocation *)anInvocation 11 | { 12 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /AppKit/NSRuleEditorViewSliceRow.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSRuleEditorViewSliceRow : NSView 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /AppKit/NSRuleEditorViewSliceRow.m: -------------------------------------------------------------------------------- 1 | #import "NSRuleEditorViewSliceRow.h" 2 | 3 | @implementation NSRuleEditorViewSliceRow 4 | 5 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 6 | { 7 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 8 | } 9 | 10 | - (void)forwardInvocation:(NSInvocation *)anInvocation 11 | { 12 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /AppKit/NSRulerMarker+NSTextExtensions.h: -------------------------------------------------------------------------------- 1 | NSTextView.subproj/NSRulerMarker+NSTextExtensions.h -------------------------------------------------------------------------------- /AppKit/NSRulerMarkerTab.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSRulerMarkerTab.tiff -------------------------------------------------------------------------------- /AppKit/NSSavePanel.subproj/_NSFileSystemDataSource.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface _NSFileSystemDataSource : NSObject { 4 | NSMutableSet *_cachedPaths; 5 | NSFileManager *_fileManager; 6 | } 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /AppKit/NSSearchGlass.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSSearchGlass.ai -------------------------------------------------------------------------------- /AppKit/NSSearchGlass.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSSearchGlass.pdf -------------------------------------------------------------------------------- /AppKit/NSSecureLayoutManager.h: -------------------------------------------------------------------------------- 1 | NSTextView.subproj/NSSecureLayoutManager.h -------------------------------------------------------------------------------- /AppKit/NSSecureTextView.h: -------------------------------------------------------------------------------- 1 | NSTextView.subproj/NSSecureTextView.h -------------------------------------------------------------------------------- /AppKit/NSSharingService.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | NSString* const NSSharingServiceNameComposeEmail = @"NSSharingServiceNameComposeEmail"; 4 | 5 | @implementation NSSharingService 6 | 7 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 8 | { 9 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 10 | } 11 | 12 | - (void)forwardInvocation:(NSInvocation *)anInvocation 13 | { 14 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 15 | } 16 | 17 | @end 18 | 19 | @implementation NSSharingServicePicker 20 | 21 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 22 | { 23 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 24 | } 25 | 26 | - (void)forwardInvocation:(NSInvocation *)anInvocation 27 | { 28 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /AppKit/NSSpellCheckerTagData.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSSpellCheckerTagData.h 3 | // AppKit 4 | // 5 | // Created by Christopher Lloyd on 8/23/11. 6 | // Copyright 2011 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class NSMutableSet, NSArray; 12 | 13 | @interface NSSpellCheckerTagData : NSObject { 14 | NSMutableSet *_ignoredWords; 15 | } 16 | 17 | - (void) ignoreWord: (NSString *) word; 18 | - (NSArray *) ignoredWords; 19 | - (void) setIgnoredWords: (NSArray *) words; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /AppKit/NSSpellCheckerTagData.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSSpellCheckerTagData.m 3 | // AppKit 4 | // 5 | // Created by Christopher Lloyd on 8/23/11. 6 | // Copyright 2011 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "NSSpellCheckerTagData.h" 10 | #import 11 | 12 | @implementation NSSpellCheckerTagData 13 | 14 | - init { 15 | _ignoredWords = [[NSMutableSet alloc] init]; 16 | return self; 17 | } 18 | 19 | - (void) dealloc { 20 | [_ignoredWords release]; 21 | [super dealloc]; 22 | } 23 | 24 | - (void) ignoreWord: (NSString *) word { 25 | [_ignoredWords addObject: [[word copy] autorelease]]; 26 | } 27 | 28 | - (NSArray *) ignoredWords { 29 | return [_ignoredWords allObjects]; 30 | } 31 | 32 | - (void) setIgnoredWords: (NSArray *) words { 33 | [_ignoredWords setByAddingObjectsFromArray: words]; 34 | } 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /AppKit/NSSplitViewHDimple.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSSplitViewHDimple.tiff -------------------------------------------------------------------------------- /AppKit/NSSplitViewVDimple.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSSplitViewVDimple.tiff -------------------------------------------------------------------------------- /AppKit/NSStatusBar_(Private).h: -------------------------------------------------------------------------------- 1 | // 2 | // NSStatusItem (Private).h 3 | // AppKit 4 | // 5 | // Created by Rhys Cox on 17/02/2012. 6 | // Copyright (c) 2012 BP Software. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #ifdef Win32Assert 12 | #import 13 | #import 14 | #endif 15 | 16 | #define NSVariableStatusItemLength (-1) 17 | #define NSSquareStatusItemLength (-2) 18 | 19 | #import 20 | 21 | @interface NSStatusBar (Private) 22 | #ifdef WIN32 23 | - (void) _trayNotificationForID: (int) aTrayID event: (int) anEvent; 24 | - (Win32Window *) fakeWindow; 25 | #endif 26 | @end 27 | -------------------------------------------------------------------------------- /AppKit/NSStatusItem+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSStatusItem+Private.h 3 | // AppKit 4 | // 5 | // Created by Rhys Cox on 17/02/2012. 6 | // Copyright (c) 2012 BP Software. All rights reserved. 7 | // 8 | #import 9 | #import 10 | #ifdef WIN32 11 | #import 12 | #endif 13 | @class NSImage, NSStatusItem, NSMenuItem; 14 | @interface NSStatusItem (Private) 15 | #ifdef WIN32 16 | - (void) _createTrayIcon; 17 | - (void) _setHICONFromImage: (NSImage *) image; 18 | - (void) _removeTrayIcon; 19 | - (int) trayIconID; 20 | - (void) _processWin32Event: (int) event; 21 | - (void) _w32loadMenuItem: (NSMenuItem *) item 22 | withIdentifier: (int) i 23 | intoMenu: (HMENU) menu; 24 | HWND _eventhWnd; 25 | NOTIFYICONDATA niData; 26 | #endif 27 | - (void) _showContextMenu; 28 | @end -------------------------------------------------------------------------------- /AppKit/NSStopProgressFreestandingTemplate.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSStopProgressFreestandingTemplate.ai -------------------------------------------------------------------------------- /AppKit/NSStopProgressFreestandingTemplate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSStopProgressFreestandingTemplate.pdf -------------------------------------------------------------------------------- /AppKit/NSStopProgressTemplate.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSStopProgressTemplate.ai -------------------------------------------------------------------------------- /AppKit/NSStopProgressTemplate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSStopProgressTemplate.pdf -------------------------------------------------------------------------------- /AppKit/NSSwitch.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSSwitch : NSControl 4 | @end 5 | 6 | @implementation NSSwitch 7 | 8 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 9 | { 10 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 11 | } 12 | 13 | - (void)forwardInvocation:(NSInvocation *)anInvocation 14 | { 15 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /AppKit/NSSwitch.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSSwitch.tiff -------------------------------------------------------------------------------- /AppKit/NSSystemInfoPanel.h: -------------------------------------------------------------------------------- 1 | NSSystemInfoPanel/NSSystemInfoPanel.h -------------------------------------------------------------------------------- /AppKit/NSSystemInfoPanel/NSApplicationIcon.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSSystemInfoPanel/NSApplicationIcon.tiff -------------------------------------------------------------------------------- /AppKit/NSSystemInfoPanel/de.lproj/NSSystemInfoPanel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSSystemInfoPanel/de.lproj/NSSystemInfoPanel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/NSSystemInfoPanel/en.lproj/NSSystemInfoPanel.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 677 7 | IBLastKnownRelativeProjectPath 8 | ../AppKit.xcodeproj 9 | IBOldestOS 10 | 4 11 | IBOpenObjects 12 | 13 | 204 14 | 15 | IBSystem Version 16 | 9J61 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /AppKit/NSSystemInfoPanel/en.lproj/NSSystemInfoPanel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSSystemInfoPanel/en.lproj/NSSystemInfoPanel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/NSSystemInfoPanel/fr.lproj/NSSystemInfoPanel.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 677 7 | IBLastKnownRelativeProjectPath 8 | ../AppKit.xcodeproj 9 | IBOldestOS 10 | 4 11 | IBOpenObjects 12 | 13 | 204 14 | 15 | IBSystem Version 16 | 9J61 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /AppKit/NSSystemInfoPanel/fr.lproj/NSSystemInfoPanel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSSystemInfoPanel/fr.lproj/NSSystemInfoPanel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/NSTextBinder.h: -------------------------------------------------------------------------------- 1 | NSKeyValueBinding/NSTextBinder.h -------------------------------------------------------------------------------- /AppKit/NSTextFieldBinder.h: -------------------------------------------------------------------------------- 1 | NSKeyValueBinding/NSTextFieldBinder.h -------------------------------------------------------------------------------- /AppKit/NSTextFinder.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSTextFinder 4 | 5 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 6 | { 7 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 8 | } 9 | 10 | - (void)forwardInvocation:(NSInvocation *)anInvocation 11 | { 12 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /AppKit/NSTextInput.m: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | NSString *const NSTextInputContextKeyboardSelectionDidChangeNotification = @"NSTextInputContextKeyboardSelectionDidChangeNotification"; 4 | 5 | @implementation NSTextInputContext 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /AppKit/NSTextStorage_concrete.h: -------------------------------------------------------------------------------- 1 | NSTextView.subproj/NSTextStorage_concrete.h -------------------------------------------------------------------------------- /AppKit/NSTitlebarAccessoryViewController.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSTitlebarAccessoryViewController 4 | 5 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 6 | { 7 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 8 | } 9 | 10 | - (void)forwardInvocation:(NSInvocation *)anInvocation 11 | { 12 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /AppKit/NSTokenAttachmentCell.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | // This is a private class in Cocoa, BGHUDAppKit uses it 4 | 5 | @interface NSTokenAttachmentCell : NSTextAttachmentCell { 6 | } 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /AppKit/NSTokenAttachmentCell.m: -------------------------------------------------------------------------------- 1 | #import "NSTokenAttachmentCell.h" 2 | 3 | @implementation NSTokenAttachmentCell 4 | 5 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 6 | { 7 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 8 | } 9 | 10 | - (void)forwardInvocation:(NSInvocation *)anInvocation 11 | { 12 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /AppKit/NSToolbar.subproj/NSToolbarCustomizeToolbarItem.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSToolbar.subproj/NSToolbarCustomizeToolbarItem.tiff -------------------------------------------------------------------------------- /AppKit/NSToolbar.subproj/NSToolbarMoreToolbarItems.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSToolbar.subproj/NSToolbarMoreToolbarItems.tiff -------------------------------------------------------------------------------- /AppKit/NSToolbar.subproj/NSToolbarOverflowArrow.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSToolbar.subproj/NSToolbarOverflowArrow.pdf -------------------------------------------------------------------------------- /AppKit/NSToolbar.subproj/NSToolbarOverflowArrow.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSToolbar.subproj/NSToolbarOverflowArrow.tiff -------------------------------------------------------------------------------- /AppKit/NSToolbar.subproj/NSToolbarPrintItem.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSToolbar.subproj/NSToolbarPrintItem.tiff -------------------------------------------------------------------------------- /AppKit/NSToolbar.subproj/NSToolbarShowColorsItem.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSToolbar.subproj/NSToolbarShowColorsItem.tiff -------------------------------------------------------------------------------- /AppKit/NSToolbar.subproj/NSToolbarShowFontsItem.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSToolbar.subproj/NSToolbarShowFontsItem.tiff -------------------------------------------------------------------------------- /AppKit/NSTypesetter_concrete.h: -------------------------------------------------------------------------------- 1 | NSTextView.subproj/NSTypesetter_concrete.h -------------------------------------------------------------------------------- /AppKit/NSUndoTextOperation.h: -------------------------------------------------------------------------------- 1 | NSTextView.subproj/NSUndoTextOperation.h -------------------------------------------------------------------------------- /AppKit/NSUser.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSUser.ai -------------------------------------------------------------------------------- /AppKit/NSUser.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/NSUser.pdf -------------------------------------------------------------------------------- /AppKit/NSUserDefaultsControllerProxy.h: -------------------------------------------------------------------------------- 1 | NSController/NSUserDefaultsControllerProxy.h -------------------------------------------------------------------------------- /AppKit/NSUserInterfaceItemIdentification.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSObject (NSUserInterfaceItemIdentification) 4 | 5 | - (NSUserInterfaceItemIdentifier) userInterfaceItemIdentifier { 6 | if ([self respondsToSelector: @selector(identifier)]) { 7 | return [self identifier]; 8 | } 9 | return nil; 10 | } 11 | 12 | - (void) setUserInterfaceItemIdentifier: (NSUserInterfaceItemIdentifier) userInterfaceItemIdentifier { 13 | if ([self respondsToSelector: @selector(setIdentifier:)]) { 14 | [self setIdentifier: userInterfaceItemIdentifier]; 15 | } 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /AppKit/NSViewBackingLayer.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSViewBackingLayer : CALayer 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /AppKit/NSViewBackingLayer.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSViewBackingLayer 4 | 5 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 6 | { 7 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 8 | } 9 | 10 | - (void)forwardInvocation:(NSInvocation *)anInvocation 11 | { 12 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /AppKit/NSWindowScripting.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSWindow (scripting) 4 | 5 | - (NSInteger) orderedIndex; 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /AppKit/NSWindowScripting.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @implementation NSWindow (scripting) 5 | 6 | - (NSInteger) orderedIndex { 7 | NSInteger result = [[NSApp orderedWindows] indexOfObjectIdenticalTo: self]; 8 | 9 | /* Documentation says orderedIndex is zero based, but tests say it is 1 10 | based Possible there is a window at 0 which is not in -[NSApp windows] ? 11 | Either way, available windows are 1 based. 12 | */ 13 | if (result != NSNotFound) 14 | result += 1; 15 | 16 | return result; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /AppKit/NSWindowTemplate.h: -------------------------------------------------------------------------------- 1 | nib.subproj/NSWindowTemplate.h -------------------------------------------------------------------------------- /AppKit/Win32.subproj/NSGraphicsStyle_uxtheme.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSGraphicsStyle_uxtheme : NSGraphicsStyle 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /AppKit/Win32.subproj/NSSound_win32.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSSound_win32 : NSSound { 4 | NSString *_soundFilePath; 5 | BOOL _paused; 6 | unsigned int _handle; 7 | } 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /AppKit/Win32.subproj/O2Context_gdi+AppKit.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface O2Context_gdi (AppKit) 4 | 5 | - initWithHWND: (HWND) handle; 6 | - initWithPrinterDC: (HDC) printer 7 | auxiliaryInfo: (NSDictionary *) auxiliaryInfo; 8 | - (HWND) windowHandle; 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /AppKit/X11.backend/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | X11 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | org.darlinghq.backends.X11 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleSignature 18 | OBJC 19 | CFBundleVersion 20 | 1.0 21 | NSPriority 22 | 200 23 | NSPrincipalClass 24 | X11Display 25 | 26 | 27 | -------------------------------------------------------------------------------- /AppKit/X11.backend/X11Cursor.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | 6 | @interface X11Cursor : NSObject { 7 | Cursor _cursor; 8 | } 9 | 10 | - (id) initWithShape: (unsigned int) shape; 11 | - (id) initWithName: (const char *) name; 12 | - (id) initWithImage: (NSImage *) image hotPoint: (NSPoint) hotPoint; 13 | - (id) initBlank; 14 | - (id) init; 15 | - (void) dealloc; 16 | 17 | @property(readonly) Cursor cursor; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /AppKit/X11.backend/X11Event.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | // Does inheriting from CGEvent make sense? The real CG doesn't use any 5 | // objc and our CGEvent class was empty. 6 | @interface X11Event : NSObject { 7 | XEvent _event; 8 | } 9 | 10 | - initWithXEvent: (XEvent) event; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /AppKit/X11.backend/X11Event.m: -------------------------------------------------------------------------------- 1 | #import "X11Event.h" 2 | 3 | @implementation X11Event 4 | 5 | - initWithXEvent: (XEvent) event { 6 | _event = event; 7 | return self; 8 | } 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /AppKit/X11.backend/X11KeySymToUCS.h: -------------------------------------------------------------------------------- 1 | #ifndef X11KEYSYMTOUCS_H 2 | #define X11KEYSYMTOUCS_H 3 | #include 4 | 5 | uint32_t X11KeySymToUCS(uint32_t x11KeySym); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /AppKit/X11.backend/X11SubWindow.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @class X11Window; 5 | 6 | @interface X11SubWindow : CGSubWindow { 7 | X11Window *_parent; 8 | Display *_display; 9 | Window _window; 10 | } 11 | 12 | - initWithParentWindow: (X11Window *) parent frame: (CGRect) frame; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /AppKit/_NSControllerArray.h: -------------------------------------------------------------------------------- 1 | NSController/_NSControllerArray.h -------------------------------------------------------------------------------- /AppKit/_NSRuleEditorViewSliceHolder.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface _NSRuleEditorViewSliceHolder : NSView 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /AppKit/_NSRuleEditorViewSliceHolder.m: -------------------------------------------------------------------------------- 1 | #import "_NSRuleEditorViewSliceHolder.h" 2 | 3 | @implementation _NSRuleEditorViewSliceHolder 4 | 5 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 6 | { 7 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 8 | } 9 | 10 | - (void)forwardInvocation:(NSInvocation *)anInvocation 11 | { 12 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /AppKit/de.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/de.lproj/Localizable.strings -------------------------------------------------------------------------------- /AppKit/de.lproj/NSColorPanel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/de.lproj/NSColorPanel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/de.lproj/NSFontPanel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/de.lproj/NSFontPanel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/de.lproj/NSToolbarCustomizationPalette.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/de.lproj/NSToolbarCustomizationPalette.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/en.lproj/Localizable.strings -------------------------------------------------------------------------------- /AppKit/en.lproj/NSColorPanel.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 677 7 | IBOldestOS 8 | -100 9 | IBOpenObjects 10 | 11 | 5 12 | 13 | IBSystem Version 14 | 9J61 15 | targetFramework 16 | IBCocoaFramework 17 | 18 | 19 | -------------------------------------------------------------------------------- /AppKit/en.lproj/NSColorPanel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/en.lproj/NSColorPanel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/en.lproj/NSFontPanel.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 677 7 | IBLastKnownRelativeProjectPath 8 | AppKit.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 9G55 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /AppKit/en.lproj/NSFontPanel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/en.lproj/NSFontPanel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/en.lproj/NSMenu.plist: -------------------------------------------------------------------------------- 1 | { 2 | "\UF700"="Up arrow"; 3 | "\UF701"="Down arrow"; 4 | "\UF702"="Left arrow"; 5 | "\UF703"="Right arrow"; 6 | 7 | "\UF704"="F1"; 8 | "\UF705"="F2"; 9 | "\UF706"="F3"; 10 | "\UF707"="F4"; 11 | "\UF708"="F5"; 12 | "\UF709"="F6"; 13 | "\UF70A"="F7"; 14 | "\UF70B"="F8"; 15 | "\UF70C"="F9"; 16 | "\UF70D"="F10"; 17 | "\UF70E"="F11"; 18 | "\UF70F"="F12"; 19 | 20 | /* ... */ 21 | } 22 | -------------------------------------------------------------------------------- /AppKit/en.lproj/NSOpenPanel.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/en.lproj/NSOpenPanel.nib -------------------------------------------------------------------------------- /AppKit/en.lproj/NSSavePanel.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/en.lproj/NSSavePanel.nib -------------------------------------------------------------------------------- /AppKit/en.lproj/NSToolbarCustomizationPalette.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 672 7 | IBLastKnownRelativeProjectPath 8 | ../AppKit.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 9G55 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /AppKit/en.lproj/NSToolbarCustomizationPalette.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/en.lproj/NSToolbarCustomizationPalette.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/en.lproj/NSToolbarCustomizationPalette.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/en.lproj/NSToolbarCustomizationPalette.nib/objects.nib -------------------------------------------------------------------------------- /AppKit/fr.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/fr.lproj/Localizable.strings -------------------------------------------------------------------------------- /AppKit/fr.lproj/NSColorPanel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/fr.lproj/NSColorPanel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/fr.lproj/NSFontPanel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/fr.lproj/NSFontPanel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/fr.lproj/NSMenu.plist: -------------------------------------------------------------------------------- 1 | { 2 | "\UF700"="Up arrow"; 3 | "\UF701"="Down arrow"; 4 | "\UF702"="Left arrow"; 5 | "\UF703"="Right arrow"; 6 | 7 | "\UF704"="F1"; 8 | "\UF705"="F2"; 9 | "\UF706"="F3"; 10 | "\UF707"="F4"; 11 | "\UF708"="F5"; 12 | "\UF709"="F6"; 13 | "\UF70A"="F7"; 14 | "\UF70B"="F8"; 15 | "\UF70C"="F9"; 16 | "\UF70D"="F10"; 17 | "\UF70E"="F11"; 18 | "\UF70F"="F12"; 19 | 20 | /* ... */ 21 | } 22 | -------------------------------------------------------------------------------- /AppKit/fr.lproj/NSToolbarCustomizationPalette.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/AppKit/fr.lproj/NSToolbarCustomizationPalette.nib/keyedobjects.nib -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSATSTypesetter.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSATSTypesetter : NSTypesetter 24 | @end 25 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSAccessibilityElement.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSAccessibilityElement : NSObject 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSAccessibilityProtocols.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free softwareyou can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @protocol NSAccessibility 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSAffineTransform.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSBezierPath; 4 | 5 | @interface NSAffineTransform (AppKit) 6 | 7 | - (void) concat; 8 | - (void) set; 9 | 10 | - (NSBezierPath *) transformBezierPath: (NSBezierPath *) bezierPath; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSCIImageRep.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @class NSBitmapImageRep; 5 | 6 | @interface CIImage (CIImageRepAdditions) 7 | - initWithBitmapImageRep: (NSBitmapImageRep *) bitmapImageRep; 8 | @end 9 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSCandidateListTouchBarItem.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2024 Darling developers 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface NSCandidateListTouchBarItem<__covariant CandidateType> : NSTouchBarItem 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSCatalogColor.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2021 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | #import 23 | 24 | @interface NSCatalogColor : NSColor 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSCollectionViewLayoutAttributes.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2021 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSCollectionViewLayoutAttributes : NSObject 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSCollectionViewLayoutInvalidationContext.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2021 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSCollectionViewLayoutInvalidationContext : NSObject 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSControlAuxiliary.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSControlAuxiliary : NSObject { 4 | NSInteger _tag; 5 | id _target; 6 | SEL _action; 7 | } 8 | 9 | - (id) target; 10 | - (SEL) action; 11 | - (NSInteger) tag; 12 | 13 | - (void) setTag: (NSInteger) tag; 14 | - (void) setAction: (SEL) action; 15 | - (void) setTarget: (id) target; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSDockTile.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @class NSView; 5 | 6 | @interface NSDockTile : NSObject { 7 | id _owner; 8 | NSSize _size; 9 | NSString *_badgeLabel; 10 | NSView *_contentView; 11 | BOOL _showsApplicationBadge; 12 | } 13 | 14 | - (NSSize) size; 15 | - owner; 16 | 17 | - (NSString *) badgeLabel; 18 | - (NSView *) contentView; 19 | - (BOOL) showsApplicationBadge; 20 | 21 | - (void) setBadgeLabel: (NSString *) value; 22 | - (void) setContentView: (NSView *) view; 23 | - (void) setShowsApplicationBadge: (BOOL) value; 24 | 25 | - (void) display; 26 | 27 | @end 28 | 29 | @protocol NSDockTilePlugIn 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSDynamicNamedColor.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2021 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | #import 23 | 24 | @interface NSDynamicNamedColor : NSCatalogColor 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSFileWrapperExtensions.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSImage; 4 | 5 | @interface NSFileWrapper (NSExtensions) 6 | 7 | @property(nullable, strong) NSImage *icon; 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSFontCollection.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2024 Darling developers 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface NSFontCollection: NSObject 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSGestureRecognizer.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSGestureRecognizer : NSObject 24 | @end 25 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSGroupTouchBarItem.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface NSGroupTouchBarItem : NSTouchBarItem 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSInputManager.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSInputManager : NSObject 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSInputServer.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @protocol NSInputServiceProvider 4 | 5 | // TODO 6 | 7 | @end 8 | 9 | @protocol NSInputServerMouseTracker 10 | 11 | // TODO 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSKeyBindingManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSKeyBindingManager : NSObject 24 | @end 25 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSLayoutGuide.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2021 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSLayoutGuide : NSObject 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSMovie.h: -------------------------------------------------------------------------------- 1 | @interface NSMovie : NSObject 2 | 3 | + (NSArray *) movieUnfilteredPasteboardTypes; 4 | 5 | @end -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSMovieView.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSMovieView : NSView 4 | 5 | @end -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSOpenGL.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import 4 | #import 5 | #import 6 | #import 7 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSOpenGLDrawable.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @class NSOpenGLPixelFormat, NSView; 5 | 6 | @interface NSOpenGLDrawable : NSObject 7 | 8 | - initWithPixelFormat: (NSOpenGLPixelFormat *) pixelFormat 9 | view: (NSView *) view; 10 | 11 | - (CGLContextObj) createGLContext; 12 | 13 | - (void) invalidate; 14 | - (void) updateWithView: (NSView *) view; 15 | - (void) makeCurrentWithGLContext: (CGLContextObj) glContext; 16 | - (void) clearCurrentWithGLContext: (CGLContextObj) glContext; 17 | - (void) swapBuffers; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSOpenGLLayer.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSOpenGLLayer : CAOpenGLLayer 24 | @end 25 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSPageController.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface NSPageController : NSViewController 5 | 6 | @end 7 | 8 | @protocol NSPageControllerDelegate 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSPasteboardItem.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface NSPasteboardItem : NSObject 23 | @end 24 | 25 | @protocol NSPasteboardItemDataProvider 26 | 27 | // TODO 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSPathComponentCell.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSPathComponentCell : NSTextFieldCell { 4 | NSURL *_URL; 5 | } 6 | 7 | - (NSURL *) URL; 8 | - (void) setURL: (NSURL *) value; 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSPopover.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @protocol NSPopoverDelegate 4 | 5 | // TODO 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSPopoverTouchBarItem.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface NSPopoverTouchBarItem : NSTouchBarItem 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSPressureConfiguration.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2021 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSPressureConfiguration : NSObject 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSRaise.h: -------------------------------------------------------------------------------- 1 | #import 2 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSRuleEditor.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | APPKIT_EXPORT NSString *const NSRuleEditorRowsDidChangeNotification; 6 | 7 | @interface NSRuleEditor : NSControl 8 | 9 | @end 10 | 11 | @protocol NSRuleEditorDelegate 12 | 13 | // TODO 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSSpaceTouchBarItem.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface NSSpaceTouchBarItem : NSTouchBarItem 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSSpeechRecognizer.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @protocol NSSpeechRecognizerDelegate 4 | 5 | // TODO 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSSpellProtocol.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @protocol NSChangeSpelling 4 | - (void) changeSpelling: sender; 5 | @end 6 | 7 | @protocol NSIgnoreMisspelledWords 8 | - (void) ignoreSpelling: sender; 9 | @end 10 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSSplitViewItem.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2021 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSSplitViewItem : NSObject 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSStackView.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface NSStackView : NSView 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSStoryboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2021 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSStoryboard : NSObject 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSTableCellView.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface NSTableCellView : NSView 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSTableRowView.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface NSTableRowView : NSView 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSTableViewRowAction.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2021 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSTableViewRowAction : NSObject 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSTextFinder.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @protocol NSTextFinderBarContainer 4 | 5 | @end 6 | 7 | @protocol NSTextFinderClient 8 | 9 | @end 10 | 11 | @interface NSTextFinder : NSObject 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSTextInputClient.h: -------------------------------------------------------------------------------- 1 | @protocol NSTextInputClient 2 | 3 | // TODO 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSTitlebarAccessoryViewController.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface NSTitlebarAccessoryViewController : NSViewController 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSTokenAttachment.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2021 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | #import 23 | 24 | @interface NSTokenAttachment : NSTextAttachment 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSTouchBar.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface NSTouchBar : NSObject 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSTouchDevice.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2021 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSTouchDevice : NSObject 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSTreeNode.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface NSTreeNode : NSObject 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSUserInterfaceItemIdentification.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | typedef NSString* NSUserInterfaceItemIdentifier; 4 | 5 | @protocol NSUserInterfaceItemIdentification 6 | 7 | @property(copy) NSUserInterfaceItemIdentifier identifier; 8 | 9 | @end 10 | 11 | @interface NSObject (NSUserInterfaceItemIdentification) 12 | 13 | @property(copy) NSUserInterfaceItemIdentifier userInterfaceItemIdentifier; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSUserInterfaceItemSearching.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @protocol NSUserInterfaceItemSearching 4 | 5 | // TODO 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSUserInterfaceValidation.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @protocol NSValidatedUserInterfaceItem 4 | - (NSInteger) tag; 5 | - (SEL) action; 6 | @end 7 | 8 | @protocol NSUserInterfaceValidations 9 | 10 | // TODO 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSVisualEffectView.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface NSVisualEffectView : NSView 23 | @end 24 | -------------------------------------------------------------------------------- /AppKit/include/AppKit/NSWindowRestoration.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @protocol NSWindowRestoration 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /AppKit/nib.subproj/NSIBHelpConnector.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSIBHelpConnector : NSObject 4 | @end 5 | 6 | @implementation NSIBHelpConnector 7 | 8 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 9 | { 10 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 11 | } 12 | 13 | - (void)forwardInvocation:(NSInvocation *)anInvocation 14 | { 15 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /AppKit/nib.subproj/NSIBUserDefinedRuntimeAttributesConnector.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSIBUserDefinedRuntimeAttributesConnector : NSObject { 4 | id _object; 5 | NSMutableArray *_keyPaths; 6 | NSMutableArray *_values; 7 | } 8 | 9 | - (void) establishConnection; 10 | - (void) replaceObject: (id) original withObject: (id) replacement; 11 | 12 | - (void) setLabel: (NSString *) label; 13 | - (NSString *) label; 14 | - (void) setDestination: (id) destination; 15 | - (id) destination; 16 | - (void) setSource: (id) source; 17 | - (id) source; 18 | 19 | - (void) setObject: (id) object; 20 | - (id) object; 21 | - (void) setValues: (NSArray *) values; 22 | - (NSArray *) values; 23 | - (void) setKeyPaths: (NSArray *) paths; 24 | - (NSArray *) keyPaths; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /AppKit/nib.subproj/NSMenuTemplate.h: -------------------------------------------------------------------------------- 1 | 2 | #import 3 | 4 | @interface NSMenuTemplate : NSObject { 5 | NSString *_menuClass; 6 | id _realObject; 7 | } 8 | @end 9 | -------------------------------------------------------------------------------- /AppKit/nib.subproj/NSMenuTemplate.m: -------------------------------------------------------------------------------- 1 | #import "NSMenuTemplate.h" 2 | 3 | @implementation NSMenuTemplate 4 | 5 | - (void) dealloc { 6 | [_realObject release]; 7 | [_menuClass release]; 8 | [super dealloc]; 9 | } 10 | 11 | - (void) setClassName: (NSString *) className { 12 | [className retain]; 13 | [_menuClass release]; 14 | _menuClass = className; 15 | } 16 | 17 | - (NSString *) className { 18 | return _menuClass; 19 | } 20 | 21 | - (void) setRealObject: (id) o { 22 | [o retain]; 23 | [_realObject release]; 24 | _realObject = o; 25 | } 26 | 27 | - (id) realObject { 28 | return _realObject; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /AppKit/nib.subproj/NSNibAXRelationshipConnector.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSNibAXRelationshipConnector : NSNibConnector { 4 | } 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /AppKit/nib.subproj/NSNibAXRelationshipConnector.m: -------------------------------------------------------------------------------- 1 | #import "NSNibAXRelationshipConnector.h" 2 | 3 | @interface NSNibAXAttributeConnector : NSObject 4 | @end 5 | 6 | @implementation NSNibAXRelationshipConnector 7 | 8 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 9 | { 10 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 11 | } 12 | 13 | - (void)forwardInvocation:(NSInvocation *)anInvocation 14 | { 15 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 16 | } 17 | 18 | @end 19 | 20 | @implementation NSNibAXAttributeConnector 21 | 22 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 23 | { 24 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 25 | } 26 | 27 | - (void)forwardInvocation:(NSInvocation *)anInvocation 28 | { 29 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /AppKit/nib.subproj/NSNibAuxiliaryActionConnector.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSNibAuxiliaryActionConnector : NSObject 4 | @end 5 | 6 | @implementation NSNibAuxiliaryActionConnector 7 | 8 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 9 | { 10 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 11 | } 12 | 13 | - (void)forwardInvocation:(NSInvocation *)anInvocation 14 | { 15 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /AppKit/nib.subproj/NSNibExternalObjectPlaceholder.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSNibExternalObjectPlaceholder : NSObject 4 | @end 5 | 6 | @implementation NSNibExternalObjectPlaceholder 7 | 8 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 9 | { 10 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 11 | } 12 | 13 | - (void)forwardInvocation:(NSInvocation *)anInvocation 14 | { 15 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /AppKit/nib.subproj/UINibCoding.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface UINibEncoder : NSCoder 4 | @end 5 | 6 | @implementation UINibEncoder 7 | 8 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 9 | { 10 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 11 | } 12 | 13 | - (void)forwardInvocation:(NSInvocation *)anInvocation 14 | { 15 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(cocotron) 2 | 3 | add_subdirectory(CoreGraphics) 4 | add_subdirectory(Onyx2D) 5 | add_subdirectory(AppKit) 6 | add_subdirectory(CoreText) 7 | add_subdirectory(Cocoa) 8 | add_subdirectory(CoreData) 9 | add_subdirectory(QuartzCore) 10 | -------------------------------------------------------------------------------- /Cocoa/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(Cocoa) 2 | 3 | remove_sdk_framework(Cocoa) 4 | 5 | set(Cocoa_sources 6 | Cocoa.m 7 | ) 8 | 9 | set_source_files_properties(${Cocoa_sources} LANGUAGE C) 10 | 11 | set(DYLIB_COMPAT_VERSION "1.0.0") 12 | set(DYLIB_CURRENT_VERSION "22.0.0") 13 | 14 | set(FRAMEWORK_VERSION "A") 15 | 16 | generate_sdk_framework(Cocoa 17 | VERSION ${FRAMEWORK_VERSION} 18 | HEADER "include/Cocoa" 19 | ) 20 | 21 | add_framework(Cocoa 22 | FAT 23 | CURRENT_VERSION 24 | SOURCES 25 | ${Cocoa_sources} 26 | VERSION ${FRAMEWORK_VERSION} 27 | DEPENDENCIES 28 | objc 29 | system 30 | Foundation 31 | AppKit 32 | CoreData 33 | ) 34 | -------------------------------------------------------------------------------- /Cocoa/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | Cocoa 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | org.cocotron.Cocoa 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleSignature 20 | OBJC 21 | CFBundleVersion 22 | 1.0 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /CoreData/CoreDataErrors.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | NSString *const NSAffectedStoresErrorKey = @"NSAffectedStoresErrorKey"; 4 | NSString *const NSDetailedErrorsKey = @"NSDetailedErrorsKey"; 5 | -------------------------------------------------------------------------------- /CoreData/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/CoreData/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /CoreData/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | org.cocotron.CoreData 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleSignature 20 | OBJC 21 | CFBundleVersion 22 | 1.0 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /CoreData/Linux/CoreData.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/CoreData/Linux/CoreData.h -------------------------------------------------------------------------------- /CoreData/NSEntityDescription-Private.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSEntityDescription (private) 4 | - (BOOL) _isKindOfEntity: (NSEntityDescription *) other; 5 | - (NSPropertyDescription *) _propertyForSelector: (SEL) selector; 6 | @end 7 | -------------------------------------------------------------------------------- /CoreData/NSInMemoryPersistentStore.h: -------------------------------------------------------------------------------- 1 | #import "NSXMLPersistentStore.h" 2 | #import 3 | 4 | @interface NSInMemoryPersistentStore : NSXMLPersistentStore 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /CoreData/NSInMemoryPersistentStore.m: -------------------------------------------------------------------------------- 1 | #import "NSInMemoryPersistentStore.h" 2 | #import 3 | 4 | @implementation NSInMemoryPersistentStore 5 | 6 | + (NSDictionary *) metadataForPersistentStoreWithURL: (NSURL *) url 7 | error: (NSError **) error 8 | { 9 | return nil; 10 | } 11 | 12 | - (NSString *) type { 13 | return NSInMemoryStoreType; 14 | } 15 | 16 | - (BOOL) load: (NSError **) errorp { 17 | return YES; 18 | } 19 | 20 | - (BOOL) save: (NSError **) error { 21 | return YES; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /CoreData/NSManagedObject-Private.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSManagedObject (private) 4 | - initWithObjectID: (NSManagedObjectID *) objectID 5 | managedObjectContext: (NSManagedObjectContext *) context; 6 | @end 7 | -------------------------------------------------------------------------------- /CoreData/NSManagedObjectContext-Private.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSAtomicStoreCacheNode; 4 | 5 | @interface NSManagedObjectContext (private) 6 | - (NSAtomicStoreCacheNode *) _cacheNodeForObjectID: 7 | (NSManagedObjectID *) objectID; 8 | - (void) _registerObject: (NSManagedObject *) object; 9 | @end 10 | -------------------------------------------------------------------------------- /CoreData/NSManagedObjectID-Private.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSManagedObjectID (private) 4 | - initWithEntity: (NSEntityDescription *) entity; 5 | - (NSString *) storeIdentifier; 6 | 7 | // Do not use referenceObject directly except for debugging 8 | // Use -[NSAtomicStore referenceObjectForUniqueID:] as this needs to unique the 9 | // ID 10 | - referenceObject; 11 | 12 | - (void) setStoreIdentifier: (NSString *) storeIdentifier; 13 | - (void) setReferenceObject: value; 14 | - (void) setPersistentStore: (NSPersistentStore *) store; 15 | @end 16 | -------------------------------------------------------------------------------- /CoreData/NSManagedObjectMutableSet.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSManagedObject; 4 | 5 | @interface NSManagedObjectMutableSet : NSMutableSet { 6 | NSManagedObject *_object; 7 | NSString *_key; 8 | } 9 | 10 | - initWithManagedObject: (NSManagedObject *) object key: (NSString *) key; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /CoreData/NSManagedObjectSet.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSManagedObjectContext; 4 | 5 | @interface NSManagedObjectSet : NSSet { 6 | NSManagedObjectContext *_context; 7 | NSSet *_set; 8 | } 9 | 10 | - initWithManagedObjectContext: (NSManagedObjectContext *) context 11 | set: (NSSet *) set; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /CoreData/NSManagedObjectSetEnumerator.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSManagedObjectContext; 4 | 5 | @interface NSManagedObjectSetEnumerator : NSEnumerator { 6 | NSManagedObjectContext *_context; 7 | NSEnumerator *_enumerator; 8 | } 9 | 10 | - initWithManagedObjectContext: (NSManagedObjectContext *) context 11 | objectEnumerator: (NSEnumerator *) enumerator; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /CoreData/NSManagedObjectSetEnumerator.m: -------------------------------------------------------------------------------- 1 | #import "NSManagedObjectSetEnumerator.h" 2 | #import 3 | 4 | @implementation NSManagedObjectSetEnumerator 5 | 6 | - initWithManagedObjectContext: (NSManagedObjectContext *) context 7 | objectEnumerator: (NSEnumerator *) enumerator 8 | { 9 | _context = [context retain]; 10 | _enumerator = [enumerator retain]; 11 | return self; 12 | } 13 | 14 | - (void) dealloc { 15 | [_context release]; 16 | [_enumerator release]; 17 | [super dealloc]; 18 | } 19 | 20 | - nextObject { 21 | id objectID = [_enumerator nextObject]; 22 | 23 | if (objectID == nil) 24 | return nil; 25 | 26 | return [_context objectWithID: objectID]; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /CoreData/NSMergePolicy.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation NSMergePolicy 4 | 5 | @end 6 | 7 | id NSErrorMergePolicy = nil; 8 | id NSMergeByPropertyStoreTrumpMergePolicy = nil; 9 | id NSMergeByPropertyObjectTrumpMergePolicy = nil; 10 | id NSOverwriteMergePolicy = nil; 11 | id NSRollbackMergePolicy = nil; 12 | -------------------------------------------------------------------------------- /CoreData/NSPersistentStoreCoordinator-Private.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSManagedObjectID; 4 | 5 | @interface NSPersistentStoreCoordinator (private) 6 | - (NSPersistentStore *) _persistentStoreWithIdentifier: (NSString *) identifier; 7 | - (NSPersistentStore *) _persistentStoreForObjectID: 8 | (NSManagedObjectID *) object; 9 | - (NSPersistentStore *) _persistentStoreForObject: (NSManagedObject *) object; 10 | @end 11 | -------------------------------------------------------------------------------- /CoreData/NSXMLPersistentStore.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class XMLDocument, NSMutableDictionary; 4 | 5 | @interface NSXMLPersistentStore : NSAtomicStore { 6 | XMLDocument *_document; 7 | NSMutableDictionary *_referenceToCacheNode; 8 | NSMutableDictionary *_referenceToElement; 9 | NSMutableSet *_usedReferences; 10 | } 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /CoreData/include/CoreData/CoreData.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | #import 6 | #import 7 | #import 8 | #import 9 | #import 10 | #import 11 | #import 12 | #import 13 | -------------------------------------------------------------------------------- /CoreData/include/CoreData/CoreDataErrors.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | COREDATA_EXPORT NSString *const NSAffectedStoresErrorKey; 5 | COREDATA_EXPORT NSString *const NSDetailedErrorsKey; 6 | 7 | enum { 8 | NSPersistentStoreInvalidTypeError = 134000, 9 | NSPersistentStoreTypeMismatchError = 134010, 10 | NSPersistentStoreIncompatibleSchemaError = 134020, 11 | NSPersistentStoreSaveError = 134030, 12 | NSPersistentStoreIncompleteSaveError = 134040, 13 | NSPersistentStoreOperationError = 134070, 14 | NSPersistentStoreOpenError = 134080, 15 | NSPersistentStoreTimeoutError = 134090, 16 | NSPersistentStoreIncompatibleVersionHashError = 134100, 17 | }; 18 | -------------------------------------------------------------------------------- /CoreData/include/CoreData/CoreDataExports.h: -------------------------------------------------------------------------------- 1 | #ifdef __clang__ 2 | #define COREDATA_DLLEXPORT 3 | #define COREDATA_DLLIMPORT 4 | #else 5 | #define COREDATA_DLLEXPORT __declspec(dllexport) 6 | #define COREDATA_DLLIMPORT __declspec(dllimport) 7 | #endif 8 | 9 | #ifdef __cplusplus 10 | 11 | #if defined(__WIN32__) 12 | #if defined(COREDATA_INSIDE_BUILD) 13 | #define COREDATA_EXPORT extern "C" COREDATA_DLLEXPORT 14 | #else 15 | #define COREDATA_EXPORT extern "C" COREDATA_DLLIMPORT 16 | #endif 17 | #else 18 | #define COREDATA_EXPORT extern "C" 19 | #endif 20 | 21 | #else 22 | 23 | #if defined(__WIN32__) 24 | #if defined(COREDATA_INSIDE_BUILD) 25 | #define COREDATA_EXPORT COREDATA_DLLEXPORT extern 26 | #else 27 | #define COREDATA_EXPORT COREDATA_DLLIMPORT extern 28 | #endif 29 | #else 30 | #define COREDATA_EXPORT extern 31 | #endif 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /CoreData/include/CoreData/NSAtomicStoreCacheNode.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSManagedObjectID, NSMutableDictionary; 4 | 5 | @interface NSAtomicStoreCacheNode : NSObject { 6 | NSManagedObjectID *_objectID; 7 | NSMutableDictionary *_propertyCache; 8 | } 9 | 10 | - initWithObjectID: (NSManagedObjectID *) objectID; 11 | 12 | - (NSManagedObjectID *) objectID; 13 | 14 | - (NSMutableDictionary *) propertyCache; 15 | 16 | - (void) setPropertyCache: (NSMutableDictionary *) value; 17 | 18 | - (void) setValue: value forKey: (NSString *) key; 19 | 20 | - valueForKey: (NSString *) key; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /CoreData/include/CoreData/NSFetchedPropertyDescription.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSFetchRequest; 4 | 5 | @interface NSFetchedPropertyDescription : NSPropertyDescription { 6 | NSFetchRequest *_fetchRequest; 7 | } 8 | 9 | - (NSFetchRequest *) fetchRequest; 10 | 11 | - (void) setFetchRequest: (NSFetchRequest *) value; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /CoreData/include/CoreData/NSMergeConflict.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface NSMergeConflict : NSObject 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /CoreData/include/CoreData/NSMergePolicy.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSMergePolicy : NSObject 4 | 5 | @end 6 | 7 | extern id NSErrorMergePolicy; 8 | extern id NSMergeByPropertyStoreTrumpMergePolicy; 9 | extern id NSMergeByPropertyObjectTrumpMergePolicy; 10 | extern id NSOverwriteMergePolicy; 11 | extern id NSRollbackMergePolicy; 12 | -------------------------------------------------------------------------------- /CoreGraphics/CGDisplayConfiguration.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | CGError CGDisplayRegisterReconfigurationCallback(CGDisplayReconfigurationCallBack callback, void *userInfo) { 4 | printf("STUB %s\n", __PRETTY_FUNCTION__); 5 | return kCGErrorSuccess; 6 | } 7 | 8 | CGError CGDisplayRemoveReconfigurationCallback(CGDisplayReconfigurationCallBack callback, void *userInfo) { 9 | printf("STUB %s\n", __PRETTY_FUNCTION__); 10 | return kCGErrorSuccess; 11 | } 12 | -------------------------------------------------------------------------------- /CoreGraphics/CGDisplayFade.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | CGError CGDisplayFade(CGDisplayFadeReservationToken token, 4 | CGDisplayFadeInterval duration, 5 | CGDisplayBlendFraction startBlend, 6 | CGDisplayBlendFraction endBlend, float redBlend, 7 | float greenBlend, float blueBlend, boolean_t synchronous) 8 | { 9 | return 0; 10 | } 11 | 12 | CGError CGAcquireDisplayFadeReservation(CGDisplayReservationInterval seconds, 13 | CGDisplayFadeReservationToken *token) 14 | { 15 | return 0; 16 | } 17 | 18 | CGError CGReleaseDisplayFadeReservation(CGDisplayFadeReservationToken token) { 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /CoreGraphics/CGPSConverter.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | extern CGPSConverterRef CGPSConverterCreate(void *info, const CGPSConverterCallbacks *callbacks, CFDictionaryRef options) { 4 | printf("STUB %s\n", __PRETTY_FUNCTION__); 5 | return nil; 6 | } 7 | -------------------------------------------------------------------------------- /CoreGraphics/CGRemoteOperation.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | CGError CGScreenRegisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo) { 4 | printf("STUB %s\n", __PRETTY_FUNCTION__); 5 | return nil; 6 | } 7 | 8 | void CGScreenUnregisterMoveCallback(CGScreenUpdateMoveCallback callback, void *userInfo) { 9 | printf("STUB %s\n", __PRETTY_FUNCTION__); 10 | return nil; 11 | } 12 | -------------------------------------------------------------------------------- /CoreGraphics/CGSubWindow.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @implementation CGSubWindow 5 | 6 | - (void *) nativeWindow { 7 | O2InvalidAbstractInvocation(); 8 | return NULL; 9 | } 10 | 11 | - (void) show { 12 | O2InvalidAbstractInvocation(); 13 | } 14 | 15 | - (void) hide { 16 | O2InvalidAbstractInvocation(); 17 | } 18 | 19 | - (void) setFrame: (CGRect) frame { 20 | O2InvalidAbstractInvocation(); 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /CoreGraphics/CGWindowLevel.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | CGWindowLevel CGWindowLevelForKey(CGWindowLevelKey key) 4 | { 5 | return kCGNormalWindowLevel; 6 | } 7 | -------------------------------------------------------------------------------- /CoreGraphics/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | org.cocotron.${PRODUCT_NAME:identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleSignature 20 | OBJC 21 | CFBundleVersion 22 | 1.0 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /CoreGraphics/X11.backend/CGSSurfaceX11.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2020 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | #ifndef CGSSURFACEX11_H 20 | #define CGSSURFACEX11_H 21 | 22 | #import 23 | 24 | @interface CGSSurfaceX11 : CGSSurface 25 | @end 26 | 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /CoreGraphics/X11.backend/CGSSurfaceX11.m: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2020 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | #import "CGSSurfaceX11.h" 20 | -------------------------------------------------------------------------------- /CoreGraphics/X11.backend/CGSWindowX11.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2020 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | #ifndef CGSWINDOWX11_H 20 | #define CGSWINDOWX11_H 21 | 22 | #import 23 | 24 | @interface CGSWindowX11 : CGSWindow 25 | @end 26 | 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /CoreGraphics/X11.backend/CGSWindowX11.m: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2020 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | #import "CGSWindowX11.h" 20 | 21 | -------------------------------------------------------------------------------- /CoreGraphics/X11.backend/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_backend(X11 2 | SOURCES 3 | CGSConnectionX11.m 4 | CGSWindowX11.m 5 | CGSSurfaceX11.m 6 | X11KeySymToUCS.m 7 | INFO_PLIST 8 | Info.plist 9 | DEPENDENCIES 10 | objc 11 | system 12 | CoreFoundation 13 | Foundation 14 | CoreGraphics 15 | OpenGL 16 | # native libraries 17 | X11 18 | XRandR 19 | Xcursor 20 | fontconfig 21 | xkbfile 22 | ) 23 | -------------------------------------------------------------------------------- /CoreGraphics/X11.backend/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | X11 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | org.darlinghq.backends.X11 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleSignature 18 | OBJC 19 | CFBundleVersion 20 | 1.0 21 | NSPriority 22 | 200 23 | NSPrincipalClass 24 | CGSConnectionX11 25 | 26 | 27 | -------------------------------------------------------------------------------- /CoreGraphics/X11.backend/X11KeySymToUCS.h: -------------------------------------------------------------------------------- 1 | #ifndef X11KEYSYMTOUCS_H 2 | #define X11KEYSYMTOUCS_H 3 | #include 4 | 5 | uint32_t X11KeySymToUCS(uint32_t x11KeySym); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /CoreGraphics/include/CoreGraphics/CGBase.h: -------------------------------------------------------------------------------- 1 | #ifndef __CGBase_H__ 2 | #define __CGBase_H__ 3 | 4 | #include 5 | 6 | // Moved over from our CoreFoundation 7 | 8 | #ifdef __LP64__ 9 | typedef double CGFloat; 10 | #define CGFLOAT_MIN DBL_MIN 11 | #define CGFLOAT_MAX DBL_MAX 12 | #define CGFLOAT_SCAN "%lg" 13 | #define CGFLOAT_IS_DOUBLE 1 14 | #else 15 | typedef float CGFloat; 16 | #define CGFLOAT_MIN FLT_MIN 17 | #define CGFLOAT_MAX FLT_MAX 18 | #define CGFLOAT_SCAN "%g" 19 | #define CGFLOAT_IS_DOUBLE 0 20 | #endif 21 | 22 | #define CGFLOAT_DEFINED 1 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /CoreGraphics/include/CoreGraphics/CGDisplayFade.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | typedef uint32_t CGDisplayFadeReservationToken; 5 | typedef float CGDisplayBlendFraction; 6 | typedef float CGDisplayFadeInterval; 7 | typedef float CGDisplayReservationInterval; 8 | 9 | COREGRAPHICS_EXPORT CGError CGDisplayFade(CGDisplayFadeReservationToken token, CGDisplayFadeInterval duration, CGDisplayBlendFraction startBlend, CGDisplayBlendFraction endBlend, float redBlend, float greenBlend, float blueBlend, boolean_t synchronous); 10 | -------------------------------------------------------------------------------- /CoreGraphics/include/CoreGraphics/CGError.h: -------------------------------------------------------------------------------- 1 | #ifndef CGERROR_H 2 | #define CGERROR_H 3 | 4 | #include 5 | 6 | typedef enum { 7 | kCGErrorSuccess = 0, 8 | kCGErrorFailure = 1000, 9 | kCGErrorIllegalArgument = 1001, 10 | kCGErrorInvalidConnection = 1002, 11 | kCGErrorInvalidContext = 1003, 12 | kCGErrorCannotComplete = 1004, 13 | kCGErrorNotImplemented = 1006, 14 | kCGErrorRangeCheck = 1007, 15 | kCGErrorTypeCheck = 1008, 16 | kCGErrorInvalidOperation = 1010, 17 | kCGErrorNoneAvailable = 1011, 18 | } CGError; 19 | 20 | typedef CGError CGDisplayErr; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /CoreGraphics/include/CoreGraphics/CGLPixelSurface.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | @class O2Surface, CGWindow; 6 | 7 | @interface CGLPixelSurface : NSObject { 8 | int _width, _height; 9 | BOOL _isOpaque, _validBuffers; 10 | int _numberOfBuffers; 11 | int _rowsPerBuffer; 12 | GLuint *_bufferObjects; 13 | void **_readPixels; 14 | void **_staticPixels; 15 | 16 | O2Surface *_surface; 17 | } 18 | 19 | - initWithSize: (O2Size) size; 20 | 21 | - (void) setFrameSize: (O2Size) value; 22 | - (void) setOpaque: (BOOL) value; 23 | 24 | - (void) readBuffer; 25 | 26 | - (O2Surface *) validSurface; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /CoreGraphics/include/CoreGraphics/CGPDFDictionary.h: -------------------------------------------------------------------------------- 1 | #ifndef COREGRAPHICS_CGPDFDICTIONARY_H 2 | #define COREGRAPHICS_CGPDFDICTIONARY_H 3 | 4 | #include 5 | 6 | typedef struct CGPDFDictionary *CGPDFDictionaryRef; 7 | typedef void (*CGPDFDictionaryApplierFunction)(const char *key, CGPDFObjectRef value, void *info); 8 | 9 | void CGPDFDictionaryApplyFunction(CGPDFDictionaryRef dict, CGPDFDictionaryApplierFunction function, void *info); 10 | 11 | #endif // COREGRAPHICS_CGPDFDICTIONARY_H -------------------------------------------------------------------------------- /CoreGraphics/include/CoreGraphics/CGPDFObject.h: -------------------------------------------------------------------------------- 1 | typedef struct CGPDFObject* CGPDFObjectRef; 2 | -------------------------------------------------------------------------------- /CoreGraphics/include/CoreGraphics/CGSubWindow.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | 3 | #import 4 | #import 5 | 6 | @interface CGSubWindow : NSObject 7 | 8 | - (void *) nativeWindow; 9 | 10 | - (void) show; 11 | - (void) hide; 12 | 13 | - (void) setFrame: (CGRect) frame; 14 | 15 | @end 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /CoreGraphics/include/CoreGraphics/KTFont+PDF.h: -------------------------------------------------------------------------------- 1 | #import "KTFont.h" 2 | 3 | @class KGPDFObject, KGPDFContext; 4 | 5 | @interface KTFont (PDF) 6 | - (void) getBytes: (unsigned char *) bytes 7 | forGlyphs: (const CGGlyph *) glyphs 8 | length: (unsigned) length; 9 | - (KGPDFObject *) encodeReferenceWithContext: (KGPDFContext *) context; 10 | @end 11 | -------------------------------------------------------------------------------- /CoreText/CTFontCollection.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | CTFontCollectionRef CTFontCollectionCreateFromAvailableFonts(CFDictionaryRef options) 4 | { 5 | printf("STUB %s\n", __PRETTY_FUNCTION__); 6 | return nil; 7 | } 8 | 9 | CFArrayRef _Nullable CTFontCollectionCreateMatchingFontDescriptors(CTFontCollectionRef collection) 10 | { 11 | printf("STUB %s\n", __PRETTY_FUNCTION__); 12 | return nil; 13 | } 14 | 15 | CTFontCollectionRef CTFontCollectionCreateWithFontDescriptors(CFArrayRef _Nullable queryDescriptors, 16 | CFDictionaryRef _Nullable options) 17 | { 18 | printf("STUB %s\n", __PRETTY_FUNCTION__); 19 | return nil; 20 | } 21 | -------------------------------------------------------------------------------- /CoreText/CTFontManager.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | bool CTFontManagerRegisterGraphicsFont(CGFontRef font, CFErrorRef* error) 4 | { 5 | printf("STUB %s\n", __PRETTY_FUNCTION__); 6 | return nil; 7 | } 8 | 9 | bool CTFontManagerUnregisterGraphicsFont(CGFontRef font, CFErrorRef *error) 10 | { 11 | printf("STUB %s\n", __PRETTY_FUNCTION__); 12 | return nil; 13 | } 14 | 15 | CFArrayRef CTFontManagerCopyAvailableFontFamilyNames(void) 16 | { 17 | printf("STUB %s\n", __PRETTY_FUNCTION__); 18 | return nil; 19 | } 20 | 21 | bool CTFontManagerRegisterFontsForURL(CFURLRef fontURL, CTFontManagerScope scope, CFErrorRef * error) 22 | { 23 | printf("STUB %s\n", __PRETTY_FUNCTION__); 24 | return false; 25 | } 26 | -------------------------------------------------------------------------------- /CoreText/CTParagraphStyle.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #include 4 | 5 | CTParagraphStyleRef CTParagraphStyleCreate(const CTParagraphStyleSetting *settings, size_t settingCount) { 6 | printf("STUB %s\n", __PRETTY_FUNCTION__); 7 | return nil; 8 | } 9 | 10 | bool CTParagraphStyleGetValueForSpecifier(CTParagraphStyleRef paragraphStyle, CTParagraphStyleSpecifier spec, size_t valueBufferSize, void *valueBuffer) { 11 | printf("STUB %s\n", __PRETTY_FUNCTION__); 12 | return nil; 13 | } 14 | -------------------------------------------------------------------------------- /CoreText/CTStringATtributes.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | const CFStringRef kCTLigatureAttributeName = "NSLigature"; 4 | const CFStringRef kCTUnderlineStyleAttributeName = "NSUnderline"; 5 | -------------------------------------------------------------------------------- /CoreText/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | org.cocotron.${PRODUCT_NAME:identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleSignature 20 | OBJC 21 | CFBundleVersion 22 | 1.0 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /CoreText/include/CoreText/CTFontCollection.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | typedef struct __CTFontCollection* CTFontCollectionRef; 5 | 6 | CORETEXT_EXPORT CTFontCollectionRef CTFontCollectionCreateFromAvailableFonts(CFDictionaryRef options); 7 | CORETEXT_EXPORT CFArrayRef CTFontCollectionCreateMatchingFontDescriptors(CTFontCollectionRef collection); 8 | CORETEXT_EXPORT CTFontCollectionRef CTFontCollectionCreateWithFontDescriptors(CFArrayRef queryDescriptors, CFDictionaryRef options); 9 | -------------------------------------------------------------------------------- /CoreText/include/CoreText/CTFontManager.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | CF_IMPLICIT_BRIDGING_ENABLED 5 | 6 | typedef NS_ENUM(uint32_t, CTFontManagerScope) 7 | { 8 | kCTFontManagerScopeNone = 0, 9 | kCTFontManagerScopeProcess = 1, 10 | kCTFontManagerScopePersistent = 2, 11 | kCTFontManagerScopeSession = 3, 12 | kCTFontManagerScopeUser = 2, 13 | }; 14 | 15 | CORETEXT_EXPORT bool CTFontManagerRegisterGraphicsFont(CGFontRef font, CFErrorRef* error); 16 | CORETEXT_EXPORT bool CTFontManagerUnregisterGraphicsFont(CGFontRef font, CFErrorRef *error); 17 | 18 | CORETEXT_EXPORT CFArrayRef CTFontManagerCopyAvailableFontFamilyNames(void); 19 | 20 | CORETEXT_EXPORT bool CTFontManagerRegisterFontsForURL(CFURLRef fontURL, CTFontManagerScope scope, CFErrorRef * error); 21 | 22 | CF_IMPLICIT_BRIDGING_DISABLED 23 | -------------------------------------------------------------------------------- /CoreText/include/CoreText/CTStringAttributes.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | CORETEXT_EXPORT const CFStringRef kCTLigatureAttributeName; 4 | CORETEXT_EXPORT const CFStringRef kCTUnderlineStyleAttributeName; 5 | 6 | -------------------------------------------------------------------------------- /CoreText/include/CoreText/CTTypesetter.h: -------------------------------------------------------------------------------- 1 | CF_IMPLICIT_BRIDGING_ENABLED 2 | 3 | typedef struct __CTTypesetter* CTTypesetterRef; 4 | 5 | CF_IMPLICIT_BRIDGING_DISABLED 6 | -------------------------------------------------------------------------------- /CoreText/stubs.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void *CTFontDescriptorCreateWithAttributes(void) { 4 | printf("STUB %s\n", __PRETTY_FUNCTION__); 5 | return NULL; 6 | } 7 | -------------------------------------------------------------------------------- /Onyx2D/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Onyx2D/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.yourcompany.${PRODUCT_NAME:rfc1034Identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Onyx2D/O2ClipMask.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/Onyx2D/O2ClipMask.m -------------------------------------------------------------------------------- /Onyx2D/O2Font_ttf.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @implementation O2Font_ttf 5 | 6 | - initWithDataProvider: (O2DataProviderRef) provider { 7 | O2TTFDecoderRef decoder = O2TTFDecoderCreate(provider); 8 | 9 | _nameToGlyph = 10 | O2TTFDecoderGetPostScriptNameMapTable(decoder, &_numberOfGlyphs); 11 | _glyphLocations = O2TTFDecoderGetGlyphLocations(decoder, _numberOfGlyphs); 12 | return self; 13 | } 14 | 15 | - (O2Glyph) glyphWithGlyphName: (NSString *) name { 16 | return (O2Glyph)(NSInteger) NSMapGet(_nameToGlyph, name); 17 | } 18 | 19 | O2FontRef O2FontCreateWithFontName_platform(NSString *name) { 20 | return nil; 21 | } 22 | 23 | O2FontRef O2FontCreateWithDataProvider_platform(O2DataProviderRef provider) { 24 | return nil; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Onyx2D/O2PDFBlock.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @implementation O2PDFBlock 5 | 6 | + pdfBlock { 7 | return [[[O2PDFBlock alloc] init] autorelease]; 8 | } 9 | 10 | - init { 11 | _objects = [[NSMutableArray alloc] init]; 12 | return self; 13 | } 14 | 15 | - (void) dealloc { 16 | [_objects release]; 17 | [super dealloc]; 18 | } 19 | 20 | - (O2PDFObjectType) objectType { 21 | return kO2PDFObjectTypeBlock; 22 | } 23 | 24 | - (NSArray *) objects { 25 | return _objects; 26 | } 27 | 28 | - (void) addObject: object { 29 | [_objects addObject: object]; 30 | } 31 | 32 | - (NSString *) description { 33 | return [NSString 34 | stringWithFormat: @"<%@ %x> { %@ }", [self class], self, _objects]; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Onyx2D/VGPath.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/Onyx2D/VGPath.m -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Blending.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/Onyx2D/include/Onyx2D/O2Blending.h -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2ClipMask.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface O2ClipMask : O2Surface { 4 | int _x; 5 | int _y; 6 | } 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2ClipPhase.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | @class O2Path, O2Image; 10 | 11 | typedef enum { 12 | O2ClipPhaseNonZeroPath, 13 | O2ClipPhaseEOPath, 14 | O2ClipPhaseMask, 15 | } O2ClipPhaseType; 16 | 17 | @interface O2ClipPhase : NSObject { 18 | O2ClipPhaseType _type; 19 | id _object; 20 | O2Rect _rect; 21 | O2AffineTransform _transform; 22 | } 23 | 24 | O2ClipPhase *O2ClipPhaseInitWithNonZeroPath(O2ClipPhase *self, O2Path *path); 25 | - initWithEOPath: (O2Path *) path; 26 | - initWithMask: (O2Image *) mask 27 | rect: (O2Rect) rect 28 | transform: (O2AffineTransform) transform; 29 | 30 | O2ClipPhaseType O2ClipPhasePhaseType(O2ClipPhase *self); 31 | id O2ClipPhaseObject(O2ClipPhase *self); 32 | 33 | @end 34 | 35 | #ifdef __cplusplus 36 | } 37 | #endif 38 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2ColorSpace+PDF.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class O2PDFObject, O2PDFContext; 4 | 5 | @interface O2ColorSpace (PDF) 6 | - (O2PDFObject *) encodeReferenceWithContext: (O2PDFContext *) context; 7 | + (O2ColorSpaceRef) createColorSpaceFromPDFObject: (O2PDFObject *) object; 8 | @end 9 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Context_distill.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | // This is used by PDFKit, it should be possible to implement this functionality 4 | // using the exposed CG* PDF API's with the operator table, but it is more work 5 | 6 | @interface O2Context_distill : O2Context { 7 | id _delegate; 8 | } 9 | 10 | - delegate; 11 | - (void) setDelegate: delegate; 12 | 13 | @end 14 | 15 | @interface NSObject (O2Context_distill) 16 | 17 | - (void) distiller: (O2Context_distill *) distiller 18 | unicode: (unichar *) unicode 19 | rects: (O2Rect *) rect 20 | count: (NSUInteger) count; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Defines_FreeType.h: -------------------------------------------------------------------------------- 1 | #define FREETYPE_PRESENT 1 2 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Defines_libjpeg.h: -------------------------------------------------------------------------------- 1 | #define LIBJPEG_PRESENT 1 2 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Defines_libpng.h: -------------------------------------------------------------------------------- 1 | #define LIBPNG_PRESENT 1 2 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Defines_libtiff.h: -------------------------------------------------------------------------------- 1 | #define LIBTIFF_PRESENT 1 2 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Defines_zlib.h: -------------------------------------------------------------------------------- 1 | #define ZLIB_PRESENT 1 2 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2EXIFDecoder.h: -------------------------------------------------------------------------------- 1 | // 2 | // O2EXIFDecoder.h 3 | // AppKit 4 | // 5 | // Created by Airy ANDRE on 22/03/13. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface O2EXIFDecoder : NSObject { 12 | NSMutableDictionary *_tags; 13 | } 14 | - (id) initWithBytes: (const uint8_t *) bytes length: (size_t) length; 15 | - (NSMutableDictionary *) tags; 16 | @end 17 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Encoder_JPG.h: -------------------------------------------------------------------------------- 1 | #if defined(__APPLE__) && !defined(DARLING) 2 | // compiling on OS X 3 | #else 4 | #import 5 | #endif 6 | 7 | #ifdef LIBJPEG_PRESENT 8 | #import 9 | #import 10 | #import 11 | #import 12 | 13 | typedef struct O2JPGEncoder { 14 | O2DataConsumerRef _consumer; 15 | } * O2JPGEncoderRef; 16 | 17 | O2JPGEncoderRef O2JPGEncoderCreate(O2DataConsumerRef consumer); 18 | void O2JPGEncoderDealloc(O2JPGEncoderRef self); 19 | 20 | void O2JPGEncoderWriteImage(O2JPGEncoderRef self, O2ImageRef image, CFDictionaryRef properties); 21 | #endif 22 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Encoder_PNG.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | 6 | typedef struct O2PNGEncoder { 7 | O2DataConsumerRef _consumer; 8 | } * O2PNGEncoderRef; 9 | 10 | O2PNGEncoderRef O2PNGEncoderCreate(O2DataConsumerRef consumer); 11 | void O2PNGEncoderDealloc(O2PNGEncoderRef self); 12 | 13 | void O2PNGEncoderWriteImage(O2PNGEncoderRef self, O2ImageRef image, CFDictionaryRef properties); 14 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Encoder_TIFF.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | 6 | typedef struct O2TIFFEncoder { 7 | bool _bigEndian; 8 | size_t _consumerOffset; 9 | size_t _consumerPosition; 10 | size_t _bufferCapacity; 11 | size_t _bufferCount; 12 | uint8_t *_mutableBytes; 13 | CFIndex _length; 14 | O2DataConsumerRef _consumer; 15 | } * O2TIFFEncoderRef; 16 | 17 | O2TIFFEncoderRef O2TIFFEncoderCreate(O2DataConsumerRef consumer); 18 | void O2TIFFEncoderDealloc(O2TIFFEncoderRef self); 19 | 20 | void O2TIFFEncoderBegin(O2TIFFEncoderRef self); 21 | void O2TIFFEncoderWriteImage(O2TIFFEncoderRef self, O2ImageRef image, CFDictionaryRef properties, bool lastImage); 22 | void O2TIFFEncoderEnd(O2TIFFEncoderRef self); 23 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Font+PDF.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class O2PDFObject, O2PDFContext; 4 | 5 | @interface O2Font (PDF) 6 | - (void) getMacRomanBytes: (unsigned char *) bytes 7 | forGlyphs: (const O2Glyph *) glyphs 8 | length: (unsigned) length; 9 | - (O2PDFObject *) encodeReferenceWithContext: (O2PDFContext *) context 10 | size: (O2Float) size; 11 | @end 12 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Font_freetype.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #ifdef FREETYPE_PRESENT 5 | 6 | #ifdef DARLING 7 | #define __linux__ 8 | #endif 9 | 10 | #import 11 | #import FT_FREETYPE_H 12 | #import FT_RENDER_H 13 | 14 | #import 15 | 16 | #ifdef DARLING 17 | #undef __linux__ 18 | #endif 19 | 20 | @interface O2Font_freetype : O2Font { 21 | FT_Face _face; 22 | FT_Encoding _ftEncoding; 23 | O2Encoding *_macRomanEncoding; 24 | O2Encoding *_macExpertEncoding; 25 | O2Encoding *_winAnsiEncoding; 26 | } 27 | 28 | - (instancetype) initWithFace: (FT_Face) face; 29 | - (instancetype) initWithDataProvider: (O2DataProviderRef) provider; 30 | 31 | - (FT_Face) face; 32 | 33 | FT_Face O2FontFreeTypeFace(O2Font_freetype *self); 34 | 35 | FT_Library O2FontSharedFreeTypeLibrary(); 36 | FcConfig *O2FontSharedFontConfig(); 37 | 38 | @end 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Font_ttf.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSMapTable; 4 | 5 | @interface O2Font_ttf : O2Font { 6 | NSMapTable *_nameToGlyph; 7 | NSInteger *_glyphLocations; 8 | } 9 | 10 | - initWithDataProvider: (O2DataProviderRef) provider; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Function+PDF.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class O2PDFArray, O2PDFDictionary, O2PDFObject, O2PDFContext, O2PDFStream; 4 | 5 | @interface O2Function (PDF) 6 | - initWithDomain: (O2PDFArray *) domain range: (O2PDFArray *) range; 7 | - (O2PDFObject *) encodeReferenceWithContext: (O2PDFContext *) context; 8 | + (O2Function *) createFunctionWithDictionary: (O2PDFDictionary *) dictionary; 9 | + (O2Function *) createFunctionWithStream: (O2PDFStream *) stream; 10 | @end 11 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2GlyphStencil.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | typedef struct O2GlyphStencil { 4 | size_t _width; 5 | size_t _height; 6 | size_t _left; 7 | size_t _top; 8 | uint8_t *_coverage; 9 | } * O2GlyphStencilRef; 10 | 11 | O2GlyphStencilRef O2GlyphStencilCreate(size_t width, size_t height, 12 | uint8_t *coverage, size_t bytesPerRow, 13 | size_t left, size_t top); 14 | void O2GlyphStencilDealloc(O2GlyphStencilRef self); 15 | 16 | size_t O2GlyphStencilGetWidth(O2GlyphStencilRef self); 17 | size_t O2GlyphStencilGetHeight(O2GlyphStencilRef self); 18 | size_t O2GlyphStencilGetLeft(O2GlyphStencilRef self); 19 | size_t O2GlyphStencilGetTop(O2GlyphStencilRef self); 20 | uint8_t *O2GlyphStencilGetCoverage(O2GlyphStencilRef self); 21 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Image+PDF.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class O2ColorSpace, O2DataProvider, O2PDFObject, O2PDFContext; 4 | 5 | @interface O2Image (PDF) 6 | 7 | - (O2PDFObject *) encodeReferenceWithContext: (O2PDFContext *) context; 8 | + (O2Image *) imageWithPDFObject: (O2PDFObject *) object; 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2ImageDecoder_JPEG_libjpeg.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface O2ImageDecoder_JPEG_libjpeg : O2ImageDecoder { 4 | CFDataRef _pixelData; 5 | } 6 | 7 | - initWithDataProvider: (O2DataProviderRef) dataProvider; 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2ImageDecoder_JPEG_stb.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface O2ImageDecoder_JPEG_stb : O2ImageDecoder { 4 | CFDataRef _pixelData; 5 | } 6 | 7 | - initWithDataProvider: (O2DataProviderRef) dataProvider; 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2PDFBlock.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSMutableArray; 4 | 5 | @interface O2PDFBlock : O2PDFObject { 6 | NSMutableArray *_objects; 7 | } 8 | 9 | + pdfBlock; 10 | 11 | - (NSArray *) objects; 12 | - (void) addObject: object; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2PDFCharWidths.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @class O2PDFArray; 5 | 6 | @interface O2PDFCharWidths : NSObject { 7 | O2Float _widths[256]; 8 | } 9 | 10 | - initWithArray: (O2PDFArray *) array 11 | firstChar: (int) firstChar 12 | lastChar: (int) lastChar 13 | missingWidth: (CGFloat) missingWidth; 14 | 15 | void O2PDFCharWidthsGetAdvances(O2PDFCharWidths *self, O2Size *advances, 16 | const uint8_t *bytes, int length); 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2PDFFont.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class O2PDFDictionary, O2Encoding, O2PDFCharWidths, O2Font; 4 | 5 | @interface O2PDFFont : O2PDFObject { 6 | O2PDFDictionary *_info; // If we get rid of this, make sure to copy/retain 7 | // any values in it 8 | const char *_baseFont; 9 | O2Font *_resourceFont; 10 | O2Font *_graphicsFont; 11 | O2Encoding *_encoding; 12 | O2PDFCharWidths *_pdfCharWidths; 13 | } 14 | 15 | + (O2PDFFont *) createWithPDFDictionary: (O2PDFDictionary *) info; 16 | 17 | - (O2Encoding *) encoding; 18 | - (O2PDFCharWidths *) pdfCharWidths; 19 | 20 | - (O2Font *) graphicsFont; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2Shading+PDF.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class O2PDFObject, O2PDFContext; 4 | 5 | @interface O2Shading (PDF) 6 | - (O2PDFObject *) encodeReferenceWithContext: (O2PDFContext *) context; 7 | + (O2Shading *) shadingWithPDFObject: (O2PDFObject *) object; 8 | @end 9 | -------------------------------------------------------------------------------- /Onyx2D/include/Onyx2D/O2zlib.h: -------------------------------------------------------------------------------- 1 | 2 | unsigned char *stbi_zlib_decode_malloc(const unsigned char *buffer, int len, int *outlen); 3 | -------------------------------------------------------------------------------- /QuartzCore/CAAnimationGroup.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation CAAnimationGroup 4 | 5 | - (NSArray *) animations { 6 | return _animations; 7 | } 8 | 9 | - (void) setAnimations: (NSArray *) value { 10 | value = [value copy]; 11 | [_animations release]; 12 | _animations = value; 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /QuartzCore/CABase.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | static double conversionFactor() { 6 | struct mach_timebase_info timebase; 7 | kern_return_t error; 8 | 9 | if ((mach_timebase_info(&timebase)) != KERN_SUCCESS) { 10 | NSLog(@"mach_timebase_info returned %d", error); 11 | return 1; 12 | } 13 | 14 | return 0.000000001 * ((double) timebase.numer / (double) timebase.denom); 15 | } 16 | 17 | CFTimeInterval CACurrentMediaTime(void) { 18 | uint64_t value = mach_absolute_time(); 19 | 20 | return ((double) value) * conversionFactor(); 21 | } 22 | -------------------------------------------------------------------------------- /QuartzCore/CABasicAnimation.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation CABasicAnimation 4 | 5 | - fromValue { 6 | return _fromValue; 7 | } 8 | 9 | - (void) setFromValue: value { 10 | value = [value retain]; 11 | [_fromValue release]; 12 | _fromValue = value; 13 | } 14 | 15 | - toValue { 16 | return _toValue; 17 | } 18 | 19 | - (void) setToValue: value { 20 | value = [value retain]; 21 | [_toValue release]; 22 | _toValue = value; 23 | } 24 | 25 | - byValue { 26 | return _byValue; 27 | } 28 | 29 | - (void) setByValue: value { 30 | value = [value retain]; 31 | [_byValue release]; 32 | _byValue = value; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /QuartzCore/CAOpenGLLayer.m: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @implementation CAOpenGLLayer 23 | @end 24 | -------------------------------------------------------------------------------- /QuartzCore/CAPropertyAnimation.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation CAPropertyAnimation 4 | 5 | - initWithKeyPath: (NSString *) keyPath { 6 | [super init]; 7 | _keyPath = [keyPath copy]; 8 | _additive = NO; 9 | _cumulative = NO; 10 | return self; 11 | } 12 | 13 | + animationWithKeyPath: (NSString *) keyPath { 14 | return [[[self alloc] initWithKeyPath: keyPath] autorelease]; 15 | } 16 | 17 | - (NSString *) keyPath { 18 | return _keyPath; 19 | } 20 | 21 | - (void) setKeyPath: (NSString *) value { 22 | value = [value copy]; 23 | [_keyPath release]; 24 | _keyPath = value; 25 | } 26 | 27 | - (BOOL) isAdditive { 28 | return _additive; 29 | } 30 | 31 | - (void) setAdditive: (BOOL) value { 32 | _additive = value; 33 | } 34 | 35 | - (BOOL) isCumulative { 36 | return _cumulative; 37 | } 38 | 39 | - (void) setCumulative: (BOOL) value { 40 | _cumulative = value; 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /QuartzCore/CAReplicatorLayer.m: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @implementation CAReplicatorLayer 23 | @end 24 | -------------------------------------------------------------------------------- /QuartzCore/CATransactionGroup.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSMutableDictionary; 4 | 5 | @interface CATransactionGroup : NSObject { 6 | NSMutableDictionary *_values; 7 | } 8 | 9 | - valueForKey: (NSString *) key; 10 | - (void) setValue: value forKey: (NSString *) key; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /QuartzCore/CATransactionGroup.m: -------------------------------------------------------------------------------- 1 | #import "CATransactionGroup.h" 2 | #import 3 | #import 4 | #import 5 | 6 | @implementation CATransactionGroup 7 | 8 | - init { 9 | _values = [[NSMutableDictionary alloc] init]; 10 | [_values setObject: [NSNumber numberWithFloat: 0.25] 11 | forKey: kCATransactionAnimationDuration]; 12 | [_values setObject: [NSNumber numberWithBool: NO] 13 | forKey: kCATransactionDisableActions]; 14 | // kCATransactionAnimationTimingFunction default is nil 15 | // kCATransactionCompletionBlock default is nil 16 | return self; 17 | } 18 | 19 | - valueForKey: (NSString *) key { 20 | return [_values objectForKey: key]; 21 | } 22 | 23 | - (void) setValue: value forKey: (NSString *) key { 24 | [_values setObject: value forKey: key]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /QuartzCore/CATransform3D.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | const CATransform3D CATransform3DIdentity = {1, 0, 0, 0, 0, 1, 0, 0, 4 | 0, 0, 1, 0, 0, 0, 0, 1}; -------------------------------------------------------------------------------- /QuartzCore/CATransformLayer.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface CATransformLayer : NSObject 4 | @end 5 | 6 | @implementation CATransformLayer 7 | 8 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 9 | { 10 | return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 11 | } 12 | 13 | - (void)forwardInvocation:(NSInvocation *)anInvocation 14 | { 15 | NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /QuartzCore/CATransition.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @implementation CATransition 4 | 5 | - (NSString *) type { 6 | return _type; 7 | } 8 | 9 | - (void) setType: (NSString *) value { 10 | value = [value copy]; 11 | [_type release]; 12 | _type = value; 13 | } 14 | 15 | - (NSString *) subtype { 16 | return _subtype; 17 | } 18 | 19 | - (void) setSubtype: (NSString *) value { 20 | value = [value copy]; 21 | [_subtype release]; 22 | _subtype = value; 23 | } 24 | 25 | - (CGFloat) startProgress { 26 | return _startProgress; 27 | } 28 | 29 | - (void) setStartProgress: (CGFloat) value { 30 | _startProgress = value; 31 | } 32 | 33 | - (CGFloat) endProgress { 34 | return _endProgress; 35 | } 36 | 37 | - (void) setEndProgress: (CGFloat) value { 38 | _endProgress = value; 39 | } 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /QuartzCore/CIAffineTransform.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | 6 | @implementation CIAffineTransform 7 | 8 | - (void) encodeWithCoder: (NSCoder *) coder { 9 | NSUnimplementedMethod(); 10 | } 11 | 12 | - initWithCoder: (NSCoder *) coder { 13 | if ([coder allowsKeyedCoding]) { 14 | NSKeyedUnarchiver *keyed = (NSKeyedUnarchiver *) coder; 15 | 16 | _transform = [[keyed decodeObjectForKey: @"CI_inputTransform"] copy]; 17 | _ciEnabled = [keyed decodeBoolForKey: @"CIEnabled"]; 18 | } 19 | return self; 20 | } 21 | 22 | - (void) dealloc { 23 | [_transform release]; 24 | [super dealloc]; 25 | } 26 | 27 | - (NSAffineTransform *) affineTransform { 28 | return _transform; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /QuartzCore/CIBloom.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface CIBloom : CIFilter { 4 | double _inputRadius; 5 | double _inputIntensity; 6 | BOOL _enabled; 7 | } 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /QuartzCore/CIBloom.m: -------------------------------------------------------------------------------- 1 | #import "CIBloom.h" 2 | #import 3 | #import 4 | #import 5 | 6 | @implementation CIBloom 7 | 8 | - initWithCoder: (NSCoder *) coder { 9 | if ([coder allowsKeyedCoding]) { 10 | #if 0 11 | // Raising keyed unarchiving exceptions, investigate 12 | _inputRadius=[coder decodeDoubleForKey:@"CI_inputRadius"]; 13 | _inputIntensity=[coder decodeDoubleForKey:@"CI_inputIntensity"]; 14 | _enabled=[coder decodeBoolForKey:@"CI_inputRadius"]; 15 | #endif 16 | } else { 17 | [NSException raise: NSInvalidArgumentException 18 | format: @"-[%@ %s] does not support non-keyed coding", 19 | [self class], _cmd]; 20 | } 21 | return self; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /QuartzCore/CIBoxBlur.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface CIBoxBlur : CIFilter 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /QuartzCore/CIBoxBlur.m: -------------------------------------------------------------------------------- 1 | #import "CIBoxBlur.h" 2 | 3 | @implementation CIBoxBlur 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /QuartzCore/CILinearGradient.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface CILinearGradient : CIFilter 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /QuartzCore/CILinearGradient.m: -------------------------------------------------------------------------------- 1 | #import "CILinearGradient.h" 2 | 3 | @implementation CILinearGradient 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /QuartzCore/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/QuartzCore/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /QuartzCore/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.yourcompany.${PRODUCT_NAME:identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CAAction.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @protocol CAAction 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CAAnimationGroup.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSArray; 4 | 5 | @interface CAAnimationGroup : CAAnimation { 6 | NSArray *_animations; 7 | } 8 | 9 | @property(copy) NSArray *animations; 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CABase.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #if __cplusplus 4 | #define CA_EXPORT extern "C" 5 | #else 6 | #define CA_EXPORT extern 7 | #endif 8 | 9 | CA_EXPORT CFTimeInterval CACurrentMediaTime(void); 10 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CAMediaTiming.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | CA_EXPORT NSString *const kCAFillModeForwards; 6 | CA_EXPORT NSString *const kCAFillModeBackwards; 7 | CA_EXPORT NSString *const kCAFillModeBoth; 8 | CA_EXPORT NSString *const kCAFillModeRemoved; 9 | 10 | @protocol CAMediaTiming 11 | 12 | @property BOOL autoreverses; 13 | 14 | @property CFTimeInterval beginTime; 15 | 16 | @property CFTimeInterval duration; 17 | 18 | @property(copy) NSString *fillMode; 19 | 20 | @property CGFloat repeatCount; 21 | 22 | @property CFTimeInterval repeatDuration; 23 | 24 | @property CGFloat speed; 25 | 26 | @property CFTimeInterval timeOffset; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CAOpenGLLayer.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface CAOpenGLLayer : CALayer 23 | @end 24 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CARenderer.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | 6 | CA_EXPORT NSString *const kCARendererColorSpace; 7 | 8 | @class CALayer, O2Surface; 9 | 10 | @interface CARenderer : NSObject { 11 | void *_cglContext; 12 | CGRect _bounds; 13 | CALayer *_rootLayer; 14 | } 15 | 16 | @property(assign) CGRect bounds; 17 | @property(retain) CALayer *layer; 18 | 19 | + (CARenderer *) rendererWithCGLContext: (void *) cglContext 20 | options: (NSDictionary *) options; 21 | 22 | - (void) beginFrameAtTime: (CFTimeInterval) currentTime 23 | timeStamp: (CVTimeStamp *) timeStamp; 24 | 25 | - (void) render; 26 | 27 | - (void) endFrame; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CAReplicatorLayer.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface CAReplicatorLayer : CALayer 23 | @end 24 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CASpringAnimation.h: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of Darling. 3 | 4 | Copyright (C) 2019 Lubos Dolezel 5 | 6 | Darling is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | Darling is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with Darling. If not, see . 18 | */ 19 | 20 | #import 21 | 22 | @interface CASpringAnimation : CABasicAnimation 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CATransform3D.h: -------------------------------------------------------------------------------- 1 | 2 | #import 3 | 4 | typedef struct { 5 | CGFloat m11, m12, m13, m14; 6 | CGFloat m21, m22, m23, m24; 7 | CGFloat m31, m32, m33, m34; 8 | CGFloat m41, m42, m43, m44; 9 | } CATransform3D; 10 | 11 | CA_EXPORT const CATransform3D CATransform3DIdentity; 12 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CATransition.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface CATransition : CAAnimation { 4 | NSString *_type; 5 | NSString *_subtype; 6 | CGFloat _startProgress; 7 | CGFloat _endProgress; 8 | } 9 | 10 | @property(copy) NSString *type; 11 | @property(copy) NSString *subtype; 12 | @property CGFloat startProgress; 13 | @property CGFloat endProgress; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CAValueFunction.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | CA_EXPORT NSString *const kCAValueFunctionTranslate; 5 | CA_EXPORT NSString *const kCAValueFunctionTranslateX; 6 | CA_EXPORT NSString *const kCAValueFunctionTranslateY; 7 | CA_EXPORT NSString *const kCAValueFunctionTranslateZ; 8 | 9 | CA_EXPORT NSString *const kCAValueFunctionScale; 10 | CA_EXPORT NSString *const kCAValueFunctionScaleX; 11 | CA_EXPORT NSString *const kCAValueFunctionScaleY; 12 | CA_EXPORT NSString *const kCAValueFunctionScaleZ; 13 | 14 | CA_EXPORT NSString *const kCAValueFunctionRotateX; 15 | CA_EXPORT NSString *const kCAValueFunctionRotateY; 16 | CA_EXPORT NSString *const kCAValueFunctionRotateZ; 17 | 18 | @interface CAValueFunction : NSObject { 19 | NSString *_name; 20 | } 21 | 22 | + functionWithName: (NSString *) name; 23 | 24 | @property(readonly) NSString *name; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CAWindowOpenGLContext.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface CAWindowOpenGLContext : NSObject { 5 | CGLContextObj _cglContext; 6 | } 7 | 8 | - initWithCGLContext: (CGLContextObj) cglContext; 9 | 10 | - (void) prepareViewportWidth: (int) width height: (int) height; 11 | 12 | - (void) renderSurface: (O2Surface *) surface; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CIAffineTransform.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface CIAffineTransform : NSObject { 4 | NSAffineTransform *_transform; 5 | BOOL _ciEnabled; 6 | } 7 | 8 | - (NSAffineTransform *) affineTransform; 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CIColor.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface CIColor : NSObject { 5 | CGColorRef _cgColor; 6 | } 7 | 8 | + (CIColor *) colorWithCGColor: (CGColorRef) cgColor; 9 | 10 | + (CIColor *) colorWithRed: (CGFloat) red 11 | green: (CGFloat) green 12 | blue: (CGFloat) blue; 13 | + (CIColor *) colorWithRed: (CGFloat) red 14 | green: (CGFloat) green 15 | blue: (CGFloat) blue 16 | alpha: (CGFloat) alpha; 17 | 18 | - initWithCGColor: (CGColorRef) cgColor; 19 | 20 | - (size_t) numberOfComponents; 21 | - (CGColorSpaceRef) colorSpace; 22 | - (const CGFloat *) components; 23 | 24 | - (CGFloat) red; 25 | - (CGFloat) green; 26 | - (CGFloat) blue; 27 | - (CGFloat) alpha; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CIContext.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @class CIImage, NSDictionary; 5 | 6 | @interface CIContext : NSObject { 7 | CGContextRef _cgContext; 8 | } 9 | 10 | + (CIContext *) contextWithCGContext: (CGContextRef) cgContext 11 | options: (NSDictionary *) options; 12 | 13 | - (void) drawImage: (CIImage *) image 14 | atPoint: (CGPoint) atPoint 15 | fromRect: (CGRect) fromRect; 16 | - (void) drawImage: (CIImage *) image 17 | inRect: (CGRect) inRect 18 | fromRect: (CGRect) fromRect; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CIFilter.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class NSMutableDictionary; 4 | 5 | @interface CIFilter : NSObject { 6 | NSMutableDictionary *_keyValues; 7 | } 8 | 9 | + (CIFilter *) filterWithName: (NSString *) name; 10 | - (void) setDefaults; 11 | 12 | - valueForKey: (NSString *) key; 13 | - (void) setValue: value forKey: (NSString *) key; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CIImage.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @class CIFilter; 5 | 6 | @interface CIImage : NSObject { 7 | CGImageRef _cgImage; 8 | CIFilter *_filter; 9 | } 10 | 11 | + (CIImage *) emptyImage; 12 | 13 | - initWithCGImage: (CGImageRef) cgImage; 14 | - (CGRect) extent; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CoreAnimation.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | #import 6 | #import 7 | #import 8 | 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | #import 15 | #import 16 | 17 | /* Undocumented */ 18 | #import 19 | /* End undocumented */ 20 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CoreImage.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | #import 6 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/CoreVideo.h: -------------------------------------------------------------------------------- 1 | #import 2 | -------------------------------------------------------------------------------- /QuartzCore/include/QuartzCore/QuartzCore.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # The Cocotron 2 | Darling's fork of the Cocotron 3 | 4 | ## Code Formatting 5 | ```clang-format``` requires a patch to correctly format ObjC code 6 | 7 | ### Patch Instructions 8 | Run ```cd formatting; ./build.sh``` to compile the patched ```clang-format``` from source 9 | 10 | ### Formatting Instrcutions 11 | Run ```cd formatting; ./format.sh``` to format the code 12 | -------------------------------------------------------------------------------- /examples/CGShadingCreate/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1) 2 | 3 | project(CGShadingCreate) 4 | 5 | file(GLOB_RECURSE RES_SOURCES "${PROJECT_SOURCE_DIR}/Resources/*") 6 | 7 | add_executable(CGShadingCreate MACOSX_BUNDLE GradientView.m main.m ${RES_SOURCES}) 8 | 9 | set_target_properties(CGShadingCreate PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${PROJECT_SOURCE_DIR}/Info.plist" MACOSX_BUNDLE_BUNDLE_NAME "CGShadingCreate") 10 | 11 | foreach(RES_FILE ${RES_SOURCES}) 12 | file(RELATIVE_PATH RES_PATH "${PROJECT_SOURCE_DIR}/Resources" ${RES_FILE}) 13 | get_filename_component(REAL_RES_PATH "${RES_PATH}" DIRECTORY) 14 | set_property(SOURCE ${RES_FILE} PROPERTY MACOSX_PACKAGE_LOCATION "Resources/${REAL_RES_PATH}") 15 | endforeach(RES_FILE) 16 | 17 | set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework AppKit") 18 | -------------------------------------------------------------------------------- /examples/CGShadingCreate/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/examples/CGShadingCreate/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /examples/CGShadingCreate/Resources/English.lproj/MainMenu.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 76 78 356 240 0 0 1680 1028 7 | IBEditorPositions 8 | 9 | 29 10 | 80 352 350 44 0 0 1680 1028 11 | 12 | IBFramework Version 13 | 446.1 14 | IBOpenObjects 15 | 16 | 29 17 | 21 18 | 19 | IBSystem Version 20 | 8L2127 21 | 22 | 23 | -------------------------------------------------------------------------------- /examples/CGShadingCreate/Resources/English.lproj/MainMenu.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/examples/CGShadingCreate/Resources/English.lproj/MainMenu.nib/keyedobjects.nib -------------------------------------------------------------------------------- /examples/CGShadingCreate/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | int main(int argc, char *argv[]) { 4 | return NSApplicationMain(argc, (const char **) argv); 5 | } 6 | -------------------------------------------------------------------------------- /examples/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1) 2 | 3 | project(examples) 4 | 5 | add_subdirectory(TextEditor) 6 | add_subdirectory(NSOpenGLView) 7 | add_subdirectory(CGShadingCreate) 8 | -------------------------------------------------------------------------------- /examples/NSOpenGLView/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1) 2 | 3 | project(NSOpenGLView) 4 | 5 | file(GLOB_RECURSE RES_SOURCES "${PROJECT_SOURCE_DIR}/Resources/*") 6 | 7 | add_executable(NSOpenGLView MACOSX_BUNDLE main.m MyOpenGLView.m ${RES_SOURCES}) 8 | 9 | set_target_properties(NSOpenGLView PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${PROJECT_SOURCE_DIR}/Info.plist" MACOSX_BUNDLE_BUNDLE_NAME "NSOpenGLView") 10 | 11 | foreach(RES_FILE ${RES_SOURCES}) 12 | file(RELATIVE_PATH RES_PATH "${PROJECT_SOURCE_DIR}/Resources" ${RES_FILE}) 13 | get_filename_component(REAL_RES_PATH "${RES_PATH}" DIRECTORY) 14 | set_property(SOURCE ${RES_FILE} PROPERTY MACOSX_PACKAGE_LOCATION "Resources/${REAL_RES_PATH}") 15 | endforeach(RES_FILE) 16 | 17 | set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework AppKit -framework OpenGL") 18 | -------------------------------------------------------------------------------- /examples/NSOpenGLView/MyOpenGLView.h: -------------------------------------------------------------------------------- 1 | /* MyOpenGLView */ 2 | 3 | #import 4 | 5 | @interface MyOpenGLView : NSOpenGLView { 6 | NSTimer *_timer; 7 | float _angleX; 8 | } 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /examples/NSOpenGLView/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/examples/NSOpenGLView/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /examples/NSOpenGLView/Resources/English.lproj/Localizable-windows.strings: -------------------------------------------------------------------------------- 1 | "WindowTitle"="Cocotron NSOpenGLView"; 2 | -------------------------------------------------------------------------------- /examples/NSOpenGLView/Resources/English.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | "WindowTitle"="Cocoa NSOpenGLView"; 2 | 3 | 4 | -------------------------------------------------------------------------------- /examples/NSOpenGLView/Resources/English.lproj/MainMenu.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 4 | { 5 | ACTIONS = {}; 6 | CLASS = MyOpenGLView; 7 | LANGUAGE = ObjC; 8 | SUPERCLASS = NSOpenGLView; 9 | } 10 | ); 11 | IBVersion = 1; 12 | } -------------------------------------------------------------------------------- /examples/NSOpenGLView/Resources/English.lproj/MainMenu.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 135 107 356 240 0 0 1680 1028 7 | IBEditorPositions 8 | 9 | 29 10 | 132 352 338 44 0 0 1680 1028 11 | 12 | IBFramework Version 13 | 446.1 14 | IBOpenObjects 15 | 16 | 29 17 | 21 18 | 19 | IBSystem Version 20 | 8S2167 21 | 22 | 23 | -------------------------------------------------------------------------------- /examples/NSOpenGLView/Resources/English.lproj/MainMenu.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/examples/NSOpenGLView/Resources/English.lproj/MainMenu.nib/keyedobjects.nib -------------------------------------------------------------------------------- /examples/NSOpenGLView/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // OpenGLView 4 | // 5 | // Created by Christopher Lloyd on 8/29/07. 6 | // Copyright __MyCompanyName__ 2007. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) { 12 | return NSApplicationMain(argc, (const char **) argv); 13 | } 14 | -------------------------------------------------------------------------------- /examples/TextEditor/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.1) 2 | 3 | project(TextEditor) 4 | 5 | file(GLOB_RECURSE RES_SOURCES "${PROJECT_SOURCE_DIR}/Resources/*") 6 | 7 | add_executable(TextEditor MACOSX_BUNDLE main.m MyDocument.m ${RES_SOURCES}) 8 | 9 | set_target_properties(TextEditor PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${PROJECT_SOURCE_DIR}/Info.plist" MACOSX_BUNDLE_BUNDLE_NAME "Text Editor") 10 | 11 | foreach(RES_FILE ${RES_SOURCES}) 12 | file(RELATIVE_PATH RES_PATH "${PROJECT_SOURCE_DIR}/Resources" ${RES_FILE}) 13 | get_filename_component(REAL_RES_PATH "${RES_PATH}" DIRECTORY) 14 | set_property(SOURCE ${RES_FILE} PROPERTY MACOSX_PACKAGE_LOCATION "Resources/${REAL_RES_PATH}") 15 | endforeach(RES_FILE) 16 | 17 | set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework AppKit") 18 | -------------------------------------------------------------------------------- /examples/TextEditor/Resources/English.lproj/Credits.rtf: -------------------------------------------------------------------------------- 1 | {\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;} 2 | {\colortbl;\red255\green255\blue255;} 3 | \paperw9840\paperh8400 4 | \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural 5 | 6 | \f0\b\fs24 \cf0 Engineering: 7 | \b0 \ 8 | Some people\ 9 | \ 10 | 11 | \b Human Interface Design: 12 | \b0 \ 13 | Some other people\ 14 | \ 15 | 16 | \b Testing: 17 | \b0 \ 18 | Hopefully not nobody\ 19 | \ 20 | 21 | \b Documentation: 22 | \b0 \ 23 | Whoever\ 24 | \ 25 | 26 | \b With special thanks to: 27 | \b0 \ 28 | Mom\ 29 | } 30 | -------------------------------------------------------------------------------- /examples/TextEditor/Resources/English.lproj/MainMenu.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/examples/TextEditor/Resources/English.lproj/MainMenu.nib/keyedobjects.nib -------------------------------------------------------------------------------- /examples/TextEditor/Resources/English.lproj/MyDocument.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darlinghq/darling-cocotron/71aa7e0264d14af95e8fbfc75389bf41a6810e27/examples/TextEditor/Resources/English.lproj/MyDocument.nib/keyedobjects.nib -------------------------------------------------------------------------------- /formatting/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | LLVM_VERSION='10.0.0' 4 | 5 | set -e 6 | 7 | if [ -d llvm ]; then 8 | rm -rf llvm 9 | fi 10 | git clone --depth 1 https://github.com/llvm/llvm-project.git -b "llvmorg-${LLVM_VERSION}" llvm 11 | 12 | cd llvm 13 | 14 | patch -p1 < ../cocotron-styling.patch 15 | 16 | mkdir build 17 | cd build 18 | 19 | cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=clang -G 'Unix Makefiles' ../llvm 20 | make -j$(nproc) clang-format 21 | -------------------------------------------------------------------------------- /formatting/format.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/sh 3 | 4 | export PATH="$(pwd)/llvm/build/bin:${PATH}" 5 | 6 | set -e 7 | 8 | cd ../ 9 | 10 | clang-format --version 11 | 12 | find . -path './formatting' -prune -o -path './.git' -prune -o \( \( -name '*.m' -o -name '*.mm' -o -name '*.h' -o -name '*.cpp' -o -name '*.c' \) -a -exec clang-format --verbose --style file -i {} \; \) 13 | --------------------------------------------------------------------------------