package core:sys/darwin/Foundation
Warning: This was generated for -target:darwin_arm64 and might not represent every target this package supports.
External Examples 12 ¶
The programs in odin-lang/examples about this package, and how many of its declarations each uses.
- metal/
Index
Types (138)
- ActivationPolicy
- ActivityOptions
- ActivityOptionsBits
- Application
- ApplicationDelegate
- ApplicationDelegateTemplate
- ApplicationPresentationOptionFlag
- ApplicationPresentationOptions
- ApplicationPrintReply
- ApplicationTerminateReply
- Array
- AutoreleasePool
- BOOL
- BackingStoreType
- BitmapFormatFlag
- BitmapFormatFlags
- BitmapImageRep
- BitmapInteger
- Block
- Bundle
- Class
- Class_VTable_Info
- Coder
- Color
- ColorSpace
- ComparisonResult
- Condition
- Copying
- Cursor
- Data
- Date
- Depth
- Dictionary
- Enumerator
- Error
- ErrorDomain
- ErrorUserInfoKey
- Event
- EventMask
- EventModifierFlag
- EventModifierFlags
- EventPhase
- EventPhaseFlag
- EventType
- FastEnumeration
- FastEnumerationState
- Float
- IMP
- Image
- ImageRep
- Integer
- Ivar
- KeyEquivalentModifierFlag
- KeyEquivalentModifierMask
- Layer
- Locking
- Menu
- MenuDelegate
- MenuItem
- MenuItemCallback
- MenuPresentationStyle
- MenuProperties
- MenuPropertyItem
- MenuSelectionMode
- Method
- ModalResponse
- MutableArray
- Notification
- NotificationCenter
- NotificationName
- Number
- Object
- ObjectProtocol
- Object_VTable_Info
- OpenPanel
- OperatingSystemVersion
- Panel
- Pasteboard
- Point
- PointingDeviceType
- ProcessInfo
- ProcessInfoThermalState
- Protocol
- Range
- Rect
- Responder
- RunLoop
- RunLoopMode
- RunningApplication
- SEL
- SavePanel
- Screen
- Set
- Size
- String
- StringCompareOption
- StringCompareOptions
- StringEncoding
- Subclasser_Proc
- TimeInterval
- Timer
- Toolbar
- UInteger
- URL
- URLRequest
- URLResponse
- UndoManager
- UserActivity
- UserDefaults
- UserInterfaceLayoutDirection
- Value
- View
- Window
- WindowCollectionBehavior
- WindowCollectionBehaviorFlag
- WindowDelegate
- WindowDelegateTemplate
- WindowLevel
- WindowStyleFlag
- WindowStyleMask
- WindowTabbingMode
- Window_Title_Visibility
- Zone
- id
- kVK
- unichar
Constants (66)
- ApplicationPresentationOptionsAutoHideDock
- ApplicationPresentationOptionsAutoHideMenuBar
- ApplicationPresentationOptionsAutoHideToolbar
- ApplicationPresentationOptionsDefault
- ApplicationPresentationOptionsDisableAppleMenu
- ApplicationPresentationOptionsDisableCursorLocationAssistance
- ApplicationPresentationOptionsDisableForceQuit
- ApplicationPresentationOptionsDisableHideApplication
- ApplicationPresentationOptionsDisableMenuBarTransparency
- ApplicationPresentationOptionsDisableProcessSwitching
- ApplicationPresentationOptionsDisableSessionTermination
- ApplicationPresentationOptionsFullScreen
- ApplicationPresentationOptionsHideDock
- ApplicationPresentationOptionsHideMenuBar
- EventMaskAny
- EventModifierFlagCapsLock
- EventModifierFlagCommand
- EventModifierFlagControl
- EventModifierFlagDeviceIndependentFlagsMask
- EventModifierFlagFunction
- EventModifierFlagHelp
- EventModifierFlagNumericPad
- EventModifierFlagOption
- EventModifierFlagShift
- EventPhaseBegan
- EventPhaseCancelled
- EventPhaseChanged
- EventPhaseEnded
- EventPhaseMayBegin
- EventPhaseNone
- EventPhaseStationary
- IntegerMax
- Integermin
- NO
- NotFound
- UIntegerMax
- WindowCollectionBehaviorAuxiliary
- WindowCollectionBehaviorCanJoinAllApplications
- WindowCollectionBehaviorCanJoinAllSpaces
- WindowCollectionBehaviorDefault
- WindowCollectionBehaviorFullScreenAllowsTiling
- WindowCollectionBehaviorFullScreenAuxiliary
- WindowCollectionBehaviorFullScreenDisallowsTiling
- WindowCollectionBehaviorFullScreenNone
- WindowCollectionBehaviorFullScreenPrimary
- WindowCollectionBehaviorIgnoresCycle
- WindowCollectionBehaviorManaged
- WindowCollectionBehaviorMoveToActiveSpace
- WindowCollectionBehaviorParticipatesInCycle
- WindowCollectionBehaviorPrimary
- WindowCollectionBehaviorStationary
- WindowCollectionBehaviorTransient
- WindowStyleMaskBorderless
- WindowStyleMaskClosable
- WindowStyleMaskDocModalWindow
- WindowStyleMaskFullScreen
- WindowStyleMaskFullSizeContentView
- WindowStyleMaskHUDWindow
- WindowStyleMaskMiniaturizable
- WindowStyleMaskNonactivatingPanel
- WindowStyleMaskResizable
- WindowStyleMaskTexturedBackground
- WindowStyleMaskTitled
- WindowStyleMaskUnifiedTitleAndToolbar
- WindowStyleMaskUtilityWindow
- YES
Variables (22)
- CocoaErrorDomain
- DebugDescriptionErrorKey
- DefaultRunLoopMode
- DeviceRGBColorSpace
- EventTrackingRunLoopMode
- FilePathErrorKey
- HelpAnchorErrorKey
- KeyEventModifierFlagDeviceIndependentFlagsMask
- LocalizedDescriptionKey
- LocalizedFailureErrorKey
- LocalizedFailureReasonErrorKey
- LocalizedRecoveryOptionsErrorKey
- LocalizedRecoverySuggestionErrorKey
- MachErrorDomain
- ModalPanelRunLoopMode
- OSStatusErrorDomain
- POSIXErrorDomain
- RecoveryAttempterErrorKey
- RunLoopCommonModes
- StringEncodingErrorKey
- URLErrorKey
- UnderlyingErrorKey
Procedures (807)
- AT
- AllocateObject
Application_… (28)
- Application_activate
- Application_activateIgnoringOtherApps
- Application_active
- Application_currentEvent
- Application_finishLaunching
- Application_isRunning
- Application_keyWindow
- Application_mainMenu
- Application_mainWindow
- Application_nextEventMatchingMask
- Application_postEvent
- Application_run
- Application_sendAction
- Application_sendEvent
- Application_servicesMenu
- Application_setActivationPolicy
- Application_setAppleMenu
- Application_setDelegate
- Application_setMainMenu
- Application_setServicesMenu
- Application_setTitle
- Application_setWindowsMenu
- Application_sharedApplication
- Application_stop
- Application_terminate
- Application_updateWindows
- Application_windows
- Application_windowsMenu
Bundle_… (37)
- Bundle_PathForAuxiliaryExecutable
- Bundle_URLForAuxiliaryExecutable
- Bundle_allBundles
- Bundle_allFrameworks
- Bundle_alloc
- Bundle_appStoreReceiptPath
- Bundle_appStoreReceiptURL
- Bundle_builtInPlugInsPath
- Bundle_builtInPlugInsURL
- Bundle_bundleIdentifier
- Bundle_bundlePath
- Bundle_bundleURL
- Bundle_bundleWithPath
- Bundle_bundleWithURL
- Bundle_executablePath
- Bundle_executableURL
- Bundle_infoDictionary
- Bundle_init
- Bundle_initWithPath
- Bundle_initWithURL
- Bundle_isLoaded
- Bundle_load
- Bundle_loadAndReturnError
- Bundle_localizedInfoDictionary
- Bundle_localizedStringForKey
- Bundle_mainBundle
- Bundle_objectForInfoDictionaryKey
- Bundle_preflightAndReturnError
- Bundle_privateFrameworksPath
- Bundle_privateFrameworksURL
- Bundle_resourcePath
- Bundle_resourceURL
- Bundle_sharedFrameworksPath
- Bundle_sharedFrameworksURL
- Bundle_sharedSupportPath
- Bundle_sharedSupportURL
- Bundle_unload
- ClassFromString
Color_… (28)
- Color_blackColor
- Color_blueColor
- Color_colorSpace
- Color_colorSpaceName
- Color_colorUsingColorSpaceName
- Color_colorWithCalibratedHue
- Color_colorWithCalibratedRed
- Color_colorWithCalibratedWhite
- Color_colorWithColorSpace
- Color_colorWithDeviceCyan
- Color_colorWithDeviceHue
- Color_colorWithDeviceRed
- Color_colorWithDeviceWhite
- Color_colorWithSRGBRed
- Color_cyanColor
- Color_getCMYKA
- Color_getComponents
- Color_getHSBA
- Color_getRGBA
- Color_getWhiteAlpha
- Color_greenColor
- Color_magentaColor
- Color_numberOfComponents
- Color_orangeColor
- Color_purpleColor
- Color_redColor
- Color_whiteColor
- Color_yellowColor
- DeallocateObject
Enumerator_… (3)
Event_… (48)
- Event_absolute
- Event_absoluteX
- Event_absoluteY
- Event_absoluteZ
- Event_buttonMask
- Event_buttonNumber
- Event_capabilityMask
- Event_characters
- Event_charactersIgnoringModifiers
- Event_clickCount
- Event_data1
- Event_data2
- Event_delta
- Event_deltaX
- Event_deltaY
- Event_deltaZ
- Event_eventNumber
- Event_hasPreciseScrollingDeltas
- Event_isARepeat
- Event_isDirectionInvertedFromDevice
- Event_isEnteringProximity
- Event_isSwipeTrackingFromScrollEventsEnabled
- Event_keyCode
- Event_locationInWindow
- Event_modifierFlags
- Event_momentumPhase
- Event_mouseLocation
- Event_otherEventWithType
- Event_phase
- Event_pointingDeviceID
- Event_pointingDeviceSerialNumber
- Event_pointingDeviceType
- Event_pressure
- Event_scrollingDelta
- Event_scrollingDeltaX
- Event_scrollingDeltaY
- Event_subtype
- Event_systemTabletID
- Event_tabletID
- Event_tangentialPressure
- Event_timestamp
- Event_type
- Event_uniqueID
- Event_vendorDefined
- Event_vendorID
- Event_vendorPointingDeviceType
- Event_window
- Event_windowNumber
FastEnumeration_… (3)
Image_… (3)
- Locking_lock
- Locking_unlock
- MakeConstantString
- MaxX
- MaxY
MenuItem_… (90)
- MenuItem_accessInstanceVariablesDirectly
- MenuItem_action
- MenuItem_alloc
- MenuItem_allocWithZone
- MenuItem_allowsAutomaticKeyEquivalentLocalization
- MenuItem_allowsAutomaticKeyEquivalentMirroring
- MenuItem_allowsKeyEquivalentWhenHidden
- MenuItem_automaticallyNotifiesObserversForKey
- MenuItem_cancelPreviousPerformRequestsWithTarget_
- MenuItem_cancelPreviousPerformRequestsWithTarget_selector_object
- MenuItem_class
- MenuItem_classFallbacksForKeyedArchiver
- MenuItem_classForKeyedUnarchiver
- MenuItem_conformsToProtocol
- MenuItem_copyWithZone
- MenuItem_debugDescription
- MenuItem_defaultPlaceholderForMarker
- MenuItem_description
- MenuItem_exposeBinding
- MenuItem_hasSubmenu
- MenuItem_hash
- MenuItem_indentationLevel
- MenuItem_init
- MenuItem_initWithCoder
- MenuItem_initWithTitle
- MenuItem_initialize
- MenuItem_instanceMethodForSelector
- MenuItem_instancesRespondToSelector
- MenuItem_isAlternate
- MenuItem_isEnabled
- MenuItem_isHidden
- MenuItem_isHiddenOrHasHiddenAncestor
- MenuItem_isHighlighted
- MenuItem_isSectionHeader
- MenuItem_isSeparatorItem
- MenuItem_isSubclassOfClass
- MenuItem_keyEquivalent
- MenuItem_keyEquivalentModifierMask
- MenuItem_keyPathsForValuesAffectingValueForKey
- MenuItem_load
- MenuItem_menu
- MenuItem_mnemonic
- MenuItem_mnemonicLocation
- MenuItem_mutableCopyWithZone
- MenuItem_new
- MenuItem_parentItem
- MenuItem_poseAsClass
- MenuItem_registerActionCallback
- MenuItem_representedObject
- MenuItem_resolveClassMethod
- MenuItem_resolveInstanceMethod
- MenuItem_sectionHeaderWithTitle
- MenuItem_separatorItem
- MenuItem_setAction
- MenuItem_setAllowsAutomaticKeyEquivalentLocalization
- MenuItem_setAllowsAutomaticKeyEquivalentMirroring
- MenuItem_setAllowsKeyEquivalentWhenHidden
- MenuItem_setAlternate
- MenuItem_setDefaultPlaceholder
- MenuItem_setEnabled
- MenuItem_setHidden
- MenuItem_setIndentationLevel
- MenuItem_setKeyEquivalent
- MenuItem_setKeyEquivalentModifierMask
- MenuItem_setKeys
- MenuItem_setMenu
- MenuItem_setMnemonicLocation
- MenuItem_setRepresentedObject
- MenuItem_setSubmenu
- MenuItem_setSubtitle
- MenuItem_setTag
- MenuItem_setTarget
- MenuItem_setTitle
- MenuItem_setTitleWithMnemonic
- MenuItem_setToolTip
- MenuItem_setUsesUserKeyEquivalents
- MenuItem_setVersion
- MenuItem_setView
- MenuItem_submenu
- MenuItem_subtitle
- MenuItem_superclass
- MenuItem_tag
- MenuItem_target
- MenuItem_title
- MenuItem_toolTip
- MenuItem_useStoredAccessor
- MenuItem_userKeyEquivalent
- MenuItem_usesUserKeyEquivalents
- MenuItem_version
- MenuItem_view
Menu_… (110)
- Menu_accessInstanceVariablesDirectly
- Menu_addItem
- Menu_addItemWithTitle
- Menu_alloc
- Menu_allocWithZone
- Menu_allowsContextMenuPlugIns
- Menu_attachedMenu
- Menu_autoenablesItems
- Menu_automaticallyNotifiesObserversForKey
- Menu_cancelPreviousPerformRequestsWithTarget_
- Menu_cancelPreviousPerformRequestsWithTarget_selector_object
- Menu_cancelTracking
- Menu_cancelTrackingWithoutAnimation
- Menu_class
- Menu_classFallbacksForKeyedArchiver
- Menu_classForKeyedUnarchiver
- Menu_conformsToProtocol
- Menu_contextMenuRepresentation
- Menu_copyWithZone
- Menu_debugDescription
- Menu_defaultPlaceholderForMarker
- Menu_delegate
- Menu_description
- Menu_exposeBinding
- Menu_hash
- Menu_helpRequested
- Menu_highlightedItem
- Menu_indexOfItem
- Menu_indexOfItemWithRepresentedObject
- Menu_indexOfItemWithSubmenu
- Menu_indexOfItemWithTag
- Menu_indexOfItemWithTarget
- Menu_indexOfItemWithTitle
- Menu_init
- Menu_initWithCoder
- Menu_initWithTitle
- Menu_initialize
- Menu_insertItem
- Menu_insertItemWithTitle
- Menu_instanceMethodForSelector
- Menu_instancesRespondToSelector
- Menu_isAttached
- Menu_isSubclassOfClass
- Menu_isTornOff
- Menu_itemArray
- Menu_itemAtIndex
- Menu_itemChanged
- Menu_itemWithTag
- Menu_itemWithTitle
- Menu_keyPathsForValuesAffectingValueForKey
- Menu_load
- Menu_locationForSubmenu
- Menu_menuBarHeight
- Menu_menuBarVisible
- Menu_menuChangedMessagesEnabled
- Menu_menuRepresentation
- Menu_menuZone
- Menu_minimumWidth
- Menu_mutableCopyWithZone
- Menu_new
- Menu_numberOfItems
- Menu_paletteMenuWithColors_titles_selectionHandler
- Menu_performActionForItemAtIndex
- Menu_performKeyEquivalent
- Menu_popUpContextMenu_withEvent_forView
- Menu_popUpMenuPositioningItem
- Menu_poseAsClass
- Menu_presentationStyle
- Menu_propertiesToUpdate
- Menu_removeAllItems
- Menu_removeItem
- Menu_removeItemAtIndex
- Menu_resolveClassMethod
- Menu_resolveInstanceMethod
- Menu_selectedItems
- Menu_selectionMode
- Menu_setAllowsContextMenuPlugIns
- Menu_setAutoenablesItems
- Menu_setContextMenuRepresentation
- Menu_setDefaultPlaceholder
- Menu_setDelegate
- Menu_setItemArray
- Menu_setKeys
- Menu_setMenuBarVisible
- Menu_setMenuChangedMessagesEnabled
- Menu_setMenuRepresentation
- Menu_setMenuZone
- Menu_setMinimumWidth
- Menu_setPresentationStyle
- Menu_setSelectedItems
- Menu_setSelectionMode
- Menu_setShowsStateColumn
- Menu_setSubmenu
- Menu_setSupermenu
- Menu_setTearOffMenuRepresentation
- Menu_setTitle
- Menu_setUserInterfaceLayoutDirection
- Menu_setVersion
- Menu_showsStateColumn
- Menu_size
- Menu_sizeToFit
- Menu_submenuAction
- Menu_superclass
- Menu_supermenu
- Menu_tearOffMenuRepresentation
- Menu_title
- Menu_update
- Menu_useStoredAccessor
- Menu_userInterfaceLayoutDirection
- Menu_version
- MidX
- MidY
- MinX
- MinY
- NSWindow_setFrameAutosaveName
Notification_… (5)
Number_… (47)
- Number_alloc
- Number_boolValue
- Number_compare
- Number_descriptionWithLocale
- Number_f32Value
- Number_f64Value
- Number_i16Value
- Number_i32Value
- Number_i64Value
- Number_i8Value
- Number_init
- Number_initWithBool
- Number_initWithF32
- Number_initWithF64
- Number_initWithI16
- Number_initWithI32
- Number_initWithI64
- Number_initWithI8
- Number_initWithInt
- Number_initWithU16
- Number_initWithU32
- Number_initWithU64
- Number_initWithU8
- Number_initWithUint
- Number_intValue
- Number_integerValue
- Number_isEqualToNumber
- Number_numberWithBool
- Number_numberWithF32
- Number_numberWithF64
- Number_numberWithI16
- Number_numberWithI32
- Number_numberWithI64
- Number_numberWithI8
- Number_numberWithInt
- Number_numberWithU16
- Number_numberWithU32
- Number_numberWithU64
- Number_numberWithU8
- Number_numberWithUint
- Number_stringValue
- Number_u16Value
- Number_u32Value
- Number_u64Value
- Number_u8Value
- Number_uintValue
- Number_uintegerValue
ProcessInfo_… (30)
- ProcessInfo_activeProcessorCount
- ProcessInfo_arguments
- ProcessInfo_automaticTerminationSupportEnabled
- ProcessInfo_beginActivityWithOptions
- ProcessInfo_disableAutomaticTermination
- ProcessInfo_disableSuddenTermination
- ProcessInfo_enableAutomaticTermination
- ProcessInfo_enableSuddenTermination
- ProcessInfo_endActivity
- ProcessInfo_environment
- ProcessInfo_fullUserName
- ProcessInfo_globallyUniqueString
- ProcessInfo_hostName
- ProcessInfo_isLowPowerModeEnabled
- ProcessInfo_isMacCatalystApp
- ProcessInfo_isOperatingSystemAtLeastVersion
- ProcessInfo_isiOSAppOnMac
- ProcessInfo_operatingSystemVersion
- ProcessInfo_operatingSystemVersionString
- ProcessInfo_performActivityWithOptions
- ProcessInfo_performExpiringActivityWithReason
- ProcessInfo_physicalMemory
- ProcessInfo_processIdentifier
- ProcessInfo_processInfo
- ProcessInfo_processName
- ProcessInfo_processorCount
- ProcessInfo_setAutomaticTerminationSupportEnabled
- ProcessInfo_systemUptime
- ProcessInfo_thermalState
- ProcessInfo_userName
Range_… (4)
- RunLoop_addTimerForMode
- RunLoop_mainRunLoop
RunningApplication_… (3)
SavePanel_… (3)
- SelectorFromString
- StringFromClass
- StringFromSelector
String_… (16)
- String_UTF8String
- String_alloc
- String_characterAtIndex
- String_cstringUsingEncoding
- String_init
- String_initWithBytesNoCopy
- String_initWithCString
- String_initWithOdinString
- String_initWithString
- String_isEqualToString
- String_length
- String_lengthOfBytesUsingEncoding
- String_maximumLengthOfBytesUsingEncoding
- String_odinString
- String_rangeOfString
- String_stringByAppendingString
- Timer_scheduledTimerWithTimeIntervalRepeatsBlock
- Timer_scheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeat
- Toolbar_alloc
- Toolbar_init
URLRequest_… (4)
URLResponse_… (3)
- UserDefaults_setBoolForKey
- UserDefaults_standardUserDefaults
Window_… (69)
- Window_alloc
- Window_backgroundColor
- Window_backingScaleFactor
- Window_center
- Window_close
- Window_collectionBehavior
- Window_contentLayoutRect
- Window_contentRectForFrameRectInstance
- Window_contentRectForFrameRectType
- Window_contentView
- Window_convertPointFromBacking
- Window_convertPointFromScreen
- Window_convertPointToBacking
- Window_convertPointToScreen
- Window_convertRectFromBacking
- Window_convertRectFromScreen
- Window_convertRectToBacking
- Window_convertRectToScreen
- Window_delegate
- Window_frame
- Window_frameRectForContentRectInstance
- Window_frameRectForContentRectType
- Window_hasCloseBox
- Window_hasTitleBar
- Window_initWithContentRect
- Window_isFloatingPanel
- Window_isMiniaturizable
- Window_isModalPanel
- Window_isResizable
- Window_isZoomable
- Window_keyWindow
- Window_mainWindow
- Window_makeFirstResponder
- Window_makeKeyAndOrderFront
- Window_minFrameWidthWithTitle
- Window_opaque
- Window_orderFront
- Window_orderOut
- Window_orderedIndex
- Window_parentWindow
- Window_performClose
- Window_performWindowDragWithEvent
- Window_performZoom
- Window_screen
- Window_setAcceptsMouseMovedEvents
- Window_setBackgroundColor
- Window_setCollectionBehavior
- Window_setContentView
- Window_setDelegate
- Window_setFrame
- Window_setFrameOrigin
- Window_setIsMiniaturized
- Window_setIsVisible
- Window_setIsZoomed
- Window_setLevel
- Window_setMinSize
- Window_setMovable
- Window_setMovableByWindowBackground
- Window_setOpaque
- Window_setReleasedWhenClosed
- Window_setRestorable
- Window_setStyleMask
- Window_setTabbingMode
- Window_setTitle
- Window_setTitleVisibility
- Window_setTitlebarAppearsTransparent
- Window_setToolbar
- Window_setWantsLayer
- Window_toggleFullScreen
- alloc
- alloc_user_object
- application_delegate_register_and_alloc
- autorelease
- bridgingCast
- class
class_… (27)
- class_addIvar
- class_addMethod
- class_addProperty
- class_addProtocol
- class_conformsToProtocol
- class_copyIvarList
- class_copyMethodList
- class_copyPropertyList
- class_copyProtocolList
- class_createInstance
- class_getClassMethod
- class_getClassVariable
- class_getInstanceMethod
- class_getInstanceSize
- class_getInstanceVariable
- class_getMethodImplementation
- class_getName
- class_getProperty
- class_getSuperclass
- class_getVersion
- class_get_metaclass
- class_get_vtable_info
- class_isMetaClass
- class_replaceMethod
- class_replaceProperty
- class_respondsToSelector
- class_setVersion
- copy
- debugDescription
- description
- hash
- init
- isEqual
ivar_… (3)
- make_subclasser
- methodSignatureForSelector
- msgSendSafeCheck
- new
objc_… (16)
- objc_allocateClassPair
- objc_constructInstance
- objc_copyClassList
- objc_copyProtocolList
- objc_destructInstance
- objc_disposeClassPair
- objc_duplicateClass
- objc_getAssociatedObject
- objc_getClassList
- objc_getMetaClass
- objc_getProtocol
- objc_getRequiredClass
- objc_lookUpClass
- objc_registerClassPair
- objc_removeAssociatedObjects
- objc_setAssociatedObject
- performSelectorOnMainThread
protocol_… (3)
- register_subclass
- release
- respondsToSelector
- retain
- retainCount
- scoped_autoreleasepool
sel_… (3)
- tilt
- window_delegate_register_and_alloc
Types
ActivationPolicy ¶
ActivationPolicy :: enum UInteger { Regular = 0, Accessory = 1, Prohibited = 2, }
ActivityOptions ¶
ActivityOptions :: bit_set[ActivityOptionsBits; u64]
Related Procedures With Parameters
ActivityOptionsBits ¶
ActivityOptionsBits :: enum u64 { IdleDisplaySleepDisabled = log2(1099511627776), // Require the screen to stay powered on. IdleSystemSleepDisabled = log2(1048576), // Prevent idle sleep. SuddenTerminationDisabled = log2(16384), // Prevent sudden termination. AutomaticTerminationDisabled = log2(32768), // Prevent automatic termination. AnimationTrackingEnabled = log2(35184372088832), // Track activity with an animation signpost interval. TrackingEnabled = log2(70368744177664), // Track activity with a signpost interval. UserInitiated = log2(16777215), // Performing a user-requested action. UserInitiatedAllowingIdleSystemSleep = log2(15728639), // Performing a user-requested action, but the system can sleep on idle. Background = log2(255), // Initiated some kind of work, but not as the direct result of a user request. LatencyCritical = log2(1095216660480), // Requires the highest amount of timer and I/O precision available. UserInteractive = log2(1095233437695), // Responding to user interaction. }
Application ¶
Application :: struct { using _: Object, }Application :: struct { using _: Object, } // Objective-C class NSApplication // Inherits Object // 28 methods
External examples metal/learn_metal/02-argbuffers-no-sdl
Bound Objective-C Methods
- activate ()
- activateIgnoringOtherApps(ignoreOtherApps)
- active () -> bool
- currentEvent () -> ^Event
- finishLaunching ()
- isRunning () -> bool
- keyWindow () -> ^Window
- mainMenu () -> ^Menu
- mainWindow () -> ^Window
- nextEventMatchingMask (mask, expiration, in_mode, dequeue) -> ^Event
- postEvent (event, atStart)
- run ()
- sendAction (action, to, from)
- sendEvent (event)
- servicesMenu () -> ^Menu
- setActivationPolicy (activationPolicy) -> bool
- setAppleMenu (menu)
- setDelegate (delegate)
- setMainMenu (menu)
- setServicesMenu (menu)
- setTitle (title)
- setWindowsMenu (menu)
- sharedApplication () -> ^Application class method
- stop (sender)
- terminate (sender)
- updateWindows ()
- windows () -> ^Array
- windowsMenu () -> ^Menu
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
ApplicationDelegate ¶
ApplicationDelegate :: struct { using _: Object, }
Procedures Through `using` From Object
- Application_stop
- Application_terminate
- AutoreleasePool_addObject
- AutoreleasePool_showPools
- Dictionary_dictionaryWithObject
- Dictionary_objectForKey
- NotificationCenter_addObserver
- NotificationCenter_addObserverForName_new
- NotificationCenter_addObserverForName_old
- NotificationCenter_removeObserver
- Number_descriptionWithLocale
- Window_makeKeyAndOrderFront
- autorelease
- bridgingCast
- class
- debugDescription
- description
- hash
- isEqual
- methodSignatureForSelector
- msgSendSafeCheck
- performSelectorOnMainThread
- release
- respondsToSelector
- retain
- retainCount
- NotificationCenter_addObserverForName (procedure groups)
Procedures Through `using` From objc_object
- Application_sendAction
- DeallocateObject
- Event_otherEventWithType
- MenuItem_cancelPreviousPerformRequestsWithTarget_
- MenuItem_cancelPreviousPerformRequestsWithTarget_selector_object
- MenuItem_defaultPlaceholderForMarker
- MenuItem_setDefaultPlaceholder
- MenuItem_setRepresentedObject
- MenuItem_setTarget
- Menu_cancelPreviousPerformRequestsWithTarget_
- Menu_cancelPreviousPerformRequestsWithTarget_selector_object
- Menu_defaultPlaceholderForMarker
- Menu_indexOfItemWithRepresentedObject
- Menu_indexOfItemWithTarget
- Menu_setContextMenuRepresentation
- Menu_setDefaultPlaceholder
- Menu_setMenuRepresentation
- Menu_setTearOffMenuRepresentation
- Menu_submenuAction
- Timer_scheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeat
- Window_orderFront
- Window_orderOut
- Window_performClose
- Window_toggleFullScreen
- objc_destructInstance
- objc_getAssociatedObject
- objc_removeAssociatedObjects
- objc_setAssociatedObject
- object_copy
- object_dispose
- object_getClass
- object_getClassName
- object_getIndexedIvars
- object_getInstanceVariable
- object_getIvar
- object_get_vtable_info
- object_setClass
- object_setInstanceVariable
- object_setIvar
- MenuItem_cancelPreviousPerformRequestsWithTarget (procedure groups)
- Menu_cancelPreviousPerformRequestsWithTarget (procedure groups)
ApplicationDelegateTemplate ¶
ApplicationDelegateTemplate :: struct { // Launching Applications applicationWillFinishLaunching: proc(notification: ^Notification), applicationDidFinishLaunching: proc(notification: ^Notification), // Managing Active Status applicationWillBecomeActive: proc(notification: ^Notification), applicationDidBecomeActive: proc(notification: ^Notification), applicationWillResignActive: proc(notification: ^Notification), applicationDidResignActive: proc(notification: ^Notification), // Terminating Applications applicationShouldTerminate: proc(sender: ^Application) -> ApplicationTerminateReply, applicationShouldTerminateAfterLastWindowClosed: proc(sender: ^Application) -> bool, applicationWillTerminate: proc(notification: ^Notification), // Hiding Applications applicationWillHide: proc(notification: ^Notification), applicationDidHide: proc(notification: ^Notification), applicationWillUnhide: proc(notification: ^Notification), applicationDidUnhide: proc(notification: ^Notification), // Managing Windows applicationWillUpdate: proc(notification: ^Notification), applicationDidUpdate: proc(notification: ^Notification), applicationShouldHandleReopenHasVisibleWindows: proc(sender: ^Application, flag: bool) -> bool, // Managing the Dock Menu applicationDockMenu: proc(sender: ^Application) -> ^Menu, // Localizing Keyboard Shortcuts applicationShouldAutomaticallyLocalizeKeyEquivalents: proc(application: ^Application) -> bool, // Displaying Errors applicationWillPresentError: proc(application: ^Application, error: ^Error) -> ^Error, // Managing the Screen applicationDidChangeScreenParameters: proc(notification: ^Notification), // Continuing User Activities applicationWillContinueUserActivityWithType: proc(application: ^Application, userActivityType: ^String) -> bool, applicationContinueUserActivityRestorationHandler: proc(application: ^Application, userActivity: ^UserActivity, restorationHandler: ^Block) -> bool, applicationDidFailToContinueUserActivityWithTypeError: proc(application: ^Application, userActivityType: ^String, error: ^Error), applicationDidUpdateUserActivity: proc(application: ^Application, userActivity: ^UserActivity), // Handling Push Notifications applicationDidRegisterForRemoteNotificationsWithDeviceToken: proc(application: ^Application, deviceToken: ^Data), applicationDidFailToRegisterForRemoteNotificationsWithError: proc(application: ^Application, error: ^Error), applicationDidReceiveRemoteNotification: proc(application: ^Application, userInfo: ^Dictionary), // Handling CloudKit Invitations // TODO: if/when we have cloud kit bindings implement // applicationUserDidAcceptCloudKitShareWithMetadata: proc(application: ^Application, metadata: ^CKShareMetadata), // Handling SiriKit Intents // TODO: if/when we have siri kit bindings implement // applicationHandlerForIntent: proc(application: ^Application, intent: ^INIntent) -> id, // Opening Files applicationOpenURLs: proc(application: ^Application, urls: ^Array), applicationOpenFile: proc(sender: ^Application, filename: ^String) -> bool, applicationOpenFileWithoutUI: proc(sender: ^intrinsics.objc_object, filename: ^String) -> bool, applicationOpenTempFile: proc(sender: ^Application, filename: ^String) -> bool, applicationOpenFiles: proc(sender: ^Application, filenames: ^Array), applicationShouldOpenUntitledFile: proc(sender: ^Application) -> bool, applicationOpenUntitledFile: proc(sender: ^Application) -> bool, // Printing applicationPrintFile: proc(sender: ^Application, filename: ^String) -> bool, applicationPrintFilesWithSettingsShowPrintPanels: proc(application: ^Application, fileNames: ^Array, printSettings: ^Dictionary, showPrintPanels: bool) -> ApplicationPrintReply, // Restoring Application State applicationSupportsSecureRestorableState: proc(app: ^Application) -> bool, applicationProtectedDataDidBecomeAvailable: proc(notification: ^Notification), applicationProtectedDataWillBecomeUnavailable: proc(notification: ^Notification), applicationWillEncodeRestorableState: proc(app: ^Application, coder: ^Coder), applicationDidDecodeRestorableState: proc(app: ^Application, coder: ^Coder), // Handling Changes to the Occlusion State applicationDidChangeOcclusionState: proc(notification: ^Notification), // Scripting Your App applicationDelegateHandlesKey: proc(sender: ^Application, key: ^String) -> bool, }
ApplicationPresentationOptionFlag ¶
ApplicationPresentationOptionFlag :: enum UInteger { AutoHideDock = 0, HideDock = 1, AutoHideMenuBar = 2, HideMenuBar = 3, DisableAppleMenu = 4, DisableProcessSwitching = 5, DisableForceQuit = 6, DisableSessionTermination = 7, DisableHideApplication = 8, DisableMenuBarTransparency = 9, FullScreen = 10, AutoHideToolbar = 11, DisableCursorLocationAssistance = 12, }
ApplicationPresentationOptions ¶
ApplicationPresentationOptions :: distinct bit_set[ApplicationPresentationOptionFlag; UInteger]
Related Constants
- ApplicationPresentationOptionsAutoHideDock
- ApplicationPresentationOptionsAutoHideMenuBar
- ApplicationPresentationOptionsAutoHideToolbar
- ApplicationPresentationOptionsDefault
- ApplicationPresentationOptionsDisableAppleMenu
- ApplicationPresentationOptionsDisableCursorLocationAssistance
- ApplicationPresentationOptionsDisableForceQuit
- ApplicationPresentationOptionsDisableHideApplication
- ApplicationPresentationOptionsDisableMenuBarTransparency
- ApplicationPresentationOptionsDisableProcessSwitching
- ApplicationPresentationOptionsDisableSessionTermination
- ApplicationPresentationOptionsFullScreen
- ApplicationPresentationOptionsHideDock
- ApplicationPresentationOptionsHideMenuBar
ApplicationPrintReply ¶
ApplicationPrintReply :: enum UInteger { PrintingCancelled = 0, PrintingSuccess = 1, PrintingReplyLater = 2, PrintingFailure = 3, }
ApplicationTerminateReply ¶
ApplicationTerminateReply :: enum UInteger { TerminateCancel = 0, TerminateNow = 1, TerminateLater = 2, }
Array ¶
Array :: struct { using _: Copying($T=Array), }Array :: struct { using _: Copying($T=Array), } // Objective-C class NSArray // Inherits Copying → Object // 7 methods
Bound Objective-C Methods
- alloc () -> ^Array class method owned
- count () -> UInteger
- init () -> ^Array
- initWithCoder (coder) -> ^Array
- initWithObjects(objects, count) -> ^Array
- object (index) -> ^Object
- objectAs (index, T) -> T
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
AutoreleasePool ¶
AutoreleasePool :: struct { using _: Object, }AutoreleasePool :: struct { using _: Object, } // Objective-C class NSAutoreleasePool // Inherits Object // 5 methods
Bound Objective-C Methods
- addObject(obj)
- alloc () -> ^AutoreleasePool class method owned
- drain ()
- init () -> ^AutoreleasePool
- showPools(obj)
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
BOOL ¶
BOOL :: bool
TODO(bill): should this be distinct?
Related Procedures With Parameters
- Application_activateIgnoringOtherApps
- Application_nextEventMatchingMask
- Application_postEvent
- BitmapImageRep_initWithBitmapDataPlanes_bitmapFormat
- BitmapImageRep_initWithBitmapDataPlanes_legacy
- Cursor_setHiddenUntilMouseMoves
- Data_initWithBytesNoCopy
- MenuDelegate_menu_updateItem_atIndex_shouldCancel
- MenuItem_setAllowsAutomaticKeyEquivalentLocalization
- MenuItem_setAllowsAutomaticKeyEquivalentMirroring
- MenuItem_setAllowsKeyEquivalentWhenHidden
- MenuItem_setAlternate
- MenuItem_setEnabled
- MenuItem_setHidden
- MenuItem_setUsesUserKeyEquivalents
- Menu_setAllowsContextMenuPlugIns
- Menu_setAutoenablesItems
- Menu_setMenuBarVisible
- Menu_setMenuChangedMessagesEnabled
- Menu_setShowsStateColumn
- Number_initWithBool
- Number_numberWithBool
- OpenPanel_setAllowsMultipleSelection
- OpenPanel_setCanChooseDirectories
- OpenPanel_setCanChooseFiles
- OpenPanel_setResolvesAliases
- ProcessInfo_setAutomaticTerminationSupportEnabled
- String_initWithBytesNoCopy
- Timer_scheduledTimerWithTimeIntervalRepeatsBlock
- Timer_scheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeat
- UserDefaults_setBoolForKey
- View_setIsFlipped
- View_setWantsLayer
- Window_initWithContentRect
- Window_setAcceptsMouseMovedEvents
- Window_setFrame
- Window_setIsMiniaturized
- Window_setIsVisible
- Window_setIsZoomed
- Window_setMovable
- Window_setMovableByWindowBackground
- Window_setOpaque
- Window_setReleasedWhenClosed
- Window_setRestorable
- Window_setTitlebarAppearsTransparent
- Window_setWantsLayer
- performSelectorOnMainThread
- BitmapImageRep_initWithBitmapDataPlanes (procedure groups)
- MenuDelegate_menu (procedure groups)
- Number_number (procedure groups)
Related Procedures With Returns
- Application_active
- Application_isRunning
- Application_setActivationPolicy
- Bundle_isLoaded
- Bundle_load
- Bundle_loadAndReturnError
- Bundle_preflightAndReturnError
- Bundle_unload
- Condition_waitUntilDate
- Enumerator_iterator
- Event_hasPreciseScrollingDeltas
- Event_isARepeat
- Event_isDirectionInvertedFromDevice
- Event_isEnteringProximity
- Event_isSwipeTrackingFromScrollEventsEnabled
- MenuDelegate_menuHasKeyEquivalent
- MenuItem_accessInstanceVariablesDirectly
- MenuItem_allowsAutomaticKeyEquivalentLocalization
- MenuItem_allowsAutomaticKeyEquivalentMirroring
- MenuItem_allowsKeyEquivalentWhenHidden
- MenuItem_automaticallyNotifiesObserversForKey
- MenuItem_conformsToProtocol
- MenuItem_hasSubmenu
- MenuItem_instancesRespondToSelector
- MenuItem_isAlternate
- MenuItem_isEnabled
- MenuItem_isHidden
- MenuItem_isHiddenOrHasHiddenAncestor
- MenuItem_isHighlighted
- MenuItem_isSectionHeader
- MenuItem_isSeparatorItem
- MenuItem_isSubclassOfClass
- MenuItem_resolveClassMethod
- MenuItem_resolveInstanceMethod
- MenuItem_useStoredAccessor
- MenuItem_usesUserKeyEquivalents
- Menu_accessInstanceVariablesDirectly
- Menu_allowsContextMenuPlugIns
- Menu_autoenablesItems
- Menu_automaticallyNotifiesObserversForKey
- Menu_conformsToProtocol
- Menu_instancesRespondToSelector
- Menu_isAttached
- Menu_isSubclassOfClass
- Menu_isTornOff
- Menu_menuBarVisible
- Menu_menuChangedMessagesEnabled
- Menu_performKeyEquivalent
- Menu_popUpMenuPositioningItem
- Menu_resolveClassMethod
- Menu_resolveInstanceMethod
- Menu_showsStateColumn
- Menu_useStoredAccessor
- Number_boolValue
- Number_isEqualToNumber
- ProcessInfo_automaticTerminationSupportEnabled
- ProcessInfo_isLowPowerModeEnabled
- ProcessInfo_isMacCatalystApp
- ProcessInfo_isOperatingSystemAtLeastVersion
- ProcessInfo_isiOSAppOnMac
- Range_Equal
- Range_LocationInRange
- RunningApplication_finishedLaunching
- Screen_screensHaveSeparateSpaces
- String_isEqualToString
- Value_isEqualToValue
- View_isFlipped
- View_wantsLayer
- Window_hasCloseBox
- Window_hasTitleBar
- Window_isFloatingPanel
- Window_isMiniaturizable
- Window_isModalPanel
- Window_isResizable
- Window_isZoomable
- Window_keyWindow
- Window_mainWindow
- Window_makeFirstResponder
- Window_opaque
- class_addIvar
- class_addMethod
- class_addProperty
- class_addProtocol
- class_conformsToProtocol
- class_isMetaClass
- class_respondsToSelector
- isEqual
- msgSendSafeCheck
- protocol_conformsToProtocol
- protocol_isEqual
- respondsToSelector
- sel_isEqual
BackingStoreType ¶
BackingStoreType :: enum UInteger { Retained = 0, Nonretained = 1, Buffered = 2, }
BitmapFormatFlag ¶
BitmapFormatFlag :: enum BitmapInteger { AlphaFirst = 0, AlphaNonpremultiplied = 1, FloatingPointSamples = 2, SixteenBitLittleEndian = 8, ThirtyTwoBitLittleEndian = 9, SixteenBitBigEndian = 10, ThirtyTwoBitBigEndian = 11, }
BitmapFormatFlags ¶
BitmapFormatFlags :: bit_set[BitmapFormatFlag; BitmapInteger]
Related Procedures With Parameters
BitmapImageRep ¶
BitmapImageRep :: struct { using _: Object, }BitmapImageRep :: struct { using _: Object, } // Objective-C class NSBitmapImageRep // Inherits Object // 4 methods
Bound Objective-C Methods
- CGImage () -> rawptr
- alloc () -> ^BitmapImageRep class method owned
- bitmapData () -> rawptr
- initWithBitmapDataPlanes(…) overloaded
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
BitmapInteger ¶
BitmapInteger :: distinct uint
Block ¶
Block :: struct { using _: Object, }Block :: struct { using _: Object, } // Objective-C class NSBlock // Inherits Object // 5 methods
Bound Objective-C Methods
- createGlobal (user_data, user_proc, allocator) -> (^Block, runtime.Allocator_Error) class method
- createGlobalWithParam(user_data, user_proc, allocator) -> (^Block, runtime.Allocator_Error) class method
- createLocal (user_data, user_proc) -> ^Block class method
- createLocalWithParam (user_data, user_proc) -> ^Block class method
- invoke (args) -> ^Object
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Bundle ¶
Bundle :: struct { using _: Object, }Bundle :: struct { using _: Object, } // Objective-C class NSBundle // Inherits Object // 37 methods
Bound Objective-C Methods
- PathForAuxiliaryExecutable(executableName) -> ^String
- URLForAuxiliaryExecutable (executableName) -> ^URL
- allBundles () -> (all: ^Array)
- allFrameworks () -> (all: ^Array)
- alloc () -> ^Bundle class method owned
- appStoreReceiptPath () -> ^String
- appStoreReceiptURL () -> ^URL
- builtInPlugInsPath () -> ^String
- builtInPlugInsURL () -> ^URL
- bundleIdentifier () -> ^String
- bundlePath () -> ^String
- bundleURL () -> ^URL
- bundleWithPath (path) -> ^Bundle class method
- bundleWithURL (url) -> ^Bundle class method
- executablePath () -> ^String
- executableURL () -> ^URL
- infoDictionary () -> ^Dictionary
- init () -> ^Bundle
- initWithPath (path) -> ^Bundle
- initWithURL (url) -> ^Bundle
- isLoaded () -> bool
- load () -> bool
- loadAndReturnError () -> (ok: bool, error: ^Error)
- localizedInfoDictionary () -> ^Dictionary
- localizedStringForKey (key, value, tableName) -> ^String
- mainBundle () -> ^Bundle class method
- objectForInfoDictionaryKey(key) -> ^Object
- preflightAndReturnError () -> (ok: bool, error: ^Error)
- privateFrameworksPath () -> ^String
- privateFrameworksURL () -> ^URL
- resourcePath () -> ^String
- resourceURL () -> ^URL
- sharedFrameworksPath () -> ^String
- sharedFrameworksURL () -> ^URL
- sharedSupportPath () -> ^String
- sharedSupportURL () -> ^URL
- unload () -> bool
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Class ¶
Class :: ^intrinsics.objc_class
Related Procedures With Parameters
- AllocateObject
- MenuItem_isSubclassOfClass
- MenuItem_poseAsClass
- Menu_isSubclassOfClass
- Menu_poseAsClass
- StringFromClass
- alloc_user_object
- class_addIvar
- class_addMethod
- class_addProperty
- class_addProtocol
- class_conformsToProtocol
- class_copyIvarList
- class_copyMethodList
- class_copyPropertyList
- class_copyProtocolList
- class_createInstance
- class_getClassMethod
- class_getClassVariable
- class_getInstanceMethod
- class_getInstanceSize
- class_getInstanceVariable
- class_getMethodImplementation
- class_getName
- class_getProperty
- class_getSuperclass
- class_getVersion
- class_get_metaclass
- class_get_vtable_info
- class_isMetaClass
- class_replaceMethod
- class_replaceProperty
- class_respondsToSelector
- class_setVersion
- objc_allocateClassPair
- objc_constructInstance
- objc_disposeClassPair
- objc_duplicateClass
- objc_getClassList
- objc_registerClassPair
- object_setClass
- register_subclass
Class_VTable_Info ¶
Class_VTable_Info :: struct { _context: runtime.Context, super_vtable: rawptr, protocol_vtable: rawptr, }
Related Procedures With Returns
Coder ¶
Coder :: struct { using _: Object, }Coder :: struct { using _: Object, } // Objective-C class NSCoder // Inherits Object
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Color ¶
Color :: struct { using _: Object, }Color :: struct { using _: Object, } // Objective-C class NSColor // Inherits Object // 28 methods
Bound Objective-C Methods
- blackColor () -> ^Color class method
- blueColor () -> ^Color class method
- colorSpace () -> ^ColorSpace
- colorSpaceName () -> ^String
- colorUsingColorSpaceName(colorSpace, device) -> ^Color
- colorWithCalibratedHue (hue, saturation, brightness, alpha) -> ^Color class method
- colorWithCalibratedRed (red, green, blue, alpha) -> ^Color class method
- colorWithCalibratedWhite(white, alpha) -> ^Color class method
- colorWithColorSpace (space, components) -> ^Color class method
- colorWithDeviceCyan (cyan, magenta, yellow, black, alpha) -> ^Color class method
- colorWithDeviceHue (hue, saturation, brightness, alpha) -> ^Color class method
- colorWithDeviceRed (red, green, blue, alpha) -> ^Color class method
- colorWithDeviceWhite (white, alpha) -> ^Color class method
- colorWithSRGBRed (red, green, blue, alpha) -> ^Color class method
- cyanColor () -> ^Color class method
- getCMYKA () -> (cyan, magenta, yellow, black, alpha: CoreFoundation.CGFloat)
- getComponents (components)
- getHSBA () -> (hue, saturation, brightness, alpha: CoreFoundation.CGFloat)
- getRGBA () -> (red, green, blue, alpha: CoreFoundation.CGFloat)
- getWhiteAlpha () -> (white, alpha: CoreFoundation.CGFloat)
- greenColor () -> ^Color class method
- magentaColor () -> ^Color class method
- numberOfComponents () -> Integer
- orangeColor () -> ^Color class method
- purpleColor () -> ^Color class method
- redColor () -> ^Color class method
- whiteColor () -> ^Color class method
- yellowColor () -> ^Color class method
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
ColorSpace ¶
ColorSpace :: struct { using _: Object, }ColorSpace :: struct { using _: Object, } // Objective-C class NSColorSpace // Inherits Object
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
ComparisonResult ¶
ComparisonResult :: enum Integer { OrderedAscending = -1, OrderedSame = 0, OrderedDescending = 1, }
Condition ¶
Condition :: struct { using _: Locking($T=Condition), }Condition :: struct { using _: Locking($T=Condition), } // Objective-C class NSCondition // Inherits Locking → Object // 8 methods
Bound Objective-C Methods
- alloc () -> ^Condition class method owned
- broadcast ()
- init () -> ^Condition
- lock ()
- signal ()
- unlock ()
- wait ()
- waitUntilDate(limit) -> bool
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Copying ¶
Copying :: struct($T: typeid) { … // See source for fields }Copying :: struct($T: typeid) { … // See source for fields } // Objective-C class NSObject
Cursor ¶
Cursor :: struct { using _: Object, }Cursor :: struct { using _: Object, } // Objective-C class NSCursor // Inherits Object // 10 methods
Bound Objective-C Methods
- IBeamCursor () -> ^Cursor class method
- alloc () -> ^Cursor class method owned
- arrowCursor () -> ^Cursor class method
- currentCursor () -> ^Cursor class method
- hide () class method
- initWithImage (image, hotSpot) -> ^Cursor
- pointingHandCursor () -> ^Cursor class method
- set ()
- setHiddenUntilMouseMoves(flag) class method
- unhide () class method
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Data ¶
Data :: struct { using _: Copying($T=Data), }Data :: struct { using _: Copying($T=Data), } // Objective-C class NSData // Inherits Copying → Object // 6 methods
Bound Objective-C Methods
- alloc () -> ^Data class method owned
- init () -> ^Data
- initWithBytes (bytes) -> ^Data
- initWithBytesNoCopy(bytes, freeWhenDone) -> ^Data
- length () -> UInteger
- mutableBytes () -> rawptr
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Date ¶
Date :: struct { using _: Copying($T=Date), }Date :: struct { using _: Copying($T=Date), } // Objective-C class NSDate // Inherits Copying → Object // 6 methods
External examples metal/learn_metal/02-argbuffers-no-sdl
Bound Objective-C Methods
- alloc () -> ^Date class method owned
- dateWithTimeIntervalSinceNow() -> ^Date
- distantFuture () -> ^Date class method
- distantPast () -> ^Date class method
- init () -> ^Date
- timeIntervalSince1970 () -> f64
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Depth ¶
Depth :: enum UInteger { onehundredtwentyeightBitRGB = 544, sixtyfourBitRGB = 528, twentyfourBitRGB = 520, }
Dictionary ¶
Dictionary :: struct { using _: Copying($T=Dictionary), }Dictionary :: struct { using _: Copying($T=Dictionary), } // Objective-C class NSDictionary // Inherits Copying → Object // 9 methods
Bound Objective-C Methods
- alloc () -> ^Dictionary class method owned
- count () -> UInteger
- dictionary () -> ^Dictionary class method
- dictionaryWithObject (object, forKey) -> ^Dictionary class method
- dictionaryWithObjects(objects, forKeys, count) -> ^Dictionary class method
- init () -> ^Dictionary
- initWithObjects (objects, forKeys, count) -> ^Dictionary
- keyEnumerator (KeyType) -> (enumerator: ^Enumerator(KeyType))
- objectForKey (key) -> ^Object
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Enumerator ¶
Enumerator :: struct($T: typeid) { … // See source for fields }Enumerator :: struct($T: typeid) { … // See source for fields } // Objective-C class NSEnumerator
Error ¶
Error :: struct { using _: Copying($T=Error), }Error :: struct { using _: Copying($T=Error), } // Objective-C class NSError // Inherits Copying → Object // 11 methods
External examples metal/learn_metal/00-window · metal/learn_metal/01-primitive · metal/learn_metal/02-argbuffers +8
Bound Objective-C Methods
- alloc () -> ^Error class method owned
- code () -> Integer
- domain () -> ^String
- errorWithDomain (domain, code, userInfo) -> ^Error class method
- init () -> ^Error
- initWithDomain (domain, code, userInfo) -> ^Error
- localizedDescription () -> ^String
- localizedFailureReason () -> ^String
- localizedRecoveryOptions () -> (options: ^Array)
- localizedRecoverySuggestion() -> ^String
- userInfo () -> ^Dictionary
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
ErrorDomain ¶
ErrorDomain :: ^String
Related Procedures With Parameters
- Application_nextEventMatchingMask
- Application_setTitle
- BitmapImageRep_initWithBitmapDataPlanes_bitmapFormat
- BitmapImageRep_initWithBitmapDataPlanes_legacy
- Bundle_PathForAuxiliaryExecutable
- Bundle_URLForAuxiliaryExecutable
- Bundle_bundleWithPath
- Bundle_initWithPath
- Bundle_localizedStringForKey
- Bundle_objectForInfoDictionaryKey
- ClassFromString
- Color_colorUsingColorSpaceName
- Error_errorWithDomain
- Error_initWithDomain
- MenuItem_automaticallyNotifiesObserversForKey
- MenuItem_defaultPlaceholderForMarker
- MenuItem_exposeBinding
- MenuItem_initWithTitle
- MenuItem_keyPathsForValuesAffectingValueForKey
- MenuItem_sectionHeaderWithTitle
- MenuItem_setDefaultPlaceholder
- MenuItem_setKeyEquivalent
- MenuItem_setKeys
- MenuItem_setSubtitle
- MenuItem_setTitle
- MenuItem_setTitleWithMnemonic
- MenuItem_setToolTip
- Menu_addItemWithTitle
- Menu_automaticallyNotifiesObserversForKey
- Menu_defaultPlaceholderForMarker
- Menu_exposeBinding
- Menu_indexOfItemWithTitle
- Menu_initWithTitle
- Menu_insertItemWithTitle
- Menu_itemWithTitle
- Menu_keyPathsForValuesAffectingValueForKey
- Menu_setDefaultPlaceholder
- Menu_setKeys
- Menu_setTitle
- NSWindow_setFrameAutosaveName
- NotificationCenter_addObserver
- NotificationCenter_addObserverForName_new
- NotificationCenter_addObserverForName_old
- ProcessInfo_beginActivityWithOptions
- ProcessInfo_disableAutomaticTermination
- ProcessInfo_enableAutomaticTermination
- ProcessInfo_performActivityWithOptions
- ProcessInfo_performExpiringActivityWithReason
- RunLoop_addTimerForMode
- SelectorFromString
- String_UTF8String
- String_characterAtIndex
- String_cstringUsingEncoding
- String_init
- String_initWithBytesNoCopy
- String_initWithCString
- String_initWithOdinString
- String_initWithString
- String_isEqualToString
- String_length
- String_lengthOfBytesUsingEncoding
- String_maximumLengthOfBytesUsingEncoding
- String_odinString
- String_rangeOfString
- String_stringByAppendingString
- URLResponse_initWithURL
- URL_initFileURLWithPath
- URL_initWithString
- UserDefaults_setBoolForKey
- Window_minFrameWidthWithTitle
- Window_setTitle
- BitmapImageRep_initWithBitmapDataPlanes (procedure groups)
- NotificationCenter_addObserverForName (procedure groups)
Related Procedures With Returns
- Bundle_appStoreReceiptPath
- Bundle_builtInPlugInsPath
- Bundle_bundleIdentifier
- Bundle_bundlePath
- Bundle_executablePath
- Bundle_privateFrameworksPath
- Bundle_resourcePath
- Bundle_sharedFrameworksPath
- Bundle_sharedSupportPath
- Color_colorSpaceName
- Error_domain
- Error_localizedDescription
- Error_localizedFailureReason
- Error_localizedRecoverySuggestion
- Event_characters
- Event_charactersIgnoringModifiers
- MakeConstantString
- MenuItem_debugDescription
- MenuItem_description
- MenuItem_keyEquivalent
- MenuItem_mnemonic
- MenuItem_subtitle
- MenuItem_title
- MenuItem_toolTip
- MenuItem_userKeyEquivalent
- Menu_debugDescription
- Menu_description
- Menu_title
- Notification_name
- Number_descriptionWithLocale
- Number_stringValue
- ProcessInfo_fullUserName
- ProcessInfo_globallyUniqueString
- ProcessInfo_hostName
- ProcessInfo_operatingSystemVersionString
- ProcessInfo_processName
- ProcessInfo_userName
- RunningApplication_localizedName
- StringFromClass
- StringFromSelector
- String_alloc
- URL_relativePath
- debugDescription
- description
ErrorUserInfoKey ¶
ErrorUserInfoKey :: ^String
Related Procedures With Parameters
- Application_nextEventMatchingMask
- Application_setTitle
- BitmapImageRep_initWithBitmapDataPlanes_bitmapFormat
- BitmapImageRep_initWithBitmapDataPlanes_legacy
- Bundle_PathForAuxiliaryExecutable
- Bundle_URLForAuxiliaryExecutable
- Bundle_bundleWithPath
- Bundle_initWithPath
- Bundle_localizedStringForKey
- Bundle_objectForInfoDictionaryKey
- ClassFromString
- Color_colorUsingColorSpaceName
- Error_errorWithDomain
- Error_initWithDomain
- MenuItem_automaticallyNotifiesObserversForKey
- MenuItem_defaultPlaceholderForMarker
- MenuItem_exposeBinding
- MenuItem_initWithTitle
- MenuItem_keyPathsForValuesAffectingValueForKey
- MenuItem_sectionHeaderWithTitle
- MenuItem_setDefaultPlaceholder
- MenuItem_setKeyEquivalent
- MenuItem_setKeys
- MenuItem_setSubtitle
- MenuItem_setTitle
- MenuItem_setTitleWithMnemonic
- MenuItem_setToolTip
- Menu_addItemWithTitle
- Menu_automaticallyNotifiesObserversForKey
- Menu_defaultPlaceholderForMarker
- Menu_exposeBinding
- Menu_indexOfItemWithTitle
- Menu_initWithTitle
- Menu_insertItemWithTitle
- Menu_itemWithTitle
- Menu_keyPathsForValuesAffectingValueForKey
- Menu_setDefaultPlaceholder
- Menu_setKeys
- Menu_setTitle
- NSWindow_setFrameAutosaveName
- NotificationCenter_addObserver
- NotificationCenter_addObserverForName_new
- NotificationCenter_addObserverForName_old
- ProcessInfo_beginActivityWithOptions
- ProcessInfo_disableAutomaticTermination
- ProcessInfo_enableAutomaticTermination
- ProcessInfo_performActivityWithOptions
- ProcessInfo_performExpiringActivityWithReason
- RunLoop_addTimerForMode
- SelectorFromString
- String_UTF8String
- String_characterAtIndex
- String_cstringUsingEncoding
- String_init
- String_initWithBytesNoCopy
- String_initWithCString
- String_initWithOdinString
- String_initWithString
- String_isEqualToString
- String_length
- String_lengthOfBytesUsingEncoding
- String_maximumLengthOfBytesUsingEncoding
- String_odinString
- String_rangeOfString
- String_stringByAppendingString
- URLResponse_initWithURL
- URL_initFileURLWithPath
- URL_initWithString
- UserDefaults_setBoolForKey
- Window_minFrameWidthWithTitle
- Window_setTitle
- BitmapImageRep_initWithBitmapDataPlanes (procedure groups)
- NotificationCenter_addObserverForName (procedure groups)
Related Procedures With Returns
- Bundle_appStoreReceiptPath
- Bundle_builtInPlugInsPath
- Bundle_bundleIdentifier
- Bundle_bundlePath
- Bundle_executablePath
- Bundle_privateFrameworksPath
- Bundle_resourcePath
- Bundle_sharedFrameworksPath
- Bundle_sharedSupportPath
- Color_colorSpaceName
- Error_domain
- Error_localizedDescription
- Error_localizedFailureReason
- Error_localizedRecoverySuggestion
- Event_characters
- Event_charactersIgnoringModifiers
- MakeConstantString
- MenuItem_debugDescription
- MenuItem_description
- MenuItem_keyEquivalent
- MenuItem_mnemonic
- MenuItem_subtitle
- MenuItem_title
- MenuItem_toolTip
- MenuItem_userKeyEquivalent
- Menu_debugDescription
- Menu_description
- Menu_title
- Notification_name
- Number_descriptionWithLocale
- Number_stringValue
- ProcessInfo_fullUserName
- ProcessInfo_globallyUniqueString
- ProcessInfo_hostName
- ProcessInfo_operatingSystemVersionString
- ProcessInfo_processName
- ProcessInfo_userName
- RunningApplication_localizedName
- StringFromClass
- StringFromSelector
- String_alloc
- URL_relativePath
- debugDescription
- description
Event ¶
Event :: struct { using _: Object, }Event :: struct { using _: Object, } // Objective-C class NSEvent // Inherits Object // 49 methods
External examples metal/learn_metal/02-argbuffers-no-sdl
Bound Objective-C Methods
- absolute () -> (x, y, z: Integer)
- absoluteX () -> Integer
- absoluteY () -> Integer
- absoluteZ () -> Integer
- buttonMask () -> UInteger
- buttonNumber () -> Integer
- capabilityMask () -> UInteger
- characters () -> ^String
- charactersIgnoringModifiers () -> ^String
- clickCount () -> Integer
- data1 () -> Integer
- data2 () -> Integer
- delta () -> (x, y, z: CoreFoundation.CGFloat)
- deltaX () -> CoreFoundation.CGFloat
- deltaY () -> CoreFoundation.CGFloat
- deltaZ () -> CoreFoundation.CGFloat
- eventNumber () -> Integer
- hasPreciseScrollingDeltas () -> bool
- isARepeat () -> bool
- isDirectionInvertedFromDevice () -> bool
- isEnteringProximity () -> bool
- isSwipeTrackingFromScrollEventsEnabled() -> bool
- keyCode () -> u16
- locationInWindow () -> CoreFoundation.CGPoint
- modifierFlags () -> EventModifierFlags
- momentumPhase () -> EventPhase
- mouseLocation () -> CoreFoundation.CGPoint class method
- otherEventWithType (type, location, flags, time, window_number, ctx, subtype, data1, data2) -> ^Event class method
- phase () -> EventPhase
- pointingDeviceID () -> UInteger
- pointingDeviceSerialNumber () -> UInteger
- pointingDeviceType () -> PointingDeviceType
- pressure () -> f32
- scrollingDelta () -> (x, y: CoreFoundation.CGFloat)
- scrollingDeltaX () -> CoreFoundation.CGFloat
- scrollingDeltaY () -> CoreFoundation.CGFloat
- subtype () -> i16
- systemTabletID () -> UInteger
- tabletID () -> UInteger
- tangentialPressure () -> f32
- tilt () -> CoreFoundation.CGPoint
- timestamp () -> TimeInterval
- type () -> EventType
- uniqueID () -> u64
- vendorDefined () -> ^intrinsics.objc_object
- vendorID () -> UInteger
- vendorPointingDeviceType () -> UInteger
- window () -> ^Window
- windowNumber () -> UInteger
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
EventMask ¶
Related Constants
EventModifierFlag ¶
EventModifierFlag :: enum UInteger { CapsLock = 16, Shift = 17, Control = 18, Option = 19, Command = 20, NumericPad = 21, Help = 22, Function = 23, }
EventModifierFlags ¶
EventModifierFlags :: distinct bit_set[EventModifierFlag; UInteger]
Related Procedures With Parameters
Related Procedures With Returns
Related Constants
EventPhase ¶
EventPhase :: distinct bit_set[EventPhaseFlag; UInteger]
Related Procedures With Returns
Related Constants
EventPhaseFlag ¶
EventPhaseFlag :: enum UInteger { Began = 0, Stationary = 1, Changed = 2, Ended = 3, Cancelled = 4, MayBegin = 5, }
EventType ¶
EventType :: enum UInteger { LeftMouseDown = 1, LeftMouseUp = 2, RightMouseDown = 3, RightMouseUp = 4, MouseMoved = 5, LeftMouseDragged = 6, RightMouseDragged = 7, MouseEntered = 8, MouseExited = 9, KeyDown = 10, KeyUp = 11, FlagsChanged = 12, AppKitDefined = 13, SystemDefined = 14, ApplicationDefined = 15, Periodic = 16, CursorUpdate = 17, Rotate = 18, BeginGesture = 19, EndGesture = 20, ScrollWheel = 22, TabletPoint = 23, TabletProximity = 24, OtherMouseDown = 25, OtherMouseUp = 26, OtherMouseDragged = 27, Gesture = 29, Magnify = 30, Swipe = 31, SmartMagnify = 32, QuickLook = 33, Pressure = 34, DirectTouch = 37, ChangeMode = 38, }
FastEnumeration ¶
FastEnumeration :: struct { using _: Object, }FastEnumeration :: struct { using _: Object, } // Objective-C class NSFastEnumeration // Inherits Object // 3 methods
Bound Objective-C Methods
- alloc () -> ^FastEnumeration class method owned
- countByEnumerating(state, buffer, len) -> UInteger
- init () -> ^FastEnumeration
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Float ¶
Float :: CoreFoundation.CGFloat
External examples metal/learn_metal/02-argbuffers-no-sdl
Related Procedures With Parameters
Related Procedures With Returns
- Color_getCMYKA
- Color_getHSBA
- Color_getRGBA
- Color_getWhiteAlpha
- Event_delta
- Event_deltaX
- Event_deltaY
- Event_deltaZ
- Event_scrollingDelta
- Event_scrollingDeltaX
- Event_scrollingDeltaY
- Layer_contentsScale
- MaxX
- MaxY
- Menu_menuBarHeight
- Menu_minimumWidth
- MidX
- MidY
- MinX
- MinY
- Screen_backingScaleFactor
- Window_backingScaleFactor
- Window_minFrameWidthWithTitle
IMP ¶
IMP :: proc "c" (object: ^intrinsics.objc_object, sel: ^intrinsics.objc_selector, args: ..any) -> ^intrinsics.objc_object
External examples metal/learn_metal/02-argbuffers-no-sdl
Related Procedures With Parameters
Related Procedures With Returns
Image ¶
Image :: struct { using _: Object, }Image :: struct { using _: Object, } // Objective-C class NSImage // Inherits Object // 3 methods
Bound Objective-C Methods
- addRepresentation(rep)
- alloc () -> ^Image class method owned
- initWithSize (size) -> ^Image
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
ImageRep ¶
ImageRep :: struct { using _: Object, }ImageRep :: struct { using _: Object, } // Objective-C class NSImageRep // Inherits Object
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Integer ¶
Integer :: distinct int
External examples metal/learn_metal/08-compute · metal/learn_metal/09-compute-to-render
Related Procedures With Parameters
- BitmapImageRep_initWithBitmapDataPlanes_bitmapFormat
- BitmapImageRep_initWithBitmapDataPlanes_legacy
- Error_errorWithDomain
- Error_initWithDomain
- Event_otherEventWithType
- MenuDelegate_menu_updateItem_atIndex_shouldCancel
- MenuItem_setIndentationLevel
- MenuItem_setTag
- MenuItem_setVersion
- Menu_indexOfItemWithTag
- Menu_insertItem
- Menu_insertItemWithTitle
- Menu_itemAtIndex
- Menu_itemWithTag
- Menu_performActionForItemAtIndex
- Menu_removeItemAtIndex
- Menu_setVersion
- BitmapImageRep_initWithBitmapDataPlanes (procedure groups)
- MenuDelegate_menu (procedure groups)
Related Procedures With Returns
- Color_numberOfComponents
- Error_code
- Event_absolute
- Event_absoluteX
- Event_absoluteY
- Event_absoluteZ
- Event_buttonNumber
- Event_clickCount
- Event_data1
- Event_data2
- Event_eventNumber
- MenuDelegate_numberOfItemsInMenu
- MenuItem_indentationLevel
- MenuItem_tag
- MenuItem_version
- Menu_indexOfItem
- Menu_indexOfItemWithRepresentedObject
- Menu_indexOfItemWithSubmenu
- Menu_indexOfItemWithTarget
- Menu_indexOfItemWithTitle
- Menu_numberOfItems
- Menu_version
- Number_integerValue
- Window_orderedIndex
Related Constants
KeyEquivalentModifierFlag ¶
KeyEquivalentModifierFlag :: EventModifierFlag
KeyEquivalentModifierMask ¶
KeyEquivalentModifierMask :: EventModifierFlags
Related Procedures With Parameters
Related Procedures With Returns
Related Constants
Layer ¶
Layer :: struct { using _: Object, }Layer :: struct { using _: Object, } // Objective-C class CALayer // Inherits Object // 8 methods
Bound Objective-C Methods
- addSublayer (layer)
- contents () -> rawptr
- contentsScale () -> CoreFoundation.CGFloat
- frame () -> CoreFoundation.CGRect
- position () -> CoreFoundation.CGPoint
- setContents (contents)
- setContentsScale(scale)
- setPosition (position)
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Locking ¶
Locking :: struct($T: typeid) { … // See source for fields }
Related Procedures With Parameters
Menu ¶
Menu :: struct { using _: Object, }Menu :: struct { using _: Object, } // Objective-C class NSMenu // Inherits Object // 113 methods
External examples metal/learn_metal/02-argbuffers-no-sdl
Bound Objective-C Methods
- accessInstanceVariablesDirectly () -> bool class method
- addItem (newItem)
- addItemWithTitle (string, selector, charCode) -> ^MenuItem
- alloc () -> ^Menu class method owned
- allocWithZone (zone) -> ^Menu class method owned
- allowsContextMenuPlugIns () -> bool
- attachedMenu () -> ^Menu
- autoenablesItems () -> bool
- automaticallyNotifiesObserversForKey (key) -> bool class method
- cancelPreviousPerformRequestsWithTarget (…) overloaded
- cancelPreviousPerformRequestsWithTarget_ (aTarget) class method
- cancelPreviousPerformRequestsWithTarget_selector_object(aTarget, aSelector, anArgument) class method
- cancelTracking ()
- cancelTrackingWithoutAnimation ()
- class () -> ^intrinsics.objc_class class method
- classFallbacksForKeyedArchiver () -> ^Array class method
- classForKeyedUnarchiver () -> ^intrinsics.objc_class class method
- conformsToProtocol (protocol) -> bool class method
- contextMenuRepresentation () -> ^intrinsics.objc_object
- copyWithZone (zone) -> ^intrinsics.objc_object class method owned
- debugDescription () -> ^String class method
- defaultPlaceholderForMarker (marker, binding) -> ^intrinsics.objc_object class method
- delegate () -> ^MenuDelegate
- description () -> ^String class method
- exposeBinding (binding) class method
- hash () -> UInteger class method
- helpRequested (eventPtr)
- highlightedItem () -> ^MenuItem
- indexOfItem (item) -> Integer
- indexOfItemWithRepresentedObject (object) -> Integer
- indexOfItemWithSubmenu (submenu) -> Integer
- indexOfItemWithTag (tag) -> Integer
- indexOfItemWithTarget (target, actionSelector) -> Integer
- indexOfItemWithTitle (title) -> Integer
- init () -> ^Menu
- initWithCoder (coder) -> ^Menu
- initWithTitle (title) -> ^Menu
- initialize () class method
- insertItem (newItem, index)
- insertItemWithTitle (string, selector, charCode, index) -> ^MenuItem
- instanceMethodForSelector (aSelector) -> IMP class method
- instancesRespondToSelector (aSelector) -> bool class method
- isAttached () -> bool
- isSubclassOfClass (aClass) -> bool class method
- isTornOff () -> bool
- itemArray () -> ^Array
- itemAtIndex (index) -> ^MenuItem
- itemChanged (item)
- itemWithTag (tag) -> ^MenuItem
- itemWithTitle (title) -> ^MenuItem
- keyPathsForValuesAffectingValueForKey (key) -> ^Set class method
- load () class method
- locationForSubmenu (submenu) -> CoreFoundation.CGPoint
- menuBarHeight () -> CoreFoundation.CGFloat
- menuBarVisible () -> bool class method
- menuChangedMessagesEnabled () -> bool
- menuRepresentation () -> ^intrinsics.objc_object
- menuZone () -> ^Zone class method
- minimumWidth () -> CoreFoundation.CGFloat
- mutableCopyWithZone (zone) -> ^intrinsics.objc_object class method owned
- new () -> ^Menu class method owned
- numberOfItems () -> Integer
- paletteMenuWithColors (…) overloaded
- paletteMenuWithColors_titles_selectionHandler (colors, itemTitles, onSelectionChange) -> ^Menu class method
- performActionForItemAtIndex (index)
- performKeyEquivalent (event) -> bool
- popUpContextMenu (…) overloaded
- popUpContextMenu_withEvent_forView (menu, event, view) class method
- popUpMenuPositioningItem (item, location, view) -> bool
- poseAsClass (aClass) class method
- presentationStyle () -> MenuPresentationStyle
- propertiesToUpdate () -> MenuProperties
- removeAllItems ()
- removeItem (item)
- removeItemAtIndex (index)
- resolveClassMethod (sel) -> bool class method
- resolveInstanceMethod (sel) -> bool class method
- selectedItems () -> ^Array
- selectionMode () -> MenuSelectionMode
- setAllowsContextMenuPlugIns (allowsContextMenuPlugIns)
- setAutoenablesItems (autoenablesItems)
- setContextMenuRepresentation (menuRep)
- setDefaultPlaceholder (placeholder, marker, binding) class method
- setDelegate (delegate)
- setItemArray (itemArray)
- setKeys (keys, dependentKey) class method
- setMenuBarVisible (visible) class method
- setMenuChangedMessagesEnabled (menuChangedMessagesEnabled)
- setMenuRepresentation (menuRep)
- setMenuZone (zone) class method
- setMinimumWidth (minimumWidth)
- setPresentationStyle (presentationStyle)
- setSelectedItems (selectedItems)
- setSelectionMode (selectionMode)
- setShowsStateColumn (showsStateColumn)
- setSubmenu (menu, item)
- setSupermenu (supermenu)
- setTearOffMenuRepresentation (menuRep)
- setTitle (title)
- setUserInterfaceLayoutDirection (userInterfaceLayoutDirection)
- setVersion (aVersion) class method
- showsStateColumn () -> bool
- size () -> CoreFoundation.CGSize
- sizeToFit ()
- submenuAction (sender)
- superclass () -> ^intrinsics.objc_class class method
- supermenu () -> ^Menu
- tearOffMenuRepresentation () -> ^intrinsics.objc_object
- title () -> ^String
- update ()
- useStoredAccessor () -> bool class method
- userInterfaceLayoutDirection () -> UserInterfaceLayoutDirection
- version () -> Integer class method
Methods Inherited From Object
- autorelease ()
- copy () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
MenuDelegate ¶
MenuDelegate :: struct { using _: Object, using _: ObjectProtocol, }MenuDelegate :: struct { using _: Object, using _: ObjectProtocol, } // Objective-C class NSMenuDelegate // Inherits ObjectProtocol → Object // 9 methods
Bound Objective-C Methods
- confinementRectForMenu (menu, screen) -> CoreFoundation.CGRect
- menu (…) overloaded
- menuDidClose (menu)
- menuHasKeyEquivalent (menu, event, target, action) -> bool
- menuNeedsUpdate (menu)
- menuWillOpen (menu)
- menu_updateItem_atIndex_shouldCancel(menu, item, index, shouldCancel) -> bool
- menu_willHighlightItem (menu, item)
- numberOfItemsInMenu (menu) -> Integer
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
MenuItem ¶
MenuItem :: struct { using _: Object, }MenuItem :: struct { using _: Object, } // Objective-C class NSMenuItem // Inherits Object // 91 methods
External examples metal/learn_metal/02-argbuffers-no-sdl
Bound Objective-C Methods
- accessInstanceVariablesDirectly () -> bool class method
- action () -> ^intrinsics.objc_selector
- alloc () -> ^MenuItem class method owned
- allocWithZone (zone) -> ^MenuItem class method owned
- allowsAutomaticKeyEquivalentLocalization () -> bool
- allowsAutomaticKeyEquivalentMirroring () -> bool
- allowsKeyEquivalentWhenHidden () -> bool
- automaticallyNotifiesObserversForKey (key) -> bool class method
- cancelPreviousPerformRequestsWithTarget (…) overloaded
- cancelPreviousPerformRequestsWithTarget_ (aTarget) class method
- cancelPreviousPerformRequestsWithTarget_selector_object(aTarget, aSelector, anArgument) class method
- class () -> ^intrinsics.objc_class class method
- classFallbacksForKeyedArchiver () -> ^Array class method
- classForKeyedUnarchiver () -> ^intrinsics.objc_class class method
- conformsToProtocol (protocol) -> bool class method
- copyWithZone (zone) -> ^intrinsics.objc_object class method owned
- debugDescription () -> ^String class method
- defaultPlaceholderForMarker (marker, binding) -> ^intrinsics.objc_object class method
- description () -> ^String class method
- exposeBinding (binding) class method
- hasSubmenu () -> bool
- hash () -> UInteger class method
- indentationLevel () -> Integer
- init () -> ^MenuItem
- initWithCoder (coder) -> ^MenuItem
- initWithTitle (string, selector, charCode) -> ^MenuItem
- initialize () class method
- instanceMethodForSelector (aSelector) -> IMP class method
- instancesRespondToSelector (aSelector) -> bool class method
- isAlternate () -> bool
- isEnabled () -> bool
- isHidden () -> bool
- isHiddenOrHasHiddenAncestor () -> bool
- isHighlighted () -> bool
- isSectionHeader () -> bool
- isSeparatorItem () -> bool
- isSubclassOfClass (aClass) -> bool class method
- keyEquivalent () -> ^String
- keyEquivalentModifierMask () -> EventModifierFlags
- keyPathsForValuesAffectingValueForKey (key) -> ^Set class method
- load () class method
- menu () -> ^Menu
- mnemonic () -> ^String
- mnemonicLocation () -> UInteger
- mutableCopyWithZone (zone) -> ^intrinsics.objc_object class method owned
- new () -> ^MenuItem class method owned
- parentItem () -> ^MenuItem
- poseAsClass (aClass) class method
- registerActionCallback (name, callback) -> ^intrinsics.objc_selector class method
- representedObject () -> ^intrinsics.objc_object
- resolveClassMethod (sel) -> bool class method
- resolveInstanceMethod (sel) -> bool class method
- sectionHeaderWithTitle (title) -> ^MenuItem class method
- separatorItem () -> ^MenuItem class method
- setAction (action)
- setAllowsAutomaticKeyEquivalentLocalization (allowsAutomaticKeyEquivalentLocalization)
- setAllowsAutomaticKeyEquivalentMirroring (allowsAutomaticKeyEquivalentMirroring)
- setAllowsKeyEquivalentWhenHidden (allowsKeyEquivalentWhenHidden)
- setAlternate (alternate)
- setDefaultPlaceholder (placeholder, marker, binding) class method
- setEnabled (enabled)
- setHidden (hidden)
- setIndentationLevel (indentationLevel)
- setKeyEquivalent (keyEquivalent)
- setKeyEquivalentModifierMask (keyEquivalentModifierMask)
- setKeys (keys, dependentKey) class method
- setMenu (menu)
- setMnemonicLocation (location)
- setRepresentedObject (representedObject)
- setSubmenu (submenu)
- setSubtitle (subtitle)
- setTag (tag)
- setTarget (target)
- setTitle (title)
- setTitleWithMnemonic (stringWithAmpersand)
- setToolTip (toolTip)
- setUsesUserKeyEquivalents (usesUserKeyEquivalents) class method
- setVersion (aVersion) class method
- setView (view)
- submenu () -> ^Menu
- subtitle () -> ^String
- superclass () -> ^intrinsics.objc_class class method
- tag () -> Integer
- target () -> ^intrinsics.objc_object
- title () -> ^String
- toolTip () -> ^String
- useStoredAccessor () -> bool class method
- userKeyEquivalent () -> ^String
- usesUserKeyEquivalents () -> bool class method
- version () -> Integer class method
- view () -> ^View
Methods Inherited From Object
- autorelease ()
- copy () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
MenuItemCallback ¶
MenuItemCallback :: proc "c" (unused: rawptr, name: ^intrinsics.objc_selector, sender: ^Object)
MenuPresentationStyle ¶
MenuPresentationStyle :: enum i32 { Regular = 0, Palette = 1, }
MenuProperties ¶
MenuProperties :: distinct bit_set[MenuPropertyItem; u32]
MenuPropertyItem ¶
MenuPropertyItem :: enum u32 { Title = 0, AttributedTitle = 1, KeyEquivalent = 2, Image = 3, Enabled = 4, AccessibilityDescription = 5, }
MenuSelectionMode ¶
MenuSelectionMode :: enum i32 { Automatic = 0, SelectOne = 1, SelectAny = 2, }
ModalResponse ¶
ModalResponse :: enum UInteger { Cancel = 0, OK = 1, }
MutableArray ¶
MutableArray :: struct { using _: Copying($T=MutableArray), }MutableArray :: struct { using _: Copying($T=MutableArray), } // Objective-C class NSMutableArray // Inherits Copying → Object // 8 methods
Bound Objective-C Methods
- alloc () -> ^MutableArray class method owned
- count () -> UInteger
- exchangeObjectAtIndex(idx1, idx2)
- init () -> ^MutableArray
- initWithCoder (coder) -> ^MutableArray
- initWithObjects (objects, count) -> ^MutableArray
- object (index) -> ^Object
- objectAs (index, T) -> T
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Notification ¶
Notification :: struct { using _: Object, }Notification :: struct { using _: Object, } // Objective-C class NSNotification // Inherits Object // 5 methods
External examples metal/learn_metal/02-argbuffers-no-sdl
Bound Objective-C Methods
- alloc () -> ^Notification class method owned
- init () -> ^Notification
- name () -> ^String
- object () -> ^Object
- userInfo() -> ^Dictionary
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
NotificationCenter ¶
NotificationCenter :: struct { using _: Object, }NotificationCenter :: struct { using _: Object, } // Objective-C class NSNotificationCenter // Inherits Object // 6 methods
Bound Objective-C Methods
- addObserver (observer, selector, name, object)
- addObserverForName(…) overloaded
- alloc () -> ^NotificationCenter class method owned
- defaultCenter () -> ^NotificationCenter class method
- init () -> ^NotificationCenter
- removeObserver (pObserver)
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
NotificationName ¶
NotificationName :: ^String
Related Procedures With Parameters
- Application_nextEventMatchingMask
- Application_setTitle
- BitmapImageRep_initWithBitmapDataPlanes_bitmapFormat
- BitmapImageRep_initWithBitmapDataPlanes_legacy
- Bundle_PathForAuxiliaryExecutable
- Bundle_URLForAuxiliaryExecutable
- Bundle_bundleWithPath
- Bundle_initWithPath
- Bundle_localizedStringForKey
- Bundle_objectForInfoDictionaryKey
- ClassFromString
- Color_colorUsingColorSpaceName
- Error_errorWithDomain
- Error_initWithDomain
- MenuItem_automaticallyNotifiesObserversForKey
- MenuItem_defaultPlaceholderForMarker
- MenuItem_exposeBinding
- MenuItem_initWithTitle
- MenuItem_keyPathsForValuesAffectingValueForKey
- MenuItem_sectionHeaderWithTitle
- MenuItem_setDefaultPlaceholder
- MenuItem_setKeyEquivalent
- MenuItem_setKeys
- MenuItem_setSubtitle
- MenuItem_setTitle
- MenuItem_setTitleWithMnemonic
- MenuItem_setToolTip
- Menu_addItemWithTitle
- Menu_automaticallyNotifiesObserversForKey
- Menu_defaultPlaceholderForMarker
- Menu_exposeBinding
- Menu_indexOfItemWithTitle
- Menu_initWithTitle
- Menu_insertItemWithTitle
- Menu_itemWithTitle
- Menu_keyPathsForValuesAffectingValueForKey
- Menu_setDefaultPlaceholder
- Menu_setKeys
- Menu_setTitle
- NSWindow_setFrameAutosaveName
- NotificationCenter_addObserver
- NotificationCenter_addObserverForName_new
- NotificationCenter_addObserverForName_old
- ProcessInfo_beginActivityWithOptions
- ProcessInfo_disableAutomaticTermination
- ProcessInfo_enableAutomaticTermination
- ProcessInfo_performActivityWithOptions
- ProcessInfo_performExpiringActivityWithReason
- RunLoop_addTimerForMode
- SelectorFromString
- String_UTF8String
- String_characterAtIndex
- String_cstringUsingEncoding
- String_init
- String_initWithBytesNoCopy
- String_initWithCString
- String_initWithOdinString
- String_initWithString
- String_isEqualToString
- String_length
- String_lengthOfBytesUsingEncoding
- String_maximumLengthOfBytesUsingEncoding
- String_odinString
- String_rangeOfString
- String_stringByAppendingString
- URLResponse_initWithURL
- URL_initFileURLWithPath
- URL_initWithString
- UserDefaults_setBoolForKey
- Window_minFrameWidthWithTitle
- Window_setTitle
- BitmapImageRep_initWithBitmapDataPlanes (procedure groups)
- NotificationCenter_addObserverForName (procedure groups)
Related Procedures With Returns
- Bundle_appStoreReceiptPath
- Bundle_builtInPlugInsPath
- Bundle_bundleIdentifier
- Bundle_bundlePath
- Bundle_executablePath
- Bundle_privateFrameworksPath
- Bundle_resourcePath
- Bundle_sharedFrameworksPath
- Bundle_sharedSupportPath
- Color_colorSpaceName
- Error_domain
- Error_localizedDescription
- Error_localizedFailureReason
- Error_localizedRecoverySuggestion
- Event_characters
- Event_charactersIgnoringModifiers
- MakeConstantString
- MenuItem_debugDescription
- MenuItem_description
- MenuItem_keyEquivalent
- MenuItem_mnemonic
- MenuItem_subtitle
- MenuItem_title
- MenuItem_toolTip
- MenuItem_userKeyEquivalent
- Menu_debugDescription
- Menu_description
- Menu_title
- Notification_name
- Number_descriptionWithLocale
- Number_stringValue
- ProcessInfo_fullUserName
- ProcessInfo_globallyUniqueString
- ProcessInfo_hostName
- ProcessInfo_operatingSystemVersionString
- ProcessInfo_processName
- ProcessInfo_userName
- RunningApplication_localizedName
- StringFromClass
- StringFromSelector
- String_alloc
- URL_relativePath
- debugDescription
- description
Number ¶
Number :: struct { using _: Copying($T=Number), using _: Value, }Number :: struct { using _: Copying($T=Number), using _: Value, } // Objective-C class NSNumber // Inherits Value → Copying → Object // 48 methods
Bound Objective-C Methods
- alloc () -> ^Number class method owned
- boolValue () -> bool
- compare (other) -> ComparisonResult
- descriptionWithLocale(locale) -> ^String
- f32Value () -> f32
- f64Value () -> f64
- i16Value () -> i16
- i32Value () -> i32
- i64Value () -> i64
- i8Value () -> i8
- init () -> ^Number
- initWithBool (value) -> ^Number
- initWithF32 (value) -> ^Number
- initWithF64 (value) -> ^Number
- initWithI16 (value) -> ^Number
- initWithI32 (value) -> ^Number
- initWithI64 (value) -> ^Number
- initWithI8 (value) -> ^Number
- initWithInt (value) -> ^Number
- initWithU16 (value) -> ^Number
- initWithU32 (value) -> ^Number
- initWithU64 (value) -> ^Number
- initWithU8 (value) -> ^Number
- initWithUint (value) -> ^Number
- intValue () -> int
- integerValue () -> Integer
- isEqualToNumber (other) -> bool
- number (…) class method overloaded
- numberWithBool (value) -> ^Number class method
- numberWithF32 (value) -> ^Number class method
- numberWithF64 (value) -> ^Number class method
- numberWithI16 (value) -> ^Number class method
- numberWithI32 (value) -> ^Number class method
- numberWithI64 (value) -> ^Number class method
- numberWithI8 (value) -> ^Number class method
- numberWithInt (value) -> ^Number class method
- numberWithU16 (value) -> ^Number class method
- numberWithU32 (value) -> ^Number class method
- numberWithU64 (value) -> ^Number class method
- numberWithU8 (value) -> ^Number class method
- numberWithUint (value) -> ^Number class method
- stringValue () -> ^String
- u16Value () -> u16
- u32Value () -> u32
- u64Value () -> u64
- u8Value () -> u8
- uintValue () -> uint
- uintegerValue () -> UInteger
Methods Inherited From Value
- getValue (value, size)
- initWithBytes (value, type) -> ^Value
- initWithCoder (coder) -> ^Value
- isEqualToValue (other) -> bool
- objCType () -> cstring
- pointerValue () -> rawptr
- valueWithBytes (value, type) -> ^Value class method
- valueWithPointer(pointer) -> ^Value class method
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Object ¶
Object :: struct { using _: intrinsics.objc_object, }Object :: struct { using _: intrinsics.objc_object, } // Objective-C class NSObject // 12 methods
Bound Objective-C Methods
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
ObjectProtocol ¶
ObjectProtocol :: struct { using _: Object, }ObjectProtocol :: struct { using _: Object, } // Objective-C class NSObjectProtocol // Inherits Object
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Object_VTable_Info ¶
Object_VTable_Info :: struct { vtable: rawptr, size: uint, impl: Subclasser_Proc, }
OpenPanel ¶
OpenPanel :: struct { using _: SavePanel, }OpenPanel :: struct { using _: SavePanel, } // Objective-C class NSOpenPanel // Inherits SavePanel → Panel → Window → Responder → Object // 7 methods
Bound Objective-C Methods
- URLs () -> ^Array
- openPanel () -> ^OpenPanel class method
- setAllowedFileTypes (types)
- setAllowsMultipleSelection(setting)
- setCanChooseDirectories (setting)
- setCanChooseFiles (setting)
- setResolvesAliases (setting)
Methods Inherited From SavePanel
Methods Inherited From Window
- alloc () -> ^Window class method owned
- backgroundColor () -> ^Color
- backingScaleFactor () -> CoreFoundation.CGFloat
- center ()
- close ()
- collectionBehavior () -> WindowCollectionBehavior
- contentLayoutRect () -> CoreFoundation.CGRect
- contentRectForFrameRect (frameRect) -> CoreFoundation.CGRect
- contentView () -> ^View
- convertPointFromBacking (point) -> CoreFoundation.CGPoint
- convertPointFromScreen (point) -> CoreFoundation.CGPoint
- convertPointToBacking (point) -> CoreFoundation.CGPoint
- convertPointToScreen (point) -> CoreFoundation.CGPoint
- convertRectFromBacking (rect) -> CoreFoundation.CGRect
- convertRectFromScreen (rect) -> CoreFoundation.CGRect
- convertRectToBacking (rect) -> CoreFoundation.CGRect
- convertRectToScreen (rect) -> CoreFoundation.CGRect
- delegate () -> ^WindowDelegate
- frame () -> CoreFoundation.CGRect
- frameRectForContentRect (contentRect, styleMask) -> CoreFoundation.CGRect class method
- hasCloseBox () -> bool
- hasTitleBar () -> bool
- initWithContentRect (contentRect, styleMask, backing, doDefer) -> ^Window
- isFloatingPanel () -> bool
- isMiniaturizable () -> bool
- isModalPanel () -> bool
- isResizable () -> bool
- isZoomable () -> bool
- keyWindow () -> bool
- mainWindow () -> bool
- makeFirstResponder (responder) -> bool
- makeKeyAndOrderFront (key)
- minFrameWidthWithTitle (title, styleMask) -> CoreFoundation.CGFloat class method
- opaque () -> bool
- orderFront (sender)
- orderOut (sender)
- orderedIndex () -> Integer
- parentWindow () -> ^Window
- performClose (sender)
- performWindowDragWithEvent (event)
- performZoom ()
- screen () -> ^Screen
- setAcceptsMouseMovedEvents (ok)
- setBackgroundColor (color)
- setCollectionBehavior (behavior)
- setContentView (content_view)
- setDelegate (delegate)
- setFrame (frame, display)
- setFrameAutosaveName (name)
- setFrameOrigin (origin)
- setIsMiniaturized (ok)
- setIsVisible (ok)
- setIsZoomed (ok)
- setLevel (level)
- setMinSize (size)
- setMovable (ok)
- setMovableByWindowBackground (ok)
- setOpaque (ok)
- setReleasedWhenClosed (flag)
- setRestorable (flag)
- setStyleMask (style_mask)
- setTabbingMode (mode)
- setTitle (title)
- setTitleVisibility (visibility)
- setTitlebarAppearsTransparent(ok)
- setToolbar (toolbar)
- setWantsLayer (ok)
- toggleFullScreen (sender)
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Panel ¶
Panel :: struct { using _: Window, }Panel :: struct { using _: Window, } // Objective-C class NSPanel // Inherits Window → Responder → Object
Methods Inherited From Window
- alloc () -> ^Window class method owned
- backgroundColor () -> ^Color
- backingScaleFactor () -> CoreFoundation.CGFloat
- center ()
- close ()
- collectionBehavior () -> WindowCollectionBehavior
- contentLayoutRect () -> CoreFoundation.CGRect
- contentRectForFrameRect (frameRect) -> CoreFoundation.CGRect
- contentView () -> ^View
- convertPointFromBacking (point) -> CoreFoundation.CGPoint
- convertPointFromScreen (point) -> CoreFoundation.CGPoint
- convertPointToBacking (point) -> CoreFoundation.CGPoint
- convertPointToScreen (point) -> CoreFoundation.CGPoint
- convertRectFromBacking (rect) -> CoreFoundation.CGRect
- convertRectFromScreen (rect) -> CoreFoundation.CGRect
- convertRectToBacking (rect) -> CoreFoundation.CGRect
- convertRectToScreen (rect) -> CoreFoundation.CGRect
- delegate () -> ^WindowDelegate
- frame () -> CoreFoundation.CGRect
- frameRectForContentRect (contentRect, styleMask) -> CoreFoundation.CGRect class method
- hasCloseBox () -> bool
- hasTitleBar () -> bool
- initWithContentRect (contentRect, styleMask, backing, doDefer) -> ^Window
- isFloatingPanel () -> bool
- isMiniaturizable () -> bool
- isModalPanel () -> bool
- isResizable () -> bool
- isZoomable () -> bool
- keyWindow () -> bool
- mainWindow () -> bool
- makeFirstResponder (responder) -> bool
- makeKeyAndOrderFront (key)
- minFrameWidthWithTitle (title, styleMask) -> CoreFoundation.CGFloat class method
- opaque () -> bool
- orderFront (sender)
- orderOut (sender)
- orderedIndex () -> Integer
- parentWindow () -> ^Window
- performClose (sender)
- performWindowDragWithEvent (event)
- performZoom ()
- screen () -> ^Screen
- setAcceptsMouseMovedEvents (ok)
- setBackgroundColor (color)
- setCollectionBehavior (behavior)
- setContentView (content_view)
- setDelegate (delegate)
- setFrame (frame, display)
- setFrameAutosaveName (name)
- setFrameOrigin (origin)
- setIsMiniaturized (ok)
- setIsVisible (ok)
- setIsZoomed (ok)
- setLevel (level)
- setMinSize (size)
- setMovable (ok)
- setMovableByWindowBackground (ok)
- setOpaque (ok)
- setReleasedWhenClosed (flag)
- setRestorable (flag)
- setStyleMask (style_mask)
- setTabbingMode (mode)
- setTitle (title)
- setTitleVisibility (visibility)
- setTitlebarAppearsTransparent(ok)
- setToolbar (toolbar)
- setWantsLayer (ok)
- toggleFullScreen (sender)
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Pasteboard ¶
Pasteboard :: struct { using _: Object, }Pasteboard :: struct { using _: Object, } // Objective-C class NSPasteboard // Inherits Object
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Point ¶
Point :: CoreFoundation.CGPoint
External examples metal/learn_metal/02-argbuffers-no-sdl
Related Procedures With Parameters
Related Procedures With Returns
PointingDeviceType ¶
PointingDeviceType :: enum UInteger { Unknown = 0, Pen = 1, Cursor = 2, Eraser = 3, }
pointer types for NSTabletProximity events or mouse events with subtype NSTabletProximityEventSubtype
ProcessInfo ¶
ProcessInfo :: struct { using _: Object, }ProcessInfo :: struct { using _: Object, } // Objective-C class NSProcessInfo // Inherits Object // 30 methods
Bound Objective-C Methods
- activeProcessorCount () -> UInteger
- arguments () -> ^Array
- automaticTerminationSupportEnabled () -> bool
- beginActivityWithOptions (options, reason) -> ^ObjectProtocol
- disableAutomaticTermination (reason)
- disableSuddenTermination ()
- enableAutomaticTermination (reason)
- enableSuddenTermination ()
- endActivity (activity)
- environment () -> ^Dictionary
- fullUserName () -> ^String
- globallyUniqueString () -> ^String
- hostName () -> ^String
- isLowPowerModeEnabled () -> bool
- isMacCatalystApp () -> bool
- isOperatingSystemAtLeastVersion (version) -> bool
- isiOSAppOnMac () -> bool
- operatingSystemVersion () -> OperatingSystemVersion
- operatingSystemVersionString () -> ^String
- performActivityWithOptions (options, reason, block)
- performExpiringActivityWithReason (reason, block)
- physicalMemory () -> u64
- processIdentifier () -> i32
- processInfo () -> ^ProcessInfo class method
- processName () -> ^String
- processorCount () -> UInteger
- setAutomaticTerminationSupportEnabled(automaticTerminationSupportEnabled)
- systemUptime () -> TimeInterval
- thermalState () -> ProcessInfoThermalState
- userName () -> ^String
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
ProcessInfoThermalState ¶
ProcessInfoThermalState :: enum i32 { Nominal, Fair, Serious, Critical, }
Protocol ¶
Protocol :: struct { using _: intrinsics.objc_object, }Protocol :: struct { using _: intrinsics.objc_object, } // Objective-C class Protocol
Rect ¶
Rect :: CoreFoundation.CGRect
Related Procedures With Parameters
- MaxX
- MaxY
- MidX
- MidY
- MinX
- MinY
- View_initWithFrame
- Window_contentRectForFrameRectInstance
- Window_contentRectForFrameRectType
- Window_convertRectFromBacking
- Window_convertRectFromScreen
- Window_convertRectToBacking
- Window_convertRectToScreen
- Window_frameRectForContentRectInstance
- Window_frameRectForContentRectType
- Window_initWithContentRect
- Window_setFrame
Related Procedures With Returns
Responder ¶
Responder :: struct { using _: Object, }Responder :: struct { using _: Object, } // Objective-C class NSResponder // Inherits Object
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
RunLoop ¶
RunLoop :: struct { using _: Object, }RunLoop :: struct { using _: Object, } // Objective-C class NSRunLoop // Inherits Object // 2 methods
Bound Objective-C Methods
- addTimerForMode(timer, forMode)
- mainRunLoop () -> ^RunLoop class method
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
RunLoopMode ¶
RunLoopMode :: ^String
Related Procedures With Parameters
- Application_nextEventMatchingMask
- Application_setTitle
- BitmapImageRep_initWithBitmapDataPlanes_bitmapFormat
- BitmapImageRep_initWithBitmapDataPlanes_legacy
- Bundle_PathForAuxiliaryExecutable
- Bundle_URLForAuxiliaryExecutable
- Bundle_bundleWithPath
- Bundle_initWithPath
- Bundle_localizedStringForKey
- Bundle_objectForInfoDictionaryKey
- ClassFromString
- Color_colorUsingColorSpaceName
- Error_errorWithDomain
- Error_initWithDomain
- MenuItem_automaticallyNotifiesObserversForKey
- MenuItem_defaultPlaceholderForMarker
- MenuItem_exposeBinding
- MenuItem_initWithTitle
- MenuItem_keyPathsForValuesAffectingValueForKey
- MenuItem_sectionHeaderWithTitle
- MenuItem_setDefaultPlaceholder
- MenuItem_setKeyEquivalent
- MenuItem_setKeys
- MenuItem_setSubtitle
- MenuItem_setTitle
- MenuItem_setTitleWithMnemonic
- MenuItem_setToolTip
- Menu_addItemWithTitle
- Menu_automaticallyNotifiesObserversForKey
- Menu_defaultPlaceholderForMarker
- Menu_exposeBinding
- Menu_indexOfItemWithTitle
- Menu_initWithTitle
- Menu_insertItemWithTitle
- Menu_itemWithTitle
- Menu_keyPathsForValuesAffectingValueForKey
- Menu_setDefaultPlaceholder
- Menu_setKeys
- Menu_setTitle
- NSWindow_setFrameAutosaveName
- NotificationCenter_addObserver
- NotificationCenter_addObserverForName_new
- NotificationCenter_addObserverForName_old
- ProcessInfo_beginActivityWithOptions
- ProcessInfo_disableAutomaticTermination
- ProcessInfo_enableAutomaticTermination
- ProcessInfo_performActivityWithOptions
- ProcessInfo_performExpiringActivityWithReason
- RunLoop_addTimerForMode
- SelectorFromString
- String_UTF8String
- String_characterAtIndex
- String_cstringUsingEncoding
- String_init
- String_initWithBytesNoCopy
- String_initWithCString
- String_initWithOdinString
- String_initWithString
- String_isEqualToString
- String_length
- String_lengthOfBytesUsingEncoding
- String_maximumLengthOfBytesUsingEncoding
- String_odinString
- String_rangeOfString
- String_stringByAppendingString
- URLResponse_initWithURL
- URL_initFileURLWithPath
- URL_initWithString
- UserDefaults_setBoolForKey
- Window_minFrameWidthWithTitle
- Window_setTitle
- BitmapImageRep_initWithBitmapDataPlanes (procedure groups)
- NotificationCenter_addObserverForName (procedure groups)
Related Procedures With Returns
- Bundle_appStoreReceiptPath
- Bundle_builtInPlugInsPath
- Bundle_bundleIdentifier
- Bundle_bundlePath
- Bundle_executablePath
- Bundle_privateFrameworksPath
- Bundle_resourcePath
- Bundle_sharedFrameworksPath
- Bundle_sharedSupportPath
- Color_colorSpaceName
- Error_domain
- Error_localizedDescription
- Error_localizedFailureReason
- Error_localizedRecoverySuggestion
- Event_characters
- Event_charactersIgnoringModifiers
- MakeConstantString
- MenuItem_debugDescription
- MenuItem_description
- MenuItem_keyEquivalent
- MenuItem_mnemonic
- MenuItem_subtitle
- MenuItem_title
- MenuItem_toolTip
- MenuItem_userKeyEquivalent
- Menu_debugDescription
- Menu_description
- Menu_title
- Notification_name
- Number_descriptionWithLocale
- Number_stringValue
- ProcessInfo_fullUserName
- ProcessInfo_globallyUniqueString
- ProcessInfo_hostName
- ProcessInfo_operatingSystemVersionString
- ProcessInfo_processName
- ProcessInfo_userName
- RunningApplication_localizedName
- StringFromClass
- StringFromSelector
- String_alloc
- URL_relativePath
- debugDescription
- description
RunningApplication ¶
RunningApplication :: struct { using _: Object, }RunningApplication :: struct { using _: Object, } // Objective-C class NSRunningApplication // Inherits Object // 3 methods
Bound Objective-C Methods
- currentApplication() -> ^RunningApplication class method
- finishedLaunching () -> bool
- localizedName () -> ^String
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
SEL ¶
SEL :: ^intrinsics.objc_selector
External examples metal/learn_metal/02-argbuffers-no-sdl
Related Procedures With Parameters
- Application_sendAction
- MenuDelegate_menuHasKeyEquivalent
- MenuItem_cancelPreviousPerformRequestsWithTarget_selector_object
- MenuItem_initWithTitle
- MenuItem_instanceMethodForSelector
- MenuItem_instancesRespondToSelector
- MenuItem_resolveClassMethod
- MenuItem_resolveInstanceMethod
- MenuItem_setAction
- Menu_addItemWithTitle
- Menu_cancelPreviousPerformRequestsWithTarget_selector_object
- Menu_indexOfItemWithTarget
- Menu_insertItemWithTitle
- Menu_instanceMethodForSelector
- Menu_instancesRespondToSelector
- Menu_resolveClassMethod
- Menu_resolveInstanceMethod
- NotificationCenter_addObserver
- StringFromSelector
- Timer_scheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeat
- class_addMethod
- class_getClassMethod
- class_getInstanceMethod
- class_getMethodImplementation
- class_replaceMethod
- class_respondsToSelector
- methodSignatureForSelector
- msgSendSafeCheck
- performSelectorOnMainThread
- respondsToSelector
- sel_getName
- sel_isEqual
- MenuItem_cancelPreviousPerformRequestsWithTarget (procedure groups)
- Menu_cancelPreviousPerformRequestsWithTarget (procedure groups)
Related Procedures With Returns
SavePanel ¶
SavePanel :: struct { using _: Panel, }SavePanel :: struct { using _: Panel, } // Objective-C class NSSavePanel // Inherits Panel → Window → Responder → Object // 3 methods
Bound Objective-C Methods
Methods Inherited From Window
- alloc () -> ^Window class method owned
- backgroundColor () -> ^Color
- backingScaleFactor () -> CoreFoundation.CGFloat
- center ()
- close ()
- collectionBehavior () -> WindowCollectionBehavior
- contentLayoutRect () -> CoreFoundation.CGRect
- contentRectForFrameRect (frameRect) -> CoreFoundation.CGRect
- contentView () -> ^View
- convertPointFromBacking (point) -> CoreFoundation.CGPoint
- convertPointFromScreen (point) -> CoreFoundation.CGPoint
- convertPointToBacking (point) -> CoreFoundation.CGPoint
- convertPointToScreen (point) -> CoreFoundation.CGPoint
- convertRectFromBacking (rect) -> CoreFoundation.CGRect
- convertRectFromScreen (rect) -> CoreFoundation.CGRect
- convertRectToBacking (rect) -> CoreFoundation.CGRect
- convertRectToScreen (rect) -> CoreFoundation.CGRect
- delegate () -> ^WindowDelegate
- frame () -> CoreFoundation.CGRect
- frameRectForContentRect (contentRect, styleMask) -> CoreFoundation.CGRect class method
- hasCloseBox () -> bool
- hasTitleBar () -> bool
- initWithContentRect (contentRect, styleMask, backing, doDefer) -> ^Window
- isFloatingPanel () -> bool
- isMiniaturizable () -> bool
- isModalPanel () -> bool
- isResizable () -> bool
- isZoomable () -> bool
- keyWindow () -> bool
- mainWindow () -> bool
- makeFirstResponder (responder) -> bool
- makeKeyAndOrderFront (key)
- minFrameWidthWithTitle (title, styleMask) -> CoreFoundation.CGFloat class method
- opaque () -> bool
- orderFront (sender)
- orderOut (sender)
- orderedIndex () -> Integer
- parentWindow () -> ^Window
- performClose (sender)
- performWindowDragWithEvent (event)
- performZoom ()
- screen () -> ^Screen
- setAcceptsMouseMovedEvents (ok)
- setBackgroundColor (color)
- setCollectionBehavior (behavior)
- setContentView (content_view)
- setDelegate (delegate)
- setFrame (frame, display)
- setFrameAutosaveName (name)
- setFrameOrigin (origin)
- setIsMiniaturized (ok)
- setIsVisible (ok)
- setIsZoomed (ok)
- setLevel (level)
- setMinSize (size)
- setMovable (ok)
- setMovableByWindowBackground (ok)
- setOpaque (ok)
- setReleasedWhenClosed (flag)
- setRestorable (flag)
- setStyleMask (style_mask)
- setTabbingMode (mode)
- setTitle (title)
- setTitleVisibility (visibility)
- setTitlebarAppearsTransparent(ok)
- setToolbar (toolbar)
- setWantsLayer (ok)
- toggleFullScreen (sender)
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Screen ¶
Screen :: struct { using _: Object, }Screen :: struct { using _: Object, } // Objective-C class NSScreen // Inherits Object // 9 methods
External examples metal/learn_metal/02-argbuffers-no-sdl
Bound Objective-C Methods
- backingScaleFactor () -> CoreFoundation.CGFloat
- colorSpace () -> ^ColorSpace
- deepestScreen () -> ^Screen class method
- depth () -> Depth
- frame () -> CoreFoundation.CGRect
- mainScreen () -> ^Screen class method
- screens () -> ^Array class method
- screensHaveSeparateSpaces() -> bool class method
- visibleFrame () -> CoreFoundation.CGRect
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Set ¶
Set :: struct { using _: Copying($T=Set), }Set :: struct { using _: Copying($T=Set), } // Objective-C class NSSet // Inherits Copying → Object // 4 methods
Bound Objective-C Methods
- alloc () -> ^Set class method owned
- init () -> ^Set
- initWithCoder (coder) -> ^Set
- initWithObjects(objects, count) -> ^Set
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Size ¶
Size :: CoreFoundation.CGSize
External examples metal/learn_metal/02-argbuffers-no-sdl
Related Procedures With Parameters
String ¶
String :: struct { using _: Copying($T=String), }String :: struct { using _: Copying($T=String), } // Objective-C class NSString // Inherits Copying → Object // 16 methods
External examples metal/learn_metal/01-primitive · metal/learn_metal/02-argbuffers · metal/learn_metal/02-argbuffers-no-sdl +7
Bound Objective-C Methods
- UTF8String () -> cstring
- alloc () -> ^String class method owned
- characterAtIndex (index) -> unichar
- cstringUsingEncoding (encoding) -> cstring
- init () -> ^String
- initWithBytesNoCopy (pBytes, length, encoding, freeWhenDone) -> ^String
- initWithCString (pString, encoding) -> ^String
- initWithOdinString (str) -> ^String
- initWithString (other) -> ^String
- isEqualToString (other) -> bool
- length () -> UInteger
- lengthOfBytesUsingEncoding (encoding) -> UInteger
- maximumLengthOfBytesUsingEncoding(encoding) -> UInteger
- odinString () -> string
- rangeOfString (other, options) -> Range
- stringByAppendingString (other) -> ^String
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
StringCompareOption ¶
StringCompareOption :: enum UInteger { CaseInsensitive = 0, LiteralSearch = 1, BackwardsSearch = 2, AnchoredSearch = 3, NumericSearch = 6, DiacriticInsensitive = 7, WidthInsensitive = 8, ForcedOrdering = 9, RegularExpression = 10, }
StringCompareOptions ¶
StringCompareOptions :: distinct bit_set[StringCompareOption; UInteger]
StringEncoding ¶
StringEncoding :: enum UInteger { ASCII = 1, NEXTSTEP = 2, JapaneseEUC = 3, UTF8 = 4, ISOLatin1 = 5, Symbol = 6, NonLossyASCII = 7, ShiftJIS = 8, ISOLatin2 = 9, Unicode = 10, WindowsCP1251 = 11, WindowsCP1252 = 12, WindowsCP1253 = 13, WindowsCP1254 = 14, WindowsCP1250 = 15, ISO2022JP = 21, MacOSRoman = 30, UTF16 = Unicode, UTF16BigEndian = 0x90000100, UTF16LittleEndian = 0x94000100, UTF32 = 0x8c000100, UTF32BigEndian = 0x98000100, UTF32LittleEndian = 0x9c000100, }
Related Procedures With Parameters
Subclasser_Proc ¶
Subclasser_Proc :: proc(cls: ^intrinsics.objc_class, vtable: rawptr)
TimeInterval ¶
TimeInterval :: distinct f64
Related Procedures With Parameters
Related Procedures With Returns
Timer ¶
Timer :: struct { using _: Object, }Timer :: struct { using _: Object, } // Objective-C class NSTimer // Inherits Object // 2 methods
Bound Objective-C Methods
- scheduledTimerWithTimeIntervalRepeatsBlock (interval, repeats, block) -> ^Timer class method
- scheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeat(interval, aTarget, aSelector, userInfo, repeats) -> ^Timer class method
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Toolbar ¶
Toolbar :: struct { using _: Object, }Toolbar :: struct { using _: Object, } // Objective-C class NSToolbar // Inherits Object // 2 methods
Bound Objective-C Methods
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
UInteger ¶
UInteger :: distinct uint
External examples metal/learn_metal/04-instancing · metal/learn_metal/05-perspective · metal/learn_metal/06-lighting +3
Related Procedures With Parameters
- AllocateObject
- Array_initWithObjects
- Array_object
- Array_objectAs
- Dictionary_dictionaryWithObjects
- Dictionary_initWithObjects
- FastEnumeration_countByEnumerating
- MenuItem_setMnemonicLocation
- MutableArray_exchangeObjectAtIndex
- MutableArray_initWithObjects
- MutableArray_object
- MutableArray_objectAs
- Range_LocationInRange
- Range_Make
- Set_initWithObjects
- String_characterAtIndex
- String_initWithBytesNoCopy
- Value_getValue
Related Procedures With Returns
- Array_count
- Data_length
- Dictionary_count
- Event_buttonMask
- Event_capabilityMask
- Event_pointingDeviceID
- Event_pointingDeviceSerialNumber
- Event_systemTabletID
- Event_tabletID
- Event_vendorID
- Event_vendorPointingDeviceType
- Event_windowNumber
- MenuItem_hash
- MenuItem_mnemonicLocation
- Menu_hash
- MutableArray_count
- Number_uintegerValue
- ProcessInfo_activeProcessorCount
- ProcessInfo_processorCount
- Range_Max
- String_length
- String_lengthOfBytesUsingEncoding
- String_maximumLengthOfBytesUsingEncoding
- hash
- retainCount
Related Constants
URL ¶
URL :: struct { using _: Copying($T=URL), }URL :: struct { using _: Copying($T=URL), } // Objective-C class NSURL // Inherits Copying → Object // 6 methods
Bound Objective-C Methods
- alloc () -> ^URL class method owned
- fileSystemRepresentation() -> cstring
- init () -> ^URL
- initFileURLWithPath (path) -> ^URL
- initWithString (value) -> ^URL
- relativePath () -> ^String
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
URLRequest ¶
URLRequest :: struct { using _: Object, }URLRequest :: struct { using _: Object, } // Objective-C class URLRequest // Inherits Object // 4 methods
Bound Objective-C Methods
- alloc () -> ^URLRequest class method owned
- init () -> ^URLRequest
- requestWithURL(url) -> ^URLRequest class method
- url () -> ^URL
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
URLResponse ¶
URLResponse :: struct { using _: Object, }URLResponse :: struct { using _: Object, } // Objective-C class NSURLResponse // Inherits Object // 3 methods
Bound Objective-C Methods
- alloc () -> ^URLResponse class method owned
- init () -> ^URLResponse
- initWithURL(url, mime_type, length, encoding) -> ^URLResponse
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
UndoManager ¶
UndoManager :: struct { using _: Object, }UndoManager :: struct { using _: Object, } // Objective-C class NSUndoManager // Inherits Object
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
UserActivity ¶
UserActivity :: struct { using _: Object, }UserActivity :: struct { using _: Object, } // Objective-C class NSUserActivity // Inherits Object
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
UserDefaults ¶
UserDefaults :: struct { using _: Object, }UserDefaults :: struct { using _: Object, } // Objective-C class NSUserDefaults // Inherits Object // 2 methods
Bound Objective-C Methods
- setBoolForKey (value, name)
- standardUserDefaults() -> ^UserDefaults class method
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
UserInterfaceLayoutDirection ¶
UserInterfaceLayoutDirection :: enum i32 { LeftToRight = 0, RightToLeft = 1, }
Value ¶
Value :: struct { using _: Copying($T=Value), }Value :: struct { using _: Copying($T=Value), } // Objective-C class NSValue // Inherits Copying → Object // 10 methods
Bound Objective-C Methods
- alloc () -> ^Value class method owned
- getValue (value, size)
- init () -> ^Value
- initWithBytes (value, type) -> ^Value
- initWithCoder (coder) -> ^Value
- isEqualToValue (other) -> bool
- objCType () -> cstring
- pointerValue () -> rawptr
- valueWithBytes (value, type) -> ^Value class method
- valueWithPointer(pointer) -> ^Value class method
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
View ¶
View :: struct { using _: Responder, }View :: struct { using _: Responder, } // Objective-C class NSView // Inherits Responder → Object // 11 methods
Bound Objective-C Methods
- addSubview (view)
- alloc () -> ^View class method owned
- bounds () -> CoreFoundation.CGRect
- convertPointFromView(point, view) -> CoreFoundation.CGPoint
- initWithFrame (frame) -> ^View
- isFlipped () -> bool
- layer () -> ^Layer
- setIsFlipped (flipped)
- setLayer (layer)
- setWantsLayer (wantsLayer)
- wantsLayer () -> bool
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
Window ¶
Window :: struct { using _: Responder, }Window :: struct { using _: Responder, } // Objective-C class NSWindow // Inherits Responder → Object // 70 methods
External examples metal/learn_metal/00-window · metal/learn_metal/01-primitive · metal/learn_metal/02-argbuffers +9
Bound Objective-C Methods
- alloc () -> ^Window class method owned
- backgroundColor () -> ^Color
- backingScaleFactor () -> CoreFoundation.CGFloat
- center ()
- close ()
- collectionBehavior () -> WindowCollectionBehavior
- contentLayoutRect () -> CoreFoundation.CGRect
- contentRectForFrameRect (frameRect) -> CoreFoundation.CGRect
- contentView () -> ^View
- convertPointFromBacking (point) -> CoreFoundation.CGPoint
- convertPointFromScreen (point) -> CoreFoundation.CGPoint
- convertPointToBacking (point) -> CoreFoundation.CGPoint
- convertPointToScreen (point) -> CoreFoundation.CGPoint
- convertRectFromBacking (rect) -> CoreFoundation.CGRect
- convertRectFromScreen (rect) -> CoreFoundation.CGRect
- convertRectToBacking (rect) -> CoreFoundation.CGRect
- convertRectToScreen (rect) -> CoreFoundation.CGRect
- delegate () -> ^WindowDelegate
- frame () -> CoreFoundation.CGRect
- frameRectForContentRect (contentRect, styleMask) -> CoreFoundation.CGRect class method
- hasCloseBox () -> bool
- hasTitleBar () -> bool
- initWithContentRect (contentRect, styleMask, backing, doDefer) -> ^Window
- isFloatingPanel () -> bool
- isMiniaturizable () -> bool
- isModalPanel () -> bool
- isResizable () -> bool
- isZoomable () -> bool
- keyWindow () -> bool
- mainWindow () -> bool
- makeFirstResponder (responder) -> bool
- makeKeyAndOrderFront (key)
- minFrameWidthWithTitle (title, styleMask) -> CoreFoundation.CGFloat class method
- opaque () -> bool
- orderFront (sender)
- orderOut (sender)
- orderedIndex () -> Integer
- parentWindow () -> ^Window
- performClose (sender)
- performWindowDragWithEvent (event)
- performZoom ()
- screen () -> ^Screen
- setAcceptsMouseMovedEvents (ok)
- setBackgroundColor (color)
- setCollectionBehavior (behavior)
- setContentView (content_view)
- setDelegate (delegate)
- setFrame (frame, display)
- setFrameAutosaveName (name)
- setFrameOrigin (origin)
- setIsMiniaturized (ok)
- setIsVisible (ok)
- setIsZoomed (ok)
- setLevel (level)
- setMinSize (size)
- setMovable (ok)
- setMovableByWindowBackground (ok)
- setOpaque (ok)
- setReleasedWhenClosed (flag)
- setRestorable (flag)
- setStyleMask (style_mask)
- setTabbingMode (mode)
- setTitle (title)
- setTitleVisibility (visibility)
- setTitlebarAppearsTransparent(ok)
- setToolbar (toolbar)
- setWantsLayer (ok)
- toggleFullScreen (sender)
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
WindowCollectionBehavior ¶
WindowCollectionBehavior :: distinct bit_set[WindowCollectionBehaviorFlag; UInteger]
Related Constants
- WindowCollectionBehaviorAuxiliary
- WindowCollectionBehaviorCanJoinAllApplications
- WindowCollectionBehaviorCanJoinAllSpaces
- WindowCollectionBehaviorDefault
- WindowCollectionBehaviorFullScreenAllowsTiling
- WindowCollectionBehaviorFullScreenAuxiliary
- WindowCollectionBehaviorFullScreenDisallowsTiling
- WindowCollectionBehaviorFullScreenNone
- WindowCollectionBehaviorFullScreenPrimary
- WindowCollectionBehaviorIgnoresCycle
- WindowCollectionBehaviorManaged
- WindowCollectionBehaviorMoveToActiveSpace
- WindowCollectionBehaviorParticipatesInCycle
- WindowCollectionBehaviorPrimary
- WindowCollectionBehaviorStationary
- WindowCollectionBehaviorTransient
WindowCollectionBehaviorFlag ¶
WindowCollectionBehaviorFlag :: enum UInteger { CanJoinAllSpaces = 0, MoveToActiveSpace = 1, Managed = 2, Transient = 3, Stationary = 4, ParticipatesInCycle = 5, IgnoresCycle = 6, FullScreenPrimary = 7, FullScreenAuxiliary = 8, FullScreenNone = 9, FullScreenAllowsTiling = 11, FullScreenDisallowsTiling = 12, Primary = 16, Auxiliary = 17, CanJoinAllApplications = 18, }
WindowDelegate ¶
WindowDelegate :: struct { using _: Object, }
This is not the same as NSWindowDelegate
Related Procedures With Returns
Procedures Through `using` From Object
- Application_stop
- Application_terminate
- AutoreleasePool_addObject
- AutoreleasePool_showPools
- Dictionary_dictionaryWithObject
- Dictionary_objectForKey
- NotificationCenter_addObserver
- NotificationCenter_addObserverForName_new
- NotificationCenter_addObserverForName_old
- NotificationCenter_removeObserver
- Number_descriptionWithLocale
- Window_makeKeyAndOrderFront
- autorelease
- bridgingCast
- class
- debugDescription
- description
- hash
- isEqual
- methodSignatureForSelector
- msgSendSafeCheck
- performSelectorOnMainThread
- release
- respondsToSelector
- retain
- retainCount
- NotificationCenter_addObserverForName (procedure groups)
Procedures Through `using` From objc_object
- Application_sendAction
- DeallocateObject
- Event_otherEventWithType
- MenuItem_cancelPreviousPerformRequestsWithTarget_
- MenuItem_cancelPreviousPerformRequestsWithTarget_selector_object
- MenuItem_defaultPlaceholderForMarker
- MenuItem_setDefaultPlaceholder
- MenuItem_setRepresentedObject
- MenuItem_setTarget
- Menu_cancelPreviousPerformRequestsWithTarget_
- Menu_cancelPreviousPerformRequestsWithTarget_selector_object
- Menu_defaultPlaceholderForMarker
- Menu_indexOfItemWithRepresentedObject
- Menu_indexOfItemWithTarget
- Menu_setContextMenuRepresentation
- Menu_setDefaultPlaceholder
- Menu_setMenuRepresentation
- Menu_setTearOffMenuRepresentation
- Menu_submenuAction
- Timer_scheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeat
- Window_orderFront
- Window_orderOut
- Window_performClose
- Window_toggleFullScreen
- objc_destructInstance
- objc_getAssociatedObject
- objc_removeAssociatedObjects
- objc_setAssociatedObject
- object_copy
- object_dispose
- object_getClass
- object_getClassName
- object_getIndexedIvars
- object_getInstanceVariable
- object_getIvar
- object_get_vtable_info
- object_setClass
- object_setInstanceVariable
- object_setIvar
- MenuItem_cancelPreviousPerformRequestsWithTarget (procedure groups)
- Menu_cancelPreviousPerformRequestsWithTarget (procedure groups)
WindowDelegateTemplate ¶
WindowDelegateTemplate :: struct { // Managing Sheets windowWillPositionSheetUsingRect: proc(window: ^Window, sheet: ^Window, rect: CoreFoundation.CGRect) -> CoreFoundation.CGRect, windowWillBeginSheet: proc(notification: ^Notification), windowDidEndSheet: proc(notification: ^Notification), // Sizing Windows windowWillResizeToSize: proc(sender: ^Window, frameSize: CoreFoundation.CGSize) -> CoreFoundation.CGSize, windowDidResize: proc(notification: ^Notification), windowWillStartLiveResize: proc(noitifcation: ^Notification), windowDidEndLiveResize: proc(notification: ^Notification), // Minimizing Windows windowWillMiniaturize: proc(notification: ^Notification), windowDidMiniaturize: proc(notification: ^Notification), windowDidDeminiaturize: proc(notification: ^Notification), // Zooming window windowWillUseStandardFrameDefaultFrame: proc(window: ^Window, newFrame: CoreFoundation.CGRect) -> CoreFoundation.CGRect, windowShouldZoomToFrame: proc(window: ^Window, newFrame: CoreFoundation.CGRect) -> bool, // Managing Full-Screen Presentation windowWillUseFullScreenContentSize: proc(window: ^Window, proposedSize: CoreFoundation.CGSize) -> CoreFoundation.CGSize, windowWillUseFullScreenPresentationOptions: proc(window: ^Window, proposedOptions: ApplicationPresentationOptions) -> ApplicationPresentationOptions, windowWillEnterFullScreen: proc(notification: ^Notification), windowDidEnterFullScreen: proc(notification: ^Notification), windowWillExitFullScreen: proc(notification: ^Notification), windowDidExitFullScreen: proc(notification: ^Notification), // Custom Full-Screen Presentation Animations customWindowsToEnterFullScreenForWindow: proc(window: ^Window) -> ^Array, customWindowsToEnterFullScreenForWindowOnScreen: proc(window: ^Window, screen: ^Screen) -> ^Array, windowStartCustomAnimationToEnterFullScreenWithDuration: proc(window: ^Window, duration: TimeInterval), windowStartCustomAnimationToEnterFullScreenOnScreenWithDuration: proc(window: ^Window, screen: ^Screen, duration: TimeInterval), windowDidFailToEnterFullScreen: proc(window: ^Window), customWindowsToExitFullScreenForWindow: proc(window: ^Window) -> ^Array, windowStartCustomAnimationToExitFullScreenWithDuration: proc(window: ^Window, duration: TimeInterval), windowDidFailToExitFullScreen: proc(window: ^Window), // Moving Windows windowWillMove: proc(notification: ^Notification), windowDidMove: proc(notification: ^Notification), windowDidChangeScreen: proc(notification: ^Notification), windowDidChangeScreenProfile: proc(notification: ^Notification), windowDidChangeBackingProperties: proc(notification: ^Notification), // Closing Windows windowShouldClose: proc(sender: ^Window) -> bool, windowWillClose: proc(notification: ^Notification), // Managing Key Status windowDidBecomeKey: proc(notification: ^Notification), windowDidResignKey: proc(notification: ^Notification), // Managing Main Status windowDidBecomeMain: proc(notification: ^Notification), windowDidResignMain: proc(notification: ^Notification), // Managing Field Editors windowWillReturnFieldEditorToObject: proc(sender: ^Window, client: ^intrinsics.objc_object) -> ^intrinsics.objc_object, // Updating Windows windowDidUpdate: proc(notification: ^Notification), // Exposing Windows windowDidExpose: proc(notification: ^Notification), // Managing Occlusion State windowDidChangeOcclusionState: proc(notification: ^Notification), // Dragging Windows windowShouldDragDocumentWithEventFromWithPasteboard: proc(window: ^Window, event: ^Event, dragImageLocation: CoreFoundation.CGPoint, pasteboard: ^Pasteboard) -> bool, // Getting the Undo Manager windowWillReturnUndoManager: proc(window: ^Window) -> ^UndoManager, // Managing Titles windowShouldPopUpDocumentPathMenu: proc(window: ^Window, menu: ^Menu) -> bool, // Managing Restorable State windowWillEncodeRestorableState: proc(window: ^Window, state: ^Coder), windowDidEncodeRestorableState: proc(window: ^Window, state: ^Coder), // Managing Presentation in Version Browsers windowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize: proc(window: ^Window, maxPreferredFrameSize: CoreFoundation.CGSize, maxAllowedFrameSize: CoreFoundation.CGSize) -> CoreFoundation.CGSize, windowWillEnterVersionBrowser: proc(notification: ^Notification), windowDidEnterVersionBrowser: proc(notification: ^Notification), windowWillExitVersionBrowser: proc(notification: ^Notification), windowDidExitVersionBrowser: proc(notification: ^Notification), }
WindowLevel ¶
WindowLevel :: enum Integer { Normal = 0, Floating = 3, Submenu = 3, TornOffMenu = 3, ModalPanel = 8, MainMenu = 24, Status = 25, PopUpMenu = 101, ScreenSaver = 1000, }
WindowStyleFlag ¶
WindowStyleFlag :: enum UInteger { Titled = 0, Closable = 1, Miniaturizable = 2, Resizable = 3, TexturedBackground = 8, UnifiedTitleAndToolbar = 12, FullScreen = 14, FullSizeContentView = 15, UtilityWindow = 4, DocModalWindow = 6, NonactivatingPanel = 7, HUDWindow = 13, }
WindowStyleMask ¶
WindowStyleMask :: distinct bit_set[WindowStyleFlag; UInteger]
Related Procedures With Parameters
Related Constants
- WindowStyleMaskBorderless
- WindowStyleMaskClosable
- WindowStyleMaskDocModalWindow
- WindowStyleMaskFullScreen
- WindowStyleMaskFullSizeContentView
- WindowStyleMaskHUDWindow
- WindowStyleMaskMiniaturizable
- WindowStyleMaskNonactivatingPanel
- WindowStyleMaskResizable
- WindowStyleMaskTexturedBackground
- WindowStyleMaskTitled
- WindowStyleMaskUnifiedTitleAndToolbar
- WindowStyleMaskUtilityWindow
WindowTabbingMode ¶
WindowTabbingMode :: enum Integer { Automatic = 0, Preferred = 1, Disallowed = 2, }
Window_Title_Visibility ¶
Window_Title_Visibility :: enum UInteger { Visible, Hidden, }
Zone ¶
Zone :: struct { using _: Object, }Zone :: struct { using _: Object, } // Objective-C class NSZone // Inherits Object
Methods Inherited From Object
- autorelease ()
- class () -> ^intrinsics.objc_class
- copy () -> ^T
- debugDescription () -> ^String
- description () -> ^String
- hash () -> UInteger
- init () -> ^T
- isEqual (pObject) -> bool
- performSelectorOnMainThread(aSelector, arg, wait)
- release ()
- retain ()
- retainCount () -> UInteger
id ¶
id :: ^intrinsics.objc_object
External examples metal/learn_metal/02-argbuffers-no-sdl
Related Procedures With Parameters
- Application_sendAction
- DeallocateObject
- Event_otherEventWithType
- MenuDelegate_menuHasKeyEquivalent
- MenuItem_cancelPreviousPerformRequestsWithTarget_
- MenuItem_cancelPreviousPerformRequestsWithTarget_selector_object
- MenuItem_defaultPlaceholderForMarker
- MenuItem_setDefaultPlaceholder
- MenuItem_setRepresentedObject
- MenuItem_setTarget
- Menu_cancelPreviousPerformRequestsWithTarget_
- Menu_cancelPreviousPerformRequestsWithTarget_selector_object
- Menu_defaultPlaceholderForMarker
- Menu_indexOfItemWithRepresentedObject
- Menu_indexOfItemWithTarget
- Menu_setContextMenuRepresentation
- Menu_setDefaultPlaceholder
- Menu_setMenuRepresentation
- Menu_setTearOffMenuRepresentation
- Menu_submenuAction
- Timer_scheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeat
- Window_orderFront
- Window_orderOut
- Window_performClose
- Window_toggleFullScreen
- objc_destructInstance
- objc_getAssociatedObject
- objc_removeAssociatedObjects
- objc_setAssociatedObject
- object_copy
- object_dispose
- object_getClass
- object_getClassName
- object_getIndexedIvars
- object_getInstanceVariable
- object_getIvar
- object_get_vtable_info
- object_setClass
- object_setInstanceVariable
- object_setIvar
- performSelectorOnMainThread
- MenuItem_cancelPreviousPerformRequestsWithTarget (procedure groups)
- Menu_cancelPreviousPerformRequestsWithTarget (procedure groups)
Related Procedures With Returns
- AllocateObject
- Event_vendorDefined
- MenuItem_copyWithZone
- MenuItem_mutableCopyWithZone
- MenuItem_representedObject
- MenuItem_target
- Menu_contextMenuRepresentation
- Menu_copyWithZone
- Menu_menuRepresentation
- Menu_mutableCopyWithZone
- Menu_tearOffMenuRepresentation
- alloc_user_object
- class_createInstance
- objc_constructInstance
- objc_getMetaClass
kVK ¶
kVK :: enum int { ANSI_A = 0x00, ANSI_S = 0x01, ANSI_D = 0x02, ANSI_F = 0x03, ANSI_H = 0x04, ANSI_G = 0x05, ANSI_Z = 0x06, ANSI_X = 0x07, ANSI_C = 0x08, ANSI_V = 0x09, ANSI_B = 0x0B, ANSI_Q = 0x0C, ANSI_W = 0x0D, ANSI_E = 0x0E, ANSI_R = 0x0F, ANSI_Y = 0x10, ANSI_T = 0x11, ANSI_1 = 0x12, ANSI_2 = 0x13, ANSI_3 = 0x14, ANSI_4 = 0x15, ANSI_6 = 0x16, ANSI_5 = 0x17, ANSI_Equal = 0x18, ANSI_9 = 0x19, ANSI_7 = 0x1A, ANSI_Minus = 0x1B, ANSI_8 = 0x1C, ANSI_0 = 0x1D, ANSI_RightBracket = 0x1E, ANSI_O = 0x1F, ANSI_U = 0x20, ANSI_LeftBracket = 0x21, ANSI_I = 0x22, ANSI_P = 0x23, ANSI_L = 0x25, ANSI_J = 0x26, ANSI_Quote = 0x27, ANSI_K = 0x28, ANSI_Semicolon = 0x29, ANSI_Backslash = 0x2A, ANSI_Comma = 0x2B, ANSI_Slash = 0x2C, ANSI_N = 0x2D, ANSI_M = 0x2E, ANSI_Period = 0x2F, ANSI_Grave = 0x32, ANSI_KeypadDecimal = 0x41, ANSI_KeypadMultiply = 0x43, ANSI_KeypadPlus = 0x45, ANSI_KeypadClear = 0x47, ANSI_KeypadDivide = 0x4B, ANSI_KeypadEnter = 0x4C, ANSI_KeypadMinus = 0x4E, ANSI_KeypadEquals = 0x51, ANSI_Keypad0 = 0x52, ANSI_Keypad1 = 0x53, ANSI_Keypad2 = 0x54, ANSI_Keypad3 = 0x55, ANSI_Keypad4 = 0x56, ANSI_Keypad5 = 0x57, ANSI_Keypad6 = 0x58, ANSI_Keypad7 = 0x59, ANSI_Keypad8 = 0x5B, ANSI_Keypad9 = 0x5C, Return = 0x24, Tab = 0x30, Space = 0x31, Delete = 0x33, Escape = 0x35, Command = 0x37, Shift = 0x38, CapsLock = 0x39, Option = 0x3A, Control = 0x3B, RightCommand = 0x36, RightShift = 0x3C, RightOption = 0x3D, RightControl = 0x3E, Function = 0x3F, F17 = 0x40, VolumeUp = 0x48, VolumeDown = 0x49, Mute = 0x4A, F18 = 0x4F, F19 = 0x50, F20 = 0x5A, F5 = 0x60, F6 = 0x61, F7 = 0x62, F3 = 0x63, F8 = 0x64, F9 = 0x65, F11 = 0x67, F13 = 0x69, F16 = 0x6A, F14 = 0x6B, F10 = 0x6D, F12 = 0x6F, F15 = 0x71, Help = 0x72, Home = 0x73, PageUp = 0x74, ForwardDelete = 0x75, F4 = 0x76, End = 0x77, F2 = 0x78, PageDown = 0x79, F1 = 0x7A, LeftArrow = 0x7B, RightArrow = 0x7C, DownArrow = 0x7D, UpArrow = 0x7E, JIS_Yen = 0x5D, JIS_Underscore = 0x5E, JIS_KeypadComma = 0x5F, JIS_Eisu = 0x66, JIS_Kana = 0x68, ISO_Section = 0x0A, }
Defined in Carbon.framework Events.h
External examples metal/learn_metal/02-argbuffers-no-sdl
objc_AssociationPolicy ¶
objc_AssociationPolicy :: enum uintptr { Assign = 0, Retain_Nonatomic = 1, Copy_Nonatomic = 3, Retain = 01401, Copy = 01403, }
objc_cache ¶
objc_cache :: struct { mask: u32, occupied: u32, buckets: [1]^objc_method, }
objc_class_internals ¶
objc_class_internals :: struct { isa: ^intrinsics.objc_class, super_class: ^intrinsics.objc_class, name: cstring, version: i32, info: i32, instance_size: i32, ivars: ^objc_ivar_list, methodLists: ^^objc_method_list, cache: rawptr, protocols: rawptr, }
objc_ivar ¶
objc_ivar :: struct {}
Related Procedures With Parameters
Related Procedures With Returns
objc_ivar_list ¶
objc_ivar_list :: struct {}
objc_method ¶
objc_method :: struct { method_name: ^intrinsics.objc_selector, method_types: cstring, method_imp: IMP, }
Related Procedures With Parameters
Related Procedures With Returns
objc_method_list ¶
objc_method_list :: struct {}
objc_object_internals ¶
objc_object_internals :: struct { isa: ^objc_class_internals, }
objc_property_attribute_t ¶
Related Procedures With Parameters
objc_property_t ¶
objc_property_t :: ^objc_property
Related Procedures With Parameters
Related Procedures With Returns
objc_protocol_list ¶
objc_protocol_list :: struct { next: ^objc_protocol_list, count: i32, list: [1]^Protocol, }
Constants
ApplicationPresentationOptionsAutoHideDock ¶
ApplicationPresentationOptionsAutoHideDock :: ApplicationPresentationOptions{.AutoHideDock}
ApplicationPresentationOptionsAutoHideMenuBar ¶
ApplicationPresentationOptionsAutoHideMenuBar :: ApplicationPresentationOptions{.AutoHideMenuBar}
ApplicationPresentationOptionsAutoHideToolbar ¶
ApplicationPresentationOptionsAutoHideToolbar :: ApplicationPresentationOptions{.AutoHideToolbar}
ApplicationPresentationOptionsDefault ¶
ApplicationPresentationOptionsDefault :: ApplicationPresentationOptions{}
ApplicationPresentationOptionsDisableAppleMenu ¶
ApplicationPresentationOptionsDisableAppleMenu :: ApplicationPresentationOptions{.DisableAppleMenu}
ApplicationPresentationOptionsDisableCursorLocationAssistance ¶
ApplicationPresentationOptionsDisableCursorLocationAssistance :: ApplicationPresentationOptions{.DisableCursorLocationAssistance}
ApplicationPresentationOptionsDisableForceQuit ¶
ApplicationPresentationOptionsDisableForceQuit :: ApplicationPresentationOptions{.DisableForceQuit}
ApplicationPresentationOptionsDisableHideApplication ¶
ApplicationPresentationOptionsDisableHideApplication :: ApplicationPresentationOptions{.DisableHideApplication}
ApplicationPresentationOptionsDisableMenuBarTransparency ¶
ApplicationPresentationOptionsDisableMenuBarTransparency :: ApplicationPresentationOptions{.DisableMenuBarTransparency}
ApplicationPresentationOptionsDisableProcessSwitching ¶
ApplicationPresentationOptionsDisableProcessSwitching :: ApplicationPresentationOptions{.DisableProcessSwitching}
ApplicationPresentationOptionsDisableSessionTermination ¶
ApplicationPresentationOptionsDisableSessionTermination :: ApplicationPresentationOptions{.DisableSessionTermination}
ApplicationPresentationOptionsFullScreen ¶
ApplicationPresentationOptionsFullScreen :: ApplicationPresentationOptions{.FullScreen}
ApplicationPresentationOptionsHideDock ¶
ApplicationPresentationOptionsHideDock :: ApplicationPresentationOptions{.HideDock}
ApplicationPresentationOptionsHideMenuBar ¶
ApplicationPresentationOptionsHideMenuBar :: ApplicationPresentationOptions{.HideMenuBar}
EventMaskAny ¶
EventMaskAny: EventMask : transmute(EventMask)(max(UInteger))
External examples metal/learn_metal/02-argbuffers-no-sdl
EventModifierFlagCapsLock ¶
EventModifierFlagCapsLock :: EventModifierFlags{.CapsLock}
EventModifierFlagCommand ¶
EventModifierFlagCommand :: EventModifierFlags{.Command}
EventModifierFlagControl ¶
EventModifierFlagControl :: EventModifierFlags{.Control}
EventModifierFlagDeviceIndependentFlagsMask ¶
EventModifierFlagDeviceIndependentFlagsMask: UInteger : 0xffff0000
EventModifierFlagFunction ¶
EventModifierFlagFunction :: EventModifierFlags{.Function}
EventModifierFlagHelp ¶
EventModifierFlagHelp :: EventModifierFlags{.Help}
EventModifierFlagNumericPad ¶
EventModifierFlagNumericPad :: EventModifierFlags{.NumericPad}
EventModifierFlagOption ¶
EventModifierFlagOption :: EventModifierFlags{.Option}
EventModifierFlagShift ¶
EventModifierFlagShift :: EventModifierFlags{.Shift}
EventPhaseBegan ¶
EventPhaseBegan :: EventPhase{.Began}
EventPhaseCancelled ¶
EventPhaseCancelled :: EventPhase{.Cancelled}
EventPhaseChanged ¶
EventPhaseChanged :: EventPhase{.Changed}
EventPhaseEnded ¶
EventPhaseEnded :: EventPhase{.Ended}
EventPhaseMayBegin ¶
EventPhaseMayBegin :: EventPhase{.MayBegin}
EventPhaseNone ¶
EventPhaseNone :: EventPhase{}
EventPhaseStationary ¶
EventPhaseStationary :: EventPhase{.Stationary}
IntegerMax ¶
IntegerMax: Integer : max(Integer)
Integermin ¶
Integermin: Integer : min(Integer)
NotFound ¶
NotFound :: IntegerMax
UIntegerMax ¶
UIntegerMax: UInteger : max(UInteger)
WindowCollectionBehaviorAuxiliary ¶
WindowCollectionBehaviorAuxiliary :: WindowCollectionBehavior{.Auxiliary, .FullScreenNone}
WindowCollectionBehaviorCanJoinAllApplications ¶
WindowCollectionBehaviorCanJoinAllApplications :: WindowCollectionBehavior{.CanJoinAllApplications}
WindowCollectionBehaviorCanJoinAllSpaces ¶
WindowCollectionBehaviorCanJoinAllSpaces :: WindowCollectionBehavior{.CanJoinAllSpaces}
WindowCollectionBehaviorDefault ¶
WindowCollectionBehaviorDefault :: WindowCollectionBehavior{}
WindowCollectionBehaviorFullScreenAllowsTiling ¶
WindowCollectionBehaviorFullScreenAllowsTiling :: WindowCollectionBehavior{.FullScreenAllowsTiling}
WindowCollectionBehaviorFullScreenAuxiliary ¶
WindowCollectionBehaviorFullScreenAuxiliary :: WindowCollectionBehavior{.FullScreenAuxiliary}
WindowCollectionBehaviorFullScreenDisallowsTiling ¶
WindowCollectionBehaviorFullScreenDisallowsTiling :: WindowCollectionBehavior{.FullScreenDisallowsTiling}
WindowCollectionBehaviorFullScreenNone ¶
WindowCollectionBehaviorFullScreenNone :: WindowCollectionBehavior{.FullScreenNone}
WindowCollectionBehaviorFullScreenPrimary ¶
WindowCollectionBehaviorFullScreenPrimary :: WindowCollectionBehavior{.FullScreenPrimary}
WindowCollectionBehaviorIgnoresCycle ¶
WindowCollectionBehaviorIgnoresCycle :: WindowCollectionBehavior{.IgnoresCycle}
WindowCollectionBehaviorManaged ¶
WindowCollectionBehaviorManaged :: WindowCollectionBehavior{.Managed}
WindowCollectionBehaviorMoveToActiveSpace ¶
WindowCollectionBehaviorMoveToActiveSpace :: WindowCollectionBehavior{.MoveToActiveSpace}
WindowCollectionBehaviorParticipatesInCycle ¶
WindowCollectionBehaviorParticipatesInCycle :: WindowCollectionBehavior{.ParticipatesInCycle}
WindowCollectionBehaviorPrimary ¶
WindowCollectionBehaviorPrimary :: WindowCollectionBehavior{.Primary, .FullScreenAuxiliary}
WindowCollectionBehaviorStationary ¶
WindowCollectionBehaviorStationary :: WindowCollectionBehavior{.Stationary}
WindowCollectionBehaviorTransient ¶
WindowCollectionBehaviorTransient :: WindowCollectionBehavior{.Transient}
WindowStyleMaskBorderless ¶
WindowStyleMaskBorderless :: WindowStyleMask{}
WindowStyleMaskClosable ¶
WindowStyleMaskClosable :: WindowStyleMask{.Closable}
WindowStyleMaskDocModalWindow ¶
WindowStyleMaskDocModalWindow :: WindowStyleMask{.DocModalWindow}
WindowStyleMaskFullScreen ¶
WindowStyleMaskFullScreen :: WindowStyleMask{.FullScreen}
WindowStyleMaskFullSizeContentView ¶
WindowStyleMaskFullSizeContentView :: WindowStyleMask{.FullSizeContentView}
WindowStyleMaskHUDWindow ¶
WindowStyleMaskHUDWindow :: WindowStyleMask{.HUDWindow}
WindowStyleMaskMiniaturizable ¶
WindowStyleMaskMiniaturizable :: WindowStyleMask{.Miniaturizable}
WindowStyleMaskNonactivatingPanel ¶
WindowStyleMaskNonactivatingPanel :: WindowStyleMask{.NonactivatingPanel}
WindowStyleMaskResizable ¶
WindowStyleMaskResizable :: WindowStyleMask{.Resizable}
WindowStyleMaskTexturedBackground ¶
WindowStyleMaskTexturedBackground :: WindowStyleMask{.TexturedBackground}
WindowStyleMaskTitled ¶
WindowStyleMaskTitled :: WindowStyleMask{.Titled}
WindowStyleMaskUnifiedTitleAndToolbar ¶
WindowStyleMaskUnifiedTitleAndToolbar :: WindowStyleMask{.UnifiedTitleAndToolbar}
WindowStyleMaskUtilityWindow ¶
WindowStyleMaskUtilityWindow :: WindowStyleMask{.UtilityWindow}
YES ¶
YES :: true
Variables
CocoaErrorDomain ¶
@(linkage="weak") CocoaErrorDomain: ^String
DebugDescriptionErrorKey ¶
@(linkage="weak") DebugDescriptionErrorKey: ^String
DefaultRunLoopMode ¶C · NSDefaultRunLoopModeSource · NSRunLoop.odin:10
DefaultRunLoopMode: ^String
External examples metal/learn_metal/02-argbuffers-no-sdl
DeviceRGBColorSpace ¶C · NSDeviceRGBColorSpaceSource · NSColor.odin:155
DeviceRGBColorSpace: ^String
EventTrackingRunLoopMode ¶C · NSEventTrackingRunLoopModeSource · NSRunLoop.odin:11
EventTrackingRunLoopMode: ^String
FilePathErrorKey ¶
@(linkage="weak") FilePathErrorKey: ^String
HelpAnchorErrorKey ¶
@(linkage="weak") HelpAnchorErrorKey: ^String
KeyEventModifierFlagDeviceIndependentFlagsMask ¶
KeyEventModifierFlagDeviceIndependentFlagsMask: EventModifierFlags = …
Used to retrieve only the device-independent modifier flags, allowing applications to mask off the device-dependent modifier flags, including event coalescing information.
LocalizedDescriptionKey ¶
@(linkage="weak") LocalizedDescriptionKey: ^String
LocalizedFailureErrorKey ¶
@(linkage="weak") LocalizedFailureErrorKey: ^String
LocalizedFailureReasonErrorKey ¶
@(linkage="weak") LocalizedFailureReasonErrorKey: ^String
LocalizedRecoveryOptionsErrorKey ¶
@(linkage="weak") LocalizedRecoveryOptionsErrorKey: ^String
LocalizedRecoverySuggestionErrorKey ¶
@(linkage="weak") LocalizedRecoverySuggestionErrorKey: ^String
MachErrorDomain ¶
@(linkage="weak") MachErrorDomain: ^String
ModalPanelRunLoopMode ¶C · NSModalPanelRunLoopModeSource · NSRunLoop.odin:12
ModalPanelRunLoopMode: ^String
OSStatusErrorDomain ¶
@(linkage="weak") OSStatusErrorDomain: ^String
POSIXErrorDomain ¶
@(linkage="weak") POSIXErrorDomain: ^String
RecoveryAttempterErrorKey ¶
@(linkage="weak") RecoveryAttempterErrorKey: ^String
RunLoopCommonModes ¶C · NSRunLoopCommonModesSource · NSRunLoop.odin:9
RunLoopCommonModes: ^String
StringEncodingErrorKey ¶
@(linkage="weak") StringEncodingErrorKey: ^String
URLErrorKey ¶
@(linkage="weak") URLErrorKey: ^String
UnderlyingErrorKey ¶
@(linkage="weak") UnderlyingErrorKey: ^String
Procedures
AT ¶
AT :: MakeConstantString
CFString is 'toll-free bridged' with its Cocoa Foundation counterpart, NSString.
External examples metal/learn_metal/08-compute · metal/learn_metal/09-compute-to-render · metal/learn_metal/01-primitive +7
AllocateObject ¶C · NSAllocateObjectSource · objc.odin:101
AllocateObject :: proc "c" ( aClass: ^intrinsics.objc_class, extraBytes: UInteger, zone: ^Zone, ) -> ^intrinsics.objc_object ---
Application_activate ¶
Application_activate :: proc "c" (self: ^Application) {…}
application->activate()
Application_activateIgnoringOtherApps ¶
Application_activateIgnoringOtherApps :: proc "c" (self: ^Application, ignoreOtherApps: bool) {…}
application->activateIgnoringOtherApps(ignoreOtherApps)
NOTE: this is technically deprecated but still actively used (Sokol, glfw, SDL, etc.)
and has no clear alternative although activate is what Apple tells you to use,
that does not work the same way.
Application_active ¶
Application_active :: proc "c" (self: ^Application) -> bool {…}
active := application->active()
Application_currentEvent ¶
Application_currentEvent :: proc "c" (self: ^Application) -> ^Event {…}
currentEvent := application->currentEvent()
Application_finishLaunching ¶
Application_finishLaunching :: proc "c" (self: ^Application) {…}
application->finishLaunching()
Application_isRunning ¶
Application_isRunning :: proc "c" (self: ^Application) -> bool {…}
isRunning := application->isRunning()
Application_keyWindow ¶
Application_keyWindow :: proc "c" (self: ^Application) -> ^Window {…}
keyWindow := application->keyWindow()
Application_mainMenu ¶
Application_mainMenu :: proc "c" (self: ^Application) -> ^Menu {…}
mainMenu := application->mainMenu()
Application_mainWindow ¶
Application_mainWindow :: proc "c" (self: ^Application) -> ^Window {…}
mainWindow := application->mainWindow()
Application_nextEventMatchingMask ¶
Application_nextEventMatchingMask :: proc "c" ( self: ^Application, mask: EventMask, expiration: ^Date, in_mode: ^String, dequeue: bool, ) -> ^Event {…}
event := application->nextEventMatchingMask(mask, expiration, in_mode, dequeue)
Application_postEvent ¶
Application_postEvent :: proc "c" (self: ^Application, event: ^Event, atStart: bool) {…}
application->postEvent(event, atStart)
Application_run ¶
Application_run :: proc "c" (self: ^Application) {…}
application->run()
Application_sendAction ¶
Application_sendAction :: proc "c" ( self: ^Application, action: ^intrinsics.objc_selector, to: ^intrinsics.objc_object, from: ^intrinsics.objc_object, ) {…}
application->sendAction(action, to, from)
Application_sendEvent ¶
Application_sendEvent :: proc "c" (self: ^Application, event: ^Event) {…}
application->sendEvent(event)
Application_servicesMenu ¶
Application_servicesMenu :: proc "c" (self: ^Application) -> ^Menu {…}
servicesMenu := application->servicesMenu()
Application_setActivationPolicy ¶
Application_setActivationPolicy :: proc "c" ( self: ^Application, activationPolicy: ActivationPolicy, ) -> bool {…}
res := application->setActivationPolicy(activationPolicy)
Application_setAppleMenu ¶
Application_setAppleMenu :: proc "c" (self: ^Application, menu: ^Menu) {…}
application->setAppleMenu(menu)
This property is actually not exposed in AppKit's public API. But there is basically no other way to configure the apple menu without using NIB files. Therefore, an Odin binding for this non-public API was created. Note: SDL also calls this non-public method.
Application_setDelegate ¶
Application_setDelegate :: proc "c" (self: ^Application, delegate: ^ApplicationDelegate) {…}
application->setDelegate(delegate)
Application_setMainMenu ¶
Application_setMainMenu :: proc "c" (self: ^Application, menu: ^Menu) {…}
application->setMainMenu(menu)
Application_setServicesMenu ¶
Application_setServicesMenu :: proc "c" (self: ^Application, menu: ^Menu) {…}
application->setServicesMenu(menu)
Application_setTitle ¶
Application_setTitle :: proc "c" (self: ^Application, title: ^String) {…}
application->setTitle(title)
Application_setWindowsMenu ¶
Application_setWindowsMenu :: proc "c" (self: ^Application, menu: ^Menu) {…}
application->setWindowsMenu(menu)
Application_sharedApplication ¶ class method
Application_sharedApplication :: proc "c" () -> ^Application {…}
application := Application.sharedApplication()
Application_stop ¶
Application_stop :: proc "c" (self: ^Application, sender: ^Object) {…}
application->stop(sender)
Application_terminate ¶
Application_terminate :: proc "c" (self: ^Application, sender: ^Object) {…}
application->terminate(sender)
Application_updateWindows ¶
Application_updateWindows :: proc "c" (self: ^Application) {…}
application->updateWindows()
Application_windows ¶
Application_windows :: proc "c" (self: ^Application) -> ^Array {…}
windows := application->windows()
Application_windowsMenu ¶
Application_windowsMenu :: proc "c" (self: ^Application) -> ^Menu {…}
windowsMenu := application->windowsMenu()
Array_alloc ¶ class method owned
Array_initWithCoder ¶
Array_initWithCoder :: proc "c" (self: ^Array, coder: ^Coder) -> ^Array {…}
res := array->initWithCoder(coder)
Array_initWithObjects ¶
Array_initWithObjects :: proc "c" ( self: ^Array, objects: [^]^Object, count: UInteger, ) -> ^Array {…}
res := array->initWithObjects(objects, count)
AutoreleasePool_addObject ¶
AutoreleasePool_addObject :: proc "c" (self: ^AutoreleasePool, obj: ^Object) {…}
autoreleasePool->addObject(obj)
AutoreleasePool_alloc ¶ class method owned
AutoreleasePool_alloc :: proc "c" () -> ^AutoreleasePool {…}
autoreleasePool := AutoreleasePool.alloc()
AutoreleasePool_drain ¶
AutoreleasePool_drain :: proc "c" (self: ^AutoreleasePool) {…}
autoreleasePool->drain()
AutoreleasePool_init ¶
AutoreleasePool_init :: proc "c" (self: ^AutoreleasePool) -> ^AutoreleasePool {…}
res := autoreleasePool->init()
AutoreleasePool_showPools ¶
AutoreleasePool_showPools :: proc "c" (self: ^AutoreleasePool, obj: ^Object) {…}
autoreleasePool->showPools(obj)
BitmapImageRep_CGImage ¶
BitmapImageRep_CGImage :: proc "c" (self: ^BitmapImageRep) -> rawptr {…}
CGImage := bitmapImageRep->CGImage()
BitmapImageRep_alloc ¶ class method owned
BitmapImageRep_alloc :: proc "c" () -> ^BitmapImageRep {…}
bitmapImageRep := BitmapImageRep.alloc()
BitmapImageRep_bitmapData ¶
BitmapImageRep_bitmapData :: proc "c" (self: ^BitmapImageRep) -> rawptr {…}
bitmapData := bitmapImageRep->bitmapData()
BitmapImageRep_initWithBitmapDataPlanes_bitmapFormat ¶
BitmapImageRep_initWithBitmapDataPlanes_bitmapFormat :: proc "c" ( self: ^BitmapImageRep, bitmapDataPlanes: ^^u8, pixelsWide: Integer, pixelsHigh: Integer, bitsPerSample: Integer, samplesPerPixel: Integer, hasAlpha: bool, isPlanar: bool, colorSpaceName: ^String, bitmapFormat: bit_set[BitmapFormatFlag; BitmapInteger], bytesPerRow: Integer, bitsPerPixel: Integer, ) -> ^BitmapImageRep {…}
BitmapImageRep_initWithBitmapDataPlanes_legacy ¶
BitmapImageRep_initWithBitmapDataPlanes_legacy :: proc "c" ( self: ^BitmapImageRep, bitmapDataPlanes: ^^u8, pixelsWide: Integer, pixelsHigh: Integer, bitsPerSample: Integer, samplesPerPixel: Integer, hasAlpha: bool, isPlanar: bool, colorSpaceName: ^String, bytesPerRow: Integer, bitsPerPixel: Integer, ) -> ^BitmapImageRep {…}
Block_createGlobal ¶ class method
Block_createGlobal :: proc( user_data: rawptr, user_proc: proc "c" (user_data: rawptr), allocator := context.allocator, ) -> (^Block, runtime.Allocator_Error) #optional_ok {…}
res0, res1 := Block.createGlobal(user_data, user_proc, allocator)
Block_createGlobalWithParam ¶ class method
Block_createGlobalWithParam :: proc( user_data: rawptr, user_proc: proc "c" (user_data: rawptr, t: $T), allocator := context.allocator, ) -> (^Block, runtime.Allocator_Error) #optional_ok {…}
res0, res1 := Block.createGlobalWithParam(user_data, user_proc, allocator)
Block_createLocal ¶ class method
Block_createLocal :: proc( user_data: rawptr, user_proc: proc "c" (user_data: rawptr), ) -> ^Block {…}
block := Block.createLocal(user_data, user_proc)
Block_createLocalWithParam ¶ class method
Block_createLocalWithParam :: proc( user_data: rawptr, user_proc: proc "c" (user_data: rawptr, t: $T), ) -> ^Block {…}
block := Block.createLocalWithParam(user_data, user_proc)
Bundle_PathForAuxiliaryExecutable ¶
Bundle_PathForAuxiliaryExecutable :: proc "c" ( self: ^Bundle, executableName: ^String, ) -> ^String {…}
str := bundle->PathForAuxiliaryExecutable(executableName)
Bundle_URLForAuxiliaryExecutable ¶
Bundle_URLForAuxiliaryExecutable :: proc "c" (self: ^Bundle, executableName: ^String) -> ^URL {…}
url := bundle->URLForAuxiliaryExecutable(executableName)
Bundle_allBundles ¶
Bundle_allBundles :: proc "c" () -> (all: ^Array) {…}
all := bundle->allBundles()
Bundle_allFrameworks ¶
Bundle_allFrameworks :: proc "c" () -> (all: ^Array) {…}
all := bundle->allFrameworks()
Bundle_alloc ¶ class method owned
Bundle_appStoreReceiptPath ¶
Bundle_appStoreReceiptPath :: proc "c" (self: ^Bundle) -> ^String {…}
appStoreReceiptPath := bundle->appStoreReceiptPath()
Bundle_appStoreReceiptURL ¶
Bundle_appStoreReceiptURL :: proc "c" (self: ^Bundle) -> ^URL {…}
appStoreReceiptURL := bundle->appStoreReceiptURL()
Bundle_builtInPlugInsPath ¶
Bundle_builtInPlugInsPath :: proc "c" (self: ^Bundle) -> ^String {…}
builtInPlugInsPath := bundle->builtInPlugInsPath()
Bundle_builtInPlugInsURL ¶
Bundle_builtInPlugInsURL :: proc "c" (self: ^Bundle) -> ^URL {…}
builtInPlugInsURL := bundle->builtInPlugInsURL()
Bundle_bundleIdentifier ¶
Bundle_bundleIdentifier :: proc "c" (self: ^Bundle) -> ^String {…}
bundleIdentifier := bundle->bundleIdentifier()
Bundle_bundlePath ¶
Bundle_bundlePath :: proc "c" (self: ^Bundle) -> ^String {…}
bundlePath := bundle->bundlePath()
Bundle_bundleWithPath ¶ class method
Bundle_bundleWithPath :: proc "c" (path: ^String) -> ^Bundle {…}
bundle := Bundle.bundleWithPath(path)
Bundle_bundleWithURL ¶ class method
Bundle_bundleWithURL :: proc "c" (url: ^URL) -> ^Bundle {…}
bundle := Bundle.bundleWithURL(url)
Bundle_executablePath ¶
Bundle_executablePath :: proc "c" (self: ^Bundle) -> ^String {…}
executablePath := bundle->executablePath()
Bundle_executableURL ¶
Bundle_executableURL :: proc "c" (self: ^Bundle) -> ^URL {…}
executableURL := bundle->executableURL()
Bundle_infoDictionary ¶
Bundle_infoDictionary :: proc "c" (self: ^Bundle) -> ^Dictionary {…}
infoDictionary := bundle->infoDictionary()
Bundle_initWithPath ¶
Bundle_initWithPath :: proc "c" (self: ^Bundle, path: ^String) -> ^Bundle {…}
res := bundle->initWithPath(path)
Bundle_initWithURL ¶
Bundle_initWithURL :: proc "c" (self: ^Bundle, url: ^URL) -> ^Bundle {…}
res := bundle->initWithURL(url)
Bundle_loadAndReturnError ¶
Bundle_loadAndReturnError :: proc "contextless" (self: ^Bundle) -> (ok: bool, error: ^Error) {…}
ok, error := bundle->loadAndReturnError()
Bundle_localizedInfoDictionary ¶
Bundle_localizedInfoDictionary :: proc "c" (self: ^Bundle) -> ^Dictionary {…}
localizedInfoDictionary := bundle->localizedInfoDictionary()
Bundle_mainBundle ¶ class method
Bundle_mainBundle :: proc "c" () -> ^Bundle {…}
bundle := Bundle.mainBundle()
Bundle_objectForInfoDictionaryKey ¶
Bundle_objectForInfoDictionaryKey :: proc "c" (self: ^Bundle, key: ^String) -> ^Object {…}
object := bundle->objectForInfoDictionaryKey(key)
Bundle_preflightAndReturnError ¶
Bundle_preflightAndReturnError :: proc "contextless" (self: ^Bundle) -> (ok: bool, error: ^Error) {…}
ok, error := bundle->preflightAndReturnError()
Bundle_privateFrameworksPath ¶
Bundle_privateFrameworksPath :: proc "c" (self: ^Bundle) -> ^String {…}
privateFrameworksPath := bundle->privateFrameworksPath()
Bundle_privateFrameworksURL ¶
Bundle_privateFrameworksURL :: proc "c" (self: ^Bundle) -> ^URL {…}
privateFrameworksURL := bundle->privateFrameworksURL()
Bundle_resourcePath ¶
Bundle_resourcePath :: proc "c" (self: ^Bundle) -> ^String {…}
resourcePath := bundle->resourcePath()
Bundle_resourceURL ¶
Bundle_resourceURL :: proc "c" (self: ^Bundle) -> ^URL {…}
resourceURL := bundle->resourceURL()
Bundle_sharedFrameworksPath ¶
Bundle_sharedFrameworksPath :: proc "c" (self: ^Bundle) -> ^String {…}
sharedFrameworksPath := bundle->sharedFrameworksPath()
Bundle_sharedFrameworksURL ¶
Bundle_sharedFrameworksURL :: proc "c" (self: ^Bundle) -> ^URL {…}
sharedFrameworksURL := bundle->sharedFrameworksURL()
Bundle_sharedSupportPath ¶
Bundle_sharedSupportPath :: proc "c" (self: ^Bundle) -> ^String {…}
sharedSupportPath := bundle->sharedSupportPath()
Bundle_sharedSupportURL ¶
Bundle_sharedSupportURL :: proc "c" (self: ^Bundle) -> ^URL {…}
sharedSupportURL := bundle->sharedSupportURL()
ClassFromString ¶C · NSClassFromStringSource · NSString.odin:62
ClassFromString :: proc "c" (str: ^String) -> ^intrinsics.objc_class ---
Color_blackColor ¶ class method
Color_blackColor :: proc "c" () -> ^Color {…}
color := Color.blackColor()
Color_blueColor ¶ class method
Color_colorSpace ¶
Color_colorSpace :: proc "c" (self: ^Color) -> ^ColorSpace {…}
colorSpace := color->colorSpace()
Color_colorSpaceName ¶
Color_colorSpaceName :: proc "c" (self: ^Color) -> ^String {…}
colorSpaceName := color->colorSpaceName()
Color_colorUsingColorSpaceName ¶
Color_colorUsingColorSpaceName :: proc "c" ( self: ^Color, colorSpace: ^String, device: ^Dictionary = nil, ) -> ^Color {…}
res := color->colorUsingColorSpaceName(colorSpace, device)
Color_colorWithCalibratedHue ¶ class method
Color_colorWithCalibratedHue :: proc "c" ( hue, saturation, brightness, alpha: CoreFoundation.CGFloat, ) -> ^Color {…}
color := Color.colorWithCalibratedHue(hue, saturation, brightness, alpha)
Color_colorWithCalibratedRed ¶ class method
Color_colorWithCalibratedRed :: proc "c" ( red, green, blue, alpha: CoreFoundation.CGFloat, ) -> ^Color {…}
color := Color.colorWithCalibratedRed(red, green, blue, alpha)
Color_colorWithCalibratedWhite ¶ class method
Color_colorWithCalibratedWhite :: proc "c" (white, alpha: CoreFoundation.CGFloat) -> ^Color {…}
color := Color.colorWithCalibratedWhite(white, alpha)
Color_colorWithColorSpace ¶ class method
Color_colorWithColorSpace :: proc "c" ( space: ^ColorSpace, components: []CoreFoundation.CGFloat, ) -> ^Color {…}
color := Color.colorWithColorSpace(space, components)
Color_colorWithDeviceCyan ¶ class method
Color_colorWithDeviceCyan :: proc "c" ( cyan, magenta, yellow, black, alpha: CoreFoundation.CGFloat, ) -> ^Color {…}
color := Color.colorWithDeviceCyan(cyan, magenta, yellow, black, alpha)
Color_colorWithDeviceHue ¶ class method
Color_colorWithDeviceHue :: proc "c" ( hue, saturation, brightness, alpha: CoreFoundation.CGFloat, ) -> ^Color {…}
color := Color.colorWithDeviceHue(hue, saturation, brightness, alpha)
Color_colorWithDeviceRed ¶ class method
Color_colorWithDeviceRed :: proc "c" ( red, green, blue, alpha: CoreFoundation.CGFloat, ) -> ^Color {…}
color := Color.colorWithDeviceRed(red, green, blue, alpha)
Color_colorWithDeviceWhite ¶ class method
Color_colorWithDeviceWhite :: proc "c" (white, alpha: CoreFoundation.CGFloat) -> ^Color {…}
color := Color.colorWithDeviceWhite(white, alpha)
Color_colorWithSRGBRed ¶ class method
Color_colorWithSRGBRed :: proc "c" (red, green, blue, alpha: CoreFoundation.CGFloat) -> ^Color {…}
color := Color.colorWithSRGBRed(red, green, blue, alpha)
Color_cyanColor ¶ class method
Color_getComponents ¶
Color_getComponents :: proc "c" (self: ^Color, components: [^]CoreFoundation.CGFloat) {…}
color->getComponents(components)
Color_getWhiteAlpha ¶
Color_getWhiteAlpha :: proc "c" (self: ^Color) -> (white, alpha: CoreFoundation.CGFloat) {…}
white, alpha := color->getWhiteAlpha()
Color_greenColor ¶ class method
Color_greenColor :: proc "c" () -> ^Color {…}
color := Color.greenColor()
Color_magentaColor ¶ class method
Color_magentaColor :: proc "c" () -> ^Color {…}
color := Color.magentaColor()
Color_numberOfComponents ¶
Color_numberOfComponents :: proc "c" (self: ^Color) -> Integer {…}
numberOfComponents := color->numberOfComponents()
Color_orangeColor ¶ class method
Color_orangeColor :: proc "c" () -> ^Color {…}
color := Color.orangeColor()
Color_purpleColor ¶ class method
Color_purpleColor :: proc "c" () -> ^Color {…}
color := Color.purpleColor()
Color_redColor ¶ class method
Color_whiteColor ¶ class method
Color_whiteColor :: proc "c" () -> ^Color {…}
color := Color.whiteColor()
Color_yellowColor ¶ class method
Color_yellowColor :: proc "c" () -> ^Color {…}
color := Color.yellowColor()
Condition_alloc ¶ class method owned
Condition_waitUntilDate ¶
Condition_waitUntilDate :: proc "c" (self: ^Condition, limit: ^Date) -> bool {…}
res := condition->waitUntilDate(limit)
Cursor_IBeamCursor ¶ class method
Cursor_IBeamCursor :: proc "c" () -> ^Cursor {…}
cursor := Cursor.IBeamCursor()
Cursor_alloc ¶ class method owned
Cursor_arrowCursor ¶ class method
Cursor_arrowCursor :: proc "c" () -> ^Cursor {…}
cursor := Cursor.arrowCursor()
Cursor_currentCursor ¶ class method
Cursor_currentCursor :: proc "c" () -> ^Cursor {…}
cursor := Cursor.currentCursor()
Cursor_hide ¶ class method
Cursor_initWithImage ¶
Cursor_initWithImage :: proc "c" ( self: ^Cursor, image: ^Image, hotSpot: CoreFoundation.CGPoint, ) -> ^Cursor {…}
res := cursor->initWithImage(image, hotSpot)
Cursor_pointingHandCursor ¶ class method
Cursor_pointingHandCursor :: proc "c" () -> ^Cursor {…}
cursor := Cursor.pointingHandCursor()
Cursor_setHiddenUntilMouseMoves ¶ class method
Cursor_setHiddenUntilMouseMoves :: proc(flag: bool) {…}
Cursor.setHiddenUntilMouseMoves(flag)
Cursor_unhide ¶ class method
Data_alloc ¶ class method owned
Data_initWithBytes ¶
Data_initWithBytes :: proc "c" (self: ^Data, bytes: []u8) -> ^Data {…}
res := data->initWithBytes(bytes)
Data_initWithBytesNoCopy ¶
Data_initWithBytesNoCopy :: proc "c" (self: ^Data, bytes: []u8, freeWhenDone: bool) -> ^Data {…}
res := data->initWithBytesNoCopy(bytes, freeWhenDone)
Data_mutableBytes ¶
Data_mutableBytes :: proc "c" (self: ^Data) -> rawptr {…}
mutableBytes := data->mutableBytes()
Date_alloc ¶ class method owned
Date_dateWithTimeIntervalSinceNow ¶
Date_dateWithTimeIntervalSinceNow :: proc "c" (secs: TimeInterval) -> ^Date {…}
dateWithTimeIntervalSinceNow := date->dateWithTimeIntervalSinceNow()
Date_distantFuture ¶ class method
Date_distantFuture :: proc "c" () -> ^Date {…}
date := Date.distantFuture()
Date_distantPast ¶ class method
Date_distantPast :: proc "c" () -> ^Date {…}
date := Date.distantPast()
Date_timeIntervalSince1970 ¶
Date_timeIntervalSince1970 :: proc "c" (self: ^Date) -> f64 {…}
timeIntervalSince1970 := date->timeIntervalSince1970()
DeallocateObject ¶C · NSDeallocateObjectSource · objc.odin:102
DeallocateObject :: proc "c" (object: ^intrinsics.objc_object) ---
Dictionary_alloc ¶ class method owned
Dictionary_alloc :: proc "c" () -> ^Dictionary {…}
dictionary := Dictionary.alloc()
Dictionary_count ¶
Dictionary_count :: proc "c" (self: ^Dictionary) -> UInteger {…}
count := dictionary->count()
Dictionary_dictionary ¶ class method
Dictionary_dictionary :: proc "c" () -> ^Dictionary {…}
dictionary := Dictionary.dictionary()
Dictionary_dictionaryWithObject ¶ class method
Dictionary_dictionaryWithObject :: proc "c" (object: ^Object, forKey: ^Object) -> ^Dictionary {…}
dictionary := Dictionary.dictionaryWithObject(object, forKey)
Dictionary_dictionaryWithObjects ¶ class method
Dictionary_dictionaryWithObjects :: proc "c" ( objects: [^]^Object, forKeys: [^]^Object, count: UInteger, ) -> ^Dictionary {…}
dictionary := Dictionary.dictionaryWithObjects(objects, forKeys, count)
Dictionary_init ¶
Dictionary_init :: proc "c" (self: ^Dictionary) -> ^Dictionary {…}
res := dictionary->init()
Dictionary_initWithObjects ¶
Dictionary_initWithObjects :: proc "c" ( self: ^Dictionary, objects: [^]^Object, forKeys: [^]^Object, count: UInteger, ) -> ^Dictionary {…}
res := dictionary->initWithObjects(objects, forKeys, count)
Dictionary_keyEnumerator ¶
Dictionary_keyEnumerator :: proc "c" ( self: ^Dictionary, $KeyType: typeid, ) -> (enumerator: ^Enumerator(KeyType)) {…}
enumerator := dictionary->keyEnumerator(KeyType)
Dictionary_objectForKey ¶
Dictionary_objectForKey :: proc "c" (self: ^Dictionary, key: ^Object) -> ^Object {…}
object := dictionary->objectForKey(key)
Enumerator_allObjects ¶
Enumerator_allObjects :: proc "c" (self: ^$E/Enumerator($T)) -> (all: ^Array) {…}
Enumerator_iterator ¶
Enumerator_iterator :: proc "contextless" (self: ^$E/Enumerator($T)) -> (obj: T, ok: bool) {…}
Enumerator_nextObject ¶
Enumerator_nextObject :: proc "c" (self: ^$E/Enumerator($T)) -> T {…}
Error_alloc ¶ class method owned
Error_errorWithDomain ¶ class method
Error_errorWithDomain :: proc "c" ( domain: ^String, code: Integer, userInfo: ^Dictionary, ) -> ^Error {…}
error := Error.errorWithDomain(domain, code, userInfo)
Error_initWithDomain ¶
Error_initWithDomain :: proc "c" ( self: ^Error, domain: ^String, code: Integer, userInfo: ^Dictionary, ) -> ^Error {…}
res := error->initWithDomain(domain, code, userInfo)
Error_localizedDescription ¶
Error_localizedDescription :: proc "c" (self: ^Error) -> ^String {…}
localizedDescription := error->localizedDescription()
Error_localizedFailureReason ¶
Error_localizedFailureReason :: proc "c" (self: ^Error) -> ^String {…}
localizedFailureReason := error->localizedFailureReason()
Error_localizedRecoveryOptions ¶
Error_localizedRecoveryOptions :: proc "c" (self: ^Error) -> (options: ^Array) {…}
options := error->localizedRecoveryOptions()
Error_localizedRecoverySuggestion ¶
Error_localizedRecoverySuggestion :: proc "c" (self: ^Error) -> ^String {…}
localizedRecoverySuggestion := error->localizedRecoverySuggestion()
Error_userInfo ¶
Error_userInfo :: proc "c" (self: ^Error) -> ^Dictionary {…}
userInfo := error->userInfo()
Event_buttonMask ¶
Event_buttonMask :: proc "c" (self: ^Event) -> UInteger {…}
buttonMask := event->buttonMask()
Event_buttonNumber ¶
Event_buttonNumber :: proc "c" (self: ^Event) -> Integer {…}
buttonNumber := event->buttonNumber()
for NSOtherMouse events, but will return valid constants for NSLeftMouse and NSRightMouse
Event_capabilityMask ¶
Event_capabilityMask :: proc "c" (self: ^Event) -> UInteger {…}
capabilityMask := event->capabilityMask()
Event_characters ¶
Event_characters :: proc "c" (self: ^Event) -> ^String {…}
characters := event->characters()
Event_charactersIgnoringModifiers ¶
Event_charactersIgnoringModifiers :: proc "c" (self: ^Event) -> ^String {…}
charactersIgnoringModifiers := event->charactersIgnoringModifiers()
Event_clickCount ¶
Event_clickCount :: proc "c" (self: ^Event) -> Integer {…}
clickCount := event->clickCount()
Event_eventNumber ¶
Event_eventNumber :: proc "c" (self: ^Event) -> Integer {…}
eventNumber := event->eventNumber()
these messages are valid for all mouse down/up/drag and enter/exit events
Event_hasPreciseScrollingDeltas ¶
Event_hasPreciseScrollingDeltas :: proc "c" (self: ^Event) -> bool {…}
hasPreciseScrollingDeltas := event->hasPreciseScrollingDeltas()
Event_isDirectionInvertedFromDevice ¶
Event_isDirectionInvertedFromDevice :: proc "c" (self: ^Event) -> bool {…}
isDirectionInvertedFromDevice := event->isDirectionInvertedFromDevice()
Event_isEnteringProximity ¶
Event_isEnteringProximity :: proc "c" (self: ^Event) -> bool {…}
isEnteringProximity := event->isEnteringProximity()
Event_isSwipeTrackingFromScrollEventsEnabled ¶
Event_isSwipeTrackingFromScrollEventsEnabled :: proc "c" (self: ^Event) -> bool {…}
isSwipeTrackingFromScrollEventsEnabled := event->isSwipeTrackingFromScrollEventsEnabled()
Event_locationInWindow ¶
Event_locationInWindow :: proc "c" (self: ^Event) -> CoreFoundation.CGPoint {…}
locationInWindow := event->locationInWindow()
-locationInWindow is valid for all mouse-related events
Event_modifierFlags ¶
Event_modifierFlags :: proc "c" (self: ^Event) -> EventModifierFlags {…}
modifierFlags := event->modifierFlags()
Event_momentumPhase ¶
Event_momentumPhase :: proc "c" (self: ^Event) -> EventPhase {…}
momentumPhase := event->momentumPhase()
Event_mouseLocation ¶ class method
Event_mouseLocation :: proc "c" () -> CoreFoundation.CGPoint {…}
cgPoint := Event.mouseLocation()
Event_otherEventWithType ¶ class method
Event_otherEventWithType :: proc "c" ( type: EventType, location: CoreFoundation.CGPoint, flags: EventModifierFlags, time: TimeInterval, window_number: Integer, ctx: ^intrinsics.objc_object, subtype: i16, data1: Integer, data2: Integer, ) -> ^Event {…}
event := Event.otherEventWithType( type, location, flags, time, window_number, ctx, subtype, data1, data2, )
Event_phase ¶
Event_phase :: proc "c" (self: ^Event) -> EventPhase {…}
phase := event->phase()
Event_pointingDeviceID ¶
Event_pointingDeviceID :: proc "c" (self: ^Event) -> UInteger {…}
pointingDeviceID := event->pointingDeviceID()
Event_pointingDeviceSerialNumber ¶
Event_pointingDeviceSerialNumber :: proc "c" (self: ^Event) -> UInteger {…}
pointingDeviceSerialNumber := event->pointingDeviceSerialNumber()
Event_pointingDeviceType ¶
Event_pointingDeviceType :: proc "c" (self: ^Event) -> PointingDeviceType {…}
pointingDeviceType := event->pointingDeviceType()
Event_pressure ¶
-pressure is valid for all mouse down/up/drag events, and is also valid for NSTabletPoint events on 10.4 or later
Event_scrollingDelta ¶
Event_scrollingDelta :: proc "c" (self: ^Event) -> (x, y: CoreFoundation.CGFloat) {…}
x, y := event->scrollingDelta()
Event_scrollingDeltaX ¶
Event_scrollingDeltaX :: proc "c" (self: ^Event) -> CoreFoundation.CGFloat {…}
scrollingDeltaX := event->scrollingDeltaX()
Event_scrollingDeltaY ¶
Event_scrollingDeltaY :: proc "c" (self: ^Event) -> CoreFoundation.CGFloat {…}
scrollingDeltaY := event->scrollingDeltaY()
Event_systemTabletID ¶
Event_systemTabletID :: proc "c" (self: ^Event) -> UInteger {…}
systemTabletID := event->systemTabletID()
Event_tangentialPressure ¶
Event_tangentialPressure :: proc "c" (self: ^Event) -> f32 {…}
tangentialPressure := event->tangentialPressure()
Event_timestamp ¶
Event_timestamp :: proc "c" (self: ^Event) -> TimeInterval {…}
timestamp := event->timestamp()
Event_vendorDefined ¶
Event_vendorDefined :: proc "c" (self: ^Event) -> ^intrinsics.objc_object {…}
vendorDefined := event->vendorDefined()
Event_vendorPointingDeviceType ¶
Event_vendorPointingDeviceType :: proc "c" (self: ^Event) -> UInteger {…}
vendorPointingDeviceType := event->vendorPointingDeviceType()
Event_windowNumber ¶
Event_windowNumber :: proc "c" (self: ^Event) -> UInteger {…}
windowNumber := event->windowNumber()
FastEnumeration_alloc ¶ class method owned
FastEnumeration_alloc :: proc "c" () -> ^FastEnumeration {…}
fastEnumeration := FastEnumeration.alloc()
FastEnumeration_countByEnumerating ¶
FastEnumeration_countByEnumerating :: proc "c" ( self: ^FastEnumeration, state: ^FastEnumerationState, buffer: [^]^Object, len: UInteger, ) -> UInteger {…}
uInteger := fastEnumeration->countByEnumerating(state, buffer, len)
FastEnumeration_init ¶
FastEnumeration_init :: proc "c" (self: ^FastEnumeration) -> ^FastEnumeration {…}
res := fastEnumeration->init()
Image_addRepresentation ¶
Image_addRepresentation :: proc(self: ^Image, rep: ^ImageRep) {…}
image->addRepresentation(rep)
Image_alloc ¶ class method owned
Image_initWithSize ¶
Image_initWithSize :: proc "c" (self: ^Image, size: CoreFoundation.CGSize) -> ^Image {…}
res := image->initWithSize(size)
Layer_addSublayer ¶
Layer_addSublayer :: proc "c" (self: ^Layer, layer: ^Layer) {…}
layer->addSublayer(layer)
Layer_contentsScale ¶
Layer_contentsScale :: proc "c" (self: ^Layer) -> CoreFoundation.CGFloat {…}
contentsScale := layer->contentsScale()
Layer_setContents ¶
Layer_setContents :: proc "c" (self: ^Layer, contents: rawptr) {…}
layer->setContents(contents)
Layer_setContentsScale ¶
Layer_setContentsScale :: proc "c" (self: ^Layer, scale: CoreFoundation.CGFloat) {…}
layer->setContentsScale(scale)
Layer_setPosition ¶
Layer_setPosition :: proc "c" (self: ^Layer, position: CoreFoundation.CGPoint) {…}
layer->setPosition(position)
Locking_lock ¶
Locking_lock :: proc "c" (self: ^Locking($T)) {…}
Locking_unlock ¶
Locking_unlock :: proc "c" (self: ^Locking($T)) {…}
MakeConstantString ¶
CFString is 'toll-free bridged' with its Cocoa Foundation counterpart, NSString.
External examples metal/learn_metal/02-argbuffers-no-sdl
MenuDelegate_confinementRectForMenu ¶
MenuDelegate_confinementRectForMenu :: proc "c" ( self: ^MenuDelegate, menu: ^Menu, screen: ^Screen, ) -> CoreFoundation.CGRect {…}
cgRect := menuDelegate->confinementRectForMenu(menu, screen)
MenuDelegate_menuDidClose ¶
MenuDelegate_menuDidClose :: proc "c" (self: ^MenuDelegate, menu: ^Menu) {…}
menuDelegate->menuDidClose(menu)
MenuDelegate_menuHasKeyEquivalent ¶
MenuDelegate_menuHasKeyEquivalent :: proc "c" ( self: ^MenuDelegate, menu: ^Menu, event: ^Event, target: ^^intrinsics.objc_object, action: ^^intrinsics.objc_selector, ) -> bool {…}
res := menuDelegate->menuHasKeyEquivalent(menu, event, target, action)
MenuDelegate_menuNeedsUpdate ¶
MenuDelegate_menuNeedsUpdate :: proc "c" (self: ^MenuDelegate, menu: ^Menu) {…}
menuDelegate->menuNeedsUpdate(menu)
MenuDelegate_menuWillOpen ¶
MenuDelegate_menuWillOpen :: proc "c" (self: ^MenuDelegate, menu: ^Menu) {…}
menuDelegate->menuWillOpen(menu)
MenuDelegate_menu_updateItem_atIndex_shouldCancel ¶
MenuDelegate_menu_updateItem_atIndex_shouldCancel :: proc "c" ( self: ^MenuDelegate, menu: ^Menu, item: ^MenuItem, index: Integer, shouldCancel: bool, ) -> bool {…}
res := menuDelegate->menu_updateItem_atIndex_shouldCancel(menu, item, index, shouldCancel)
MenuDelegate_menu_willHighlightItem ¶
MenuDelegate_menu_willHighlightItem :: proc "c" ( self: ^MenuDelegate, menu: ^Menu, item: ^MenuItem, ) {…}
menuDelegate->menu_willHighlightItem(menu, item)
MenuDelegate_numberOfItemsInMenu ¶
MenuDelegate_numberOfItemsInMenu :: proc "c" (self: ^MenuDelegate, menu: ^Menu) -> Integer {…}
integer := menuDelegate->numberOfItemsInMenu(menu)
MenuItem_accessInstanceVariablesDirectly ¶ class method
MenuItem_accessInstanceVariablesDirectly :: proc "c" () -> bool {…}
res := MenuItem.accessInstanceVariablesDirectly()
MenuItem_action ¶
MenuItem_action :: proc "c" (self: ^MenuItem) -> ^intrinsics.objc_selector {…}
action := menuItem->action()
MenuItem_alloc ¶ class method owned
MenuItem_allocWithZone ¶ class method owned
MenuItem_allocWithZone :: proc "c" (zone: ^Zone) -> ^MenuItem {…}
menuItem := MenuItem.allocWithZone(zone)
MenuItem_allowsAutomaticKeyEquivalentLocalization ¶
MenuItem_allowsAutomaticKeyEquivalentLocalization :: proc "c" (self: ^MenuItem) -> bool {…}
allowsAutomaticKeyEquivalentLocalization := menuItem->allowsAutomaticKeyEquivalentLocalization()
MenuItem_allowsAutomaticKeyEquivalentMirroring ¶
MenuItem_allowsAutomaticKeyEquivalentMirroring :: proc "c" (self: ^MenuItem) -> bool {…}
allowsAutomaticKeyEquivalentMirroring := menuItem->allowsAutomaticKeyEquivalentMirroring()
MenuItem_allowsKeyEquivalentWhenHidden ¶
MenuItem_allowsKeyEquivalentWhenHidden :: proc "c" (self: ^MenuItem) -> bool {…}
allowsKeyEquivalentWhenHidden := menuItem->allowsKeyEquivalentWhenHidden()
MenuItem_automaticallyNotifiesObserversForKey ¶ class method
MenuItem_automaticallyNotifiesObserversForKey :: proc "c" (key: ^String) -> bool {…}
res := MenuItem.automaticallyNotifiesObserversForKey(key)
MenuItem_cancelPreviousPerformRequestsWithTarget_ ¶ class method
MenuItem_cancelPreviousPerformRequestsWithTarget_ :: proc "c" (aTarget: ^intrinsics.objc_object) {…}
MenuItem.cancelPreviousPerformRequestsWithTarget_(aTarget)
MenuItem_cancelPreviousPerformRequestsWithTarget_selector_object ¶ class method
MenuItem_cancelPreviousPerformRequestsWithTarget_selector_object :: proc "c" ( aTarget: ^intrinsics.objc_object, aSelector: ^intrinsics.objc_selector, anArgument: ^intrinsics.objc_object, ) {…}
MenuItem.cancelPreviousPerformRequestsWithTarget_selector_object(aTarget, aSelector, anArgument)
MenuItem_class ¶ class method
MenuItem_class :: proc "c" () -> ^intrinsics.objc_class {…}
res := MenuItem.class()
MenuItem_classFallbacksForKeyedArchiver ¶ class method
MenuItem_classFallbacksForKeyedArchiver :: proc "c" () -> ^Array {…}
array := MenuItem.classFallbacksForKeyedArchiver()
MenuItem_classForKeyedUnarchiver ¶ class method
MenuItem_classForKeyedUnarchiver :: proc "c" () -> ^intrinsics.objc_class {…}
res := MenuItem.classForKeyedUnarchiver()
MenuItem_conformsToProtocol ¶ class method
MenuItem_conformsToProtocol :: proc "c" (protocol: ^Protocol) -> bool {…}
res := MenuItem.conformsToProtocol(protocol)
MenuItem_copyWithZone ¶ class method owned
MenuItem_copyWithZone :: proc "c" (zone: ^Zone) -> ^intrinsics.objc_object {…}
res := MenuItem.copyWithZone(zone)
MenuItem_debugDescription ¶ class method
MenuItem_debugDescription :: proc "c" () -> ^String {…}
str := MenuItem.debugDescription()
MenuItem_defaultPlaceholderForMarker ¶ class method
MenuItem_defaultPlaceholderForMarker :: proc "c" ( marker: ^intrinsics.objc_object, binding: ^String, ) -> ^intrinsics.objc_object {…}
res := MenuItem.defaultPlaceholderForMarker(marker, binding)
MenuItem_description ¶ class method
MenuItem_description :: proc "c" () -> ^String {…}
str := MenuItem.description()
MenuItem_exposeBinding ¶ class method
MenuItem_exposeBinding :: proc "c" (binding: ^String) {…}
MenuItem.exposeBinding(binding)
MenuItem_hasSubmenu ¶
MenuItem_hasSubmenu :: proc "c" (self: ^MenuItem) -> bool {…}
hasSubmenu := menuItem->hasSubmenu()
MenuItem_hash ¶ class method
MenuItem_indentationLevel ¶
MenuItem_indentationLevel :: proc "c" (self: ^MenuItem) -> Integer {…}
indentationLevel := menuItem->indentationLevel()
MenuItem_initWithCoder ¶
MenuItem_initWithCoder :: proc "c" (self: ^MenuItem, coder: ^Coder) -> ^MenuItem {…}
res := menuItem->initWithCoder(coder)
MenuItem_initWithTitle ¶
MenuItem_initWithTitle :: proc "c" ( self: ^MenuItem, string: ^String, selector: ^intrinsics.objc_selector, charCode: ^String, ) -> ^MenuItem {…}
res := menuItem->initWithTitle(string, selector, charCode)
MenuItem_initialize ¶ class method
MenuItem_initialize :: proc "c" () {…}
MenuItem.initialize()
MenuItem_instanceMethodForSelector ¶ class method
MenuItem_instanceMethodForSelector :: proc "c" (aSelector: ^intrinsics.objc_selector) -> IMP {…}
imp := MenuItem.instanceMethodForSelector(aSelector)
MenuItem_instancesRespondToSelector ¶ class method
MenuItem_instancesRespondToSelector :: proc "c" (aSelector: ^intrinsics.objc_selector) -> bool {…}
res := MenuItem.instancesRespondToSelector(aSelector)
MenuItem_isAlternate ¶
MenuItem_isAlternate :: proc "c" (self: ^MenuItem) -> bool {…}
isAlternate := menuItem->isAlternate()
MenuItem_isEnabled ¶
MenuItem_image :: #force_inline proc "c" (self: ^MenuItem) -> ^Image {
return msgSend(^Image, self, "image")
} MenuItem_setImage :: #force_inline proc "c" (self: ^MenuItem, image: ^Image) {
msgSend(nil, self, "setImage:", image)
} MenuItem_state :: #force_inline proc "c" (self: ^MenuItem) -> ControlStateValue {
return msgSend(ControlStateValue, self, "state")
} MenuItem_setState :: #force_inline proc "c" (self: ^MenuItem, state: ControlStateValue) {
msgSend(nil, self, "setState:", state)
} MenuItem_onStateImage :: #force_inline proc "c" (self: ^MenuItem) -> ^Image {
return msgSend(^Image, self, "onStateImage")
} MenuItem_setOnStateImage :: #force_inline proc "c" (self: ^MenuItem, onStateImage: ^Image) {
msgSend(nil, self, "setOnStateImage:", onStateImage)
} MenuItem_offStateImage :: #force_inline proc "c" (self: ^MenuItem) -> ^Image {
return msgSend(^Image, self, "offStateImage")
} MenuItem_setOffStateImage :: #force_inline proc "c" (self: ^MenuItem, offStateImage: ^Image) {
msgSend(nil, self, "setOffStateImage:", offStateImage)
} MenuItem_mixedStateImage :: #force_inline proc "c" (self: ^MenuItem) -> ^Image {
return msgSend(^Image, self, "mixedStateImage")
} MenuItem_setMixedStateImage :: #force_inline proc "c" (self: ^MenuItem, mixedStateImage: ^Image) {
msgSend(nil, self, "setMixedStateImage:", mixedStateImage)
}
MenuItem_isHiddenOrHasHiddenAncestor ¶
MenuItem_isHiddenOrHasHiddenAncestor :: proc "c" (self: ^MenuItem) -> bool {…}
isHiddenOrHasHiddenAncestor := menuItem->isHiddenOrHasHiddenAncestor()
MenuItem_isHighlighted ¶
MenuItem_isHighlighted :: proc "c" (self: ^MenuItem) -> bool {…}
isHighlighted := menuItem->isHighlighted()
MenuItem_isSectionHeader ¶
MenuItem_isSectionHeader :: proc "c" (self: ^MenuItem) -> bool {…}
isSectionHeader := menuItem->isSectionHeader()
MenuItem_isSeparatorItem ¶
MenuItem_isSeparatorItem :: proc "c" (self: ^MenuItem) -> bool {…}
isSeparatorItem := menuItem->isSeparatorItem()
MenuItem_isSubclassOfClass ¶ class method
MenuItem_isSubclassOfClass :: proc "c" (aClass: ^intrinsics.objc_class) -> bool {…}
res := MenuItem.isSubclassOfClass(aClass)
MenuItem_instanceMethodSignatureForSelector :: #force_inline proc "c" (aSelector: SEL) -> ^MethodSignature {
return msgSend(^MethodSignature, MenuItem, "instanceMethodSignatureForSelector:", aSelector)
}
MenuItem_keyEquivalent ¶
MenuItem_keyEquivalent :: proc "c" (self: ^MenuItem) -> ^String {…}
keyEquivalent := menuItem->keyEquivalent()
MenuItem_keyEquivalentModifierMask ¶
MenuItem_keyEquivalentModifierMask :: proc "c" (self: ^MenuItem) -> EventModifierFlags {…}
keyEquivalentModifierMask := menuItem->keyEquivalentModifierMask()
MenuItem_keyPathsForValuesAffectingValueForKey ¶ class method
MenuItem_keyPathsForValuesAffectingValueForKey :: proc "c" (key: ^String) -> ^Set {…}
set := MenuItem.keyPathsForValuesAffectingValueForKey(key)
MenuItem_load ¶ class method
MenuItem_mnemonicLocation ¶
MenuItem_mnemonicLocation :: proc "c" (self: ^MenuItem) -> UInteger {…}
mnemonicLocation := menuItem->mnemonicLocation()
MenuItem_mutableCopyWithZone ¶ class method owned
MenuItem_mutableCopyWithZone :: proc "c" (zone: ^Zone) -> ^intrinsics.objc_object {…}
res := MenuItem.mutableCopyWithZone(zone)
MenuItem_new ¶ class method owned
MenuItem_parentItem ¶
MenuItem_parentItem :: proc "c" (self: ^MenuItem) -> ^MenuItem {…}
parentItem := menuItem->parentItem()
MenuItem_poseAsClass ¶ class method
MenuItem_poseAsClass :: proc "c" (aClass: ^intrinsics.objc_class) {…}
MenuItem.poseAsClass(aClass)
MenuItem_registerActionCallback ¶ class method
MenuItem_registerActionCallback :: proc "c" ( name: cstring, callback: MenuItemCallback, ) -> ^intrinsics.objc_selector {…}
res := MenuItem.registerActionCallback(name, callback)
MenuItem_representedObject ¶
MenuItem_representedObject :: proc "c" (self: ^MenuItem) -> ^intrinsics.objc_object {…}
representedObject := menuItem->representedObject()
MenuItem_resolveClassMethod ¶ class method
MenuItem_resolveClassMethod :: proc "c" (sel: ^intrinsics.objc_selector) -> bool {…}
res := MenuItem.resolveClassMethod(sel)
MenuItem_resolveInstanceMethod ¶ class method
MenuItem_resolveInstanceMethod :: proc "c" (sel: ^intrinsics.objc_selector) -> bool {…}
res := MenuItem.resolveInstanceMethod(sel)
MenuItem_sectionHeaderWithTitle ¶ class method
MenuItem_sectionHeaderWithTitle :: proc "c" (title: ^String) -> ^MenuItem {…}
menuItem := MenuItem.sectionHeaderWithTitle(title)
MenuItem_separatorItem ¶ class method
MenuItem_separatorItem :: proc "c" () -> ^MenuItem {…}
menuItem := MenuItem.separatorItem()
MenuItem_setAction ¶
MenuItem_setAction :: proc "c" (self: ^MenuItem, action: ^intrinsics.objc_selector) {…}
menuItem->setAction(action)
MenuItem_setAllowsAutomaticKeyEquivalentLocalization ¶
MenuItem_setAllowsAutomaticKeyEquivalentLocalization :: proc "c" ( self: ^MenuItem, allowsAutomaticKeyEquivalentLocalization: bool, ) {…}
menuItem->setAllowsAutomaticKeyEquivalentLocalization(allowsAutomaticKeyEquivalentLocalization)
MenuItem_setAllowsAutomaticKeyEquivalentMirroring ¶
MenuItem_setAllowsAutomaticKeyEquivalentMirroring :: proc "c" ( self: ^MenuItem, allowsAutomaticKeyEquivalentMirroring: bool, ) {…}
menuItem->setAllowsAutomaticKeyEquivalentMirroring(allowsAutomaticKeyEquivalentMirroring)
MenuItem_setAllowsKeyEquivalentWhenHidden ¶
MenuItem_setAllowsKeyEquivalentWhenHidden :: proc "c" ( self: ^MenuItem, allowsKeyEquivalentWhenHidden: bool, ) {…}
menuItem->setAllowsKeyEquivalentWhenHidden(allowsKeyEquivalentWhenHidden)
MenuItem_setAlternate ¶
MenuItem_setAlternate :: proc "c" (self: ^MenuItem, alternate: bool) {…}
menuItem->setAlternate(alternate)
MenuItem_setDefaultPlaceholder ¶ class method
MenuItem_setDefaultPlaceholder :: proc "c" ( placeholder: ^intrinsics.objc_object, marker: ^intrinsics.objc_object, binding: ^String, ) {…}
MenuItem.setDefaultPlaceholder(placeholder, marker, binding)
MenuItem_setEnabled ¶
MenuItem_setEnabled :: proc "c" (self: ^MenuItem, enabled: bool) {…}
menuItem->setEnabled(enabled)
MenuItem_setIndentationLevel ¶
MenuItem_setIndentationLevel :: proc "c" (self: ^MenuItem, indentationLevel: Integer) {…}
menuItem->setIndentationLevel(indentationLevel)
MenuItem_setKeyEquivalent ¶
MenuItem_setKeyEquivalent :: proc "c" (self: ^MenuItem, keyEquivalent: ^String) {…}
menuItem->setKeyEquivalent(keyEquivalent)
MenuItem_setKeyEquivalentModifierMask ¶
MenuItem_setKeyEquivalentModifierMask :: proc "c" ( self: ^MenuItem, keyEquivalentModifierMask: EventModifierFlags, ) {…}
menuItem->setKeyEquivalentModifierMask(keyEquivalentModifierMask)
MenuItem_setKeys ¶ class method
MenuItem_setMnemonicLocation ¶
MenuItem_setMnemonicLocation :: proc "c" (self: ^MenuItem, location: UInteger) {…}
menuItem->setMnemonicLocation(location)
MenuItem_badge :: #force_inline proc "c" (self: ^MenuItem) -> ^MenuItemBadge {
return msgSend(^MenuItemBadge, self, "badge")
} MenuItem_setBadge :: #force_inline proc "c" (self: ^MenuItem, badge: ^MenuItemBadge) {
msgSend(nil, self, "setBadge:", badge)
}
MenuItem_setRepresentedObject ¶
MenuItem_setRepresentedObject :: proc "c" ( self: ^MenuItem, representedObject: ^intrinsics.objc_object, ) {…}
menuItem->setRepresentedObject(representedObject)
MenuItem_setSubmenu ¶
MenuItem_setSubmenu :: proc "c" (self: ^MenuItem, submenu: ^Menu) {…}
menuItem->setSubmenu(submenu)
MenuItem_setSubtitle ¶
MenuItem_setSubtitle :: proc "c" (self: ^MenuItem, subtitle: ^String) {…}
menuItem->setSubtitle(subtitle)
MenuItem_setTarget ¶
MenuItem_setTarget :: proc "c" (self: ^MenuItem, target: ^intrinsics.objc_object) {…}
menuItem->setTarget(target)
MenuItem_setTitleWithMnemonic ¶
MenuItem_setTitleWithMnemonic :: proc "c" (self: ^MenuItem, stringWithAmpersand: ^String) {…}
menuItem->setTitleWithMnemonic(stringWithAmpersand)
MenuItem_setToolTip ¶
MenuItem_setToolTip :: proc "c" (self: ^MenuItem, toolTip: ^String) {…}
menuItem->setToolTip(toolTip)
MenuItem_setUsesUserKeyEquivalents ¶ class method
MenuItem_setUsesUserKeyEquivalents :: proc "c" (usesUserKeyEquivalents: bool) {…}
MenuItem.setUsesUserKeyEquivalents(usesUserKeyEquivalents)
MenuItem_setVersion ¶ class method
MenuItem_setVersion :: proc "c" (aVersion: Integer) {…}
MenuItem.setVersion(aVersion)
MenuItem_subtitle ¶
MenuItem_attributedTitle :: #force_inline proc "c" (self: ^MenuItem) -> ^AttributedString {
return msgSend(^AttributedString, self, "attributedTitle")
} MenuItem_setAttributedTitle :: #force_inline proc "c" (self: ^MenuItem, attributedTitle: ^AttributedString) {
msgSend(nil, self, "setAttributedTitle:", attributedTitle)
}
MenuItem_superclass ¶ class method
MenuItem_superclass :: proc "c" () -> ^intrinsics.objc_class {…}
res := MenuItem.superclass()
MenuItem_target ¶
MenuItem_target :: proc "c" (self: ^MenuItem) -> ^intrinsics.objc_object {…}
target := menuItem->target()
MenuItem_useStoredAccessor ¶ class method
MenuItem_useStoredAccessor :: proc "c" () -> bool {…}
res := MenuItem.useStoredAccessor()
MenuItem_userKeyEquivalent ¶
MenuItem_userKeyEquivalent :: proc "c" (self: ^MenuItem) -> ^String {…}
userKeyEquivalent := menuItem->userKeyEquivalent()
MenuItem_usesUserKeyEquivalents ¶ class method
MenuItem_usesUserKeyEquivalents :: proc "c" () -> bool {…}
res := MenuItem.usesUserKeyEquivalents()
MenuItem_version ¶ class method
Menu_accessInstanceVariablesDirectly ¶ class method
Menu_accessInstanceVariablesDirectly :: proc "c" () -> bool {…}
res := Menu.accessInstanceVariablesDirectly()
Menu_addItemWithTitle ¶
Menu_addItemWithTitle :: proc "c" ( self: ^Menu, string: ^String, selector: ^intrinsics.objc_selector, charCode: ^String, ) -> ^MenuItem {…}
menuItem := menu->addItemWithTitle(string, selector, charCode)
Menu_alloc ¶ class method owned
Menu_allocWithZone ¶ class method owned
Menu_allocWithZone :: proc "c" (zone: ^Zone) -> ^Menu {…}
menu := Menu.allocWithZone(zone)
Menu_allowsContextMenuPlugIns ¶
Menu_allowsContextMenuPlugIns :: proc "c" (self: ^Menu) -> bool {…}
allowsContextMenuPlugIns := menu->allowsContextMenuPlugIns()
Menu_font :: #force_inline proc "c" (self: ^Menu) -> ^Font {
return msgSend(^Font, self, "font")
} Menu_setFont :: #force_inline proc "c" (self: ^Menu, font: ^Font) {
msgSend(nil, self, "setFont:", font)
}
Menu_attachedMenu ¶
Menu_attachedMenu :: proc "c" (self: ^Menu) -> ^Menu {…}
attachedMenu := menu->attachedMenu()
Menu_autoenablesItems ¶
Menu_autoenablesItems :: proc "c" (self: ^Menu) -> bool {…}
autoenablesItems := menu->autoenablesItems()
Menu_automaticallyNotifiesObserversForKey ¶ class method
Menu_automaticallyNotifiesObserversForKey :: proc "c" (key: ^String) -> bool {…}
res := Menu.automaticallyNotifiesObserversForKey(key)
Menu_cancelPreviousPerformRequestsWithTarget_ ¶ class method
Menu_cancelPreviousPerformRequestsWithTarget_ :: proc "c" (aTarget: ^intrinsics.objc_object) {…}
Menu.cancelPreviousPerformRequestsWithTarget_(aTarget)
Menu_cancelPreviousPerformRequestsWithTarget_selector_object ¶ class method
Menu_cancelPreviousPerformRequestsWithTarget_selector_object :: proc "c" ( aTarget: ^intrinsics.objc_object, aSelector: ^intrinsics.objc_selector, anArgument: ^intrinsics.objc_object, ) {…}
Menu.cancelPreviousPerformRequestsWithTarget_selector_object(aTarget, aSelector, anArgument)
Menu_cancelTracking ¶
Menu_cancelTracking :: proc "c" (self: ^Menu) {…}
menu->cancelTracking()
Menu_cancelTrackingWithoutAnimation ¶
Menu_cancelTrackingWithoutAnimation :: proc "c" (self: ^Menu) {…}
menu->cancelTrackingWithoutAnimation()
Menu_class ¶ class method
Menu_class :: proc "c" () -> ^intrinsics.objc_class {…}
res := Menu.class()
Menu_classFallbacksForKeyedArchiver ¶ class method
Menu_classFallbacksForKeyedArchiver :: proc "c" () -> ^Array {…}
array := Menu.classFallbacksForKeyedArchiver()
Menu_classForKeyedUnarchiver ¶ class method
Menu_classForKeyedUnarchiver :: proc "c" () -> ^intrinsics.objc_class {…}
res := Menu.classForKeyedUnarchiver()
Menu_conformsToProtocol ¶ class method
Menu_conformsToProtocol :: proc "c" (protocol: ^Protocol) -> bool {…}
res := Menu.conformsToProtocol(protocol)
Menu_contextMenuRepresentation ¶
Menu_contextMenuRepresentation :: proc "c" (self: ^Menu) -> ^intrinsics.objc_object {…}
contextMenuRepresentation := menu->contextMenuRepresentation()
Menu_copyWithZone ¶ class method owned
Menu_copyWithZone :: proc "c" (zone: ^Zone) -> ^intrinsics.objc_object {…}
res := Menu.copyWithZone(zone)
Menu_debugDescription ¶ class method
Menu_debugDescription :: proc "c" () -> ^String {…}
str := Menu.debugDescription()
Menu_defaultPlaceholderForMarker ¶ class method
Menu_defaultPlaceholderForMarker :: proc "c" ( marker: ^intrinsics.objc_object, binding: ^String, ) -> ^intrinsics.objc_object {…}
res := Menu.defaultPlaceholderForMarker(marker, binding)
Menu_delegate ¶
Menu_delegate :: proc "c" (self: ^Menu) -> ^MenuDelegate {…}
delegate := menu->delegate()
Menu_description ¶ class method
Menu_description :: proc "c" () -> ^String {…}
str := Menu.description()
Menu_exposeBinding ¶ class method
Menu_exposeBinding :: proc "c" (binding: ^String) {…}
Menu.exposeBinding(binding)
Menu_hash ¶ class method
Menu_helpRequested ¶
Menu_helpRequested :: proc "c" (self: ^Menu, eventPtr: ^Event) {…}
menu->helpRequested(eventPtr)
Menu_highlightedItem ¶
Menu_highlightedItem :: proc "c" (self: ^Menu) -> ^MenuItem {…}
highlightedItem := menu->highlightedItem()
Menu_indexOfItem ¶
Menu_indexOfItem :: proc "c" (self: ^Menu, item: ^MenuItem) -> Integer {…}
integer := menu->indexOfItem(item)
Menu_indexOfItemWithRepresentedObject ¶
Menu_indexOfItemWithRepresentedObject :: proc "c" ( self: ^Menu, object: ^intrinsics.objc_object, ) -> Integer {…}
integer := menu->indexOfItemWithRepresentedObject(object)
Menu_indexOfItemWithSubmenu ¶
Menu_indexOfItemWithSubmenu :: proc "c" (self: ^Menu, submenu: ^Menu) -> Integer {…}
integer := menu->indexOfItemWithSubmenu(submenu)
Menu_indexOfItemWithTag ¶
Menu_indexOfItemWithTag :: proc "c" (self: ^Menu, tag: Integer) -> Integer {…}
integer := menu->indexOfItemWithTag(tag)
Menu_indexOfItemWithTarget ¶
Menu_indexOfItemWithTarget :: proc "c" ( self: ^Menu, target: ^intrinsics.objc_object, actionSelector: ^intrinsics.objc_selector, ) -> Integer {…}
integer := menu->indexOfItemWithTarget(target, actionSelector)
Menu_indexOfItemWithTitle ¶
Menu_indexOfItemWithTitle :: proc "c" (self: ^Menu, title: ^String) -> Integer {…}
integer := menu->indexOfItemWithTitle(title)
Menu_initWithCoder ¶
Menu_initWithCoder :: proc "c" (self: ^Menu, coder: ^Coder) -> ^Menu {…}
res := menu->initWithCoder(coder)
Menu_initWithTitle ¶
Menu_initWithTitle :: proc "c" (self: ^Menu, title: ^String) -> ^Menu {…}
res := menu->initWithTitle(title)
Menu_initialize ¶ class method
Menu_initialize :: proc "c" () {…}
Menu.initialize()
Menu_insertItem ¶
Menu_insertItem :: proc "c" (self: ^Menu, newItem: ^MenuItem, index: Integer) {…}
menu->insertItem(newItem, index)
Menu_insertItemWithTitle ¶
Menu_insertItemWithTitle :: proc "c" ( self: ^Menu, string: ^String, selector: ^intrinsics.objc_selector, charCode: ^String, index: Integer, ) -> ^MenuItem {…}
menuItem := menu->insertItemWithTitle(string, selector, charCode, index)
Menu_instanceMethodForSelector ¶ class method
Menu_instanceMethodForSelector :: proc "c" (aSelector: ^intrinsics.objc_selector) -> IMP {…}
imp := Menu.instanceMethodForSelector(aSelector)
Menu_instancesRespondToSelector ¶ class method
Menu_instancesRespondToSelector :: proc "c" (aSelector: ^intrinsics.objc_selector) -> bool {…}
res := Menu.instancesRespondToSelector(aSelector)
Menu_isAttached ¶
Menu_isAttached :: proc "c" (self: ^Menu) -> bool {…}
isAttached := menu->isAttached()
Menu_isSubclassOfClass ¶ class method
Menu_isSubclassOfClass :: proc "c" (aClass: ^intrinsics.objc_class) -> bool {…}
res := Menu.isSubclassOfClass(aClass)
Menu_instanceMethodSignatureForSelector :: #force_inline proc "c" (aSelector: SEL) -> ^MethodSignature {
return msgSend(^MethodSignature, Menu, "instanceMethodSignatureForSelector:", aSelector)
}
Menu_itemAtIndex ¶
Menu_itemAtIndex :: proc "c" (self: ^Menu, index: Integer) -> ^MenuItem {…}
menuItem := menu->itemAtIndex(index)
Menu_itemChanged ¶
Menu_itemChanged :: proc "c" (self: ^Menu, item: ^MenuItem) {…}
menu->itemChanged(item)
Menu_itemWithTag ¶
Menu_itemWithTag :: proc "c" (self: ^Menu, tag: Integer) -> ^MenuItem {…}
menuItem := menu->itemWithTag(tag)
Menu_itemWithTitle ¶
Menu_itemWithTitle :: proc "c" (self: ^Menu, title: ^String) -> ^MenuItem {…}
menuItem := menu->itemWithTitle(title)
Menu_keyPathsForValuesAffectingValueForKey ¶ class method
Menu_keyPathsForValuesAffectingValueForKey :: proc "c" (key: ^String) -> ^Set {…}
set := Menu.keyPathsForValuesAffectingValueForKey(key)
Menu_load ¶ class method
Menu_locationForSubmenu ¶
Menu_locationForSubmenu :: proc "c" (self: ^Menu, submenu: ^Menu) -> CoreFoundation.CGPoint {…}
cgPoint := menu->locationForSubmenu(submenu)
Menu_menuBarHeight ¶
Menu_menuBarHeight :: proc "c" (self: ^Menu) -> CoreFoundation.CGFloat {…}
menuBarHeight := menu->menuBarHeight()
Menu_menuBarVisible ¶ class method
Menu_menuBarVisible :: proc "c" () -> bool {…}
res := Menu.menuBarVisible()
Menu_menuChangedMessagesEnabled ¶
Menu_menuChangedMessagesEnabled :: proc "c" (self: ^Menu) -> bool {…}
menuChangedMessagesEnabled := menu->menuChangedMessagesEnabled()
Menu_menuRepresentation ¶
Menu_menuRepresentation :: proc "c" (self: ^Menu) -> ^intrinsics.objc_object {…}
menuRepresentation := menu->menuRepresentation()
Menu_menuZone ¶ class method
Menu_minimumWidth ¶
Menu_minimumWidth :: proc "c" (self: ^Menu) -> CoreFoundation.CGFloat {…}
minimumWidth := menu->minimumWidth()
Menu_mutableCopyWithZone ¶ class method owned
Menu_mutableCopyWithZone :: proc "c" (zone: ^Zone) -> ^intrinsics.objc_object {…}
res := Menu.mutableCopyWithZone(zone)
Menu_new ¶ class method owned
Menu_numberOfItems ¶
Menu_numberOfItems :: proc "c" (self: ^Menu) -> Integer {…}
numberOfItems := menu->numberOfItems()
Menu_paletteMenuWithColors_titles_selectionHandler ¶ class method
Menu_performActionForItemAtIndex ¶
Menu_performActionForItemAtIndex :: proc "c" (self: ^Menu, index: Integer) {…}
menu->performActionForItemAtIndex(index)
Menu_performKeyEquivalent ¶
Menu_performKeyEquivalent :: proc "c" (self: ^Menu, event: ^Event) -> bool {…}
res := menu->performKeyEquivalent(event)
Menu_popUpContextMenu_withEvent_forView ¶ class method
Menu_popUpContextMenu_withEvent_forView :: proc "c" (menu: ^Menu, event: ^Event, view: ^View) {…}
Menu.popUpContextMenu_withEvent_forView(menu, event, view)
Menu_popUpMenuPositioningItem ¶
Menu_popUpMenuPositioningItem :: proc "c" ( self: ^Menu, item: ^MenuItem, location: CoreFoundation.CGPoint, view: ^View, ) -> bool {…}
res := menu->popUpMenuPositioningItem(item, location, view)
Menu_popUpContextMenu_withEvent_forView_withFont :: #force_inline proc "c" (menu: ^Menu, event: ^Event, view: ^View, font: ^Font) {
msgSend(nil, Menu, "popUpContextMenu:withEvent:forView:withFont:", menu, event, view, font)
}
Menu_poseAsClass ¶ class method
Menu_poseAsClass :: proc "c" (aClass: ^intrinsics.objc_class) {…}
Menu.poseAsClass(aClass)
Menu_presentationStyle ¶
Menu_presentationStyle :: proc "c" (self: ^Menu) -> MenuPresentationStyle {…}
presentationStyle := menu->presentationStyle()
Menu_paletteMenuWithColors_titles_templateImage_selectionHandler :: #force_inline proc "c" (colors: ^Array, itemTitles: ^Array, image: ^Image, onSelectionChange: proc "c" (_arg_0: ^Menu)) -> ^Menu {
return msgSend(^Menu, Menu, "paletteMenuWithColors:titles:templateImage:selectionHandler:", colors, itemTitles, image, onSelectionChange)
}
Menu_propertiesToUpdate ¶
Menu_propertiesToUpdate :: proc "c" (self: ^Menu) -> MenuProperties {…}
propertiesToUpdate := menu->propertiesToUpdate()
Menu_removeAllItems ¶
Menu_removeAllItems :: proc "c" (self: ^Menu) {…}
menu->removeAllItems()
Menu_removeItem ¶
Menu_removeItem :: proc "c" (self: ^Menu, item: ^MenuItem) {…}
menu->removeItem(item)
Menu_removeItemAtIndex ¶
Menu_removeItemAtIndex :: proc "c" (self: ^Menu, index: Integer) {…}
menu->removeItemAtIndex(index)
Menu_resolveClassMethod ¶ class method
Menu_resolveClassMethod :: proc "c" (sel: ^intrinsics.objc_selector) -> bool {…}
res := Menu.resolveClassMethod(sel)
Menu_resolveInstanceMethod ¶ class method
Menu_resolveInstanceMethod :: proc "c" (sel: ^intrinsics.objc_selector) -> bool {…}
res := Menu.resolveInstanceMethod(sel)
Menu_selectedItems ¶
Menu_selectedItems :: proc "c" (self: ^Menu) -> ^Array {…}
selectedItems := menu->selectedItems()
Menu_selectionMode ¶
Menu_selectionMode :: proc "c" (self: ^Menu) -> MenuSelectionMode {…}
selectionMode := menu->selectionMode()
Menu_setAllowsContextMenuPlugIns ¶
Menu_setAllowsContextMenuPlugIns :: proc "c" (self: ^Menu, allowsContextMenuPlugIns: bool) {…}
menu->setAllowsContextMenuPlugIns(allowsContextMenuPlugIns)
Menu_setAutoenablesItems ¶
Menu_setAutoenablesItems :: proc "c" (self: ^Menu, autoenablesItems: bool) {…}
menu->setAutoenablesItems(autoenablesItems)
Menu_setContextMenuRepresentation ¶
Menu_setContextMenuRepresentation :: proc "c" (self: ^Menu, menuRep: ^intrinsics.objc_object) {…}
menu->setContextMenuRepresentation(menuRep)
Menu_setDefaultPlaceholder ¶ class method
Menu_setDefaultPlaceholder :: proc "c" ( placeholder: ^intrinsics.objc_object, marker: ^intrinsics.objc_object, binding: ^String, ) {…}
Menu.setDefaultPlaceholder(placeholder, marker, binding)
Menu_setDelegate ¶
Menu_setDelegate :: proc "c" (self: ^Menu, delegate: ^MenuDelegate) {…}
menu->setDelegate(delegate)
Menu_setItemArray ¶
Menu_setItemArray :: proc "c" (self: ^Menu, itemArray: ^Array) {…}
menu->setItemArray(itemArray)
Menu_setKeys ¶ class method
Menu_setMenuBarVisible ¶ class method
Menu_setMenuBarVisible :: proc "c" (visible: bool) {…}
Menu.setMenuBarVisible(visible)
Menu_setMenuChangedMessagesEnabled ¶
Menu_setMenuChangedMessagesEnabled :: proc "c" (self: ^Menu, menuChangedMessagesEnabled: bool) {…}
menu->setMenuChangedMessagesEnabled(menuChangedMessagesEnabled)
Menu_setMenuRepresentation ¶
Menu_setMenuRepresentation :: proc "c" (self: ^Menu, menuRep: ^intrinsics.objc_object) {…}
menu->setMenuRepresentation(menuRep)
Menu_setMenuZone ¶ class method
Menu_setMenuZone :: proc "c" (zone: ^Zone) {…}
Menu.setMenuZone(zone)
Menu_setMinimumWidth ¶
Menu_setMinimumWidth :: proc "c" (self: ^Menu, minimumWidth: CoreFoundation.CGFloat) {…}
menu->setMinimumWidth(minimumWidth)
Menu_setPresentationStyle ¶
Menu_setPresentationStyle :: proc "c" (self: ^Menu, presentationStyle: MenuPresentationStyle) {…}
menu->setPresentationStyle(presentationStyle)
Menu_setSelectedItems ¶
Menu_setSelectedItems :: proc "c" (self: ^Menu, selectedItems: ^Array) {…}
menu->setSelectedItems(selectedItems)
Menu_setSelectionMode ¶
Menu_setSelectionMode :: proc "c" (self: ^Menu, selectionMode: MenuSelectionMode) {…}
menu->setSelectionMode(selectionMode)
Menu_setShowsStateColumn ¶
Menu_setShowsStateColumn :: proc "c" (self: ^Menu, showsStateColumn: bool) {…}
menu->setShowsStateColumn(showsStateColumn)
Menu_setSubmenu ¶
Menu_setSubmenu :: proc "c" (self: ^Menu, menu: ^Menu, item: ^MenuItem) {…}
menu->setSubmenu(menu, item)
Menu_setSupermenu ¶
Menu_setSupermenu :: proc "c" (self: ^Menu, supermenu: ^Menu) {…}
menu->setSupermenu(supermenu)
Menu_setTearOffMenuRepresentation ¶
Menu_setTearOffMenuRepresentation :: proc "c" (self: ^Menu, menuRep: ^intrinsics.objc_object) {…}
menu->setTearOffMenuRepresentation(menuRep)
Menu_setUserInterfaceLayoutDirection ¶
Menu_setUserInterfaceLayoutDirection :: proc "c" ( self: ^Menu, userInterfaceLayoutDirection: UserInterfaceLayoutDirection, ) {…}
menu->setUserInterfaceLayoutDirection(userInterfaceLayoutDirection)
Menu_setVersion ¶ class method
Menu_setVersion :: proc "c" (aVersion: Integer) {…}
Menu.setVersion(aVersion)
Menu_showsStateColumn ¶
Menu_showsStateColumn :: proc "c" (self: ^Menu) -> bool {…}
showsStateColumn := menu->showsStateColumn()
Menu_submenuAction ¶
Menu_submenuAction :: proc "c" (self: ^Menu, sender: ^intrinsics.objc_object) {…}
menu->submenuAction(sender)
Menu_superclass ¶ class method
Menu_superclass :: proc "c" () -> ^intrinsics.objc_class {…}
res := Menu.superclass()
Menu_tearOffMenuRepresentation ¶
Menu_tearOffMenuRepresentation :: proc "c" (self: ^Menu) -> ^intrinsics.objc_object {…}
tearOffMenuRepresentation := menu->tearOffMenuRepresentation()
Menu_useStoredAccessor ¶ class method
Menu_useStoredAccessor :: proc "c" () -> bool {…}
res := Menu.useStoredAccessor()
Menu_userInterfaceLayoutDirection ¶
Menu_userInterfaceLayoutDirection :: proc "c" (self: ^Menu) -> UserInterfaceLayoutDirection {…}
userInterfaceLayoutDirection := menu->userInterfaceLayoutDirection()
Menu_version ¶ class method
MutableArray_alloc ¶ class method owned
MutableArray_alloc :: proc "c" () -> ^MutableArray {…}
mutableArray := MutableArray.alloc()
MutableArray_count ¶
MutableArray_count :: proc "c" (self: ^MutableArray) -> UInteger {…}
count := mutableArray->count()
MutableArray_exchangeObjectAtIndex ¶
MutableArray_exchangeObjectAtIndex :: proc "c" (self: ^MutableArray, idx1, idx2: UInteger) {…}
mutableArray->exchangeObjectAtIndex(idx1, idx2)
MutableArray_init ¶
MutableArray_init :: proc "c" (self: ^MutableArray) -> ^MutableArray {…}
res := mutableArray->init()
MutableArray_initWithCoder ¶
MutableArray_initWithCoder :: proc "c" (self: ^MutableArray, coder: ^Coder) -> ^MutableArray {…}
res := mutableArray->initWithCoder(coder)
MutableArray_initWithObjects ¶
MutableArray_initWithObjects :: proc "c" ( self: ^MutableArray, objects: [^]^Object, count: UInteger, ) -> ^MutableArray {…}
res := mutableArray->initWithObjects(objects, count)
MutableArray_object ¶
MutableArray_object :: proc "c" (self: ^MutableArray, index: UInteger) -> ^Object {…}
object := mutableArray->object(index)
MutableArray_objectAs ¶
MutableArray_objectAs :: proc "c" (self: ^MutableArray, index: UInteger, $T: typeid) -> T {…}
res := mutableArray->objectAs(index, T)
NSWindow_setFrameAutosaveName ¶
NSWindow_setFrameAutosaveName :: proc "c" (self: ^Window, name: ^String) {…}
window->setFrameAutosaveName(name)
NotificationCenter_addObserver ¶
NotificationCenter_addObserver :: proc "c" ( self: ^NotificationCenter, observer: ^Object, selector: ^intrinsics.objc_selector, name: ^String, object: ^Object, ) {…}
notificationCenter->addObserver(observer, selector, name, object)
NotificationCenter_addObserverForName_new ¶
NotificationCenter_addObserverForName_new :: proc "c" ( self: ^NotificationCenter, name: ^String, pObj: ^Object, pQueue: rawptr, block: ^runtime.Objc_Block, ) -> ^Object {…}
NotificationCenter_alloc ¶ class method owned
NotificationCenter_alloc :: proc "c" () -> ^NotificationCenter {…}
notificationCenter := NotificationCenter.alloc()
NotificationCenter_defaultCenter ¶ class method
NotificationCenter_defaultCenter :: proc "c" () -> ^NotificationCenter {…}
notificationCenter := NotificationCenter.defaultCenter()
NotificationCenter_init ¶
NotificationCenter_init :: proc "c" (self: ^NotificationCenter) -> ^NotificationCenter {…}
res := notificationCenter->init()
NotificationCenter_removeObserver ¶
NotificationCenter_removeObserver :: proc "c" (self: ^NotificationCenter, pObserver: ^Object) {…}
notificationCenter->removeObserver(pObserver)
Notification_alloc ¶ class method owned
Notification_alloc :: proc "c" () -> ^Notification {…}
notification := Notification.alloc()
Notification_init ¶
Notification_init :: proc "c" (self: ^Notification) -> ^Notification {…}
res := notification->init()
Notification_name ¶
Notification_name :: proc "c" (self: ^Notification) -> ^String {…}
name := notification->name()
Notification_object ¶
Notification_object :: proc "c" (self: ^Notification) -> ^Object {…}
object := notification->object()
Notification_userInfo ¶
Notification_userInfo :: proc "c" (self: ^Notification) -> ^Dictionary {…}
userInfo := notification->userInfo()
Number_alloc ¶ class method owned
Number_compare ¶
Number_compare :: proc "c" (self, other: ^Number) -> ComparisonResult {…}
comparisonResult := number->compare(other)
Number_descriptionWithLocale ¶
Number_descriptionWithLocale :: proc "c" (self: ^Number, locale: ^Object) -> ^String {…}
str := number->descriptionWithLocale(locale)
Number_initWithBool ¶
Number_initWithBool :: proc "c" (self: ^Number, value: bool) -> ^Number {…}
res := number->initWithBool(value)
Number_initWithF32 ¶
Number_initWithF32 :: proc "c" (self: ^Number, value: f32) -> ^Number {…}
res := number->initWithF32(value)
Number_initWithF64 ¶
Number_initWithF64 :: proc "c" (self: ^Number, value: f64) -> ^Number {…}
res := number->initWithF64(value)
Number_initWithI16 ¶
Number_initWithI16 :: proc "c" (self: ^Number, value: i16) -> ^Number {…}
res := number->initWithI16(value)
Number_initWithI32 ¶
Number_initWithI32 :: proc "c" (self: ^Number, value: i32) -> ^Number {…}
res := number->initWithI32(value)
Number_initWithI64 ¶
Number_initWithI64 :: proc "c" (self: ^Number, value: i64) -> ^Number {…}
res := number->initWithI64(value)
Number_initWithI8 ¶
Number_initWithI8 :: proc "c" (self: ^Number, value: i8) -> ^Number {…}
res := number->initWithI8(value)
Number_initWithInt ¶
Number_initWithInt :: proc "c" (self: ^Number, value: int) -> ^Number {…}
res := number->initWithInt(value)
Number_initWithU16 ¶
Number_initWithU16 :: proc "c" (self: ^Number, value: u16) -> ^Number {…}
res := number->initWithU16(value)
Number_initWithU32 ¶
Number_initWithU32 :: proc "c" (self: ^Number, value: u32) -> ^Number {…}
res := number->initWithU32(value)
Number_initWithU64 ¶
Number_initWithU64 :: proc "c" (self: ^Number, value: u64) -> ^Number {…}
res := number->initWithU64(value)
Number_initWithU8 ¶
Number_initWithU8 :: proc "c" (self: ^Number, value: u8) -> ^Number {…}
res := number->initWithU8(value)
Number_initWithUint ¶
Number_initWithUint :: proc "c" (self: ^Number, value: uint) -> ^Number {…}
res := number->initWithUint(value)
Number_integerValue ¶
Number_integerValue :: proc "c" (self: ^Number) -> Integer {…}
integerValue := number->integerValue()
Number_isEqualToNumber ¶
Number_isEqualToNumber :: proc "c" (self, other: ^Number) -> bool {…}
res := number->isEqualToNumber(other)
Number_numberWithBool ¶ class method
Number_numberWithBool :: proc "c" (value: bool) -> ^Number {…}
number := Number.numberWithBool(value)
Number_numberWithF32 ¶ class method
Number_numberWithF32 :: proc "c" (value: f32) -> ^Number {…}
number := Number.numberWithF32(value)
Number_numberWithF64 ¶ class method
Number_numberWithF64 :: proc "c" (value: f64) -> ^Number {…}
number := Number.numberWithF64(value)
Number_numberWithI16 ¶ class method
Number_numberWithI16 :: proc "c" (value: i16) -> ^Number {…}
number := Number.numberWithI16(value)
Number_numberWithI32 ¶ class method
Number_numberWithI32 :: proc "c" (value: i32) -> ^Number {…}
number := Number.numberWithI32(value)
Number_numberWithI64 ¶ class method
Number_numberWithI64 :: proc "c" (value: i64) -> ^Number {…}
number := Number.numberWithI64(value)
Number_numberWithI8 ¶ class method
Number_numberWithI8 :: proc "c" (value: i8) -> ^Number {…}
number := Number.numberWithI8(value)
Number_numberWithInt ¶ class method
Number_numberWithInt :: proc "c" (value: int) -> ^Number {…}
number := Number.numberWithInt(value)
Number_numberWithU16 ¶ class method
Number_numberWithU16 :: proc "c" (value: u16) -> ^Number {…}
number := Number.numberWithU16(value)
Number_numberWithU32 ¶ class method
Number_numberWithU32 :: proc "c" (value: u32) -> ^Number {…}
number := Number.numberWithU32(value)
Number_numberWithU64 ¶ class method
Number_numberWithU64 :: proc "c" (value: u64) -> ^Number {…}
number := Number.numberWithU64(value)
Number_numberWithU8 ¶ class method
Number_numberWithU8 :: proc "c" (value: u8) -> ^Number {…}
number := Number.numberWithU8(value)
Number_numberWithUint ¶ class method
Number_numberWithUint :: proc "c" (value: uint) -> ^Number {…}
number := Number.numberWithUint(value)
Number_stringValue ¶
Number_stringValue :: proc "c" (self: ^Number) -> ^String {…}
stringValue := number->stringValue()
Number_uintegerValue ¶
Number_uintegerValue :: proc "c" (self: ^Number) -> UInteger {…}
uintegerValue := number->uintegerValue()
OpenPanel_openPanel ¶ class method
OpenPanel_setAllowedFileTypes ¶
OpenPanel_setAllowedFileTypes :: proc "c" (self: ^OpenPanel, types: ^Array) {…}
openPanel->setAllowedFileTypes(types)
OpenPanel_setAllowsMultipleSelection ¶
OpenPanel_setAllowsMultipleSelection :: proc "c" (self: ^OpenPanel, setting: bool) {…}
openPanel->setAllowsMultipleSelection(setting)
OpenPanel_setCanChooseDirectories ¶
OpenPanel_setCanChooseDirectories :: proc "c" (self: ^OpenPanel, setting: bool) {…}
openPanel->setCanChooseDirectories(setting)
OpenPanel_setCanChooseFiles ¶
OpenPanel_setCanChooseFiles :: proc "c" (self: ^OpenPanel, setting: bool) {…}
openPanel->setCanChooseFiles(setting)
OpenPanel_setResolvesAliases ¶
OpenPanel_setResolvesAliases :: proc "c" (self: ^OpenPanel, setting: bool) {…}
openPanel->setResolvesAliases(setting)
ProcessInfo_activeProcessorCount ¶
ProcessInfo_activeProcessorCount :: proc "c" (self: ^ProcessInfo) -> UInteger {…}
activeProcessorCount := processInfo->activeProcessorCount()
ProcessInfo_arguments ¶
ProcessInfo_arguments :: proc "c" (self: ^ProcessInfo) -> ^Array {…}
arguments := processInfo->arguments()
ProcessInfo_automaticTerminationSupportEnabled ¶
ProcessInfo_automaticTerminationSupportEnabled :: proc "c" (self: ^ProcessInfo) -> bool {…}
automaticTerminationSupportEnabled := processInfo->automaticTerminationSupportEnabled()
ProcessInfo_beginActivityWithOptions ¶
ProcessInfo_beginActivityWithOptions :: proc "c" ( self: ^ProcessInfo, options: bit_set[ActivityOptionsBits; u64], reason: ^String, ) -> ^ObjectProtocol {…}
objectProtocol := processInfo->beginActivityWithOptions(options, reason)
ProcessInfo_disableAutomaticTermination ¶
ProcessInfo_disableAutomaticTermination :: proc "c" (self: ^ProcessInfo, reason: ^String) {…}
processInfo->disableAutomaticTermination(reason)
ProcessInfo_disableSuddenTermination ¶
ProcessInfo_disableSuddenTermination :: proc "c" (self: ^ProcessInfo) {…}
processInfo->disableSuddenTermination()
ProcessInfo_enableAutomaticTermination ¶
ProcessInfo_enableAutomaticTermination :: proc "c" (self: ^ProcessInfo, reason: ^String) {…}
processInfo->enableAutomaticTermination(reason)
ProcessInfo_enableSuddenTermination ¶
ProcessInfo_enableSuddenTermination :: proc "c" (self: ^ProcessInfo) {…}
processInfo->enableSuddenTermination()
ProcessInfo_endActivity ¶
ProcessInfo_endActivity :: proc "c" (self: ^ProcessInfo, activity: ^ObjectProtocol) {…}
processInfo->endActivity(activity)
ProcessInfo_environment ¶
ProcessInfo_environment :: proc "c" (self: ^ProcessInfo) -> ^Dictionary {…}
environment := processInfo->environment()
ProcessInfo_fullUserName ¶
ProcessInfo_fullUserName :: proc "c" (self: ^ProcessInfo) -> ^String {…}
fullUserName := processInfo->fullUserName()
ProcessInfo_globallyUniqueString ¶
ProcessInfo_globallyUniqueString :: proc "c" (self: ^ProcessInfo) -> ^String {…}
globallyUniqueString := processInfo->globallyUniqueString()
ProcessInfo_hostName ¶
ProcessInfo_hostName :: proc "c" (self: ^ProcessInfo) -> ^String {…}
hostName := processInfo->hostName()
ProcessInfo_isLowPowerModeEnabled ¶
ProcessInfo_isLowPowerModeEnabled :: proc "c" (self: ^ProcessInfo) -> bool {…}
isLowPowerModeEnabled := processInfo->isLowPowerModeEnabled()
ProcessInfo_isMacCatalystApp ¶
ProcessInfo_isMacCatalystApp :: proc "c" (self: ^ProcessInfo) -> bool {…}
isMacCatalystApp := processInfo->isMacCatalystApp()
ProcessInfo_isOperatingSystemAtLeastVersion ¶
ProcessInfo_isOperatingSystemAtLeastVersion :: proc "c" ( self: ^ProcessInfo, version: OperatingSystemVersion, ) -> bool {…}
res := processInfo->isOperatingSystemAtLeastVersion(version)
ProcessInfo_isiOSAppOnMac ¶
ProcessInfo_isiOSAppOnMac :: proc "c" (self: ^ProcessInfo) -> bool {…}
isiOSAppOnMac := processInfo->isiOSAppOnMac()
ProcessInfo_operatingSystemVersion ¶
ProcessInfo_operatingSystemVersion :: proc "c" (self: ^ProcessInfo) -> OperatingSystemVersion {…}
operatingSystemVersion := processInfo->operatingSystemVersion()
ProcessInfo_operatingSystemVersionString ¶
ProcessInfo_operatingSystemVersionString :: proc "c" (self: ^ProcessInfo) -> ^String {…}
operatingSystemVersionString := processInfo->operatingSystemVersionString()
ProcessInfo_performActivityWithOptions ¶
ProcessInfo_performActivityWithOptions :: proc "c" ( self: ^ProcessInfo, options: bit_set[ActivityOptionsBits; u64], reason: ^String, block: proc "c" (), ) {…}
processInfo->performActivityWithOptions(options, reason, block)
ProcessInfo_performExpiringActivityWithReason ¶
ProcessInfo_performExpiringActivityWithReason :: proc "c" ( self: ^ProcessInfo, reason: ^String, block: proc "c" (expired: bool), ) {…}
processInfo->performExpiringActivityWithReason(reason, block)
ProcessInfo_physicalMemory ¶
ProcessInfo_physicalMemory :: proc "c" (self: ^ProcessInfo) -> u64 {…}
physicalMemory := processInfo->physicalMemory()
ProcessInfo_processIdentifier ¶
ProcessInfo_processIdentifier :: proc "c" (self: ^ProcessInfo) -> i32 {…}
processIdentifier := processInfo->processIdentifier()
ProcessInfo_processInfo ¶ class method
ProcessInfo_processInfo :: proc "c" () -> ^ProcessInfo {…}
processInfo := ProcessInfo.processInfo()
ProcessInfo_processName ¶
ProcessInfo_processName :: proc "c" (self: ^ProcessInfo) -> ^String {…}
processName := processInfo->processName()
ProcessInfo_processorCount ¶
ProcessInfo_processorCount :: proc "c" (self: ^ProcessInfo) -> UInteger {…}
processorCount := processInfo->processorCount()
ProcessInfo_setAutomaticTerminationSupportEnabled ¶
ProcessInfo_setAutomaticTerminationSupportEnabled :: proc "c" ( self: ^ProcessInfo, automaticTerminationSupportEnabled: bool, ) {…}
processInfo->setAutomaticTerminationSupportEnabled(automaticTerminationSupportEnabled)
ProcessInfo_systemUptime ¶
ProcessInfo_systemUptime :: proc "c" (self: ^ProcessInfo) -> TimeInterval {…}
systemUptime := processInfo->systemUptime()
ProcessInfo_thermalState ¶
ProcessInfo_thermalState :: proc "c" (self: ^ProcessInfo) -> ProcessInfoThermalState {…}
thermalState := processInfo->thermalState()
ProcessInfo_userName ¶
ProcessInfo_userName :: proc "c" (self: ^ProcessInfo) -> ^String {…}
userName := processInfo->userName()
Range_Make ¶
External examples metal/learn_metal/02-argbuffers · metal/learn_metal/02-argbuffers-no-sdl · metal/learn_metal/03-animation +6
RunLoop_addTimerForMode ¶
RunLoop_addTimerForMode :: proc(self: ^RunLoop, timer: ^Timer, forMode: ^String) {…}
runLoop->addTimerForMode(timer, forMode)
RunLoop_mainRunLoop ¶ class method
RunLoop_mainRunLoop :: proc() -> ^RunLoop {…}
runLoop := RunLoop.mainRunLoop()
RunningApplication_currentApplication ¶ class method
RunningApplication_currentApplication :: proc "c" () -> ^RunningApplication {…}
runningApplication := RunningApplication.currentApplication()
RunningApplication_finishedLaunching ¶
RunningApplication_finishedLaunching :: proc "c" (self: ^RunningApplication) -> bool {…}
finishedLaunching := runningApplication->finishedLaunching()
RunningApplication_localizedName ¶
RunningApplication_localizedName :: proc "c" (self: ^RunningApplication) -> ^String {…}
localizedName := runningApplication->localizedName()
SavePanel_runModal ¶
SavePanel_runModal :: proc "c" (self: ^SavePanel) -> ModalResponse {…}
runModal := savePanel->runModal()
SavePanel_savePanel ¶ class method
Screen_backingScaleFactor ¶
Screen_backingScaleFactor :: proc "c" (self: ^Screen) -> CoreFoundation.CGFloat {…}
backingScaleFactor := screen->backingScaleFactor()
Screen_colorSpace ¶
Screen_colorSpace :: proc "c" (self: ^Screen) -> ^ColorSpace {…}
colorSpace := screen->colorSpace()
Screen_deepestScreen ¶ class method
Screen_deepestScreen :: proc "c" () -> ^Screen {…}
screen := Screen.deepestScreen()
Screen_mainScreen ¶ class method
Screen_mainScreen :: proc "c" () -> ^Screen {…}
screen := Screen.mainScreen()
Screen_screens ¶ class method
Screen_screensHaveSeparateSpaces ¶ class method
Screen_screensHaveSeparateSpaces :: proc "c" () -> bool {…}
res := Screen.screensHaveSeparateSpaces()
Screen_visibleFrame ¶
Screen_visibleFrame :: proc "c" (self: ^Screen) -> CoreFoundation.CGRect {…}
visibleFrame := screen->visibleFrame()
SelectorFromString ¶C · NSSelectorFromStringSource · NSString.odin:64
SelectorFromString :: proc "c" (str: ^String) -> ^intrinsics.objc_selector ---
Set_alloc ¶ class method owned
Set_initWithCoder ¶
Set_initWithCoder :: proc "c" (self: ^Set, coder: ^Coder) -> ^Set {…}
res := set->initWithCoder(coder)
Set_initWithObjects ¶
Set_initWithObjects :: proc "c" (self: ^Set, objects: [^]^Object, count: UInteger) -> ^Set {…}
res := set->initWithObjects(objects, count)
StringFromClass ¶C · NSStringFromClassSource · NSString.odin:61
StringFromClass :: proc "c" (cls: ^intrinsics.objc_class) -> ^String ---
StringFromSelector ¶C · NSStringFromSelectorSource · NSString.odin:63
StringFromSelector :: proc "c" (selector: ^intrinsics.objc_selector) -> ^String ---
String_UTF8String ¶
String_UTF8String :: proc "c" (self: ^String) -> cstring {…}
UTF8String := str->UTF8String()
String_alloc ¶ class method owned
String_characterAtIndex ¶
String_characterAtIndex :: proc "c" (self: ^String, index: UInteger) -> unichar {…}
unichar := str->characterAtIndex(index)
String_cstringUsingEncoding ¶
String_cstringUsingEncoding :: proc "c" (self: ^String, encoding: StringEncoding) -> cstring {…}
res := str->cstringUsingEncoding(encoding)
String_initWithBytesNoCopy ¶
String_initWithBytesNoCopy :: proc "c" ( self: ^String, pBytes: rawptr, length: UInteger, encoding: StringEncoding, freeWhenDone: bool, ) -> ^String {…}
res := str->initWithBytesNoCopy(pBytes, length, encoding, freeWhenDone)
String_initWithCString ¶
String_initWithCString :: proc "c" ( self: ^String, pString: cstring, encoding: StringEncoding, ) -> ^String {…}
res := str->initWithCString(pString, encoding)
String_initWithOdinString ¶
String_initWithOdinString :: proc "c" (self: ^String, str: string) -> ^String {…}
res := str->initWithOdinString(str)
String_initWithString ¶
String_initWithString :: proc "c" (self: ^String, other: ^String) -> ^String {…}
res := str->initWithString(other)
String_isEqualToString ¶
String_isEqualToString :: proc "c" (self: ^String, other: ^String) -> bool {…}
res := str->isEqualToString(other)
String_lengthOfBytesUsingEncoding ¶
String_lengthOfBytesUsingEncoding :: proc "c" ( self: ^String, encoding: StringEncoding, ) -> UInteger {…}
uInteger := str->lengthOfBytesUsingEncoding(encoding)
String_maximumLengthOfBytesUsingEncoding ¶
String_maximumLengthOfBytesUsingEncoding :: proc "c" ( self: ^String, encoding: StringEncoding, ) -> UInteger {…}
uInteger := str->maximumLengthOfBytesUsingEncoding(encoding)
String_odinString ¶
String_odinString :: proc "c" (self: ^String) -> string {…}
odinString := str->odinString()
String_rangeOfString ¶
String_rangeOfString :: proc "c" ( self, other: ^String, options: StringCompareOptions, ) -> Range {…}
range := str->rangeOfString(other, options)
String_stringByAppendingString ¶
String_stringByAppendingString :: proc "c" (self: ^String, other: ^String) -> ^String {…}
res := str->stringByAppendingString(other)
Timer_scheduledTimerWithTimeIntervalRepeatsBlock ¶ class method
Timer_scheduledTimerWithTimeIntervalRepeatsBlock :: proc( interval: TimeInterval, repeats: bool, block: ^Block, ) -> ^Timer {…}
timer := Timer.scheduledTimerWithTimeIntervalRepeatsBlock(interval, repeats, block)
Timer_scheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeat ¶ class method
Timer_scheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeat :: proc( interval: TimeInterval, aTarget: ^intrinsics.objc_object, aSelector: ^intrinsics.objc_selector, userInfo: ^intrinsics.objc_object, repeats: bool, ) -> ^Timer {…}
timer := Timer.scheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeat( interval, aTarget, aSelector, userInfo, repeats, )
Toolbar_alloc ¶ class method owned
URLRequest_alloc ¶ class method owned
URLRequest_alloc :: proc "c" () -> ^URLRequest {…}
urlRequest := URLRequest.alloc()
URLRequest_init ¶
URLRequest_init :: proc "c" (self: ^URLRequest) -> ^URLRequest {…}
res := urlRequest->init()
URLRequest_requestWithURL ¶ class method
URLRequest_requestWithURL :: proc "c" (url: ^URL) -> ^URLRequest {…}
urlRequest := URLRequest.requestWithURL(url)
URLRequest_url ¶
URLRequest_url :: proc "c" (self: ^URLRequest) -> ^URL {…}
url := urlRequest->url()
URLResponse_alloc ¶ class method owned
URLResponse_alloc :: proc "c" () -> ^URLResponse {…}
urlResponse := URLResponse.alloc()
URLResponse_init ¶
URLResponse_init :: proc "c" (self: ^URLResponse) -> ^URLResponse {…}
res := urlResponse->init()
URLResponse_initWithURL ¶
URLResponse_initWithURL :: proc "c" ( self: ^URLResponse, url: ^URL, mime_type: ^String, length: int, encoding: ^String, ) -> ^URLResponse {…}
res := urlResponse->initWithURL(url, mime_type, length, encoding)
URL_alloc ¶ class method owned
URL_fileSystemRepresentation ¶
URL_fileSystemRepresentation :: proc "c" (self: ^URL) -> cstring {…}
fileSystemRepresentation := url->fileSystemRepresentation()
URL_initFileURLWithPath ¶
URL_initFileURLWithPath :: proc "c" (self: ^URL, path: ^String) -> ^URL {…}
res := url->initFileURLWithPath(path)
URL_initWithString ¶
URL_initWithString :: proc "c" (self: ^URL, value: ^String) -> ^URL {…}
res := url->initWithString(value)
URL_relativePath ¶
URL_relativePath :: proc "c" (self: ^URL) -> ^String {…}
relativePath := url->relativePath()
UserDefaults_setBoolForKey ¶
UserDefaults_setBoolForKey :: proc "c" (self: ^UserDefaults, value: bool, name: ^String) {…}
userDefaults->setBoolForKey(value, name)
UserDefaults_standardUserDefaults ¶ class method
UserDefaults_standardUserDefaults :: proc "c" () -> ^UserDefaults {…}
userDefaults := UserDefaults.standardUserDefaults()
Value_alloc ¶ class method owned
Value_initWithBytes ¶
Value_initWithBytes :: proc "c" (self: ^Value, value: rawptr, type: cstring) -> ^Value {…}
res := value->initWithBytes(value, type)
Value_initWithCoder ¶
Value_initWithCoder :: proc "c" (self: ^Value, coder: ^Coder) -> ^Value {…}
res := value->initWithCoder(coder)
Value_isEqualToValue ¶
Value_isEqualToValue :: proc "c" (self, other: ^Value) -> bool {…}
res := value->isEqualToValue(other)
Value_pointerValue ¶
Value_pointerValue :: proc "c" (self: ^Value) -> rawptr {…}
pointerValue := value->pointerValue()
Value_valueWithBytes ¶ class method
Value_valueWithBytes :: proc "c" (value: rawptr, type: cstring) -> ^Value {…}
res := Value.valueWithBytes(value, type)
Value_valueWithPointer ¶ class method
Value_valueWithPointer :: proc "c" (pointer: rawptr) -> ^Value {…}
value := Value.valueWithPointer(pointer)
View_addSubview ¶
View_addSubview :: proc "c" (self: ^View, view: ^View) {…}
view->addSubview(view)
View_alloc ¶ class method owned
View_convertPointFromView ¶
View_convertPointFromView :: proc "c" ( self: ^View, point: CoreFoundation.CGPoint, view: ^View, ) -> CoreFoundation.CGPoint {…}
cgPoint := view->convertPointFromView(point, view)
View_initWithFrame ¶
View_initWithFrame :: proc "c" (self: ^View, frame: CoreFoundation.CGRect) -> ^View {…}
res := view->initWithFrame(frame)
View_setIsFlipped ¶
View_setIsFlipped :: proc "c" (self: ^View, flipped: bool) {…}
view->setIsFlipped(flipped)
View_setWantsLayer ¶
View_setWantsLayer :: proc "c" (self: ^View, wantsLayer: bool) {…}
view->setWantsLayer(wantsLayer)
View_wantsLayer ¶
View_wantsLayer :: proc "c" (self: ^View) -> bool {…}
wantsLayer := view->wantsLayer()
Window_alloc ¶ class method owned
Window_backgroundColor ¶
Window_backgroundColor :: proc "c" (self: ^Window) -> ^Color {…}
backgroundColor := window->backgroundColor()
Window_backingScaleFactor ¶
Window_backingScaleFactor :: proc "c" (self: ^Window) -> CoreFoundation.CGFloat {…}
backingScaleFactor := window->backingScaleFactor()
Window_collectionBehavior ¶
Window_collectionBehavior :: proc "c" (self: ^Window) -> WindowCollectionBehavior {…}
collectionBehavior := window->collectionBehavior()
Window_contentLayoutRect ¶
Window_contentLayoutRect :: proc "c" (self: ^Window) -> CoreFoundation.CGRect {…}
contentLayoutRect := window->contentLayoutRect()
Window_contentRectForFrameRectInstance ¶
Window_contentRectForFrameRectInstance :: proc "c" ( self: ^Window, frameRect: CoreFoundation.CGRect, ) -> CoreFoundation.CGRect {…}
cgRect := window->contentRectForFrameRect(frameRect)
Window_contentRectForFrameRectType ¶ class method
Window_contentRectForFrameRectType :: proc "c" ( frameRect: CoreFoundation.CGRect, styleMask: WindowStyleMask, ) -> CoreFoundation.CGRect {…}
cgRect := Window.contentRectForFrameRect(frameRect, styleMask)
Window_contentView ¶
Window_contentView :: proc "c" (self: ^Window) -> ^View {…}
contentView := window->contentView()
Window_convertPointFromBacking ¶
Window_convertPointFromBacking :: proc "c" ( self: ^Window, point: CoreFoundation.CGPoint, ) -> CoreFoundation.CGPoint {…}
cgPoint := window->convertPointFromBacking(point)
Window_convertPointFromScreen ¶
Window_convertPointFromScreen :: proc "c" ( self: ^Window, point: CoreFoundation.CGPoint, ) -> CoreFoundation.CGPoint {…}
cgPoint := window->convertPointFromScreen(point)
Window_convertPointToBacking ¶
Window_convertPointToBacking :: proc "c" ( self: ^Window, point: CoreFoundation.CGPoint, ) -> CoreFoundation.CGPoint {…}
cgPoint := window->convertPointToBacking(point)
Window_convertPointToScreen ¶
Window_convertPointToScreen :: proc "c" ( self: ^Window, point: CoreFoundation.CGPoint, ) -> CoreFoundation.CGPoint {…}
cgPoint := window->convertPointToScreen(point)
Window_convertRectFromBacking ¶
Window_convertRectFromBacking :: proc "c" ( self: ^Window, rect: CoreFoundation.CGRect, ) -> CoreFoundation.CGRect {…}
cgRect := window->convertRectFromBacking(rect)
Window_convertRectFromScreen ¶
Window_convertRectFromScreen :: proc "c" ( self: ^Window, rect: CoreFoundation.CGRect, ) -> CoreFoundation.CGRect {…}
cgRect := window->convertRectFromScreen(rect)
Window_convertRectToBacking ¶
Window_convertRectToBacking :: proc "c" ( self: ^Window, rect: CoreFoundation.CGRect, ) -> CoreFoundation.CGRect {…}
cgRect := window->convertRectToBacking(rect)
Window_convertRectToScreen ¶
Window_convertRectToScreen :: proc "c" ( self: ^Window, rect: CoreFoundation.CGRect, ) -> CoreFoundation.CGRect {…}
cgRect := window->convertRectToScreen(rect)
Window_delegate ¶
Window_delegate :: proc "c" (self: ^Window) -> ^WindowDelegate {…}
delegate := window->delegate()
Window_frameRectForContentRectInstance ¶
Window_frameRectForContentRectInstance :: proc "c" ( self: ^Window, contentRect: CoreFoundation.CGRect, ) -> CoreFoundation.CGRect {…}
cgRect := window->frameRectForContentRect(contentRect)
Window_frameRectForContentRectType ¶ class method
Window_frameRectForContentRectType :: proc "c" ( contentRect: CoreFoundation.CGRect, styleMask: WindowStyleMask, ) -> CoreFoundation.CGRect {…}
cgRect := Window.frameRectForContentRect(contentRect, styleMask)
Window_hasCloseBox ¶
Window_hasCloseBox :: proc "c" (self: ^Window) -> bool {…}
hasCloseBox := window->hasCloseBox()
Window_hasTitleBar ¶
Window_hasTitleBar :: proc "c" (self: ^Window) -> bool {…}
hasTitleBar := window->hasTitleBar()
Window_initWithContentRect ¶
Window_initWithContentRect :: proc( self: ^Window, contentRect: CoreFoundation.CGRect, styleMask: WindowStyleMask, backing: BackingStoreType, doDefer: bool, ) -> ^Window {…}
res := window->initWithContentRect(contentRect, styleMask, backing, doDefer)
Window_isFloatingPanel ¶
Window_isFloatingPanel :: proc "c" (self: ^Window) -> bool {…}
isFloatingPanel := window->isFloatingPanel()
Window_isMiniaturizable ¶
Window_isMiniaturizable :: proc "c" (self: ^Window) -> bool {…}
isMiniaturizable := window->isMiniaturizable()
Window_isModalPanel ¶
Window_isModalPanel :: proc "c" (self: ^Window) -> bool {…}
isModalPanel := window->isModalPanel()
Window_isResizable ¶
Window_isResizable :: proc "c" (self: ^Window) -> bool {…}
isResizable := window->isResizable()
Window_isZoomable ¶
Window_isZoomable :: proc "c" (self: ^Window) -> bool {…}
isZoomable := window->isZoomable()
Window_mainWindow ¶
Window_mainWindow :: proc "c" (self: ^Window) -> bool {…}
mainWindow := window->mainWindow()
Window_makeFirstResponder ¶
Window_makeFirstResponder :: proc "c" (self: ^Window, responder: ^Responder) -> bool {…}
res := window->makeFirstResponder(responder)
Window_makeKeyAndOrderFront ¶
Window_makeKeyAndOrderFront :: proc "c" (self: ^Window, key: ^Object) {…}
window->makeKeyAndOrderFront(key)
Window_minFrameWidthWithTitle ¶ class method
Window_minFrameWidthWithTitle :: proc "c" ( title: ^String, styleMask: WindowStyleMask, ) -> CoreFoundation.CGFloat {…}
cgFloat := Window.minFrameWidthWithTitle(title, styleMask)
Window_orderFront ¶
Window_orderFront :: proc "c" (self: ^Window, sender: ^intrinsics.objc_object) {…}
window->orderFront(sender)
Window_orderOut ¶
Window_orderOut :: proc "c" (self: ^Window, sender: ^intrinsics.objc_object) {…}
window->orderOut(sender)
Window_orderedIndex ¶
Window_orderedIndex :: proc "c" (self: ^Window) -> Integer {…}
orderedIndex := window->orderedIndex()
Window_parentWindow ¶
Window_parentWindow :: proc "c" (self: ^Window) -> ^Window {…}
parentWindow := window->parentWindow()
Window_performClose ¶
Window_performClose :: proc "c" (self: ^Window, sender: ^intrinsics.objc_object) {…}
window->performClose(sender)
Window_performWindowDragWithEvent ¶
Window_performWindowDragWithEvent :: proc "c" (self: ^Window, event: ^Event) {…}
window->performWindowDragWithEvent(event)
Window_performZoom ¶
Window_performZoom :: proc "c" (self: ^Window) {…}
window->performZoom()
Window_setAcceptsMouseMovedEvents ¶
Window_setAcceptsMouseMovedEvents :: proc "c" (self: ^Window, ok: bool) {…}
window->setAcceptsMouseMovedEvents(ok)
Window_setBackgroundColor ¶
Window_setBackgroundColor :: proc "c" (self: ^Window, color: ^Color) {…}
window->setBackgroundColor(color)
Window_setCollectionBehavior ¶
Window_setCollectionBehavior :: proc "c" (self: ^Window, behavior: WindowCollectionBehavior) {…}
window->setCollectionBehavior(behavior)
Window_setContentView ¶
Window_setContentView :: proc "c" (self: ^Window, content_view: ^View) {…}
window->setContentView(content_view)
Window_setDelegate ¶
Window_setDelegate :: proc "c" (self: ^Window, delegate: ^WindowDelegate) {…}
window->setDelegate(delegate)
Window_setFrameOrigin ¶
Window_setFrameOrigin :: proc "c" (self: ^Window, origin: CoreFoundation.CGPoint) {…}
window->setFrameOrigin(origin)
Window_setIsMiniaturized ¶
Window_setIsMiniaturized :: proc "c" (self: ^Window, ok: bool) {…}
window->setIsMiniaturized(ok)
Window_setIsVisible ¶
Window_setIsVisible :: proc "c" (self: ^Window, ok: bool) {…}
window->setIsVisible(ok)
Window_setIsZoomed ¶
Window_setIsZoomed :: proc "c" (self: ^Window, ok: bool) {…}
window->setIsZoomed(ok)
Window_setLevel ¶
Window_setLevel :: proc "c" (self: ^Window, level: WindowLevel) {…}
window->setLevel(level)
Window_setMinSize ¶
Window_setMinSize :: proc "c" (self: ^Window, size: CoreFoundation.CGSize) {…}
window->setMinSize(size)
Window_setMovable ¶
Window_setMovable :: proc "c" (self: ^Window, ok: bool) {…}
window->setMovable(ok)
Window_setMovableByWindowBackground ¶
Window_setMovableByWindowBackground :: proc "c" (self: ^Window, ok: bool) {…}
window->setMovableByWindowBackground(ok)
Window_setReleasedWhenClosed ¶
Window_setReleasedWhenClosed :: proc "c" (self: ^Window, flag: bool) {…}
window->setReleasedWhenClosed(flag)
Window_setRestorable ¶
Window_setRestorable :: proc "c" (self: ^Window, flag: bool) {…}
window->setRestorable(flag)
Window_setStyleMask ¶
Window_setStyleMask :: proc "c" (self: ^Window, style_mask: WindowStyleMask) {…}
window->setStyleMask(style_mask)
Window_setTabbingMode ¶
Window_setTabbingMode :: proc "c" (self: ^Window, mode: WindowTabbingMode) {…}
window->setTabbingMode(mode)
Window_setTitleVisibility ¶
Window_setTitleVisibility :: proc "c" (self: ^Window, visibility: Window_Title_Visibility) {…}
window->setTitleVisibility(visibility)
Window_setTitlebarAppearsTransparent ¶
Window_setTitlebarAppearsTransparent :: proc "c" (self: ^Window, ok: bool) {…}
window->setTitlebarAppearsTransparent(ok)
Window_setToolbar ¶
Window_setToolbar :: proc "c" (self: ^Window, toolbar: ^Toolbar) {…}
window->setToolbar(toolbar)
Window_setWantsLayer ¶
Window_setWantsLayer :: proc "c" (self: ^Window, ok: bool) {…}
window->setWantsLayer(ok)
Window_toggleFullScreen ¶
Window_toggleFullScreen :: proc "c" (self: ^Window, sender: ^intrinsics.objc_object) {…}
window->toggleFullScreen(sender)
alloc ¶
alloc :: proc "c" ($T: typeid) -> ^T {…}
alloc_user_object ¶
@(require_results) alloc_user_object :: proc "contextless" ( cls: ^intrinsics.objc_class, _context: runtime.Maybe($T=Context) = nil, ) -> ^intrinsics.objc_object {…}
application_delegate_register_and_alloc ¶
application_delegate_register_and_alloc :: proc( template: ApplicationDelegateTemplate, class_name: string, delegate_context: runtime.Maybe($T=Context), ) -> ^ApplicationDelegate {…}
autorelease ¶
autorelease :: proc "c" (self: ^Object) {…}
object->autorelease()
bridgingCast ¶
bridgingCast :: proc "c" ($T: typeid, obj: ^Object) {…}
class ¶
class :: proc "c" (self: ^Object) -> ^intrinsics.objc_class {…}
class := object->class()
class_addMethod ¶
class_addMethod :: proc "c" ( cls: ^intrinsics.objc_class, name: ^intrinsics.objc_selector, imp: IMP, types: cstring, ) -> bool ---
External examples metal/learn_metal/02-argbuffers-no-sdl
class_addProperty ¶
class_addProperty :: proc "c" ( cls: ^intrinsics.objc_class, name: cstring, attributes: [^]objc_property_attribute_t, attributeCount: uint, ) -> bool ---
class_addProtocol ¶
class_addProtocol :: proc "c" (cls: ^intrinsics.objc_class, protocol: ^Protocol) -> bool ---
class_conformsToProtocol ¶
class_conformsToProtocol :: proc "c" ( cls: ^intrinsics.objc_class, protocol: ^Protocol, ) -> bool ---
class_copyIvarList ¶
class_copyIvarList :: proc "c" (cls: ^intrinsics.objc_class, outCount: ^uint) -> [^]^objc_ivar ---
class_copyMethodList ¶
class_copyMethodList :: proc "c" ( cls: ^intrinsics.objc_class, outCount: ^uint, ) -> [^]^objc_method ---
class_copyPropertyList ¶
class_copyPropertyList :: proc "c" ( cls: ^intrinsics.objc_class, outCount: ^uint, ) -> [^]^objc_property ---
class_copyProtocolList ¶
class_copyProtocolList :: proc "c" ( cls: ^intrinsics.objc_class, outCount: ^uint, ) -> [^]^Protocol ---
class_createInstance ¶
class_createInstance :: proc "c" ( cls: ^intrinsics.objc_class, extraBytes: uint, ) -> ^intrinsics.objc_object ---
External examples metal/learn_metal/02-argbuffers-no-sdl
class_getClassMethod ¶
class_getClassMethod :: proc "c" ( cls: ^intrinsics.objc_class, name: ^intrinsics.objc_selector, ) -> ^objc_method ---
class_getClassVariable ¶
class_getClassVariable :: proc "c" (cls: ^intrinsics.objc_class, name: cstring) -> ^objc_ivar ---
class_getInstanceMethod ¶
class_getInstanceMethod :: proc "c" ( cls: ^intrinsics.objc_class, name: ^intrinsics.objc_selector, ) -> ^objc_method ---
class_getInstanceSize ¶
class_getInstanceSize :: proc "c" (cls: ^intrinsics.objc_class) -> uint ---
class_getInstanceVariable ¶
class_getInstanceVariable :: proc "c" ( cls: ^intrinsics.objc_class, name: cstring, ) -> ^objc_ivar ---
class_getMethodImplementation ¶
class_getMethodImplementation :: proc "c" ( cls: ^intrinsics.objc_class, name: ^intrinsics.objc_selector, ) -> IMP ---
class_getName ¶
class_getName :: proc "c" (cls: ^intrinsics.objc_class) -> cstring ---
class_getProperty ¶
class_getProperty :: proc "c" (cls: ^intrinsics.objc_class, name: cstring) -> ^objc_property ---
class_getSuperclass ¶
class_getSuperclass :: proc "c" (cls: ^intrinsics.objc_class) -> ^intrinsics.objc_class ---
class_getVersion ¶
class_getVersion :: proc "c" (cls: ^intrinsics.objc_class) -> i32 ---
class_get_metaclass ¶
@(require_results) class_get_metaclass :: proc "contextless" (cls: ^intrinsics.objc_class) -> ^intrinsics.objc_class {…}
class_get_vtable_info ¶
@(require_results) class_get_vtable_info :: proc "contextless" (cls: ^intrinsics.objc_class) -> ^Class_VTable_Info {…}
class_isMetaClass ¶
class_isMetaClass :: proc "c" (cls: ^intrinsics.objc_class) -> bool ---
class_replaceMethod ¶
class_replaceMethod :: proc "c" ( cls: ^intrinsics.objc_class, name: ^intrinsics.objc_selector, imp: IMP, types: cstring, ) -> IMP ---
class_replaceProperty ¶
class_replaceProperty :: proc "c" ( cls: ^intrinsics.objc_class, name: cstring, attributes: [^]objc_property_attribute_t, attributeCount: uint, ) ---
class_respondsToSelector ¶
class_respondsToSelector :: proc "c" ( cls: ^intrinsics.objc_class, sel: ^intrinsics.objc_selector, ) -> bool ---
class_setVersion ¶
class_setVersion :: proc "c" (cls: ^intrinsics.objc_class, version: i32) ---
debugDescription ¶
debugDescription :: proc "c" (self: ^Object) -> ^String {…}
debugDescription := object->debugDescription()
description ¶
description :: proc "c" (self: ^Object) -> ^String {…}
description := object->description()
make_subclasser ¶
@(require_results) make_subclasser :: proc( vtable: ^$T, impl: proc(cls: ^intrinsics.objc_class, vt: ^$T), ) -> Object_VTable_Info {…}
methodSignatureForSelector ¶
methodSignatureForSelector :: proc "c" ( obj: ^Object, selector: ^intrinsics.objc_selector, ) -> rawptr {…}
method_copyArgumentType ¶
method_copyArgumentType :: proc "c" (m: ^objc_method, index: uint) -> cstring ---
method_getArgumentType ¶
method_getArgumentType :: proc "c" (m: ^objc_method, index: uint, dst: cstring, dst_len: uint) ---
method_getImplementation ¶
method_getImplementation :: proc "c" (m: ^objc_method) -> IMP ---
method_getNumberOfArguments ¶
method_getNumberOfArguments :: proc "c" (m: ^objc_method) -> uint ---
method_getReturnType ¶
method_getReturnType :: proc "c" (m: ^objc_method, dst: cstring, dst_len: uint) ---
method_setImplementation ¶
method_setImplementation :: proc "c" (m: ^objc_method, imp: IMP) ---
msgSendSafeCheck ¶
msgSendSafeCheck :: proc "c" (obj: ^Object, selector: ^intrinsics.objc_selector) -> bool {…}
new ¶
new :: proc "c" ($T: typeid) -> ^T {…}
objc_allocateClassPair ¶
objc_allocateClassPair :: proc "c" ( superclass: ^intrinsics.objc_class, name: cstring, extraBytes: uint, ) -> ^intrinsics.objc_class ---
External examples metal/learn_metal/02-argbuffers-no-sdl
objc_constructInstance ¶
objc_constructInstance :: proc "c" ( cls: ^intrinsics.objc_class, bytes: rawptr, ) -> ^intrinsics.objc_object ---
objc_copyClassList ¶
objc_copyClassList :: proc "c" (outCount: ^uint) -> [^]^intrinsics.objc_class ---
objc_destructInstance ¶
objc_destructInstance :: proc "c" (obj: ^intrinsics.objc_object) -> rawptr ---
objc_disposeClassPair ¶
objc_disposeClassPair :: proc "c" (cls: ^intrinsics.objc_class) ---
objc_duplicateClass ¶
objc_duplicateClass :: proc "c" ( original: ^intrinsics.objc_class, name: cstring, extraBytes: uint, ) -> ^intrinsics.objc_class ---
objc_getAssociatedObject ¶
objc_getAssociatedObject :: proc "c" ( object: ^intrinsics.objc_object, key: rawptr, ) -> ^intrinsics.objc_object ---
objc_getClassList ¶
objc_getClassList :: proc "c" (buffer: [^]^intrinsics.objc_class, bufferCount: int) -> int ---
objc_getMetaClass ¶
objc_getMetaClass :: proc "c" (name: cstring) -> ^intrinsics.objc_object ---
objc_getRequiredClass ¶
objc_getRequiredClass :: proc "c" (name: cstring) -> ^intrinsics.objc_class ---
objc_lookUpClass ¶
objc_lookUpClass :: proc "c" (name: cstring) -> ^intrinsics.objc_class ---
objc_registerClassPair ¶
objc_registerClassPair :: proc "c" (cls: ^intrinsics.objc_class) ---
External examples metal/learn_metal/02-argbuffers-no-sdl
objc_removeAssociatedObjects ¶
objc_removeAssociatedObjects :: proc "c" (object: ^intrinsics.objc_object) ---
objc_setAssociatedObject ¶
objc_setAssociatedObject :: proc "c" ( object: ^intrinsics.objc_object, key: rawptr, value: ^intrinsics.objc_object, policy: objc_AssociationPolicy, ) ---
object_copy ¶
object_copy :: proc "c" (obj: ^intrinsics.objc_object, size: uint) -> ^intrinsics.objc_object ---
object_dispose ¶
object_dispose :: proc "c" (obj: ^intrinsics.objc_object) -> ^intrinsics.objc_object ---
object_getClass ¶
object_getClass :: proc "c" (obj: ^intrinsics.objc_object) -> ^intrinsics.objc_class ---
object_getClassName ¶
object_getClassName :: proc "c" (obj: ^intrinsics.objc_object) -> cstring ---
object_getIndexedIvars ¶
object_getIndexedIvars :: proc "c" (obj: ^intrinsics.objc_object) -> rawptr ---
object_getInstanceVariable ¶
object_getInstanceVariable :: proc "c" ( obj: ^intrinsics.objc_object, name: cstring, outValue: rawptr, ) -> ^objc_ivar ---
object_getIvar ¶
object_getIvar :: proc "c" ( obj: ^intrinsics.objc_object, ivar: ^objc_ivar, ) -> ^intrinsics.objc_object ---
object_get_vtable_info ¶
@(require_results) object_get_vtable_info :: proc "contextless" (obj: ^intrinsics.objc_object) -> ^Class_VTable_Info {…}
object_setClass ¶
object_setClass :: proc "c" ( obj: ^intrinsics.objc_object, cls: ^intrinsics.objc_class, ) -> ^intrinsics.objc_class ---
object_setInstanceVariable ¶
object_setInstanceVariable :: proc "c" ( obj: ^intrinsics.objc_object, name: cstring, value: rawptr, ) -> ^objc_ivar ---
object_setIvar ¶
object_setIvar :: proc "c" ( obj: ^intrinsics.objc_object, ivar: ^objc_ivar, value: ^intrinsics.objc_object, ) ---
performSelectorOnMainThread ¶
performSelectorOnMainThread :: proc "c" ( self: ^Object, aSelector: ^intrinsics.objc_selector, arg: ^intrinsics.objc_object, wait: bool, ) {…}
object->performSelectorOnMainThread(aSelector, arg, wait)
property_copyAttributeList ¶
property_copyAttributeList :: proc "c" ( property: ^objc_property, outCount: ^uint, ) -> [^]objc_property_attribute_t ---
property_copyAttributeValue ¶
property_copyAttributeValue :: proc "c" ( property: ^objc_property, attributeName: cstring, ) -> cstring ---
property_getAttributes ¶
property_getAttributes :: proc "c" (property: ^objc_property) -> cstring ---
property_getName ¶
property_getName :: proc "c" (property: ^objc_property) -> cstring ---
register_subclass ¶
@(require_results) register_subclass :: proc( class_name: cstring, superclass: ^intrinsics.objc_class, superclass_overrides: runtime.Maybe($T=Object_VTable_Info) = nil, protocol: runtime.Maybe($T=Object_VTable_Info) = nil, _context: runtime.Maybe($T=Context) = nil, ) -> ^intrinsics.objc_class {…}
respondsToSelector ¶
respondsToSelector :: proc "c" (obj: ^Object, selector: ^intrinsics.objc_selector) -> bool {…}
retainCount ¶
retainCount :: proc "c" (self: ^Object) -> UInteger {…}
retainCount := object->retainCount()
scoped_autoreleasepool ¶
@(deferred_out=AutoreleasePool_drain) scoped_autoreleasepool :: proc "c" () -> ^AutoreleasePool {…}
External examples metal/learn_metal/02-argbuffers-no-sdl · metal/minimal_sdl2
sel_getName ¶
sel_getName :: proc "c" (sel: ^intrinsics.objc_selector) -> cstring ---
sel_isEqual ¶
sel_isEqual :: proc "c" (lhs, rhs: ^intrinsics.objc_selector) -> bool ---
sel_registerName ¶
sel_registerName :: proc "c" (name: cstring) -> ^intrinsics.objc_selector ---
window_delegate_register_and_alloc ¶
window_delegate_register_and_alloc :: proc( template: WindowDelegateTemplate, class_name: string, delegate_context: runtime.Maybe($T=Context), ) -> ^WindowDelegate {…}
External examples metal/learn_metal/02-argbuffers-no-sdl
Procedure Groups
BitmapImageRep_initWithBitmapDataPlanes ¶ overloaded
BitmapImageRep_initWithBitmapDataPlanes :: proc{ BitmapImageRep_initWithBitmapDataPlanes_legacy, BitmapImageRep_initWithBitmapDataPlanes_bitmapFormat, }
res := bitmapImageRep->initWithBitmapDataPlanes( bitmapDataPlanes, pixelsWide, pixelsHigh, bitsPerSample, samplesPerPixel, hasAlpha, isPlanar, colorSpaceName, bytesPerRow, bitsPerPixel, ) res := bitmapImageRep->initWithBitmapDataPlanes( bitmapDataPlanes, pixelsWide, pixelsHigh, bitsPerSample, samplesPerPixel, hasAlpha, isPlanar, colorSpaceName, bitmapFormat, bytesPerRow, bitsPerPixel, )
MenuDelegate_menu ¶ overloaded
MenuDelegate_menu :: proc{ MenuDelegate_menu_updateItem_atIndex_shouldCancel, MenuDelegate_menu_willHighlightItem, }
res := menuDelegate->menu(menu, item, index, shouldCancel) menuDelegate->menu(menu, item)
MenuItem_cancelPreviousPerformRequestsWithTarget ¶ overloaded
MenuItem_cancelPreviousPerformRequestsWithTarget :: proc{ MenuItem_cancelPreviousPerformRequestsWithTarget_selector_object, MenuItem_cancelPreviousPerformRequestsWithTarget_, }
menuItem->cancelPreviousPerformRequestsWithTarget(aSelector, anArgument) menuItem->cancelPreviousPerformRequestsWithTarget()
Menu_cancelPreviousPerformRequestsWithTarget ¶ overloaded
Menu_cancelPreviousPerformRequestsWithTarget :: proc{ Menu_cancelPreviousPerformRequestsWithTarget_selector_object, Menu_cancelPreviousPerformRequestsWithTarget_, }
menu->cancelPreviousPerformRequestsWithTarget(aSelector, anArgument) menu->cancelPreviousPerformRequestsWithTarget()
Menu_paletteMenuWithColors ¶ overloaded
Menu_paletteMenuWithColors :: proc{ Menu_paletteMenuWithColors_titles_selectionHandler, }
res := menu->paletteMenuWithColors(itemTitles, onSelectionChange)
Menu_popUpContextMenu ¶ overloaded
Menu_popUpContextMenu :: proc{ Menu_popUpContextMenu_withEvent_forView, }
menu->popUpContextMenu(event, view)
NotificationCenter_addObserverForName ¶ overloaded
NotificationCenter_addObserverForName :: proc{ NotificationCenter_addObserverForName_old, NotificationCenter_addObserverForName_new, }
object := notificationCenter->addObserverForName(name, pObj, pQueue, block) object := notificationCenter->addObserverForName(name, pObj, pQueue, block)
Number_number ¶ class method overloaded
Number_number :: proc{ Number_numberWithI8, Number_numberWithU8, Number_numberWithI16, Number_numberWithU16, Number_numberWithI32, Number_numberWithU32, Number_numberWithInt, Number_numberWithUint, Number_numberWithU64, Number_numberWithI64, Number_numberWithF32, Number_numberWithF64, Number_numberWithBool, }
number := Number.number(value) number := Number.number(value) number := Number.number(value) number := Number.number(value) number := Number.number(value) number := Number.number(value) number := Number.number(value) number := Number.number(value) number := Number.number(value) number := Number.number(value) number := Number.number(value) number := Number.number(value) number := Number.number(value)
Source Files
- NSApplication.odin
- NSArray.odin
- NSAutoreleasePool.odin
- NSBitmapImageRep.odin
- NSBlock.odin
- NSBundle.odin
- NSColor.odin
- NSCursor.odin
- NSData.odin
- NSDate.odin
- NSDictionary.odin
- NSEnumerator.odin
- NSError.odin
- NSEvent.odin
- NSImage.odin
- NSImageRep.odin
- NSLock.odin
- NSMenu.odin
- NSMenuItem.odin
- NSNotification.odin
- NSNumber.odin
- NSObject.odin
- NSObjectProtocol.odin
- NSOpenPanel.odin
- NSPanel.odin
- NSPasteboard.odin
- NSProcessInfo.odin
- NSRange.odin
- NSRunLoop.odin
- NSSavePanel.odin
- NSScreen.odin
- NSSet.odin
- NSString.odin
- NSTimer.odin
- NSToolbar.odin
- NSTypes.odin
- NSURL.odin
- NSURLRequest.odin
- NSURLResponse.odin
- NSUndoManager.odin
- NSUserActivity.odin
- NSUserDefaults.odin
- NSWindow.odin
- objc.odin
- objc_helper.odin
Generation Information
Generated with odin version dev-2026-10 (vendor "odin") Windows_amd64 @ 2026-10-10 00:25:51.511820200 +0000 UTC