foundation

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package foundation provides purego-based Go bindings for the macOS Foundation framework.

Apple documentation: https://developer.apple.com/documentation/foundation

Index

Constants

View Source
const (
	NSASCIIStringEncoding             = 1
	NSISO2022JPStringEncoding         = 21
	NSISOLatin1StringEncoding         = 5
	NSISOLatin2StringEncoding         = 9
	NSJapaneseEUCStringEncoding       = 3
	NSMacOSRomanStringEncoding        = 30
	NSNEXTSTEPStringEncoding          = 2
	NSNonLossyASCIIStringEncoding     = 7
	NSShiftJISStringEncoding          = 8
	NSSymbolStringEncoding            = 6
	NSUTF16BigEndianStringEncoding    = 2415919360
	NSUTF16LittleEndianStringEncoding = 2483028224
	NSUTF16StringEncoding             = 10
	NSUTF32BigEndianStringEncoding    = 2550137088
	NSUTF32LittleEndianStringEncoding = 2617245952
	NSUTF32StringEncoding             = 2348810496
	NSUTF8StringEncoding              = 4
	NSUnicodeStringEncoding           = 10
	NSWindowsCP1250StringEncoding     = 15
	NSWindowsCP1251StringEncoding     = 11
	NSWindowsCP1252StringEncoding     = 12
	NSWindowsCP1253StringEncoding     = 13
	NSWindowsCP1254StringEncoding     = 14
)
View Source
const (
	NSBundleExecutableArchitectureARM64  = 16777228
	NSBundleExecutableArchitectureI386   = 7
	NSBundleExecutableArchitecturePPC    = 18
	NSBundleExecutableArchitecturePPC64  = 16777234
	NSBundleExecutableArchitectureX86_64 = 16777223
)
View Source
const (
	NSDateComponentUndefined = 9223372036854775807
	NSUndefinedDateComponent = 9223372036854775807
)
View Source
const (
	NSBundleErrorMaximum                             = 5119
	NSBundleErrorMinimum                             = 4992
	NSBundleOnDemandResourceExceededMaximumSizeError = 4993
	NSBundleOnDemandResourceInvalidTagError          = 4994
	NSBundleOnDemandResourceOutOfSpaceError          = 4992
	NSCloudSharingConflictError                      = 5123
	NSCloudSharingErrorMaximum                       = 5375
	NSCloudSharingErrorMinimum                       = 5120
	NSCloudSharingNetworkFailureError                = 5120
	NSCloudSharingNoPermissionError                  = 5124
	NSCloudSharingOtherError                         = 5375
	NSCloudSharingQuotaExceededError                 = 5121
	NSCloudSharingTooManyParticipantsError           = 5122
	NSCoderErrorMaximum                              = 4991
	NSCoderErrorMinimum                              = 4864
	NSCoderInvalidValueError                         = 4866
	NSCoderReadCorruptError                          = 4864
	NSCoderValueNotFoundError                        = 4865
	NSCompressionErrorMaximum                        = 5503
	NSCompressionErrorMinimum                        = 5376
	NSCompressionFailedError                         = 5376
	NSDecompressionFailedError                       = 5377
	NSExecutableArchitectureMismatchError            = 3585
	NSExecutableErrorMaximum                         = 3839
	NSExecutableErrorMinimum                         = 3584
	NSExecutableLinkError                            = 3588
	NSExecutableLoadError                            = 3587
	NSExecutableNotLoadableError                     = 3584
	NSExecutableRuntimeMismatchError                 = 3586
	NSFeatureUnsupportedError                        = 3328
	NSFileErrorMaximum                               = 1023
	NSFileErrorMinimum                               = 0
	NSFileLockingError                               = 255
	NSFileManagerUnmountBusyError                    = 769
	NSFileManagerUnmountUnknownError                 = 768
	NSFileNoSuchFileError                            = 4
	NSFileReadCorruptFileError                       = 259
	NSFileReadInapplicableStringEncodingError        = 261
	NSFileReadInvalidFileNameError                   = 258
	NSFileReadNoPermissionError                      = 257
	NSFileReadNoSuchFileError                        = 260
	NSFileReadTooLargeError                          = 263
	NSFileReadUnknownError                           = 256
	NSFileReadUnknownStringEncodingError             = 264
	NSFileReadUnsupportedSchemeError                 = 262
	NSFileWriteFileExistsError                       = 516
	NSFileWriteInapplicableStringEncodingError       = 517
	NSFileWriteInvalidFileNameError                  = 514
	NSFileWriteNoPermissionError                     = 513
	NSFileWriteOutOfSpaceError                       = 640
	NSFileWriteUnknownError                          = 512
	NSFileWriteUnsupportedSchemeError                = 518
	NSFileWriteVolumeReadOnlyError                   = 642
	NSFormattingError                                = 2048
	NSFormattingErrorMaximum                         = 2559
	NSFormattingErrorMinimum                         = 2048
	NSKeyValueValidationError                        = 1024
	NSPropertyListErrorMaximum                       = 4095
	NSPropertyListErrorMinimum                       = 3840
	NSPropertyListReadCorruptError                   = 3840
	NSPropertyListReadStreamError                    = 3842
	NSPropertyListReadUnknownVersionError            = 3841
	NSPropertyListWriteInvalidError                  = 3852
	NSPropertyListWriteStreamError                   = 3851
	NSUbiquitousFileErrorMaximum                     = 4607
	NSUbiquitousFileErrorMinimum                     = 4352
	NSUbiquitousFileNotUploadedDueToQuotaError       = 4354
	NSUbiquitousFileUbiquityServerNotAvailable       = 4355
	NSUbiquitousFileUnavailableError                 = 4353
	NSUserActivityConnectionUnavailableError         = 4609
	NSUserActivityErrorMaximum                       = 4863
	NSUserActivityErrorMinimum                       = 4608
	NSUserActivityHandoffFailedError                 = 4608
	NSUserActivityHandoffUserInfoTooLargeError       = 4611
	NSUserActivityRemoteApplicationTimedOutError     = 4610
	NSUserCancelledError                             = 3072
	NSValidationErrorMaximum                         = 2047
	NSValidationErrorMinimum                         = 1024
	NSXPCConnectionCodeSigningRequirementFailure     = 4102
	NSXPCConnectionErrorMaximum                      = 4224
	NSXPCConnectionErrorMinimum                      = 4096
	NSXPCConnectionInterrupted                       = 4097
	NSXPCConnectionInvalid                           = 4099
	NSXPCConnectionReplyInvalid                      = 4101
)
View Source
const (
	NSArgumentEvaluationScriptError          = 3
	NSArgumentsWrongScriptError              = 6
	NSCannotCreateScriptCommandError         = 10
	NSInternalScriptError                    = 8
	NSKeySpecifierEvaluationScriptError      = 2
	NSNoScriptError                          = 0
	NSOperationNotSupportedForKeyScriptError = 9
	NSReceiverEvaluationScriptError          = 1
	NSReceiversCantHandleCommandScriptError  = 4
	NSRequiredArgumentsMissingScriptError    = 5
	NSUnknownKeyScriptError                  = 7
)
View Source
const (
	NSContainerSpecifierError                   = 2
	NSInternalSpecifierError                    = 5
	NSInvalidIndexSpecifierError                = 4
	NSNoSpecifierError                          = 0
	NSNoTopLevelContainersSpecifierError        = 1
	NSOperationNotSupportedForKeySpecifierError = 6
	NSUnknownKeySpecifierError                  = 3
)
View Source
const (
	NSCollectorDisabledOption = 2
	NSScannedOption           = 1
)
View Source
const (
	NSTextCheckingAllCustomTypes = 18446744069414584320
	NSTextCheckingAllSystemTypes = 4294967295
	NSTextCheckingAllTypes       = 18446744073709551615
)
View Source
const (
	NSURLErrorCancelledReasonBackgroundUpdatesDisabled   = 1
	NSURLErrorCancelledReasonInsufficientSystemResources = 2
	NSURLErrorCancelledReasonUserForceQuitApplication    = 0
)
View Source
const (
	NSURLErrorAppTransportSecurityRequiresSecureConnection = -1022
	NSURLErrorBackgroundSessionInUseByAnotherProcess       = -996
	NSURLErrorBackgroundSessionRequiresSharedContainer     = -995
	NSURLErrorBackgroundSessionWasDisconnected             = -997
	NSURLErrorBadServerResponse                            = -1011
	NSURLErrorBadURL                                       = -1000
	NSURLErrorCallIsActive                                 = -1019
	NSURLErrorCancelled                                    = -999
	NSURLErrorCannotCloseFile                              = -3002
	NSURLErrorCannotConnectToHost                          = -1004
	NSURLErrorCannotCreateFile                             = -3000
	NSURLErrorCannotDecodeContentData                      = -1016
	NSURLErrorCannotDecodeRawData                          = -1015
	NSURLErrorCannotFindHost                               = -1003
	NSURLErrorCannotLoadFromNetwork                        = -2000
	NSURLErrorCannotMoveFile                               = -3005
	NSURLErrorCannotOpenFile                               = -3001
	NSURLErrorCannotParseResponse                          = -1017
	NSURLErrorCannotRemoveFile                             = -3004
	NSURLErrorCannotWriteToFile                            = -3003
	NSURLErrorClientCertificateRejected                    = -1205
	NSURLErrorClientCertificateRequired                    = -1206
	NSURLErrorDNSLookupFailed                              = -1006
	NSURLErrorDataLengthExceedsMaximum                     = -1103
	NSURLErrorDataNotAllowed                               = -1020
	NSURLErrorDownloadDecodingFailedMidStream              = -3006
	NSURLErrorDownloadDecodingFailedToComplete             = -3007
	NSURLErrorFileDoesNotExist                             = -1100
	NSURLErrorFileIsDirectory                              = -1101
	NSURLErrorFileOutsideSafeArea                          = -1104
	NSURLErrorHTTPTooManyRedirects                         = -1007
	NSURLErrorInternationalRoamingOff                      = -1018
	NSURLErrorNetworkConnectionLost                        = -1005
	NSURLErrorNoPermissionsToReadFile                      = -1102
	NSURLErrorNotConnectedToInternet                       = -1009
	NSURLErrorRedirectToNonExistentLocation                = -1010
	NSURLErrorRequestBodyStreamExhausted                   = -1021
	NSURLErrorResourceUnavailable                          = -1008
	NSURLErrorSecureConnectionFailed                       = -1200
	NSURLErrorServerCertificateHasBadDate                  = -1201
	NSURLErrorServerCertificateHasUnknownRoot              = -1203
	NSURLErrorServerCertificateNotYetValid                 = -1204
	NSURLErrorServerCertificateUntrusted                   = -1202
	NSURLErrorTimedOut                                     = -1001
	NSURLErrorUnknown                                      = -1
	NSURLErrorUnsupportedURL                               = -1002
	NSURLErrorUserAuthenticationRequired                   = -1013
	NSURLErrorUserCancelledAuthentication                  = -1012
	NSURLErrorZeroByteResource                             = -1014
)
View Source
const (
	NSUbiquitousKeyValueStoreAccountChange        = 3
	NSUbiquitousKeyValueStoreInitialSyncChange    = 1
	NSUbiquitousKeyValueStoreQuotaViolationChange = 2
	NSUbiquitousKeyValueStoreServerChange         = 0
)
View Source
const (
	NSHPUXOperatingSystem      = 4
	NSMACHOperatingSystem      = 5
	NSOSF1OperatingSystem      = 7
	NSSolarisOperatingSystem   = 3
	NSSunOSOperatingSystem     = 6
	NSWindows95OperatingSystem = 2
	NSWindowsNTOperatingSystem = 1
)
View Source
const (
	NS_BigEndian        = 2
	NS_LittleEndian     = 1
	NS_UnknownByteOrder = 0
)
View Source
const (
	NSOpenStepUnicodeReservedBase = 62464
)
View Source
const (
	NSProprietaryStringEncoding = 65536
)
View Source
const (
	NSWrapCalendarComponents = 1
)

Variables

This section is empty.

Functions

func CFBridgingRelease

func CFBridgingRelease(x unsafe.Pointer) unsafe.Pointer

func CFBridgingRetain

func CFBridgingRetain(x objc.ID) unsafe.Pointer

func NSAMPMDesignation deprecated

func NSAMPMDesignation() uintptr

Deprecated: since macOS 10.5.

func NSAllocateCollectable

func NSAllocateCollectable(size uint, options uint) unsafe.Pointer

func NSAllocateMemoryPages

func NSAllocateMemoryPages(bytes_ uint) unsafe.Pointer

func NSAllocateObject

func NSAllocateObject(aClass objc.Class, extraBytes uint, zone unsafe.Pointer) objc.ID

func NSAlternateDescriptionAttributeName

func NSAlternateDescriptionAttributeName() uintptr

func NSAppleEventTimeOutDefault

func NSAppleEventTimeOutDefault() uintptr

func NSAppleEventTimeOutNone

func NSAppleEventTimeOutNone() uintptr

func NSAppleScriptErrorAppName

func NSAppleScriptErrorAppName() uintptr

func NSAppleScriptErrorBriefMessage

func NSAppleScriptErrorBriefMessage() uintptr

func NSAppleScriptErrorMessage

func NSAppleScriptErrorMessage() uintptr

func NSAppleScriptErrorNumber

func NSAppleScriptErrorNumber() uintptr

func NSAppleScriptErrorRange

func NSAppleScriptErrorRange() uintptr

func NSArchiverArchiveRootObjectToFile

func NSArchiverArchiveRootObjectToFile(rootObject objc.ID, path *NSString) bool

Creates a temporary instance of NSArchiver and archives an object graph by encoding it into a data object and writing the resulting data object to a specified file.

func NSArgumentDomain

func NSArgumentDomain() uintptr

NSArgumentDomain identifies a search list entry containing the commandline arguments the application was launched with, if any. Arguments must be formatted as '-key plistvalue'. NSArgumentDomain is automatically included in all search lists, after forced defaults, but before all other entries. This can be useful for testing purposes.

func NSAssertionHandlerKey

func NSAssertionHandlerKey() uintptr

func NSAutoreleasePoolAddObject

func NSAutoreleasePoolAddObject(anObject objc.ID)

Adds a given object to the active autorelease pool in the current thread.

func NSBuddhistCalendar deprecated

func NSBuddhistCalendar() uintptr

Deprecated: since macOS 10.10.

func NSCalendarDateCalendarDate deprecated

func NSCalendarDateCalendarDate() objc.ID

Deprecated: Use NSCalendar instead

func NSCalendarDateDateWithStringCalendarFormat deprecated

func NSCalendarDateDateWithStringCalendarFormat(description *NSString, format *NSString) objc.ID

Deprecated: Use NSDateFormatter instead

func NSCalendarDateDateWithStringCalendarFormatLocale deprecated

func NSCalendarDateDateWithStringCalendarFormatLocale(description *NSString, format *NSString, locale objc.ID) objc.ID

Deprecated: Use NSDateFormatter instead

func NSCalendarDateDateWithYearMonthDayHourMinuteSecondTimeZone deprecated

func NSCalendarDateDateWithYearMonthDayHourMinuteSecondTimeZone(year int, month uint, day uint, hour uint, minute uint, second uint, aTimeZone *NSTimeZone) objc.ID

Deprecated: Use NSCalendar and NSDateComponents instead

func NSChineseCalendar deprecated

func NSChineseCalendar() uintptr

Deprecated: since macOS 10.10.

func NSClassDescriptionInvalidateClassDescriptionCache

func NSClassDescriptionInvalidateClassDescriptionCache()

Removes all NSClassDescription objects from the cache.

func NSClassDescriptionRegisterClassDescriptionForClass

func NSClassDescriptionRegisterClassDescriptionForClass(description *NSClassDescription, aClass objc.Class)

Registers an NSClassDescription object for a given class in the NSClassDescription cache.

func NSClassFromString

func NSClassFromString(aClassName *NSString) objc.Class

func NSCompareHashTables

func NSCompareHashTables(table1 *NSHashTable[objc.ID], table2 *NSHashTable[objc.ID]) bool

func NSCompareMapTables

func NSCompareMapTables(table1 *NSMapTable[objc.ID, objc.ID], table2 *NSMapTable[objc.ID, objc.ID]) bool

func NSConnectionCurrentConversation

func NSConnectionCurrentConversation() objc.ID

Returns a token object representing any conversation in progress in the current thread.

func NSConnectionDidDieNotification deprecated

func NSConnectionDidDieNotification() uintptr

Deprecated: Use NSXPCConnection instead

func NSConnectionDidInitializeNotification deprecated

func NSConnectionDidInitializeNotification() uintptr

Deprecated: Use NSXPCConnection instead

func NSConnectionReplyMode deprecated

func NSConnectionReplyMode() uintptr

Deprecated: Use NSXPCConnection instead

func NSContainsRect

func NSContainsRect(aRect corefoundation.CGRect, bRect corefoundation.CGRect) bool

func NSConvertSwappedDoubleToHost

func NSConvertSwappedDoubleToHost(x NSSwappedDouble) float64

func NSConvertSwappedFloatToHost

func NSConvertSwappedFloatToHost(x NSSwappedFloat) float32

func NSCopyMapTableWithZone

func NSCopyMapTableWithZone(table *NSMapTable[objc.ID, objc.ID], zone unsafe.Pointer) unsafe.Pointer

func NSCopyMemoryPages

func NSCopyMemoryPages(source unsafe.Pointer, dest unsafe.Pointer, bytes_ uint)

func NSCopyObject deprecated

func NSCopyObject(object objc.ID, extraBytes uint, zone unsafe.Pointer) objc.ID

Deprecated: Not supported

func NSCountHashTable

func NSCountHashTable(table *NSHashTable[objc.ID]) uint

func NSCountMapTable

func NSCountMapTable(table *NSMapTable[objc.ID, objc.ID]) uint

func NSCreateMapTable

func NSCreateMapTable(keyCallBacks NSMapTableKeyCallBacks, valueCallBacks NSMapTableValueCallBacks, capacity uint) unsafe.Pointer

func NSCreateMapTableWithZone

func NSCreateMapTableWithZone(keyCallBacks NSMapTableKeyCallBacks, valueCallBacks NSMapTableValueCallBacks, capacity uint, zone unsafe.Pointer) unsafe.Pointer

func NSCreateZone

func NSCreateZone(startSize uint, granularity uint, canFree bool) unsafe.Pointer

func NSCurrencySymbol deprecated

func NSCurrencySymbol() uintptr

Deprecated: since macOS 10.5.

func NSDataDataWithContentsOfMappedFile

func NSDataDataWithContentsOfMappedFile(path *NSString) objc.ID

Creates a data object from the mapped file at a given path. Deprecated: Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.

func NSDateDateWithNaturalLanguageString

func NSDateDateWithNaturalLanguageString(string_ *NSString) objc.ID

Creates and returns a date object set to the date and time specified by a given string. Deprecated: Create an NSDateFormatter with `init` and set the dateFormat property instead.

func NSDateDateWithNaturalLanguageStringLocale

func NSDateDateWithNaturalLanguageStringLocale(string_ *NSString, locale objc.ID) objc.ID

Creates and returns a date object set to the date and time specified by a given string. Deprecated: Create an NSDateFormatter with `init` and set the dateFormat property instead.

func NSDateDateWithString

func NSDateDateWithString(aString *NSString) objc.ID

Creates and returns a date object with a date and time value specified by a given string in the international string representation format (YYYY-MM-DD HH:MM:SS ±HHMM). Deprecated: Use NSDateFormatter instead

func NSDateFormatString deprecated

func NSDateFormatString() uintptr

Deprecated: since macOS 10.5.

func NSDateFormatterSetDefaultFormatterBehavior

func NSDateFormatterSetDefaultFormatterBehavior(defaultFormatterBehavior NSDateFormatterBehavior)

func NSDateTimeIntervalSinceReferenceDate

func NSDateTimeIntervalSinceReferenceDate() float64

func NSDateTimeOrdering deprecated

func NSDateTimeOrdering() uintptr

Deprecated: since macOS 10.5.

func NSDeallocateMemoryPages

func NSDeallocateMemoryPages(ptr unsafe.Pointer, bytes_ uint)

func NSDeallocateObject

func NSDeallocateObject(object objc.ID)

func NSDecimalCompact

func NSDecimalCompact(number *NSDecimal)

func NSDecimalCopy

func NSDecimalCopy(destination *NSDecimal, source *NSDecimal)

func NSDecimalDigits deprecated

func NSDecimalDigits() uintptr

Deprecated: since macOS 10.5.

func NSDecimalIsNotANumber

func NSDecimalIsNotANumber(dcm *NSDecimal) bool

func NSDecimalNumberSetDefaultBehavior

func NSDecimalNumberSetDefaultBehavior(defaultBehavior NSDecimalNumberBehaviors)

func NSDecimalRound

func NSDecimalRound(result *NSDecimal, number *NSDecimal, scale int, roundingMode NSRoundingMode)

func NSDecimalSeparator deprecated

func NSDecimalSeparator() uintptr

Deprecated: since macOS 10.5.

func NSDecrementExtraRefCountWasZero

func NSDecrementExtraRefCountWasZero(object objc.ID) bool

func NSDefaultMallocZone

func NSDefaultMallocZone() unsafe.Pointer

func NSDictionarySharedKeySetForKeys

func NSDictionarySharedKeySetForKeys(keys *NSArray[NSCopying]) objc.ID

Creates a shared key set object for the specified keys.

func NSDistantObjectProxyWithLocalConnection

func NSDistantObjectProxyWithLocalConnection(target objc.ID, connection *NSConnection) objc.ID

Returns a local proxy for a given object and connection, creating the proxy if necessary.

func NSDistantObjectProxyWithTargetConnection

func NSDistantObjectProxyWithTargetConnection(target objc.ID, connection *NSConnection) objc.ID

Returns a remote proxy for a given object and connection, creating the proxy if necessary.

func NSDivideRect

func NSDivideRect(inRect corefoundation.CGRect, slice *corefoundation.CGRect, rem *corefoundation.CGRect, amount float64, edge NSRectEdge)

func NSEarlierTimeDesignations deprecated

func NSEarlierTimeDesignations() uintptr

Deprecated: since macOS 10.5.

func NSEdgeInsetsEqual

func NSEdgeInsetsEqual(aInsets NSEdgeInsets, bInsets NSEdgeInsets) bool

func NSEndHashTableEnumeration

func NSEndHashTableEnumeration(enumerator *NSHashEnumerator)

func NSEndMapTableEnumeration

func NSEndMapTableEnumeration(enumerator *NSMapEnumerator)

func NSEqualPoints

func NSEqualPoints(aPoint corefoundation.CGPoint, bPoint corefoundation.CGPoint) bool

func NSEqualRanges

func NSEqualRanges(range1 NSRange, range2 NSRange) bool

func NSEqualRects

func NSEqualRects(aRect corefoundation.CGRect, bRect corefoundation.CGRect) bool

func NSEqualSizes

func NSEqualSizes(aSize corefoundation.CGSize, bSize corefoundation.CGSize) bool

func NSErrorFailingURLStringKey

func NSErrorFailingURLStringKey() uintptr

@const NSErrorFailingURLStringKey @abstract The NSError userInfo dictionary key used to store and retrieve the NSString object for the URL which caused a load to fail. @discussion This constant is deprecated in Mac OS X 10.6, and is superseded by NSURLErrorFailingURLStringErrorKey. Both constants refer to the same value for backward-compatibility, but the new symbol name has a better prefix. Deprecated: Use NSURLErrorFailingURLErrorKey instead

func NSErrorSetUserInfoValueProviderForDomainProvider

func NSErrorSetUserInfoValueProviderForDomainProvider(errorDomain *NSString, provider func(unsafe.Pointer, *NSString) objc.ID)

Specifies a block to call when the corresponding property is not present in the user info dictionary.

func NSErrorUserInfoValueProviderForDomain

func NSErrorUserInfoValueProviderForDomain(errorDomain *NSString) objc.Block

Returns any user info provider specified for a given error domain.

func NSExceptionRaiseFormat

func NSExceptionRaiseFormat(name *NSString, format *NSString)

A convenience method that creates and raises an exception.

func NSExceptionRaiseFormatArguments

func NSExceptionRaiseFormatArguments(name *NSString, format *NSString, argList string)

Creates and raises an exception with the specified name, reason, and arguments.

func NSExtensionItemAttachmentsKey

func NSExtensionItemAttachmentsKey() uintptr

func NSExtensionItemAttributedContentTextKey

func NSExtensionItemAttributedContentTextKey() uintptr

func NSExtensionItemAttributedTitleKey

func NSExtensionItemAttributedTitleKey() uintptr

func NSExtensionItemsAndErrorsKey

func NSExtensionItemsAndErrorsKey() uintptr

func NSExtensionJavaScriptPreprocessingResultsKey

func NSExtensionJavaScriptPreprocessingResultsKey() uintptr

func NSExtraRefCount

func NSExtraRefCount(object objc.ID) uint

func NSFTPPropertyActiveTransferModeKey deprecated

func NSFTPPropertyActiveTransferModeKey() uintptr

Deprecated: since macOS 10.4.

func NSFTPPropertyFTPProxy deprecated

func NSFTPPropertyFTPProxy() uintptr

Deprecated: since macOS 10.4.

func NSFTPPropertyFileOffsetKey deprecated

func NSFTPPropertyFileOffsetKey() uintptr

Deprecated: since macOS 10.4.

func NSFTPPropertyUserLoginKey deprecated

func NSFTPPropertyUserLoginKey() uintptr

Deprecated: since macOS 10.4.

func NSFTPPropertyUserPasswordKey deprecated

func NSFTPPropertyUserPasswordKey() uintptr

Deprecated: since macOS 10.4.

func NSFailedAuthenticationException deprecated

func NSFailedAuthenticationException() uintptr

Deprecated: Use NSXPCConnection instead

func NSFileCoordinatorAddFilePresenter

func NSFileCoordinatorAddFilePresenter(filePresenter NSFilePresenter)

Registers the specified file presenter object so that it can receive notifications.

func NSFileCoordinatorRemoveFilePresenter

func NSFileCoordinatorRemoveFilePresenter(filePresenter NSFilePresenter)

Unregisters the specified file presenter object.

func NSFileHandleNotificationDataItem

func NSFileHandleNotificationDataItem() uintptr

func NSFileHandleNotificationFileHandleItem

func NSFileHandleNotificationFileHandleItem() uintptr

func NSFileHandleNotificationMonitorModes deprecated

func NSFileHandleNotificationMonitorModes() uintptr

Deprecated: Not supported

func NSFileManagerUnmountDissentingProcessIdentifierErrorKey

func NSFileManagerUnmountDissentingProcessIdentifierErrorKey() uintptr

func NSFileVersionGetNonlocalVersionsOfItemAtURLCompletionHandler

func NSFileVersionGetNonlocalVersionsOfItemAtURLCompletionHandler(url *NSURL, completionHandler func(*NSArray[*NSFileVersion], unsafe.Pointer))

Asynchronously returns an array of NSFileVersions associated with the file located by the given URL, or nil if there is no such file or another error occurs.

func NSFileVersionRemoveOtherVersionsOfItemAtURLError

func NSFileVersionRemoveOtherVersionsOfItemAtURLError(url *NSURL) (bool, error)

Removes all versions of a file, except the current one, from the version store.

func NSFoundationVersionNumber

func NSFoundationVersionNumber() float64

func NSFreeHashTable

func NSFreeHashTable(table *NSHashTable[objc.ID])

func NSFreeMapTable

func NSFreeMapTable(table *NSMapTable[objc.ID, objc.ID])

func NSGarbageCollectorDefaultCollector

func NSGarbageCollectorDefaultCollector() objc.ID

Returns the default garbage collector.

func NSGetSizeAndAlignment

func NSGetSizeAndAlignment(typePtr string, sizep *uint, alignp *uint) string

func NSGetUncaughtExceptionHandler

func NSGetUncaughtExceptionHandler() unsafe.Pointer

func NSGlobalDomain

func NSGlobalDomain() uintptr

NSGlobalDomain identifies a domain shared between all applications for a given user. NSGlobalDomain is automatically included in all search lists, after the entries for the search list's domain.

func NSGrammarCorrections

func NSGrammarCorrections() uintptr

func NSGrammarRange

func NSGrammarRange() uintptr

func NSGrammarUserDescription

func NSGrammarUserDescription() uintptr

func NSGregorianCalendar deprecated

func NSGregorianCalendar() uintptr

Deprecated: since macOS 10.10.

func NSHFSTypeCodeFromFileType

func NSHFSTypeCodeFromFileType(fileTypeString *NSString) uint

func NSHTTPPropertyErrorPageDataKey deprecated

func NSHTTPPropertyErrorPageDataKey() uintptr

Deprecated: since macOS 10.4.

func NSHTTPPropertyHTTPProxy deprecated

func NSHTTPPropertyHTTPProxy() uintptr

Deprecated: since macOS 10.4.

func NSHTTPPropertyRedirectionHeadersKey deprecated

func NSHTTPPropertyRedirectionHeadersKey() uintptr

Deprecated: since macOS 10.4.

func NSHTTPPropertyServerHTTPVersionKey deprecated

func NSHTTPPropertyServerHTTPVersionKey() uintptr

Deprecated: since macOS 10.4.

func NSHTTPPropertyStatusCodeKey deprecated

func NSHTTPPropertyStatusCodeKey() uintptr

Deprecated: since macOS 10.4.

func NSHTTPPropertyStatusReasonKey deprecated

func NSHTTPPropertyStatusReasonKey() uintptr

Deprecated: since macOS 10.4.

func NSHashGet

func NSHashGet(table *NSHashTable[objc.ID], pointer unsafe.Pointer) unsafe.Pointer

func NSHashInsert

func NSHashInsert(table *NSHashTable[objc.ID], pointer unsafe.Pointer)

func NSHashInsertIfAbsent

func NSHashInsertIfAbsent(table *NSHashTable[objc.ID], pointer unsafe.Pointer) unsafe.Pointer

func NSHashInsertKnownAbsent

func NSHashInsertKnownAbsent(table *NSHashTable[objc.ID], pointer unsafe.Pointer)

func NSHashRemove

func NSHashRemove(table *NSHashTable[objc.ID], pointer unsafe.Pointer)

func NSHashTableHashTableWithWeakObjects

func NSHashTableHashTableWithWeakObjects() objc.ID

Returns a new hash table for storing weak references to its contents. Deprecated: GC no longer supported

func NSHebrewCalendar deprecated

func NSHebrewCalendar() uintptr

Deprecated: since macOS 10.10.

func NSHeight

func NSHeight(aRect corefoundation.CGRect) float64

func NSHostByteOrder

func NSHostByteOrder() int

func NSHostFlushHostCache

func NSHostFlushHostCache()

Releases the cache of existing NSHost objects so subsequent requests for NSHost objects create new ones. Deprecated: Caching no longer supported

func NSHostIsHostCacheEnabled

func NSHostIsHostCacheEnabled() bool

Indicates whether caching is turned on or off. Deprecated: Caching no longer supported

func NSHostSetHostCacheEnabled

func NSHostSetHostCacheEnabled(flag bool)

Specifies whether the receiver is to cache instances as it creates them to avoid creating duplicate instances. Deprecated: Caching no longer supported

func NSHourNameDesignations deprecated

func NSHourNameDesignations() uintptr

Deprecated: since macOS 10.5.

func NSISO8601Calendar deprecated

func NSISO8601Calendar() uintptr

Deprecated: since macOS 10.10.

func NSImageURLAttributeName

func NSImageURLAttributeName() uintptr

func NSIncrementExtraRefCount deprecated

func NSIncrementExtraRefCount(object objc.ID)

Deprecated: Not supported

func NSIndianCalendar deprecated

func NSIndianCalendar() uintptr

Deprecated: since macOS 10.10.

func NSInflectionAgreementArgumentAttributeName

func NSInflectionAgreementArgumentAttributeName() uintptr

func NSInflectionAgreementConceptAttributeName

func NSInflectionAgreementConceptAttributeName() uintptr

func NSInflectionAlternativeAttributeName

func NSInflectionAlternativeAttributeName() uintptr

func NSInflectionReferentConceptAttributeName

func NSInflectionReferentConceptAttributeName() uintptr

func NSInflectionRuleAttributeName

func NSInflectionRuleAttributeName() uintptr

func NSInflectionRuleCanInflectLanguage

func NSInflectionRuleCanInflectLanguage(language *NSString) bool

Returns a Boolean value that indicates whether the rule can inflect a given language.

func NSInflectionRuleCanInflectPreferredLocalization

func NSInflectionRuleCanInflectPreferredLocalization() bool

func NSInlinePresentationIntentAttributeName

func NSInlinePresentationIntentAttributeName() uintptr

func NSInsetRect

func NSInsetRect(aRect corefoundation.CGRect, dX float64, dY float64) corefoundation.CGRect

func NSIntegralRect

func NSIntegralRect(aRect corefoundation.CGRect) corefoundation.CGRect

func NSIntegralRectWithOptions

func NSIntegralRectWithOptions(aRect corefoundation.CGRect, opts NSAlignmentOptions) corefoundation.CGRect

func NSInternationalCurrencyString deprecated

func NSInternationalCurrencyString() uintptr

Deprecated: since macOS 10.5.

func NSIntersectsRect

func NSIntersectsRect(aRect corefoundation.CGRect, bRect corefoundation.CGRect) bool

func NSIsEmptyRect

func NSIsEmptyRect(aRect corefoundation.CGRect) bool

func NSIslamicCalendar deprecated

func NSIslamicCalendar() uintptr

Deprecated: since macOS 10.10.

func NSIslamicCivilCalendar deprecated

func NSIslamicCivilCalendar() uintptr

Deprecated: since macOS 10.10.

func NSItemProviderErrorDomain

func NSItemProviderErrorDomain() uintptr

func NSItemProviderPreferredImageSizeKey

func NSItemProviderPreferredImageSizeKey() uintptr

func NSJSONSerializationIsValidJSONObject

func NSJSONSerializationIsValidJSONObject(obj objc.ID) bool

func NSJSONSerializationJSONObjectWithDataOptionsError

func NSJSONSerializationJSONObjectWithDataOptionsError(data *NSData, opt NSJSONReadingOptions) (objc.ID, error)

func NSJSONSerializationJSONObjectWithStreamOptionsError

func NSJSONSerializationJSONObjectWithStreamOptionsError(stream *NSInputStream, opt NSJSONReadingOptions) (objc.ID, error)

func NSJSONSerializationWriteJSONObjectToStreamOptionsError

func NSJSONSerializationWriteJSONObjectToStreamOptionsError(obj objc.ID, stream *NSOutputStream, opt NSJSONWritingOptions) (int, error)

func NSJapaneseCalendar deprecated

func NSJapaneseCalendar() uintptr

Deprecated: since macOS 10.10.

func NSKeyedArchiveRootObjectKey

func NSKeyedArchiveRootObjectKey() uintptr

func NSKeyedArchiverArchiveRootObjectToFile

func NSKeyedArchiverArchiveRootObjectToFile(rootObject objc.ID, path *NSString) bool

Archives an object graph rooted at a given object to a file at a given path. Deprecated: Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead

func NSKeyedArchiverSetClassNameForClass

func NSKeyedArchiverSetClassNameForClass(codedName *NSString, cls objc.Class)

Sets a global translation mapping to encode instances of a given class with the provided name, rather than their real name.

func NSKeyedUnarchiverClassForClassName

func NSKeyedUnarchiverClassForClassName(codedName *NSString) objc.Class

Returns the class from which this unarchiver instantiates an encoded object with a given class name.

func NSKeyedUnarchiverSetClassForClassName

func NSKeyedUnarchiverSetClassForClassName(cls objc.Class, codedName *NSString)

Sets a global translation mapping to decode objects encoded with a given class name as instances of a given class instead.

func NSKeyedUnarchiverUnarchiveObjectWithData

func NSKeyedUnarchiverUnarchiveObjectWithData(data *NSData) objc.ID

Decodes and returns the object graph previously encoded by NSKeyedArchiver and stored in a given NSData object. Deprecated: Use +unarchivedObjectOfClass:fromData:error: instead

func NSKeyedUnarchiverUnarchiveObjectWithFile

func NSKeyedUnarchiverUnarchiveObjectWithFile(path *NSString) objc.ID

Decodes and returns the object graph previously encoded by NSKeyedArchiver written to the file at a given path. Deprecated: Use +unarchivedObjectOfClass:fromData:error: instead

func NSKeyedUnarchiverUnarchiveTopLevelObjectWithDataError

func NSKeyedUnarchiverUnarchiveTopLevelObjectWithDataError(data *NSData) (objc.ID, error)

Decodes a previously-archived object graph, returning the root object. Deprecated: Use +unarchivedObjectOfClass:fromData:error: instead

func NSKeyedUnarchiverUnarchivedObjectOfClassFromDataError

func NSKeyedUnarchiverUnarchivedObjectOfClassFromDataError(cls objc.Class, data *NSData) (objc.ID, error)

Decodes a previously-archived object graph, that returns the root object as the specified type.

func NSKeyedUnarchiverUnarchivedObjectOfClassesFromDataError

func NSKeyedUnarchiverUnarchivedObjectOfClassesFromDataError(classes *NSSet[objc.Class], data *NSData) (objc.ID, error)

Decodes a previously-archived object graph, returning the root object as one of the specified classes.

func NSLanguageIdentifierAttributeName

func NSLanguageIdentifierAttributeName() uintptr

func NSLaterTimeDesignations deprecated

func NSLaterTimeDesignations() uintptr

Deprecated: since macOS 10.5.

func NSLinguisticTaggerEnumerateTagsForStringRangeUnitSchemeOptionsOrthographyUsing

func NSLinguisticTaggerEnumerateTagsForStringRangeUnitSchemeOptionsOrthographyUsing(string_ *NSString, range_ NSRange, unit NSLinguisticTaggerUnit, scheme *NSString, options NSLinguisticTaggerOptions, orthography *NSOrthography, block objc.Block)

Enumerates over a given string and calls the specified block for each tag. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSListItemDelimiterAttributeName

func NSListItemDelimiterAttributeName() uintptr

func NSLoadedClasses

func NSLoadedClasses() uintptr

func NSLocaleWindowsLocaleCodeFromLocaleIdentifier

func NSLocaleWindowsLocaleCodeFromLocaleIdentifier(localeIdentifier *NSString) uint32

Returns a Window locale code from the locale identifier.

func NSLocalizedNumberFormatAttributeName

func NSLocalizedNumberFormatAttributeName() uintptr

func NSLocationInRange

func NSLocationInRange(loc uint, range_ NSRange) bool

func NSLogPageSize

func NSLogPageSize() uint

func NSLogv

func NSLogv(arg objc.ID, arg2 string)

func NSMachBootstrapServerSharedInstance

func NSMachBootstrapServerSharedInstance() objc.ID

Returns the shared instance of the bootstrap server.

func NSMakeCollectable

func NSMakeCollectable(cf unsafe.Pointer) unsafe.Pointer

func NSMakePoint

func NSMakePoint(x float64, y float64) corefoundation.CGPoint

func NSMakeRect

func NSMakeRect(x float64, y float64, w float64, h float64) corefoundation.CGRect

func NSMakeSize

func NSMakeSize(w float64, h float64) corefoundation.CGSize

func NSMapGet

func NSMapGet(table *NSMapTable[objc.ID, objc.ID], key unsafe.Pointer) unsafe.Pointer

func NSMapInsert

func NSMapInsert(table *NSMapTable[objc.ID, objc.ID], key unsafe.Pointer, value unsafe.Pointer)

func NSMapInsertIfAbsent

func NSMapInsertIfAbsent(table *NSMapTable[objc.ID, objc.ID], key unsafe.Pointer, value unsafe.Pointer) unsafe.Pointer

func NSMapInsertKnownAbsent

func NSMapInsertKnownAbsent(table *NSMapTable[objc.ID, objc.ID], key unsafe.Pointer, value unsafe.Pointer)

func NSMapMember

func NSMapMember(table *NSMapTable[objc.ID, objc.ID], key unsafe.Pointer, originalKey unsafe.Pointer, value unsafe.Pointer) bool

func NSMapRemove

func NSMapRemove(table *NSMapTable[objc.ID, objc.ID], key unsafe.Pointer)

func NSMapTableMapTableWithStrongToStrongObjects

func NSMapTableMapTableWithStrongToStrongObjects() objc.ID

Returns a new map table object which has strong references to the keys and values. Deprecated: GC no longer supported

func NSMapTableMapTableWithStrongToWeakObjects

func NSMapTableMapTableWithStrongToWeakObjects() objc.ID

Returns a new map table object which has strong references to the keys and weak references to the values. Deprecated: GC no longer supported

func NSMapTableMapTableWithWeakToStrongObjects

func NSMapTableMapTableWithWeakToStrongObjects() objc.ID

Returns a new map table object which has weak references to the keys and strong references to the values. Deprecated: GC no longer supported

func NSMapTableMapTableWithWeakToWeakObjects

func NSMapTableMapTableWithWeakToWeakObjects() objc.ID

Returns a new map table object which has weak references to the keys and values. Deprecated: GC no longer supported

func NSMarkdownSourcePositionAttributeName

func NSMarkdownSourcePositionAttributeName() uintptr

func NSMaxRange

func NSMaxRange(range_ NSRange) uint

func NSMaxX

func NSMaxX(aRect corefoundation.CGRect) float64

func NSMaxY

func NSMaxY(aRect corefoundation.CGRect) float64

func NSMessagePortNameServerSharedInstance

func NSMessagePortNameServerSharedInstance() objc.ID

Returns the singleton instance of NSMessagePortNameServer.

func NSMetadataItemAcquisitionMakeKey

func NSMetadataItemAcquisitionMakeKey() uintptr

func NSMetadataItemAcquisitionModelKey

func NSMetadataItemAcquisitionModelKey() uintptr

func NSMetadataItemAlbumKey

func NSMetadataItemAlbumKey() uintptr

func NSMetadataItemAltitudeKey

func NSMetadataItemAltitudeKey() uintptr

func NSMetadataItemApertureKey

func NSMetadataItemApertureKey() uintptr

func NSMetadataItemAppleLoopDescriptorsKey

func NSMetadataItemAppleLoopDescriptorsKey() uintptr

func NSMetadataItemAppleLoopsKeyFilterTypeKey

func NSMetadataItemAppleLoopsKeyFilterTypeKey() uintptr

func NSMetadataItemAppleLoopsLoopModeKey

func NSMetadataItemAppleLoopsLoopModeKey() uintptr

func NSMetadataItemAppleLoopsRootKeyKey

func NSMetadataItemAppleLoopsRootKeyKey() uintptr

func NSMetadataItemApplicationCategoriesKey

func NSMetadataItemApplicationCategoriesKey() uintptr

func NSMetadataItemAttributeChangeDateKey

func NSMetadataItemAttributeChangeDateKey() uintptr

func NSMetadataItemAudiencesKey

func NSMetadataItemAudiencesKey() uintptr

func NSMetadataItemAudioBitRateKey

func NSMetadataItemAudioBitRateKey() uintptr

func NSMetadataItemAudioChannelCountKey

func NSMetadataItemAudioChannelCountKey() uintptr

func NSMetadataItemAudioEncodingApplicationKey

func NSMetadataItemAudioEncodingApplicationKey() uintptr

func NSMetadataItemAudioSampleRateKey

func NSMetadataItemAudioSampleRateKey() uintptr

func NSMetadataItemAudioTrackNumberKey

func NSMetadataItemAudioTrackNumberKey() uintptr

func NSMetadataItemAuthorAddressesKey

func NSMetadataItemAuthorAddressesKey() uintptr

func NSMetadataItemAuthorEmailAddressesKey

func NSMetadataItemAuthorEmailAddressesKey() uintptr

func NSMetadataItemAuthorsKey

func NSMetadataItemAuthorsKey() uintptr

func NSMetadataItemBitsPerSampleKey

func NSMetadataItemBitsPerSampleKey() uintptr

func NSMetadataItemCFBundleIdentifierKey

func NSMetadataItemCFBundleIdentifierKey() uintptr

func NSMetadataItemCameraOwnerKey

func NSMetadataItemCameraOwnerKey() uintptr

func NSMetadataItemCityKey

func NSMetadataItemCityKey() uintptr

func NSMetadataItemCodecsKey

func NSMetadataItemCodecsKey() uintptr

func NSMetadataItemColorSpaceKey

func NSMetadataItemColorSpaceKey() uintptr

func NSMetadataItemCommentKey

func NSMetadataItemCommentKey() uintptr

func NSMetadataItemComposerKey

func NSMetadataItemComposerKey() uintptr

func NSMetadataItemContactKeywordsKey

func NSMetadataItemContactKeywordsKey() uintptr

func NSMetadataItemContentCreationDateKey

func NSMetadataItemContentCreationDateKey() uintptr

func NSMetadataItemContentModificationDateKey

func NSMetadataItemContentModificationDateKey() uintptr

func NSMetadataItemContentTypeKey

func NSMetadataItemContentTypeKey() uintptr

func NSMetadataItemContentTypeTreeKey

func NSMetadataItemContentTypeTreeKey() uintptr

func NSMetadataItemContributorsKey

func NSMetadataItemContributorsKey() uintptr

func NSMetadataItemCopyrightKey

func NSMetadataItemCopyrightKey() uintptr

func NSMetadataItemCountryKey

func NSMetadataItemCountryKey() uintptr

func NSMetadataItemCoverageKey

func NSMetadataItemCoverageKey() uintptr

func NSMetadataItemCreatorKey

func NSMetadataItemCreatorKey() uintptr

func NSMetadataItemDateAddedKey

func NSMetadataItemDateAddedKey() uintptr

func NSMetadataItemDeliveryTypeKey

func NSMetadataItemDeliveryTypeKey() uintptr

func NSMetadataItemDescriptionKey

func NSMetadataItemDescriptionKey() uintptr

func NSMetadataItemDirectorKey

func NSMetadataItemDirectorKey() uintptr

func NSMetadataItemDisplayNameKey

func NSMetadataItemDisplayNameKey() uintptr

func NSMetadataItemDownloadedDateKey

func NSMetadataItemDownloadedDateKey() uintptr

func NSMetadataItemDueDateKey

func NSMetadataItemDueDateKey() uintptr

func NSMetadataItemDurationSecondsKey

func NSMetadataItemDurationSecondsKey() uintptr

func NSMetadataItemEXIFGPSVersionKey

func NSMetadataItemEXIFGPSVersionKey() uintptr

func NSMetadataItemEXIFVersionKey

func NSMetadataItemEXIFVersionKey() uintptr

func NSMetadataItemEditorsKey

func NSMetadataItemEditorsKey() uintptr

func NSMetadataItemEmailAddressesKey

func NSMetadataItemEmailAddressesKey() uintptr

func NSMetadataItemEncodingApplicationsKey

func NSMetadataItemEncodingApplicationsKey() uintptr

func NSMetadataItemExecutableArchitecturesKey

func NSMetadataItemExecutableArchitecturesKey() uintptr

func NSMetadataItemExecutablePlatformKey

func NSMetadataItemExecutablePlatformKey() uintptr

func NSMetadataItemExposureModeKey

func NSMetadataItemExposureModeKey() uintptr

func NSMetadataItemExposureProgramKey

func NSMetadataItemExposureProgramKey() uintptr

func NSMetadataItemExposureTimeSecondsKey

func NSMetadataItemExposureTimeSecondsKey() uintptr

func NSMetadataItemExposureTimeStringKey

func NSMetadataItemExposureTimeStringKey() uintptr

func NSMetadataItemFNumberKey

func NSMetadataItemFNumberKey() uintptr

func NSMetadataItemFSContentChangeDateKey

func NSMetadataItemFSContentChangeDateKey() uintptr

func NSMetadataItemFSCreationDateKey

func NSMetadataItemFSCreationDateKey() uintptr

func NSMetadataItemFSNameKey

func NSMetadataItemFSNameKey() uintptr

func NSMetadataItemFSSizeKey

func NSMetadataItemFSSizeKey() uintptr

func NSMetadataItemFinderCommentKey

func NSMetadataItemFinderCommentKey() uintptr

func NSMetadataItemFlashOnOffKey

func NSMetadataItemFlashOnOffKey() uintptr

func NSMetadataItemFocalLength35mmKey

func NSMetadataItemFocalLength35mmKey() uintptr

func NSMetadataItemFocalLengthKey

func NSMetadataItemFocalLengthKey() uintptr

func NSMetadataItemFontsKey

func NSMetadataItemFontsKey() uintptr

func NSMetadataItemGPSAreaInformationKey

func NSMetadataItemGPSAreaInformationKey() uintptr

func NSMetadataItemGPSDOPKey

func NSMetadataItemGPSDOPKey() uintptr

func NSMetadataItemGPSDateStampKey

func NSMetadataItemGPSDateStampKey() uintptr

func NSMetadataItemGPSDestBearingKey

func NSMetadataItemGPSDestBearingKey() uintptr

func NSMetadataItemGPSDestDistanceKey

func NSMetadataItemGPSDestDistanceKey() uintptr

func NSMetadataItemGPSDestLatitudeKey

func NSMetadataItemGPSDestLatitudeKey() uintptr

func NSMetadataItemGPSDestLongitudeKey

func NSMetadataItemGPSDestLongitudeKey() uintptr

func NSMetadataItemGPSDifferentalKey

func NSMetadataItemGPSDifferentalKey() uintptr

func NSMetadataItemGPSMapDatumKey

func NSMetadataItemGPSMapDatumKey() uintptr

func NSMetadataItemGPSMeasureModeKey

func NSMetadataItemGPSMeasureModeKey() uintptr

func NSMetadataItemGPSProcessingMethodKey

func NSMetadataItemGPSProcessingMethodKey() uintptr

func NSMetadataItemGPSStatusKey

func NSMetadataItemGPSStatusKey() uintptr

func NSMetadataItemGPSTrackKey

func NSMetadataItemGPSTrackKey() uintptr

func NSMetadataItemGenreKey

func NSMetadataItemGenreKey() uintptr

func NSMetadataItemHasAlphaChannelKey

func NSMetadataItemHasAlphaChannelKey() uintptr

func NSMetadataItemHeadlineKey

func NSMetadataItemHeadlineKey() uintptr

func NSMetadataItemISOSpeedKey

func NSMetadataItemISOSpeedKey() uintptr

func NSMetadataItemIdentifierKey

func NSMetadataItemIdentifierKey() uintptr

func NSMetadataItemImageDirectionKey

func NSMetadataItemImageDirectionKey() uintptr

func NSMetadataItemInformationKey

func NSMetadataItemInformationKey() uintptr

func NSMetadataItemInstantMessageAddressesKey

func NSMetadataItemInstantMessageAddressesKey() uintptr

func NSMetadataItemInstructionsKey

func NSMetadataItemInstructionsKey() uintptr

func NSMetadataItemIsApplicationManagedKey

func NSMetadataItemIsApplicationManagedKey() uintptr

func NSMetadataItemIsGeneralMIDISequenceKey

func NSMetadataItemIsGeneralMIDISequenceKey() uintptr

func NSMetadataItemIsLikelyJunkKey

func NSMetadataItemIsLikelyJunkKey() uintptr

func NSMetadataItemIsUbiquitousKey

func NSMetadataItemIsUbiquitousKey() uintptr

func NSMetadataItemKeySignatureKey

func NSMetadataItemKeySignatureKey() uintptr

func NSMetadataItemKeywordsKey

func NSMetadataItemKeywordsKey() uintptr

func NSMetadataItemKindKey

func NSMetadataItemKindKey() uintptr

func NSMetadataItemLanguagesKey

func NSMetadataItemLanguagesKey() uintptr

func NSMetadataItemLastUsedDateKey

func NSMetadataItemLastUsedDateKey() uintptr

func NSMetadataItemLatitudeKey

func NSMetadataItemLatitudeKey() uintptr

func NSMetadataItemLayerNamesKey

func NSMetadataItemLayerNamesKey() uintptr

func NSMetadataItemLensModelKey

func NSMetadataItemLensModelKey() uintptr

func NSMetadataItemLongitudeKey

func NSMetadataItemLongitudeKey() uintptr

func NSMetadataItemLyricistKey

func NSMetadataItemLyricistKey() uintptr

func NSMetadataItemMaxApertureKey

func NSMetadataItemMaxApertureKey() uintptr

func NSMetadataItemMediaTypesKey

func NSMetadataItemMediaTypesKey() uintptr

func NSMetadataItemMeteringModeKey

func NSMetadataItemMeteringModeKey() uintptr

func NSMetadataItemMusicalGenreKey

func NSMetadataItemMusicalGenreKey() uintptr

func NSMetadataItemMusicalInstrumentCategoryKey

func NSMetadataItemMusicalInstrumentCategoryKey() uintptr

func NSMetadataItemMusicalInstrumentNameKey

func NSMetadataItemMusicalInstrumentNameKey() uintptr

func NSMetadataItemNamedLocationKey

func NSMetadataItemNamedLocationKey() uintptr

func NSMetadataItemNumberOfPagesKey

func NSMetadataItemNumberOfPagesKey() uintptr

func NSMetadataItemOrganizationsKey

func NSMetadataItemOrganizationsKey() uintptr

func NSMetadataItemOrientationKey

func NSMetadataItemOrientationKey() uintptr

func NSMetadataItemOriginalFormatKey

func NSMetadataItemOriginalFormatKey() uintptr

func NSMetadataItemOriginalSourceKey

func NSMetadataItemOriginalSourceKey() uintptr

func NSMetadataItemPageHeightKey

func NSMetadataItemPageHeightKey() uintptr

func NSMetadataItemPageWidthKey

func NSMetadataItemPageWidthKey() uintptr

func NSMetadataItemParticipantsKey

func NSMetadataItemParticipantsKey() uintptr

func NSMetadataItemPathKey

func NSMetadataItemPathKey() uintptr

func NSMetadataItemPerformersKey

func NSMetadataItemPerformersKey() uintptr

func NSMetadataItemPhoneNumbersKey

func NSMetadataItemPhoneNumbersKey() uintptr

func NSMetadataItemPixelCountKey

func NSMetadataItemPixelCountKey() uintptr

func NSMetadataItemPixelHeightKey

func NSMetadataItemPixelHeightKey() uintptr

func NSMetadataItemPixelWidthKey

func NSMetadataItemPixelWidthKey() uintptr

func NSMetadataItemProducerKey

func NSMetadataItemProducerKey() uintptr

func NSMetadataItemProfileNameKey

func NSMetadataItemProfileNameKey() uintptr

func NSMetadataItemProjectsKey

func NSMetadataItemProjectsKey() uintptr

func NSMetadataItemPublishersKey

func NSMetadataItemPublishersKey() uintptr

func NSMetadataItemRecipientAddressesKey

func NSMetadataItemRecipientAddressesKey() uintptr

func NSMetadataItemRecipientEmailAddressesKey

func NSMetadataItemRecipientEmailAddressesKey() uintptr

func NSMetadataItemRecipientsKey

func NSMetadataItemRecipientsKey() uintptr

func NSMetadataItemRecordingDateKey

func NSMetadataItemRecordingDateKey() uintptr

func NSMetadataItemRecordingYearKey

func NSMetadataItemRecordingYearKey() uintptr

func NSMetadataItemRedEyeOnOffKey

func NSMetadataItemRedEyeOnOffKey() uintptr

func NSMetadataItemResolutionHeightDPIKey

func NSMetadataItemResolutionHeightDPIKey() uintptr

func NSMetadataItemResolutionWidthDPIKey

func NSMetadataItemResolutionWidthDPIKey() uintptr

func NSMetadataItemRightsKey

func NSMetadataItemRightsKey() uintptr

func NSMetadataItemSecurityMethodKey

func NSMetadataItemSecurityMethodKey() uintptr

func NSMetadataItemSpeedKey

func NSMetadataItemSpeedKey() uintptr

func NSMetadataItemStarRatingKey

func NSMetadataItemStarRatingKey() uintptr

func NSMetadataItemStateOrProvinceKey

func NSMetadataItemStateOrProvinceKey() uintptr

func NSMetadataItemStreamableKey

func NSMetadataItemStreamableKey() uintptr

func NSMetadataItemSubjectKey

func NSMetadataItemSubjectKey() uintptr

func NSMetadataItemTempoKey

func NSMetadataItemTempoKey() uintptr

func NSMetadataItemTextContentKey

func NSMetadataItemTextContentKey() uintptr

func NSMetadataItemThemeKey

func NSMetadataItemThemeKey() uintptr

func NSMetadataItemTimeSignatureKey

func NSMetadataItemTimeSignatureKey() uintptr

func NSMetadataItemTimestampKey

func NSMetadataItemTimestampKey() uintptr

func NSMetadataItemTitleKey

func NSMetadataItemTitleKey() uintptr

func NSMetadataItemTotalBitRateKey

func NSMetadataItemTotalBitRateKey() uintptr

func NSMetadataItemURLKey

func NSMetadataItemURLKey() uintptr

func NSMetadataItemVersionKey

func NSMetadataItemVersionKey() uintptr

func NSMetadataItemVideoBitRateKey

func NSMetadataItemVideoBitRateKey() uintptr

func NSMetadataItemWhereFromsKey

func NSMetadataItemWhereFromsKey() uintptr

func NSMetadataItemWhiteBalanceKey

func NSMetadataItemWhiteBalanceKey() uintptr

func NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope

func NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope() uintptr

func NSMetadataQueryIndexedLocalComputerScope

func NSMetadataQueryIndexedLocalComputerScope() uintptr

func NSMetadataQueryIndexedNetworkScope

func NSMetadataQueryIndexedNetworkScope() uintptr

func NSMetadataQueryLocalComputerScope

func NSMetadataQueryLocalComputerScope() uintptr

func NSMetadataQueryNetworkScope

func NSMetadataQueryNetworkScope() uintptr

func NSMetadataQueryResultContentRelevanceAttribute

func NSMetadataQueryResultContentRelevanceAttribute() uintptr

func NSMetadataQueryUbiquitousDataScope

func NSMetadataQueryUbiquitousDataScope() uintptr

func NSMetadataQueryUbiquitousDocumentsScope

func NSMetadataQueryUbiquitousDocumentsScope() uintptr

func NSMetadataQueryUpdateAddedItemsKey

func NSMetadataQueryUpdateAddedItemsKey() uintptr

func NSMetadataQueryUpdateChangedItemsKey

func NSMetadataQueryUpdateChangedItemsKey() uintptr

func NSMetadataQueryUpdateRemovedItemsKey

func NSMetadataQueryUpdateRemovedItemsKey() uintptr

func NSMetadataQueryUserHomeScope

func NSMetadataQueryUserHomeScope() uintptr

func NSMetadataUbiquitousItemContainerDisplayNameKey

func NSMetadataUbiquitousItemContainerDisplayNameKey() uintptr

func NSMetadataUbiquitousItemDownloadRequestedKey

func NSMetadataUbiquitousItemDownloadRequestedKey() uintptr

func NSMetadataUbiquitousItemDownloadingErrorKey

func NSMetadataUbiquitousItemDownloadingErrorKey() uintptr

func NSMetadataUbiquitousItemDownloadingStatusCurrent

func NSMetadataUbiquitousItemDownloadingStatusCurrent() uintptr

func NSMetadataUbiquitousItemDownloadingStatusDownloaded

func NSMetadataUbiquitousItemDownloadingStatusDownloaded() uintptr

func NSMetadataUbiquitousItemDownloadingStatusKey

func NSMetadataUbiquitousItemDownloadingStatusKey() uintptr

func NSMetadataUbiquitousItemDownloadingStatusNotDownloaded

func NSMetadataUbiquitousItemDownloadingStatusNotDownloaded() uintptr

func NSMetadataUbiquitousItemHasUnresolvedConflictsKey

func NSMetadataUbiquitousItemHasUnresolvedConflictsKey() uintptr

func NSMetadataUbiquitousItemIsDownloadedKey deprecated

func NSMetadataUbiquitousItemIsDownloadedKey() uintptr

Deprecated: Use NSMetadataUbiquitousItemDownloadingStatusKey instead

func NSMetadataUbiquitousItemIsDownloadingKey

func NSMetadataUbiquitousItemIsDownloadingKey() uintptr

func NSMetadataUbiquitousItemIsExternalDocumentKey

func NSMetadataUbiquitousItemIsExternalDocumentKey() uintptr

func NSMetadataUbiquitousItemIsSharedKey

func NSMetadataUbiquitousItemIsSharedKey() uintptr

func NSMetadataUbiquitousItemIsUploadedKey

func NSMetadataUbiquitousItemIsUploadedKey() uintptr

func NSMetadataUbiquitousItemIsUploadingKey

func NSMetadataUbiquitousItemIsUploadingKey() uintptr

func NSMetadataUbiquitousItemPercentDownloadedKey

func NSMetadataUbiquitousItemPercentDownloadedKey() uintptr

func NSMetadataUbiquitousItemPercentUploadedKey

func NSMetadataUbiquitousItemPercentUploadedKey() uintptr

func NSMetadataUbiquitousItemURLInLocalContainerKey

func NSMetadataUbiquitousItemURLInLocalContainerKey() uintptr

func NSMetadataUbiquitousItemUploadingErrorKey

func NSMetadataUbiquitousItemUploadingErrorKey() uintptr

func NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey

func NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey() uintptr

func NSMetadataUbiquitousSharedItemCurrentUserRoleKey

func NSMetadataUbiquitousSharedItemCurrentUserRoleKey() uintptr

func NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey

func NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey() uintptr

func NSMetadataUbiquitousSharedItemOwnerNameComponentsKey

func NSMetadataUbiquitousSharedItemOwnerNameComponentsKey() uintptr

func NSMetadataUbiquitousSharedItemPermissionsReadOnly

func NSMetadataUbiquitousSharedItemPermissionsReadOnly() uintptr

func NSMetadataUbiquitousSharedItemPermissionsReadWrite

func NSMetadataUbiquitousSharedItemPermissionsReadWrite() uintptr

func NSMetadataUbiquitousSharedItemRoleOwner

func NSMetadataUbiquitousSharedItemRoleOwner() uintptr

func NSMetadataUbiquitousSharedItemRoleParticipant

func NSMetadataUbiquitousSharedItemRoleParticipant() uintptr

func NSMidX

func NSMidX(aRect corefoundation.CGRect) float64

func NSMidY

func NSMidY(aRect corefoundation.CGRect) float64

func NSMinX

func NSMinX(aRect corefoundation.CGRect) float64

func NSMinY

func NSMinY(aRect corefoundation.CGRect) float64

func NSMonthNameArray deprecated

func NSMonthNameArray() uintptr

Deprecated: since macOS 10.5.

func NSMorphologyAttributeName

func NSMorphologyAttributeName() uintptr

func NSMorphologyCustomPronounIsSupportedForLanguage

func NSMorphologyCustomPronounIsSupportedForLanguage(language *NSString) bool

Returns a Boolean value that indicates whether the given language supports setting custom pronouns. Deprecated: Use NSTermOfAddress instead

func NSMouseInRect

func NSMouseInRect(aPoint corefoundation.CGPoint, aRect corefoundation.CGRect, flipped bool) bool

func NSNegativeCurrencyFormatString deprecated

func NSNegativeCurrencyFormatString() uintptr

Deprecated: since macOS 10.5.

func NSNetServicesErrorCode

func NSNetServicesErrorCode() uintptr

func NSNetServicesErrorDomain

func NSNetServicesErrorDomain() uintptr

func NSNextDayDesignations deprecated

func NSNextDayDesignations() uintptr

Deprecated: since macOS 10.5.

func NSNextHashEnumeratorItem

func NSNextHashEnumeratorItem(enumerator *NSHashEnumerator) unsafe.Pointer

func NSNextMapEnumeratorPair

func NSNextMapEnumeratorPair(enumerator *NSMapEnumerator, key unsafe.Pointer, value unsafe.Pointer) bool

func NSNextNextDayDesignations deprecated

func NSNextNextDayDesignations() uintptr

Deprecated: since macOS 10.5.

func NSNumberFormatterSetDefaultFormatterBehavior

func NSNumberFormatterSetDefaultFormatterBehavior(behavior NSNumberFormatterBehavior)

func NSObjectAccessInstanceVariablesDirectly

func NSObjectAccessInstanceVariablesDirectly() bool

func NSObjectAutomaticallyNotifiesObserversForKey

func NSObjectAutomaticallyNotifiesObserversForKey(key *NSString) bool

func NSObjectCancelPreviousPerformRequestsWithTarget

func NSObjectCancelPreviousPerformRequestsWithTarget(aTarget objc.ID)

func NSObjectCancelPreviousPerformRequestsWithTargetSelectorObject

func NSObjectCancelPreviousPerformRequestsWithTargetSelectorObject(aTarget objc.ID, aSelector objc.SEL, anArgument objc.ID)

func NSObjectClass

func NSObjectClass() objc.Class

func NSObjectClassForKeyedUnarchiver

func NSObjectClassForKeyedUnarchiver() objc.Class

func NSObjectConformsToProtocol

func NSObjectConformsToProtocol(protocol unsafe.Pointer) bool

func NSObjectCopyWithZone

func NSObjectCopyWithZone(zone unsafe.Pointer) objc.ID

func NSObjectHash

func NSObjectHash() uint

func NSObjectInstanceMethodForSelector

func NSObjectInstanceMethodForSelector(aSelector objc.SEL) unsafe.Pointer

func NSObjectInstancesRespondToSelector

func NSObjectInstancesRespondToSelector(aSelector objc.SEL) bool

func NSObjectIsSubclassOfClass

func NSObjectIsSubclassOfClass(aClass objc.Class) bool

func NSObjectMutableCopyWithZone

func NSObjectMutableCopyWithZone(zone unsafe.Pointer) objc.ID

func NSObjectResolveClassMethod

func NSObjectResolveClassMethod(sel objc.SEL) bool

func NSObjectResolveInstanceMethod

func NSObjectResolveInstanceMethod(sel objc.SEL) bool

func NSObjectSetKeysTriggerChangeNotificationsForDependentKey deprecated

func NSObjectSetKeysTriggerChangeNotificationsForDependentKey(keys *NSArray[objc.ID], dependentKey *NSString)

Deprecated: Use +keyPathsForValuesAffectingValueForKey instead

func NSObjectSetVersion

func NSObjectSetVersion(aVersion int)

func NSObjectSuperclass

func NSObjectSuperclass() objc.Class

func NSObjectUseStoredAccessor deprecated

func NSObjectUseStoredAccessor() bool

Deprecated: Legacy KVC API

func NSObjectVersion

func NSObjectVersion() int

func NSOffsetRect

func NSOffsetRect(aRect corefoundation.CGRect, dX float64, dY float64) corefoundation.CGRect

func NSOperationNotSupportedForKeyException

func NSOperationNotSupportedForKeyException() uintptr

func NSPageSize

func NSPageSize() uint

func NSPersianCalendar deprecated

func NSPersianCalendar() uintptr

Deprecated: since macOS 10.10.

func NSPersonNameComponentDelimiter

func NSPersonNameComponentDelimiter() uintptr

func NSPersonNameComponentFamilyName

func NSPersonNameComponentFamilyName() uintptr

func NSPersonNameComponentGivenName

func NSPersonNameComponentGivenName() uintptr

func NSPersonNameComponentKey

func NSPersonNameComponentKey() uintptr

func NSPersonNameComponentMiddleName

func NSPersonNameComponentMiddleName() uintptr

func NSPersonNameComponentNickname

func NSPersonNameComponentNickname() uintptr

func NSPersonNameComponentPrefix

func NSPersonNameComponentPrefix() uintptr

func NSPersonNameComponentSuffix

func NSPersonNameComponentSuffix() uintptr

func NSPointFromCGPoint

func NSPointFromCGPoint(cgpoint corefoundation.CGPoint) corefoundation.CGPoint

func NSPointFromString

func NSPointFromString(aString *NSString) corefoundation.CGPoint

func NSPointInRect

func NSPointInRect(aPoint corefoundation.CGPoint, aRect corefoundation.CGRect) bool

func NSPointToCGPoint

func NSPointToCGPoint(nspoint corefoundation.CGPoint) corefoundation.CGPoint

func NSPointerArrayPointerArrayWithStrongObjects

func NSPointerArrayPointerArrayWithStrongObjects() objc.ID

Returns a new pointer array that maintains strong references to its elements. Deprecated: GC no longer supported

func NSPointerArrayPointerArrayWithWeakObjects

func NSPointerArrayPointerArrayWithWeakObjects() objc.ID

Returns a new pointer array that maintains weak references to its elements. Deprecated: GC no longer supported

func NSPortCoderPortCoderWithReceivePortSendPortComponents

func NSPortCoderPortCoderWithReceivePortSendPortComponents(rcvPort *NSPort, sndPort *NSPort, comps *NSArray[objc.ID]) objc.ID

Creates and returns a new NSPortCoder object. Deprecated: since macOS 10.7.

func NSPositiveCurrencyFormatString deprecated

func NSPositiveCurrencyFormatString() uintptr

Deprecated: since macOS 10.5.

func NSPriorDayDesignations deprecated

func NSPriorDayDesignations() uintptr

Deprecated: since macOS 10.5.

func NSProgressAddSubscriberForFileURLWithPublishingHandler

func NSProgressAddSubscriberForFileURLWithPublishingHandler(url *NSURL, publishingHandler objc.Block) objc.ID

func NSProgressFileAnimationImageKey

func NSProgressFileAnimationImageKey() uintptr

func NSProgressFileAnimationImageOriginalRectKey

func NSProgressFileAnimationImageOriginalRectKey() uintptr

func NSProgressFileIconKey

func NSProgressFileIconKey() uintptr

func NSProgressRemoveSubscriber

func NSProgressRemoveSubscriber(subscriber objc.ID)

func NSPropertyListSerializationPropertyListFromDataMutabilityOptionFormatErrorDescription deprecated

func NSPropertyListSerializationPropertyListFromDataMutabilityOptionFormatErrorDescription(data *NSData, opt NSPropertyListMutabilityOptions, format *NSPropertyListFormat, errorString *NSString) objc.ID

Deprecated: Use propertyListWithData:options:format:error: instead.

func NSPropertyListSerializationPropertyListIsValidForFormat

func NSPropertyListSerializationPropertyListIsValidForFormat(plist objc.ID, format NSPropertyListFormat) bool

func NSPropertyListSerializationPropertyListWithDataOptionsFormatError

func NSPropertyListSerializationPropertyListWithDataOptionsFormatError(data *NSData, opt NSPropertyListMutabilityOptions, format *NSPropertyListFormat) (objc.ID, error)

func NSPropertyListSerializationPropertyListWithStreamOptionsFormatError

func NSPropertyListSerializationPropertyListWithStreamOptionsFormatError(stream *NSInputStream, opt NSPropertyListMutabilityOptions, format *NSPropertyListFormat) (objc.ID, error)

func NSPropertyListSerializationWritePropertyListToStreamFormatOptionsError

func NSPropertyListSerializationWritePropertyListToStreamFormatOptionsError(plist objc.ID, stream *NSOutputStream, format NSPropertyListFormat, opt uint) (int, error)

func NSProtocolFromString

func NSProtocolFromString(namestr *NSString) unsafe.Pointer

func NSProxyAlloc

func NSProxyAlloc() objc.ID

Returns a new instance of the receiving class

func NSProxyAllocWithZone

func NSProxyAllocWithZone(zone unsafe.Pointer) objc.ID

Returns a new instance of the receiving class

func NSProxyClass

func NSProxyClass() objc.Class

Returns self (the class object).

func NSProxyRespondsToSelector

func NSProxyRespondsToSelector(aSelector objc.SEL) bool

Returns a Boolean value that indicates whether the receiving class responds to a given selector.

func NSRealMemoryAvailable deprecated

func NSRealMemoryAvailable() uint

Deprecated: Use NSProcessInfo instead

func NSReallocateCollectable

func NSReallocateCollectable(ptr unsafe.Pointer, size uint, options uint) unsafe.Pointer

func NSRectFromCGRect

func NSRectFromCGRect(cgrect corefoundation.CGRect) corefoundation.CGRect

func NSRectFromString

func NSRectFromString(aString *NSString) corefoundation.CGRect

func NSRectToCGRect

func NSRectToCGRect(nsrect corefoundation.CGRect) corefoundation.CGRect

func NSRecycleZone

func NSRecycleZone(zone unsafe.Pointer)

func NSRegistrationDomain

func NSRegistrationDomain() uintptr

NSRegistrationDomain identifies a search list entry containing all defaults set with -registerDefaults:, if any. NSRegistrationDomain is automatically included as the final entry of all search lists.

func NSReplacementIndexAttributeName

func NSReplacementIndexAttributeName() uintptr

func NSRepublicOfChinaCalendar deprecated

func NSRepublicOfChinaCalendar() uintptr

Deprecated: since macOS 10.10.

func NSResetHashTable

func NSResetHashTable(table *NSHashTable[objc.ID])

func NSResetMapTable

func NSResetMapTable(table *NSMapTable[objc.ID, objc.ID])

func NSRoundDownToMultipleOfPageSize

func NSRoundDownToMultipleOfPageSize(bytes_ uint) uint

func NSRoundUpToMultipleOfPageSize

func NSRoundUpToMultipleOfPageSize(bytes_ uint) uint

func NSScannerLocalizedScannerWithString

func NSScannerLocalizedScannerWithString(string_ *NSString) objc.ID

func NSScriptSuiteRegistrySetSharedScriptSuiteRegistry

func NSScriptSuiteRegistrySetSharedScriptSuiteRegistry(registry *NSScriptSuiteRegistry)

Sets the single, shared instance of NSScriptSuiteRegistry to registry.

func NSSelectorFromString

func NSSelectorFromString(aSelectorName *NSString) objc.SEL

func NSSetUncaughtExceptionHandler

func NSSetUncaughtExceptionHandler(arg unsafe.Pointer)

func NSSetZoneName

func NSSetZoneName(zone unsafe.Pointer, name *NSString)

func NSShortDateFormatString deprecated

func NSShortDateFormatString() uintptr

Deprecated: since macOS 10.5.

func NSShortMonthNameArray deprecated

func NSShortMonthNameArray() uintptr

Deprecated: since macOS 10.5.

func NSShortTimeDateFormatString deprecated

func NSShortTimeDateFormatString() uintptr

Deprecated: since macOS 10.5.

func NSShortWeekDayNameArray deprecated

func NSShortWeekDayNameArray() uintptr

Deprecated: since macOS 10.5.

func NSShouldRetainWithZone deprecated

func NSShouldRetainWithZone(anObject objc.ID, requestedZone unsafe.Pointer) bool

Deprecated: Not supported

func NSSizeFromCGSize

func NSSizeFromCGSize(cgsize corefoundation.CGSize) corefoundation.CGSize

func NSSizeFromString

func NSSizeFromString(aString *NSString) corefoundation.CGSize

func NSSizeToCGSize

func NSSizeToCGSize(nssize corefoundation.CGSize) corefoundation.CGSize

func NSSocketPortNameServerSharedInstance

func NSSocketPortNameServerSharedInstance() objc.ID

Returns the shared socket port name server.

func NSStreamGetBoundStreamsWithBufferSizeInputStreamOutputStream

func NSStreamGetBoundStreamsWithBufferSizeInputStreamOutputStream(bufferSize uint, inputStream *NSInputStream, outputStream *NSOutputStream)

func NSStreamGetStreamsToHostPortInputStreamOutputStream deprecated

func NSStreamGetStreamsToHostPortInputStreamOutputStream(host *NSHost, port int, inputStream *NSInputStream, outputStream *NSOutputStream)

Deprecated: Use nw_connection_t in Network framework instead

func NSStreamGetStreamsToHostWithNamePortInputStreamOutputStream deprecated

func NSStreamGetStreamsToHostWithNamePortInputStreamOutputStream(hostname *NSString, port int, inputStream *NSInputStream, outputStream *NSOutputStream)

Deprecated: Use nw_connection_t in Network framework instead

func NSStringAvailableStringEncodings

func NSStringAvailableStringEncodings() *uint

func NSStringDefaultCStringEncoding

func NSStringDefaultCStringEncoding() uint

func NSStringStringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion

func NSStringStringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data *NSData, opts *NSDictionary[*NSString, objc.ID], string_ *NSString, usedLossyConversion *bool) uint

Returns the string encoding for the given data as detected by attempting to create a string according to the specified encoding options.

func NSStringStringWithCString

func NSStringStringWithCString(bytes_ string) objc.ID

Creates a new string using a given C-string. Deprecated: Use +stringWithCString:encoding: instead

func NSStringStringWithCStringLength

func NSStringStringWithCStringLength(bytes_ string, length uint) objc.ID

Returns a string containing the characters in a given C-string. Deprecated: Use +stringWithCString:encoding:

func NSStringStringWithContentsOfFile

func NSStringStringWithContentsOfFile(path *NSString) objc.ID

Returns a string created by reading data from the file named by a given path. Deprecated: Use +stringWithContentsOfFile:encoding:error: instead

func NSStringStringWithContentsOfURL

func NSStringStringWithContentsOfURL(url *NSURL) objc.ID

Returns a string created by reading data from the file named by a given URL. Deprecated: Use +stringWithContentsOfURL:encoding:error: instead

func NSSwapBigDoubleToHost

func NSSwapBigDoubleToHost(x NSSwappedDouble) float64

func NSSwapBigFloatToHost

func NSSwapBigFloatToHost(x NSSwappedFloat) float32

func NSSwapBigIntToHost

func NSSwapBigIntToHost(x uint) uint

func NSSwapBigLongLongToHost

func NSSwapBigLongLongToHost(x uint64) uint64

func NSSwapBigLongToHost

func NSSwapBigLongToHost(x uint) uint

func NSSwapBigShortToHost

func NSSwapBigShortToHost(x uint16) uint16

func NSSwapHostIntToBig

func NSSwapHostIntToBig(x uint) uint

func NSSwapHostIntToLittle

func NSSwapHostIntToLittle(x uint) uint

func NSSwapHostLongLongToBig

func NSSwapHostLongLongToBig(x uint64) uint64

func NSSwapHostLongLongToLittle

func NSSwapHostLongLongToLittle(x uint64) uint64

func NSSwapHostLongToBig

func NSSwapHostLongToBig(x uint) uint

func NSSwapHostLongToLittle

func NSSwapHostLongToLittle(x uint) uint

func NSSwapHostShortToBig

func NSSwapHostShortToBig(x uint16) uint16

func NSSwapHostShortToLittle

func NSSwapHostShortToLittle(x uint16) uint16

func NSSwapInt

func NSSwapInt(inv uint) uint

func NSSwapLittleDoubleToHost

func NSSwapLittleDoubleToHost(x NSSwappedDouble) float64

func NSSwapLittleFloatToHost

func NSSwapLittleFloatToHost(x NSSwappedFloat) float32

func NSSwapLittleIntToHost

func NSSwapLittleIntToHost(x uint) uint

func NSSwapLittleLongLongToHost

func NSSwapLittleLongLongToHost(x uint64) uint64

func NSSwapLittleLongToHost

func NSSwapLittleLongToHost(x uint) uint

func NSSwapLittleShortToHost

func NSSwapLittleShortToHost(x uint16) uint16

func NSSwapLong

func NSSwapLong(inv uint) uint

func NSSwapLongLong

func NSSwapLongLong(inv uint64) uint64

func NSSwapShort

func NSSwapShort(inv uint16) uint16

func NSThisDayDesignations deprecated

func NSThisDayDesignations() uintptr

Deprecated: since macOS 10.5.

func NSThousandsSeparator deprecated

func NSThousandsSeparator() uintptr

Deprecated: since macOS 10.5.

func NSThreadDetachNewThreadSelectorToTargetWithObject

func NSThreadDetachNewThreadSelectorToTargetWithObject(selector objc.SEL, target objc.ID, argument objc.ID)

func NSThreadDetachNewThreadWith

func NSThreadDetachNewThreadWith(block func())

func NSThreadExit

func NSThreadExit()

func NSThreadIsMainThread

func NSThreadIsMainThread() bool

func NSThreadIsMultiThreaded

func NSThreadIsMultiThreaded() bool

func NSThreadSetThreadPriority

func NSThreadSetThreadPriority(p float64) bool

func NSThreadSleepForTimeInterval

func NSThreadSleepForTimeInterval(ti float64)

func NSThreadSleepUntilDate

func NSThreadSleepUntilDate(date *NSDate)

func NSThreadThreadPriority

func NSThreadThreadPriority() float64

func NSTimeDateFormatString deprecated

func NSTimeDateFormatString() uintptr

Deprecated: since macOS 10.5.

func NSTimeFormatString deprecated

func NSTimeFormatString() uintptr

Deprecated: since macOS 10.5.

func NSTimeZoneResetSystemTimeZone

func NSTimeZoneResetSystemTimeZone()

Clears any time zone value cached for the systemTimeZone property.

func NSTimeZoneSetAbbreviationDictionary

func NSTimeZoneSetAbbreviationDictionary(abbreviationDictionary *NSDictionary[*NSString, *NSString])

func NSTimeZoneSetDefaultTimeZone

func NSTimeZoneSetDefaultTimeZone(defaultTimeZone *NSTimeZone)

func NSURLApplicationIsScriptableKey

func NSURLApplicationIsScriptableKey() uintptr

func NSURLAuthenticationMethodClientCertificate

func NSURLAuthenticationMethodClientCertificate() uintptr

@const NSURLAuthenticationMethodClientCertificate @abstract SSL Client certificate. Applies to any protocol.

func NSURLAuthenticationMethodDefault

func NSURLAuthenticationMethodDefault() uintptr

@const NSURLAuthenticationMethodDefault @abstract The default authentication method for a protocol

func NSURLAuthenticationMethodHTMLForm

func NSURLAuthenticationMethodHTMLForm() uintptr

@const NSURLAuthenticationMethodHTMLForm @abstract HTML form authentication. Applies to any protocol.

func NSURLAuthenticationMethodHTTPBasic

func NSURLAuthenticationMethodHTTPBasic() uintptr

@const NSURLAuthenticationMethodHTTPBasic @abstract HTTP basic authentication. Equivalent to NSURLAuthenticationMethodDefault for http.

func NSURLAuthenticationMethodHTTPDigest

func NSURLAuthenticationMethodHTTPDigest() uintptr

@const NSURLAuthenticationMethodHTTPDigest @abstract HTTP digest authentication.

func NSURLAuthenticationMethodNTLM

func NSURLAuthenticationMethodNTLM() uintptr

@const NSURLAuthenticationMethodNTLM @abstract NTLM authentication.

func NSURLAuthenticationMethodNegotiate

func NSURLAuthenticationMethodNegotiate() uintptr

@const NSURLAuthenticationMethodNegotiate @abstract Negotiate authentication.

func NSURLAuthenticationMethodServerTrust

func NSURLAuthenticationMethodServerTrust() uintptr

@const NSURLAuthenticationMethodServerTrust @abstract SecTrustRef validation required. Applies to any protocol.

func NSURLCacheSetSharedURLCache

func NSURLCacheSetSharedURLCache(sharedURLCache *NSURLCache)

func NSURLConnectionCanHandleRequest

func NSURLConnectionCanHandleRequest(request *NSURLRequest) bool

Returns whether a request can be handled based on a preflight evaluation.

func NSURLConnectionSendAsynchronousRequestQueueCompletionHandler

func NSURLConnectionSendAsynchronousRequestQueueCompletionHandler(request *NSURLRequest, queue *NSOperationQueue, handler func(*NSURLResponse, *NSData, unsafe.Pointer))

Loads the data for a URL request and executes a handler block on an operation queue when the request completes or fails. Deprecated: Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h

func NSURLCredentialStorageRemoveSynchronizableCredentials

func NSURLCredentialStorageRemoveSynchronizableCredentials() uintptr

func NSURLDownloadCanResumeDownloadDecodedWithEncodingMIMEType

func NSURLDownloadCanResumeDownloadDecodedWithEncodingMIMEType(mIMEType *NSString) bool

Returns whether a URL download object can resume a download that was decoded with the specified MIME type.

func NSURLErrorBackgroundTaskCancelledReasonKey

func NSURLErrorBackgroundTaskCancelledReasonKey() uintptr

@const NSURLErrorBackgroundTaskCancelledReasonKey @abstract The NSError userInfo dictionary key used to store and retrieve the NSNumber corresponding to the reason why a background NSURLSessionTask was cancelled

func NSURLErrorFailingURLErrorKey

func NSURLErrorFailingURLErrorKey() uintptr

@const NSURLErrorFailingURLErrorKey @abstract The NSError userInfo dictionary key used to store and retrieve the URL which caused a load to fail.

func NSURLErrorFailingURLPeerTrustErrorKey

func NSURLErrorFailingURLPeerTrustErrorKey() uintptr

@const NSURLErrorFailingURLPeerTrustErrorKey @abstract The NSError userInfo dictionary key used to store and retrieve the SecTrustRef object representing the state of a failed SSL handshake.

func NSURLErrorFailingURLStringErrorKey

func NSURLErrorFailingURLStringErrorKey() uintptr

@const NSURLErrorFailingURLStringErrorKey @abstract The NSError userInfo dictionary key used to store and retrieve the NSString object for the URL which caused a load to fail. @discussion This constant supersedes NSErrorFailingURLStringKey, which was deprecated in Mac OS X 10.6. Both constants refer to the same value for backward-compatibility, but this symbol name has a better prefix. Deprecated: Use NSURLErrorFailingURLErrorKey instead

func NSURLFileScheme

func NSURLFileScheme() uintptr

func NSURLHandleCanInitWithURL

func NSURLHandleCanInitWithURL(anURL *NSURL) bool

Returns whether a URL handle can be initialized with a given URL. Deprecated: since macOS 10.4.

func NSURLHandleRegisterURLHandleClass

func NSURLHandleRegisterURLHandleClass(anURLHandleSubclass objc.Class)

Registers a subclass of NSURLHandle as an available subclass for handling URLs Deprecated: since macOS 10.4.

func NSURLHandleURLHandleClassForURL

func NSURLHandleURLHandleClassForURL(anURL *NSURL) objc.Class

Returns the class of the URL handle that will be used for a specified URL. Deprecated: since macOS 10.4.

func NSURLProtectionSpaceFTP

func NSURLProtectionSpaceFTP() uintptr

@const NSURLProtectionSpaceFTP @abstract The protocol for FTP Deprecated: FTP is deprecated and only supported in the classic loading mode

func NSURLProtectionSpaceFTPProxy

func NSURLProtectionSpaceFTPProxy() uintptr

@const NSURLProtectionSpaceFTPProxy @abstract The proxy type for ftp proxies Deprecated: FTP is deprecated and only supported in the classic loading mode

func NSURLProtectionSpaceHTTP

func NSURLProtectionSpaceHTTP() uintptr

@const NSURLProtectionSpaceHTTP @abstract The protocol for HTTP

func NSURLProtectionSpaceHTTPProxy

func NSURLProtectionSpaceHTTPProxy() uintptr

@const NSURLProtectionSpaceHTTPProxy @abstract The proxy type for http proxies

func NSURLProtectionSpaceHTTPS

func NSURLProtectionSpaceHTTPS() uintptr

@const NSURLProtectionSpaceHTTPS @abstract The protocol for HTTPS

func NSURLProtectionSpaceHTTPSProxy

func NSURLProtectionSpaceHTTPSProxy() uintptr

@const NSURLProtectionSpaceHTTPSProxy @abstract The proxy type for https proxies

func NSURLProtectionSpaceSOCKSProxy

func NSURLProtectionSpaceSOCKSProxy() uintptr

@const NSURLProtectionSpaceSOCKSProxy @abstract The proxy type for SOCKS proxies

func NSURLProtocolCanInitWithRequest

func NSURLProtocolCanInitWithRequest(request *NSURLRequest) bool

@method canInitWithRequest: @abstract This method determines whether this protocol can handle the given request. @discussion A concrete subclass should inspect the given request and determine whether or not the implementation can perform a load with that request. This is an abstract method. Subclasses must provide an implementation. @param request A request to inspect. @result YES if the protocol can handle the given request, NO if not.

func NSURLProtocolCanInitWithTask

func NSURLProtocolCanInitWithTask(task *NSURLSessionTask) bool

func NSURLProtocolPropertyForKeyInRequest

func NSURLProtocolPropertyForKeyInRequest(key *NSString, request *NSURLRequest) objc.ID

@method propertyForKey:inRequest: @abstract Returns the property in the given request previously stored with the given key. @discussion The purpose of this method is to provide an interface for protocol implementors to access protocol-specific information associated with NSURLRequest objects. @param key The string to use for the property lookup. @param request The request to use for the property lookup. @result The property stored with the given key, or nil if no property had previously been stored with the given key in the given request.

func NSURLProtocolRegisterClass

func NSURLProtocolRegisterClass(protocolClass objc.Class) bool

@method registerClass: @abstract This method registers a protocol class, making it visible to several other NSURLProtocol class methods. @discussion When the URL loading system begins to load a request, each protocol class that has been registered is consulted in turn to see if it can be initialized with a given request. The first protocol handler class to provide a YES answer to <tt>+canInitWithRequest:</tt> "wins" and that protocol implementation is used to perform the URL load. There is no guarantee that all registered protocol classes will be consulted. Hence, it should be noted that registering a class places it first on the list of classes that will be consulted in calls to <tt>+canInitWithRequest:</tt>, moving it in front of all classes that had been registered previously. <p>A similar design governs the process to create the canonical form of a request with the <tt>+canonicalRequestForRequest:</tt> class method. @param protocolClass the class to register. @result YES if the protocol was registered successfully, NO if not. The only way that failure can occur is if the given class is not a subclass of NSURLProtocol.

func NSURLProtocolRemovePropertyForKeyInRequest

func NSURLProtocolRemovePropertyForKeyInRequest(key *NSString, request *NSMutableURLRequest)

@method removePropertyForKey:inRequest: @abstract Remove any property stored under the given key @discussion Like setProperty:forKey:inRequest: above, the purpose of this method is to give protocol implementors the ability to store protocol-specific information in an NSURLRequest @param key The key whose value should be removed @param request The request to be modified

func NSURLProtocolRequestIsCacheEquivalentToRequest

func NSURLProtocolRequestIsCacheEquivalentToRequest(a *NSURLRequest, b *NSURLRequest) bool

@method requestIsCacheEquivalent:toRequest: @abstract Compares two requests for equivalence with regard to caching. @discussion Requests are considered equivalent for cache purposes if and only if they would be handled by the same protocol AND that protocol declares them equivalent after performing implementation-specific checks. @result YES if the two requests are cache-equivalent, NO otherwise.

func NSURLProtocolSetPropertyForKeyInRequest

func NSURLProtocolSetPropertyForKeyInRequest(value objc.ID, key *NSString, request *NSMutableURLRequest)

@method setProperty:forKey:inRequest: @abstract Stores the given property in the given request using the given key. @discussion The purpose of this method is to provide an interface for protocol implementors to customize protocol-specific information associated with NSMutableURLRequest objects. @param value The property to store. @param key The string to use for the property storage. @param request The request in which to store the property.

func NSURLProtocolUnregisterClass

func NSURLProtocolUnregisterClass(protocolClass objc.Class)

@method unregisterClass: @abstract This method unregisters a protocol. @discussion After unregistration, a protocol class is no longer consulted in calls to NSURLProtocol class methods. @param protocolClass The class to unregister.

func NSURLQuarantinePropertiesKey

func NSURLQuarantinePropertiesKey() uintptr

func NSURLRequestSupportsSecureCoding

func NSURLRequestSupportsSecureCoding() bool

@property supportsSecureCoding @abstract Indicates that NSURLRequest implements the NSSecureCoding protocol. @result A BOOL value set to YES.

func NSURLSessionDownloadTaskResumeData

func NSURLSessionDownloadTaskResumeData() uintptr

func NSURLSessionTaskPriorityDefault

func NSURLSessionTaskPriorityDefault() uintptr

func NSURLSessionTaskPriorityHigh

func NSURLSessionTaskPriorityHigh() uintptr

func NSURLSessionTaskPriorityLow

func NSURLSessionTaskPriorityLow() uintptr

func NSURLSessionTransferSizeUnknown

func NSURLSessionTransferSizeUnknown() int64

func NSURLSessionUploadTaskResumeData

func NSURLSessionUploadTaskResumeData() uintptr

Key in the userInfo dictionary of an NSError received during a failed upload.

func NSURLTagNamesKey

func NSURLTagNamesKey() uintptr

func NSURLThumbnailKey deprecated

func NSURLThumbnailKey() uintptr

Deprecated: Use the QuickLookThumbnailing framework and extension point instead

func NSURLWriteBookmarkDataToURLOptionsError

func NSURLWriteBookmarkDataToURLOptionsError(bookmarkData *NSData, bookmarkFileURL *NSURL, options uint) (bool, error)

Creates an alias file on disk at a specified location with specified bookmark data.

func NSUbiquitousKeyValueStoreChangeReasonKey

func NSUbiquitousKeyValueStoreChangeReasonKey() uintptr

func NSUbiquitousKeyValueStoreChangedKeysKey

func NSUbiquitousKeyValueStoreChangedKeysKey() uintptr

func NSUnarchiverDecodeClassNameAsClassName

func NSUnarchiverDecodeClassNameAsClassName(inArchiveName *NSString, trueName *NSString)

Instructs instances of NSUnarchiver to use the class with a given name when instantiating objects whose ostensible class, according to the archived data, is another given name.

func NSUnarchiverUnarchiveObjectWithData

func NSUnarchiverUnarchiveObjectWithData(data *NSData) objc.ID

Decodes and returns the object archived in a given NSData object.

func NSUnarchiverUnarchiveObjectWithFile

func NSUnarchiverUnarchiveObjectWithFile(path *NSString) objc.ID

Decodes and returns the object archived in the file path.

func NSUndoManagerGroupIsDiscardableKey

func NSUndoManagerGroupIsDiscardableKey() uintptr

func NSUserActivityDeleteAllSavedUserActivitiesWithCompletionHandler

func NSUserActivityDeleteAllSavedUserActivitiesWithCompletionHandler(handler func())

Deletes all user activities created by your app.

func NSUserActivityDeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler

func NSUserActivityDeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(persistentIdentifiers *NSArray[*NSString], handler func())

Deletes user activities created by your app that have the specified persistent identifiers.

func NSUserActivityTypeBrowsingWeb

func NSUserActivityTypeBrowsingWeb() uintptr

func NSUserDefaultsResetStandardUserDefaults

func NSUserDefaultsResetStandardUserDefaults()

+resetStandardUserDefaults releases the standardUserDefaults and sets it to nil. A new standardUserDefaults will be created the next time it's accessed. The only visible effect this has is that all KVO observers of the previous standardUserDefaults will no longer be observing it.

func NSUserNotificationDefaultSoundName deprecated

func NSUserNotificationDefaultSoundName() uintptr

Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API

func NSValueTransformerAllowsReverseTransformation

func NSValueTransformerAllowsReverseTransformation() bool

func NSValueTransformerSetValueTransformerForName

func NSValueTransformerSetValueTransformerForName(transformer *NSValueTransformer, name *NSString)

func NSValueTransformerTransformedValueClass

func NSValueTransformerTransformedValueClass() objc.Class

func NSWeekDayNameArray deprecated

func NSWeekDayNameArray() uintptr

Deprecated: since macOS 10.5.

func NSWidth

func NSWidth(aRect corefoundation.CGRect) float64

func NSXMLDocumentReplacementClassForClass

func NSXMLDocumentReplacementClassForClass(cls objc.Class) objc.Class

func NSXMLNodeAttributeWithNameStringValue

func NSXMLNodeAttributeWithNameStringValue(name *NSString, stringValue *NSString) objc.ID

@method attributeWithName:stringValue: @abstract Returns an attribute <tt>name="stringValue"</tt>.

func NSXMLNodeAttributeWithNameURIStringValue

func NSXMLNodeAttributeWithNameURIStringValue(name *NSString, uRI *NSString, stringValue *NSString) objc.ID

@method attributeWithLocalName:URI:stringValue: @abstract Returns an attribute whose full QName is specified.

func NSXMLNodeCommentWithStringValue

func NSXMLNodeCommentWithStringValue(stringValue *NSString) objc.ID

@method commentWithStringValue: @abstract Returns a comment <tt>&lt;--stringValue--></tt>.

func NSXMLNodeDTDNodeWithXMLString

func NSXMLNodeDTDNodeWithXMLString(string_ *NSString) objc.ID

@method DTDNodeWithXMLString: @abstract Returns an element, attribute, entity, or notation DTD node based on the full XML string.

func NSXMLNodeDocument

func NSXMLNodeDocument() objc.ID

@method document: @abstract Returns an empty document.

func NSXMLNodeDocumentWithRootElement

func NSXMLNodeDocumentWithRootElement(element *NSXMLElement) objc.ID

@method documentWithRootElement: @abstract Returns a document @param element The document's root node.

func NSXMLNodeElementWithName

func NSXMLNodeElementWithName(name *NSString) objc.ID

@method elementWithName: @abstract Returns an element <tt>&lt;name>&lt;/name></tt>.

func NSXMLNodeElementWithNameChildrenAttributes

func NSXMLNodeElementWithNameChildrenAttributes(name *NSString, children *NSArray[*NSXMLNode], attributes *NSArray[*NSXMLNode]) objc.ID

@method elementWithName:children:attributes: @abstract Returns an element children and attributes <tt>&lt;name attr1="foo" attr2="bar">&lt;-- child1 -->child2&lt;/name></tt>.

func NSXMLNodeElementWithNameStringValue

func NSXMLNodeElementWithNameStringValue(name *NSString, string_ *NSString) objc.ID

@method elementWithName:stringValue: @abstract Returns an element with a single text node child <tt>&lt;name>string&lt;/name></tt>.

func NSXMLNodeElementWithNameURI

func NSXMLNodeElementWithNameURI(name *NSString, uRI *NSString) objc.ID

@method elementWithName:URI: @abstract Returns an element whose full QName is specified.

func NSXMLNodeNamespaceWithNameStringValue

func NSXMLNodeNamespaceWithNameStringValue(name *NSString, stringValue *NSString) objc.ID

@method namespaceWithName:stringValue: @abstract Returns a namespace <tt>xmlns:name="stringValue"</tt>.

func NSXMLNodeProcessingInstructionWithNameStringValue

func NSXMLNodeProcessingInstructionWithNameStringValue(name *NSString, stringValue *NSString) objc.ID

@method processingInstructionWithName:stringValue: @abstract Returns a processing instruction <tt>&lt;?name stringValue></tt>.

func NSXMLNodeTextWithStringValue

func NSXMLNodeTextWithStringValue(stringValue *NSString) objc.ID

@method textWithStringValue: @abstract Returns a text node.

func NSYearMonthWeekDesignations deprecated

func NSYearMonthWeekDesignations() uintptr

Deprecated: since macOS 10.5.

func NSZeroPoint

func NSZeroPoint() corefoundation.CGPoint

func NSZeroRect

func NSZeroRect() corefoundation.CGRect

func NSZeroSize

func NSZeroSize() corefoundation.CGSize

func NSZoneCalloc

func NSZoneCalloc(zone unsafe.Pointer, numElems uint, byteSize uint) unsafe.Pointer

func NSZoneFree

func NSZoneFree(zone unsafe.Pointer, ptr unsafe.Pointer)

func NSZoneFromPointer

func NSZoneFromPointer(ptr unsafe.Pointer) unsafe.Pointer

func NSZoneMalloc

func NSZoneMalloc(zone unsafe.Pointer, size uint) unsafe.Pointer

func NSZoneRealloc

func NSZoneRealloc(zone unsafe.Pointer, ptr unsafe.Pointer, size uint) unsafe.Pointer

func ObjectGetClassName

func ObjectGetClassName(obj objc.ID) string

Returns the class name of a given object. @param obj An Objective-C object. @return The name of the class of which \e obj is an instance. C function: object_getClassName

func ObjectGetIndexedIvars

func ObjectGetIndexedIvars(obj objc.ID) unsafe.Pointer

Returns a pointer to any extra bytes allocated with an instance given object. @param obj An Objective-C object. @return A pointer to any extra bytes allocated with \e obj. If \e obj was not allocated with any extra bytes, then dereferencing the returned pointer is undefined. @note This function returns a pointer to any extra bytes allocated with the instance (as specified by \c class_createInstance with extraBytes>0). This memory follows the object's ordinary ivars, but may not be adjacent to the last ivar. @note The returned pointer is guaranteed to be pointer-size aligned, even if the area following the object's last ivar is less aligned than that. Alignment greater than pointer-size is never guaranteed, even if the area following the object's last ivar is more aligned than that. @note In a garbage-collected environment, the memory is scanned conservatively. C function: object_getIndexedIvars

func SelGetName

func SelGetName(sel objc.SEL) string

Returns the name of the method specified by a given selector. @param sel A pointer of type \c SEL. Pass the selector whose name you wish to determine. @return A C string indicating the name of the selector. C function: sel_getName

func SelGetUid

func SelGetUid(str string) objc.SEL

Registers a method name with the Objective-C runtime system. @param str A pointer to a C string. Pass the name of the method you wish to register. @return A pointer of type SEL specifying the selector for the named method. @note The implementation of this method is identical to the implementation of \c sel_registerName. @note Prior to OS X version 10.0, this method tried to find the selector mapped to the given name and returned \c NULL if the selector was not found. This was changed for safety, because it was observed that many of the callers of this function did not check the return value for \c NULL. C function: sel_getUid

func SelIsMapped

func SelIsMapped(sel objc.SEL) bool

Identifies a selector as being valid or invalid. @param sel The selector you want to identify. @return YES if selector is valid and has a function implementation, NO otherwise. @warning On some platforms, an invalid reference (to invalid memory addresses) can cause a crash. C function: sel_isMapped

func SelRegisterName

func SelRegisterName(str string) objc.SEL

Registers a method with the Objective-C runtime system, maps the method name to a selector, and returns the selector value. @param str A pointer to a C string. Pass the name of the method you wish to register. @return A pointer of type SEL specifying the selector for the named method. @note You must register a method name with the Objective-C runtime system to obtain the method’s selector before you can add the method to a class definition. If the method name has already been registered, this function simply returns the selector. C function: sel_registerName

func SymbolAvailable

func SymbolAvailable(symbol string) bool

SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.

Types

type Acl_entry_id_t

type Acl_entry_id_t int64
const (
	ACL_FIRST_ENTRY Acl_entry_id_t = 0
	ACL_NEXT_ENTRY  Acl_entry_id_t = -1
	ACL_LAST_ENTRY  Acl_entry_id_t = -2
)

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

type Acl_flag_t int64
const (
	ACL_FLAG_DEFER_INHERIT      Acl_flag_t = 1
	ACL_FLAG_NO_INHERIT         Acl_flag_t = 131072
	ACL_ENTRY_INHERITED         Acl_flag_t = 16
	ACL_ENTRY_FILE_INHERIT      Acl_flag_t = 32
	ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64
	ACL_ENTRY_LIMIT_INHERIT     Acl_flag_t = 128
	ACL_ENTRY_ONLY_INHERIT      Acl_flag_t = 256
)

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

type Acl_perm_t int64
const (
	ACL_READ_DATA           Acl_perm_t = 2
	ACL_LIST_DIRECTORY      Acl_perm_t = 2
	ACL_WRITE_DATA          Acl_perm_t = 4
	ACL_ADD_FILE            Acl_perm_t = 4
	ACL_EXECUTE             Acl_perm_t = 8
	ACL_SEARCH              Acl_perm_t = 8
	ACL_DELETE              Acl_perm_t = 16
	ACL_APPEND_DATA         Acl_perm_t = 32
	ACL_ADD_SUBDIRECTORY    Acl_perm_t = 32
	ACL_DELETE_CHILD        Acl_perm_t = 64
	ACL_READ_ATTRIBUTES     Acl_perm_t = 128
	ACL_WRITE_ATTRIBUTES    Acl_perm_t = 256
	ACL_READ_EXTATTRIBUTES  Acl_perm_t = 512
	ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024
	ACL_READ_SECURITY       Acl_perm_t = 2048
	ACL_WRITE_SECURITY      Acl_perm_t = 4096
	ACL_CHANGE_OWNER        Acl_perm_t = 8192
	ACL_SYNCHRONIZE         Acl_perm_t = 1048576
)

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

type Acl_tag_t int64
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

type Acl_type_t int64
const (
	ACL_TYPE_EXTENDED Acl_type_t = 256
	ACL_TYPE_ACCESS   Acl_type_t = 0
	ACL_TYPE_DEFAULT  Acl_type_t = 1
	ACL_TYPE_AFS      Acl_type_t = 2
	ACL_TYPE_CODA     Acl_type_t = 3
	ACL_TYPE_NTFS     Acl_type_t = 4
	ACL_TYPE_NWFS     Acl_type_t = 5
)

func (Acl_type_t) String

func (e Acl_type_t) String() string

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type Id

type Id = *ObjcObject

Id is an opaque pointer to objc_object (C typedef id).

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Ipc_info_object_type_t

type Ipc_info_object_type_t int64
const (
	IPC_OTYPE_NONE                 Ipc_info_object_type_t = 0
	IPC_OTYPE_THREAD_CONTROL       Ipc_info_object_type_t = 1
	IPC_OTYPE_TASK_CONTROL         Ipc_info_object_type_t = 2
	IPC_OTYPE_HOST                 Ipc_info_object_type_t = 3
	IPC_OTYPE_HOST_PRIV            Ipc_info_object_type_t = 4
	IPC_OTYPE_PROCESSOR            Ipc_info_object_type_t = 5
	IPC_OTYPE_PROCESSOR_SET        Ipc_info_object_type_t = 6
	IPC_OTYPE_PROCESSOR_SET_NAME   Ipc_info_object_type_t = 7
	IPC_OTYPE_TIMER                Ipc_info_object_type_t = 8
	IPC_OTYPE_PORT_SUBST_ONCE      Ipc_info_object_type_t = 9
	IPC_OTYPE_MIG                  Ipc_info_object_type_t = 10
	IPC_OTYPE_MEMORY_OBJECT        Ipc_info_object_type_t = 11
	IPC_OTYPE_XMM_PAGER            Ipc_info_object_type_t = 12
	IPC_OTYPE_XMM_KERNEL           Ipc_info_object_type_t = 13
	IPC_OTYPE_XMM_REPLY            Ipc_info_object_type_t = 14
	IPC_OTYPE_UND_REPLY            Ipc_info_object_type_t = 15
	IPC_OTYPE_HOST_NOTIFY          Ipc_info_object_type_t = 16
	IPC_OTYPE_HOST_SECURITY        Ipc_info_object_type_t = 17
	IPC_OTYPE_LEDGER               Ipc_info_object_type_t = 18
	IPC_OTYPE_MAIN_DEVICE          Ipc_info_object_type_t = 19
	IPC_OTYPE_TASK_NAME            Ipc_info_object_type_t = 20
	IPC_OTYPE_SUBSYSTEM            Ipc_info_object_type_t = 21
	IPC_OTYPE_IO_DONE_QUEUE        Ipc_info_object_type_t = 22
	IPC_OTYPE_SEMAPHORE            Ipc_info_object_type_t = 23
	IPC_OTYPE_LOCK_SET             Ipc_info_object_type_t = 24
	IPC_OTYPE_CLOCK                Ipc_info_object_type_t = 25
	IPC_OTYPE_CLOCK_CTRL           Ipc_info_object_type_t = 26
	IPC_OTYPE_IOKIT_IDENT          Ipc_info_object_type_t = 27
	IPC_OTYPE_NAMED_ENTRY          Ipc_info_object_type_t = 28
	IPC_OTYPE_IOKIT_CONNECT        Ipc_info_object_type_t = 29
	IPC_OTYPE_IOKIT_OBJECT         Ipc_info_object_type_t = 30
	IPC_OTYPE_UPL                  Ipc_info_object_type_t = 31
	IPC_OTYPE_MEM_OBJ_CONTROL      Ipc_info_object_type_t = 32
	IPC_OTYPE_AU_SESSIONPORT       Ipc_info_object_type_t = 33
	IPC_OTYPE_FILEPORT             Ipc_info_object_type_t = 34
	IPC_OTYPE_LABELH               Ipc_info_object_type_t = 35
	IPC_OTYPE_TASK_RESUME          Ipc_info_object_type_t = 36
	IPC_OTYPE_VOUCHER              Ipc_info_object_type_t = 37
	IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38
	IPC_OTYPE_WORK_INTERVAL        Ipc_info_object_type_t = 39
	IPC_OTYPE_UX_HANDLER           Ipc_info_object_type_t = 40
	IPC_OTYPE_UEXT_OBJECT          Ipc_info_object_type_t = 41
	IPC_OTYPE_ARCADE_REG           Ipc_info_object_type_t = 42
	IPC_OTYPE_EVENTLINK            Ipc_info_object_type_t = 43
	IPC_OTYPE_TASK_INSPECT         Ipc_info_object_type_t = 44
	IPC_OTYPE_TASK_READ            Ipc_info_object_type_t = 45
	IPC_OTYPE_THREAD_INSPECT       Ipc_info_object_type_t = 46
	IPC_OTYPE_THREAD_READ          Ipc_info_object_type_t = 47
	IPC_OTYPE_SUID_CRED            Ipc_info_object_type_t = 48
	IPC_OTYPE_HYPERVISOR           Ipc_info_object_type_t = 49
	IPC_OTYPE_TASK_ID_TOKEN        Ipc_info_object_type_t = 50
	IPC_OTYPE_TASK_FATAL           Ipc_info_object_type_t = 51
	IPC_OTYPE_KCDATA               Ipc_info_object_type_t = 52
	IPC_OTYPE_EXCLAVES_RESOURCE    Ipc_info_object_type_t = 53
	IPC_OTYPE_THREAD_RESUME        Ipc_info_object_type_t = 54
	IPC_OTYPE_UNKNOWN              Ipc_info_object_type_t = 4294967295
)

func (Ipc_info_object_type_t) String

func (e Ipc_info_object_type_t) String() string

type Launch_data_type_t

type Launch_data_type_t int64
const (
	LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1
	LAUNCH_DATA_ARRAY      Launch_data_type_t = 2
	LAUNCH_DATA_FD         Launch_data_type_t = 3
	LAUNCH_DATA_INTEGER    Launch_data_type_t = 4
	LAUNCH_DATA_REAL       Launch_data_type_t = 5
	LAUNCH_DATA_BOOL       Launch_data_type_t = 6
	LAUNCH_DATA_STRING     Launch_data_type_t = 7
	LAUNCH_DATA_OPAQUE     Launch_data_type_t = 8
	LAUNCH_DATA_ERRNO      Launch_data_type_t = 9
	LAUNCH_DATA_MACHPORT   Launch_data_type_t = 10
)

func (Launch_data_type_t) String

func (e Launch_data_type_t) String() string

type MDLabelDomain

type MDLabelDomain int64

@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

type MDQueryOptionFlags

type MDQueryOptionFlags int64
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int64

@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.

const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

type Mach_vm_range_flags_t

type Mach_vm_range_flags_t int64
const (
	MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)

func (Mach_vm_range_flags_t) String

func (e Mach_vm_range_flags_t) String() string

type Mach_vm_range_flavor_t

type Mach_vm_range_flavor_t int64
const (
	MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0
	MACH_VM_RANGE_FLAVOR_V1      Mach_vm_range_flavor_t = 1
)

func (Mach_vm_range_flavor_t) String

func (e Mach_vm_range_flavor_t) String() string

type Mach_vm_range_tag_t

type Mach_vm_range_tag_t int64
const (
	MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0
	MACH_VM_RANGE_DATA    Mach_vm_range_tag_t = 1
	MACH_VM_RANGE_FIXED   Mach_vm_range_tag_t = 2
)

func (Mach_vm_range_tag_t) String

func (e Mach_vm_range_tag_t) String() string

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type NSActivityOptions

type NSActivityOptions int64
const (
	NSActivityIdleDisplaySleepDisabled             NSActivityOptions = 1099511627776
	NSActivityIdleSystemSleepDisabled              NSActivityOptions = 1048576
	NSActivitySuddenTerminationDisabled            NSActivityOptions = 16384
	NSActivityAutomaticTerminationDisabled         NSActivityOptions = 32768
	NSActivityAnimationTrackingEnabled             NSActivityOptions = 35184372088832
	NSActivityTrackingEnabled                      NSActivityOptions = 70368744177664
	NSActivityUserInitiated                        NSActivityOptions = 16777215
	NSActivityUserInitiatedAllowingIdleSystemSleep NSActivityOptions = 15728639
	NSActivityBackground                           NSActivityOptions = 255
	NSActivityLatencyCritical                      NSActivityOptions = 1095216660480
	NSActivityUserInteractive                      NSActivityOptions = 1095233437695
)

func (NSActivityOptions) String

func (e NSActivityOptions) String() string

type NSAffineTransform

type NSAffineTransform struct {
	NSObject
}

A graphics coordinate transformation.

Apple documentation: https://developer.apple.com/documentation/foundation/nsaffinetransform

func NSAffineTransformFromID

func NSAffineTransformFromID(id objc.ID) *NSAffineTransform

func NSAffineTransformTransform

func NSAffineTransformTransform() *NSAffineTransform

Creates a new affine transform initialized to the identity matrix.

func (*NSAffineTransform) AppendTransform

func (o *NSAffineTransform) AppendTransform(transform *NSAffineTransform)

Appends the specified matrix to the receiver’s matrix.

func (*NSAffineTransform) Init

Initializes an affine transform matrix to the identity matrix.

func (*NSAffineTransform) InitWithTransform

func (o *NSAffineTransform) InitWithTransform(transform *NSAffineTransform) *NSAffineTransform

Initializes the receiver’s matrix using another transform object.

func (*NSAffineTransform) Invert

func (o *NSAffineTransform) Invert()

Replaces the receiver’s matrix with its inverse matrix.

func (*NSAffineTransform) PrependTransform

func (o *NSAffineTransform) PrependTransform(transform *NSAffineTransform)

Prepends the specified matrix to the receiver’s matrix.

func (*NSAffineTransform) RotateByDegrees

func (o *NSAffineTransform) RotateByDegrees(angle float64)

Applies a rotation factor (measured in degrees) to the receiver’s transformation matrix.

func (*NSAffineTransform) RotateByRadians

func (o *NSAffineTransform) RotateByRadians(angle float64)

Applies a rotation factor (measured in radians) to the receiver’s transformation matrix.

func (*NSAffineTransform) ScaleBy

func (o *NSAffineTransform) ScaleBy(scale float64)

Applies the specified scaling factor along both x and y axes to the receiver’s transformation matrix.

func (*NSAffineTransform) ScaleXByYBy

func (o *NSAffineTransform) ScaleXByYBy(scaleX float64, scaleY float64)

Applies scaling factors to each axis of the receiver’s transformation matrix.

func (*NSAffineTransform) SetTransformStruct

func (o *NSAffineTransform) SetTransformStruct(transformStruct NSAffineTransformStruct)

func (*NSAffineTransform) TransformPoint

Applies the receiver’s transform to the specified point and returns the result.

func (*NSAffineTransform) TransformSize

Applies the receiver’s transform to the specified size and returns the results.

func (*NSAffineTransform) TransformStruct

func (o *NSAffineTransform) TransformStruct() NSAffineTransformStruct

func (*NSAffineTransform) TranslateXByYBy

func (o *NSAffineTransform) TranslateXByYBy(deltaX float64, deltaY float64)

Applies the specified translation factors to the receiver’s transformation matrix.

type NSAffineTransformStruct

type NSAffineTransformStruct struct {
	M11 float64
	M12 float64
	M21 float64
	M22 float64
	TX  float64
	TY  float64
}

A structure that defines the three-by-three matrix that performs an affine transform between two coordinate systems.

type NSAlignmentOptions

type NSAlignmentOptions uint64

Values representing alignment operations.

const (
	NSAlignMinXInward      NSAlignmentOptions = 1
	NSAlignMinYInward      NSAlignmentOptions = 2
	NSAlignMaxXInward      NSAlignmentOptions = 4
	NSAlignMaxYInward      NSAlignmentOptions = 8
	NSAlignWidthInward     NSAlignmentOptions = 16
	NSAlignHeightInward    NSAlignmentOptions = 32
	NSAlignMinXOutward     NSAlignmentOptions = 256
	NSAlignMinYOutward     NSAlignmentOptions = 512
	NSAlignMaxXOutward     NSAlignmentOptions = 1024
	NSAlignMaxYOutward     NSAlignmentOptions = 2048
	NSAlignWidthOutward    NSAlignmentOptions = 4096
	NSAlignHeightOutward   NSAlignmentOptions = 8192
	NSAlignMinXNearest     NSAlignmentOptions = 65536
	NSAlignMinYNearest     NSAlignmentOptions = 131072
	NSAlignMaxXNearest     NSAlignmentOptions = 262144
	NSAlignMaxYNearest     NSAlignmentOptions = 524288
	NSAlignWidthNearest    NSAlignmentOptions = 1048576
	NSAlignHeightNearest   NSAlignmentOptions = 2097152
	NSAlignRectFlipped     NSAlignmentOptions = 9223372036854775808
	NSAlignAllEdgesInward  NSAlignmentOptions = 15
	NSAlignAllEdgesOutward NSAlignmentOptions = 3840
	NSAlignAllEdgesNearest NSAlignmentOptions = 983040
)

func (NSAlignmentOptions) String

func (e NSAlignmentOptions) String() string

type NSAppleEventDescriptor

type NSAppleEventDescriptor struct {
	NSObject
}

A wrapper for the Apple event descriptor data type.

Apple documentation: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor

func NSAppleEventDescriptorAppleEventWithEventClassEventIDTargetDescriptorReturnIDTransactionID

func NSAppleEventDescriptorAppleEventWithEventClassEventIDTargetDescriptorReturnIDTransactionID(eventClass uint, eventID uint, targetDescriptor *NSAppleEventDescriptor, returnID int16, transactionID int) *NSAppleEventDescriptor

Creates a descriptor that represents an Apple event, initialized according to the specified information.

func NSAppleEventDescriptorCurrentProcessDescriptor

func NSAppleEventDescriptorCurrentProcessDescriptor() *NSAppleEventDescriptor

Creates and returns an application address descriptor using the current process.

func NSAppleEventDescriptorDescriptorWithApplicationURL

func NSAppleEventDescriptorDescriptorWithApplicationURL(applicationURL *NSURL) *NSAppleEventDescriptor

Creates and returns an application address descriptor using the specified application URL.

func NSAppleEventDescriptorDescriptorWithBoolean

func NSAppleEventDescriptorDescriptorWithBoolean(boolean uint8) *NSAppleEventDescriptor

Creates a descriptor initialized with type typeBoolean that stores the specified Boolean value.

func NSAppleEventDescriptorDescriptorWithBundleIdentifier

func NSAppleEventDescriptorDescriptorWithBundleIdentifier(bundleIdentifier *NSString) *NSAppleEventDescriptor

Creates and returns an application address descriptor using the specified bundle identifier.

func NSAppleEventDescriptorDescriptorWithDate

func NSAppleEventDescriptorDescriptorWithDate(date *NSDate) *NSAppleEventDescriptor

Creates a descriptor that stores the specified date value.

func NSAppleEventDescriptorDescriptorWithDescriptorTypeBytesLength

func NSAppleEventDescriptorDescriptorWithDescriptorTypeBytesLength(descriptorType uint, bytes_ unsafe.Pointer, byteCount uint) *NSAppleEventDescriptor

Creates a descriptor initialized with the specified event type that stores the specified data (from a series of bytes).

func NSAppleEventDescriptorDescriptorWithDescriptorTypeData

func NSAppleEventDescriptorDescriptorWithDescriptorTypeData(descriptorType uint, data *NSData) *NSAppleEventDescriptor

Creates a descriptor initialized with the specified event type that stores the specified data (from an instance of NSData).

func NSAppleEventDescriptorDescriptorWithDouble

func NSAppleEventDescriptorDescriptorWithDouble(doubleValue float64) *NSAppleEventDescriptor

Creates a descriptor initialized with Apple event type typeIEEE64BitFloatingPoint that stores the specified double value.

func NSAppleEventDescriptorDescriptorWithEnumCode

func NSAppleEventDescriptorDescriptorWithEnumCode(enumerator uint) *NSAppleEventDescriptor

Creates a descriptor initialized with type typeEnumerated that stores the specified enumerator data type value.

func NSAppleEventDescriptorDescriptorWithFileURL

func NSAppleEventDescriptorDescriptorWithFileURL(fileURL *NSURL) *NSAppleEventDescriptor

Creates a descriptor that stores the specified file URL.

func NSAppleEventDescriptorDescriptorWithInt32

func NSAppleEventDescriptorDescriptorWithInt32(signedInt int) *NSAppleEventDescriptor

Creates a descriptor initialized with Apple event type typeSInt32 that stores the specified integer value.

func NSAppleEventDescriptorDescriptorWithProcessIdentifier

func NSAppleEventDescriptorDescriptorWithProcessIdentifier(processIdentifier int) *NSAppleEventDescriptor

Creates and returns an application address descriptor using the specified process identifier.

func NSAppleEventDescriptorDescriptorWithString

func NSAppleEventDescriptorDescriptorWithString(string_ *NSString) *NSAppleEventDescriptor

Creates a descriptor initialized with type typeUnicodeText that stores the text from the specified string.

func NSAppleEventDescriptorDescriptorWithTypeCode

func NSAppleEventDescriptorDescriptorWithTypeCode(typeCode uint) *NSAppleEventDescriptor

Creates a descriptor initialized with type typeType that stores the specified type value.

func NSAppleEventDescriptorFromID

func NSAppleEventDescriptorFromID(id objc.ID) *NSAppleEventDescriptor

func NSAppleEventDescriptorListDescriptor

func NSAppleEventDescriptorListDescriptor() *NSAppleEventDescriptor

Creates and initializes an empty list descriptor.

func NSAppleEventDescriptorNullDescriptor

func NSAppleEventDescriptorNullDescriptor() *NSAppleEventDescriptor

Creates and initializes a descriptor with no parameter or attribute values set.

func NSAppleEventDescriptorRecordDescriptor

func NSAppleEventDescriptorRecordDescriptor() *NSAppleEventDescriptor

Creates and initializes a descriptor for an Apple event record whose data has yet to be set.

func (*NSAppleEventDescriptor) AeDesc

func (*NSAppleEventDescriptor) AttributeDescriptorForKeyword

func (o *NSAppleEventDescriptor) AttributeDescriptorForKeyword(keyword uint) *NSAppleEventDescriptor

Returns a descriptor for the receiver’s Apple event attribute identified by the specified keyword.

func (*NSAppleEventDescriptor) BooleanValue

func (o *NSAppleEventDescriptor) BooleanValue() uint8

func (*NSAppleEventDescriptor) CoerceToDescriptorType

func (o *NSAppleEventDescriptor) CoerceToDescriptorType(descriptorType uint) *NSAppleEventDescriptor

Returns a descriptor obtained by coercing the receiver to the specified type.

func (*NSAppleEventDescriptor) Data

func (o *NSAppleEventDescriptor) Data() *NSData

func (*NSAppleEventDescriptor) DateValue

func (o *NSAppleEventDescriptor) DateValue() *NSDate

func (*NSAppleEventDescriptor) DescriptorAtIndex

func (o *NSAppleEventDescriptor) DescriptorAtIndex(index int) *NSAppleEventDescriptor

Returns the descriptor at the specified (one-based) position in the receiving descriptor list.

func (*NSAppleEventDescriptor) DescriptorForKeyword

func (o *NSAppleEventDescriptor) DescriptorForKeyword(keyword uint) *NSAppleEventDescriptor

Returns the receiver’s descriptor for the specified keyword.

func (*NSAppleEventDescriptor) DescriptorType

func (o *NSAppleEventDescriptor) DescriptorType() uint

func (*NSAppleEventDescriptor) DoubleValue

func (o *NSAppleEventDescriptor) DoubleValue() float64

func (*NSAppleEventDescriptor) EnumCodeValue

func (o *NSAppleEventDescriptor) EnumCodeValue() uint

func (*NSAppleEventDescriptor) EventClass

func (o *NSAppleEventDescriptor) EventClass() uint

func (*NSAppleEventDescriptor) EventID

func (o *NSAppleEventDescriptor) EventID() uint

func (*NSAppleEventDescriptor) FileURLValue

func (o *NSAppleEventDescriptor) FileURLValue() *NSURL

func (*NSAppleEventDescriptor) InitListDescriptor

func (o *NSAppleEventDescriptor) InitListDescriptor() *NSAppleEventDescriptor

Initializes a newly allocated instance as an empty list descriptor.

func (*NSAppleEventDescriptor) InitRecordDescriptor

func (o *NSAppleEventDescriptor) InitRecordDescriptor() *NSAppleEventDescriptor

Initializes a newly allocated instance as a descriptor that is an Apple event record.

func (*NSAppleEventDescriptor) InitWithAEDescNoCopy

func (o *NSAppleEventDescriptor) InitWithAEDescNoCopy(aeDesc *ae.AEDesc) *NSAppleEventDescriptor

Initializes a newly allocated instance as a descriptor for the specified Carbon AEDesc structure.

func (*NSAppleEventDescriptor) InitWithDescriptorTypeBytesLength

func (o *NSAppleEventDescriptor) InitWithDescriptorTypeBytesLength(descriptorType uint, bytes_ unsafe.Pointer, byteCount uint) *NSAppleEventDescriptor

Initializes a newly allocated instance as a descriptor with the specified descriptor type and data (from an arbitrary sequence of bytes and a length count).

func (*NSAppleEventDescriptor) InitWithDescriptorTypeData

func (o *NSAppleEventDescriptor) InitWithDescriptorTypeData(descriptorType uint, data *NSData) *NSAppleEventDescriptor

Initializes a newly allocated instance as a descriptor with the specified descriptor type and data (from an instance of NSData).

func (*NSAppleEventDescriptor) InitWithEventClassEventIDTargetDescriptorReturnIDTransactionID

func (o *NSAppleEventDescriptor) InitWithEventClassEventIDTargetDescriptorReturnIDTransactionID(eventClass uint, eventID uint, targetDescriptor *NSAppleEventDescriptor, returnID int16, transactionID int) *NSAppleEventDescriptor

Initializes a newly allocated instance as a descriptor for an Apple event, initialized with the specified values.

func (*NSAppleEventDescriptor) InsertDescriptorAtIndex

func (o *NSAppleEventDescriptor) InsertDescriptorAtIndex(descriptor *NSAppleEventDescriptor, index int)

Inserts a descriptor at the specified (one-based) position in the receiving descriptor list, replacing the existing descriptor, if any, at that position.

func (*NSAppleEventDescriptor) Int32Value

func (o *NSAppleEventDescriptor) Int32Value() int

func (*NSAppleEventDescriptor) IsRecordDescriptor

func (o *NSAppleEventDescriptor) IsRecordDescriptor() bool

func (*NSAppleEventDescriptor) KeywordForDescriptorAtIndex

func (o *NSAppleEventDescriptor) KeywordForDescriptorAtIndex(index int) uint

Returns the keyword for the descriptor at the specified (one-based) position in the receiver.

func (*NSAppleEventDescriptor) NumberOfItems

func (o *NSAppleEventDescriptor) NumberOfItems() int

func (*NSAppleEventDescriptor) ParamDescriptorForKeyword

func (o *NSAppleEventDescriptor) ParamDescriptorForKeyword(keyword uint) *NSAppleEventDescriptor

Returns a descriptor for the receiver’s Apple event parameter identified by the specified keyword.

func (*NSAppleEventDescriptor) RemoveDescriptorAtIndex

func (o *NSAppleEventDescriptor) RemoveDescriptorAtIndex(index int)

Removes the descriptor at the specified (one-based) position in the receiving descriptor list.

func (*NSAppleEventDescriptor) RemoveDescriptorWithKeyword

func (o *NSAppleEventDescriptor) RemoveDescriptorWithKeyword(keyword uint)

Removes the receiver’s descriptor identified by the specified keyword.

func (*NSAppleEventDescriptor) RemoveParamDescriptorWithKeyword

func (o *NSAppleEventDescriptor) RemoveParamDescriptorWithKeyword(keyword uint)

Removes the receiver’s parameter descriptor identified by the specified keyword.

func (*NSAppleEventDescriptor) ReturnID

func (o *NSAppleEventDescriptor) ReturnID() int16

func (*NSAppleEventDescriptor) SendEventWithOptionsTimeoutError

func (o *NSAppleEventDescriptor) SendEventWithOptionsTimeoutError(sendOptions NSAppleEventSendOptions, timeoutInSeconds float64) (*NSAppleEventDescriptor, error)

Sends an Apple event.

func (*NSAppleEventDescriptor) SetAttributeDescriptorForKeyword

func (o *NSAppleEventDescriptor) SetAttributeDescriptorForKeyword(descriptor *NSAppleEventDescriptor, keyword uint)

Adds a descriptor to the receiver as an attribute identified by the specified keyword.

func (*NSAppleEventDescriptor) SetDescriptorForKeyword

func (o *NSAppleEventDescriptor) SetDescriptorForKeyword(descriptor *NSAppleEventDescriptor, keyword uint)

Adds a descriptor, identified by a keyword, to the receiver.

func (*NSAppleEventDescriptor) SetParamDescriptorForKeyword

func (o *NSAppleEventDescriptor) SetParamDescriptorForKeyword(descriptor *NSAppleEventDescriptor, keyword uint)

Adds a descriptor to the receiver as an Apple event parameter identified by the specified keyword.

func (*NSAppleEventDescriptor) StringValue

func (o *NSAppleEventDescriptor) StringValue() *NSString

func (*NSAppleEventDescriptor) TransactionID

func (o *NSAppleEventDescriptor) TransactionID() int

func (*NSAppleEventDescriptor) TypeCodeValue

func (o *NSAppleEventDescriptor) TypeCodeValue() uint

type NSAppleEventManager

type NSAppleEventManager struct {
	NSObject
}

A mechanism for registering handler routines for specific types of Apple events and dispatching events to those handlers.

Apple documentation: https://developer.apple.com/documentation/foundation/nsappleeventmanager

func NSAppleEventManagerFromID

func NSAppleEventManagerFromID(id objc.ID) *NSAppleEventManager

func NSAppleEventManagerSharedAppleEventManager

func NSAppleEventManagerSharedAppleEventManager() *NSAppleEventManager

Returns the single instance of NSAppleEventManager, creating it first if it doesn’t exist.

func (*NSAppleEventManager) AppleEventForSuspensionID

func (o *NSAppleEventManager) AppleEventForSuspensionID(suspensionID unsafe.Pointer) *NSAppleEventDescriptor

Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, returns the descriptor for the event whose handling was suspended.

func (*NSAppleEventManager) CurrentAppleEvent

func (o *NSAppleEventManager) CurrentAppleEvent() *NSAppleEventDescriptor

func (*NSAppleEventManager) CurrentReplyAppleEvent

func (o *NSAppleEventManager) CurrentReplyAppleEvent() *NSAppleEventDescriptor

func (*NSAppleEventManager) DispatchRawAppleEventWithRawReplyHandlerRefCon

func (o *NSAppleEventManager) DispatchRawAppleEventWithRawReplyHandlerRefCon(theAppleEvent *ae.AEDesc, theReply *ae.AEDesc, handlerRefCon unsafe.Pointer) int16

Causes the Apple event specified by theAppleEvent to be dispatched to the appropriate Apple event handler, if one has been registered by calling setEventHandler:andSelector:forEventClass:andEventID:.

func (*NSAppleEventManager) RemoveEventHandlerForEventClassAndEventID

func (o *NSAppleEventManager) RemoveEventHandlerForEventClassAndEventID(eventClass uint, eventID uint)

If an Apple event handler has been registered for the event specified by eventClass and eventID, removes it.

func (*NSAppleEventManager) ReplyAppleEventForSuspensionID

func (o *NSAppleEventManager) ReplyAppleEventForSuspensionID(suspensionID unsafe.Pointer) *NSAppleEventDescriptor

Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, returns the corresponding reply event descriptor.

func (*NSAppleEventManager) ResumeWithSuspensionID

func (o *NSAppleEventManager) ResumeWithSuspensionID(suspensionID unsafe.Pointer)

Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, signal that handling of the suspended event may now continue.

func (*NSAppleEventManager) SetCurrentAppleEventAndReplyEventWithSuspensionID

func (o *NSAppleEventManager) SetCurrentAppleEventAndReplyEventWithSuspensionID(suspensionID unsafe.Pointer)

Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, sets the values that will be returned by subsequent invocations of currentAppleEvent and currentReplyAppleEvent to be the event whose handling was suspended and its corresponding reply event, respectively.

func (*NSAppleEventManager) SetEventHandlerAndSelectorForEventClassAndEventID

func (o *NSAppleEventManager) SetEventHandlerAndSelectorForEventClassAndEventID(handler objc.ID, handleEventSelector objc.SEL, eventClass uint, eventID uint)

Registers the Apple event handler specified by handler for the event specified by eventClass and eventID.

func (*NSAppleEventManager) SuspendCurrentAppleEvent

func (o *NSAppleEventManager) SuspendCurrentAppleEvent() unsafe.Pointer

Suspends the handling of the current event and returns an ID that must be used to resume the handling of the event if an Apple event is being handled on the current thread.

type NSAppleEventManagerSuspension

type NSAppleEventManagerSuspension struct{}

C struct: __NSAppleEventManagerSuspension NSAppleEventManagerSuspension is an opaque type.

type NSAppleEventSendOptions

type NSAppleEventSendOptions uint64
const (
	NSAppleEventSendNoReply        NSAppleEventSendOptions = 1
	NSAppleEventSendQueueReply     NSAppleEventSendOptions = 2
	NSAppleEventSendWaitForReply   NSAppleEventSendOptions = 3
	NSAppleEventSendNeverInteract  NSAppleEventSendOptions = 16
	NSAppleEventSendCanInteract    NSAppleEventSendOptions = 32
	NSAppleEventSendAlwaysInteract NSAppleEventSendOptions = 48
	NSAppleEventSendCanSwitchLayer NSAppleEventSendOptions = 64
	NSAppleEventSendDontRecord     NSAppleEventSendOptions = 4096
	NSAppleEventSendDontExecute    NSAppleEventSendOptions = 8192
	NSAppleEventSendDontAnnotate   NSAppleEventSendOptions = 65536
	NSAppleEventSendDefaultOptions NSAppleEventSendOptions = 35
)

func (NSAppleEventSendOptions) String

func (e NSAppleEventSendOptions) String() string

type NSAppleScript

type NSAppleScript struct {
	NSObject
}

An object that provides the ability to load, compile, and execute scripts.

Apple documentation: https://developer.apple.com/documentation/foundation/nsapplescript

func NSAppleScriptFromID

func NSAppleScriptFromID(id objc.ID) *NSAppleScript

func (*NSAppleScript) CompileAndReturnError

func (o *NSAppleScript) CompileAndReturnError(errorInfo *NSDictionary[*NSString, objc.ID]) bool

Compiles the receiver, if it is not already compiled.

func (*NSAppleScript) ExecuteAndReturnError

func (o *NSAppleScript) ExecuteAndReturnError(errorInfo *NSDictionary[*NSString, objc.ID]) *NSAppleEventDescriptor

Executes the receiver, compiling it first if it is not already compiled.

func (*NSAppleScript) ExecuteAppleEventError

func (o *NSAppleScript) ExecuteAppleEventError(event *NSAppleEventDescriptor, errorInfo *NSDictionary[*NSString, objc.ID]) *NSAppleEventDescriptor

Executes an Apple event in the context of the receiver, as a means of allowing the application to invoke a handler in the script.

func (*NSAppleScript) InitWithContentsOfURLError

func (o *NSAppleScript) InitWithContentsOfURLError(url *NSURL, errorInfo *NSDictionary[*NSString, objc.ID]) *NSAppleScript

Initializes a newly allocated script instance from the source identified by the passed URL.

func (*NSAppleScript) InitWithSource

func (o *NSAppleScript) InitWithSource(source *NSString) *NSAppleScript

Initializes a newly allocated script instance from the passed source.

func (*NSAppleScript) IsCompiled

func (o *NSAppleScript) IsCompiled() bool

func (*NSAppleScript) Source

func (o *NSAppleScript) Source() *NSString

type NSArchiver

type NSArchiver struct {
	NSCoder
}

A coder that stores an object’s data to an archive.

Apple documentation: https://developer.apple.com/documentation/foundation/nsarchiver Deprecated: Use NSKeyedArchiver instead

func NSArchiverFromID

func NSArchiverFromID(id objc.ID) *NSArchiver

func (*NSArchiver) ArchiverData

func (o *NSArchiver) ArchiverData() *NSMutableData

func (*NSArchiver) ClassNameEncodedForTrueClassName

func (o *NSArchiver) ClassNameEncodedForTrueClassName(trueName *NSString) *NSString

Returns the name of the class used to archive instances of the class with a given true name.

func (*NSArchiver) EncodeClassNameIntoClassName

func (o *NSArchiver) EncodeClassNameIntoClassName(trueName *NSString, inArchiveName *NSString)

Encodes a substitute name for the class with a given true name.

func (*NSArchiver) InitForWritingWithMutableData

func (o *NSArchiver) InitForWritingWithMutableData(mdata *NSMutableData) *NSArchiver

Returns an archiver, initialized to encode stream and version information into a given mutable data object.

func (*NSArchiver) ReplaceObjectWithObject

func (o *NSArchiver) ReplaceObjectWithObject(object objc.ID, newObject objc.ID)

Causes the receiver to treat subsequent requests to encode a given object as though they were requests to encode another given object.

type NSArray

type NSArray[ObjectType purego.AnyObject] struct {
	NSObject
}

A static ordered collection of objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nsarray

func NSAllHashTableObjects

func NSAllHashTableObjects(table *NSHashTable[objc.ID]) *NSArray[objc.ID]

func NSAllMapTableKeys

func NSAllMapTableKeys(table *NSMapTable[objc.ID, objc.ID]) *NSArray[objc.ID]

func NSAllMapTableValues

func NSAllMapTableValues(table *NSMapTable[objc.ID, objc.ID]) *NSArray[objc.ID]

func NSArrayArray

func NSArrayArray() *NSArray[objc.ID]

Creates and returns an empty array.

func NSArrayArrayWithArray

func NSArrayArrayWithArray(array *NSArray[objc.ID]) *NSArray[objc.ID]

Creates and returns an array containing the objects in another given array.

func NSArrayArrayWithContentsOfFile

func NSArrayArrayWithContentsOfFile(path *NSString) *NSArray[objc.ID]

Creates and returns an array containing the contents of the file specified by a given path. Deprecated: since macOS API_TO_BE_DEPRECATED.

func NSArrayArrayWithContentsOfURL

func NSArrayArrayWithContentsOfURL(url *NSURL) *NSArray[objc.ID]

Creates and returns an array containing the contents specified by a given URL. Deprecated: since macOS API_TO_BE_DEPRECATED.

func NSArrayArrayWithContentsOfURLError

func NSArrayArrayWithContentsOfURLError(url *NSURL) (*NSArray[objc.ID], error)

func NSArrayArrayWithObject

func NSArrayArrayWithObject(anObject objc.ID) *NSArray[objc.ID]

Creates and returns an array containing a given object.

func NSArrayArrayWithObjectsCount

func NSArrayArrayWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSArray[objc.ID]

Creates and returns an array that includes a given number of objects from a given C array.

func NSArrayFromID

func NSArrayFromID[ObjectType purego.AnyObject](id objc.ID) *NSArray[ObjectType]

func NSBundleAllBundles

func NSBundleAllBundles() *NSArray[*NSBundle]

func NSBundleAllFrameworks

func NSBundleAllFrameworks() *NSArray[*NSBundle]

func NSBundlePathsForResourcesOfTypeInDirectory

func NSBundlePathsForResourcesOfTypeInDirectory(ext *NSString, bundlePath *NSString) *NSArray[*NSString]

func NSBundlePreferredLocalizationsFromArray

func NSBundlePreferredLocalizationsFromArray(localizationsArray *NSArray[*NSString]) *NSArray[*NSString]

func NSBundlePreferredLocalizationsFromArrayForPreferences

func NSBundlePreferredLocalizationsFromArrayForPreferences(localizationsArray *NSArray[*NSString], preferencesArray *NSArray[*NSString]) *NSArray[*NSString]

func NSBundleURLsForResourcesWithExtensionSubdirectoryInBundleWithURL

func NSBundleURLsForResourcesWithExtensionSubdirectoryInBundleWithURL(ext *NSString, subpath *NSString, bundleURL *NSURL) *NSArray[*NSURL]

func NSConnectionAllConnections

func NSConnectionAllConnections() *NSArray[*NSConnection]

Returns all valid NSConnection objects in the process.

func NSFileCoordinatorFilePresenters

func NSFileCoordinatorFilePresenters() *NSArray[NSFilePresenter]

func NSFileVersionOtherVersionsOfItemAtURL

func NSFileVersionOtherVersionsOfItemAtURL(url *NSURL) *NSArray[*NSFileVersion]

Returns all versions of the specified file except the current version.

func NSFileVersionUnresolvedConflictVersionsOfItemAtURL

func NSFileVersionUnresolvedConflictVersionsOfItemAtURL(url *NSURL) *NSArray[*NSFileVersion]

Returns an array of version objects that are currently in conflict for the specified URL.

func NSHTTPCookieCookiesWithResponseHeaderFieldsForURL

func NSHTTPCookieCookiesWithResponseHeaderFieldsForURL(headerFields *NSDictionary[*NSString, *NSString], uRL *NSURL) *NSArray[*NSHTTPCookie]

@method cookiesWithResponseHeaderFields:forURL: @abstract Return an array of cookies parsed from the specified response header fields and URL. @param headerFields The response header fields to check for cookies. @param URL The URL that the cookies came from - relevant to how the cookies are interpreted. @result An NSArray of NSHTTPCookie objects @discussion This method will ignore irrelevant header fields so you can pass a dictionary containing data other than cookie data.

func NSKeyedUnarchiverUnarchivedArrayOfObjectsOfClassFromDataError

func NSKeyedUnarchiverUnarchivedArrayOfObjectsOfClassFromDataError(cls objc.Class, data *NSData) (*NSArray[objc.ID], error)

Decodes the \c NSArray root object from \c data which should be an \c NSArray containing the given non-collection class (no nested arrays or arrays of dictionaries, etc) from the given archive, previously encoded by \c NSKeyedArchiver.

func NSKeyedUnarchiverUnarchivedArrayOfObjectsOfClassesFromDataError

func NSKeyedUnarchiverUnarchivedArrayOfObjectsOfClassesFromDataError(classes *NSSet[objc.Class], data *NSData) (*NSArray[objc.ID], error)

Decodes the \c NSArray root object from \c data which should be an \c NSArray, containing the given non-collection classes in \c classes (no nested arrays or arrays of dictionaries, etc) from the given archive, previously encoded by \c NSKeyedArchiver.

func NSLinguisticTaggerAvailableTagSchemesForLanguage

func NSLinguisticTaggerAvailableTagSchemesForLanguage(language *NSString) *NSArray[*NSString]

Returns the tag schemes available for a particular language on the current device. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTaggerAvailableTagSchemesForUnitLanguage

func NSLinguisticTaggerAvailableTagSchemesForUnitLanguage(unit NSLinguisticTaggerUnit, language *NSString) *NSArray[*NSString]

Returns the tag schemes available for a particular unit and language on the current device. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTaggerTagsForStringRangeUnitSchemeOptionsOrthographyTokenRanges

func NSLinguisticTaggerTagsForStringRangeUnitSchemeOptionsOrthographyTokenRanges(string_ *NSString, range_ NSRange, unit NSLinguisticTaggerUnit, scheme *NSString, options NSLinguisticTaggerOptions, orthography *NSOrthography, tokenRanges *NSArray[*NSValue]) *NSArray[*NSString]

Returns an array of linguistic tags and token ranges for a given string and linguistic unit. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLocaleAvailableLocaleIdentifiers

func NSLocaleAvailableLocaleIdentifiers() *NSArray[*NSString]

func NSLocaleCommonISOCurrencyCodes

func NSLocaleCommonISOCurrencyCodes() *NSArray[*NSString]

func NSLocaleISOCountryCodes

func NSLocaleISOCountryCodes() *NSArray[*NSString]

func NSLocaleISOCurrencyCodes

func NSLocaleISOCurrencyCodes() *NSArray[*NSString]

func NSLocaleISOLanguageCodes

func NSLocaleISOLanguageCodes() *NSArray[*NSString]

func NSLocalePreferredLanguages

func NSLocalePreferredLanguages() *NSArray[*NSString]

func NSMorphologyCustomPronounRequiredKeysForLanguage

func NSMorphologyCustomPronounRequiredKeysForLanguage(language *NSString) *NSArray[*NSString]

Returns a collection of the custom pronoun keys required by this language.

func NSObjectClassFallbacksForKeyedArchiver

func NSObjectClassFallbacksForKeyedArchiver() *NSArray[*NSString]

func NSSearchPathForDirectoriesInDomains

func NSSearchPathForDirectoriesInDomains(directory NSSearchPathDirectory, domainMask NSSearchPathDomainMask, expandTilde bool) *NSArray[*NSString]

func NSSecureUnarchiveFromDataTransformerAllowedTopLevelClasses

func NSSecureUnarchiveFromDataTransformerAllowedTopLevelClasses() *NSArray[objc.Class]

func NSThreadCallStackReturnAddresses

func NSThreadCallStackReturnAddresses() *NSArray[*NSNumber]

func NSThreadCallStackSymbols

func NSThreadCallStackSymbols() *NSArray[*NSString]

func NSTimeZoneKnownTimeZoneNames

func NSTimeZoneKnownTimeZoneNames() *NSArray[*NSString]

func NSValueTransformerValueTransformerNames

func NSValueTransformerValueTransformerNames() *NSArray[*NSString]

func (*NSArray[ObjectType]) AddObserverToObjectsAtIndexesForKeyPathOptionsContext

func (o *NSArray[ObjectType]) AddObserverToObjectsAtIndexesForKeyPathOptionsContext(observer *NSObject, indexes *NSIndexSet, keyPath *NSString, options NSKeyValueObservingOptions, context_ unsafe.Pointer)

Registers an observer to receive key value observer notifications for the specified key-path relative to the objects at the indexes.

func (*NSArray[ObjectType]) ArrayByAddingObject

func (o *NSArray[ObjectType]) ArrayByAddingObject(anObject ObjectType) *NSArray[ObjectType]

Returns a new array that is a copy of the receiving array with a given object added to the end.

func (*NSArray[ObjectType]) ArrayByAddingObjectsFromArray

func (o *NSArray[ObjectType]) ArrayByAddingObjectsFromArray(otherArray *NSArray[ObjectType]) *NSArray[ObjectType]

Returns a new array that is a copy of the receiving array with the objects contained in another array added to the end.

func (*NSArray[ObjectType]) ArrayByApplyingDifference

func (o *NSArray[ObjectType]) ArrayByApplyingDifference(difference *NSOrderedCollectionDifference[ObjectType]) *NSArray[ObjectType]

Creates a new array by applying a difference object to an existing array.

func (*NSArray[ObjectType]) ComponentsJoinedByString

func (o *NSArray[ObjectType]) ComponentsJoinedByString(separator *NSString) *NSString

Constructs and returns an NSString object that is the result of interposing a given separator between the elements of the array.

func (*NSArray[ObjectType]) ContainsObject

func (o *NSArray[ObjectType]) ContainsObject(anObject ObjectType) bool

Returns a Boolean value that indicates whether a given object is present in the array.

func (*NSArray[ObjectType]) Count

func (o *NSArray[ObjectType]) Count() uint

func (*NSArray[ObjectType]) DescriptionWithLocale

func (o *NSArray[ObjectType]) DescriptionWithLocale(locale objc.ID) *NSString

Returns a string that represents the contents of the array, formatted as a property list.

func (*NSArray[ObjectType]) DescriptionWithLocaleIndent

func (o *NSArray[ObjectType]) DescriptionWithLocaleIndent(locale objc.ID, level uint) *NSString

Returns a string that represents the contents of the array, formatted as a property list.

func (*NSArray[ObjectType]) DifferenceFromArray

func (o *NSArray[ObjectType]) DifferenceFromArray(other *NSArray[ObjectType]) *NSOrderedCollectionDifference[ObjectType]

Compares two arrays to create a difference object that represents the changes between them.

func (*NSArray[ObjectType]) DifferenceFromArrayWithOptions

func (o *NSArray[ObjectType]) DifferenceFromArrayWithOptions(other *NSArray[ObjectType], options NSOrderedCollectionDifferenceCalculationOptions) *NSOrderedCollectionDifference[ObjectType]

Compares two arrays, with options, to create a difference object that represents the changes between them.

func (*NSArray[ObjectType]) DifferenceFromArrayWithOptionsUsingEquivalenceTest

func (o *NSArray[ObjectType]) DifferenceFromArrayWithOptionsUsingEquivalenceTest(other *NSArray[ObjectType], options NSOrderedCollectionDifferenceCalculationOptions, block objc.Block) *NSOrderedCollectionDifference[ObjectType]

Compares two arrays, using the provided block and with options, to create a difference object that represents the changes between them.

func (*NSArray[ObjectType]) EnumerateObjectsAtIndexesOptionsUsing

func (o *NSArray[ObjectType]) EnumerateObjectsAtIndexesOptionsUsing(s *NSIndexSet, opts NSEnumerationOptions, block objc.Block)

Executes a given block using the objects in the array at the specified indexes.

func (*NSArray[ObjectType]) EnumerateObjectsUsing

func (o *NSArray[ObjectType]) EnumerateObjectsUsing(block objc.Block)

Executes a given closure or block using each object in the array, starting with the first object and continuing through the array to the last object.

func (*NSArray[ObjectType]) EnumerateObjectsWithOptionsUsing

func (o *NSArray[ObjectType]) EnumerateObjectsWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)

Executes a given closure or block using each object in the array with the specified options.

func (*NSArray[ObjectType]) FilteredArrayUsingPredicate

func (o *NSArray[ObjectType]) FilteredArrayUsingPredicate(predicate *NSPredicate) *NSArray[ObjectType]

Evaluates a given predicate against each object in the receiving array and returns a new array containing the objects for which the predicate returns true.

func (*NSArray[ObjectType]) FirstObject

func (o *NSArray[ObjectType]) FirstObject() ObjectType

func (*NSArray[ObjectType]) FirstObjectCommonWithArray

func (o *NSArray[ObjectType]) FirstObjectCommonWithArray(otherArray *NSArray[ObjectType]) ObjectType

Returns the first object contained in the receiving array that’s equal to an object in another given array.

func (*NSArray[ObjectType]) GetObjects

func (o *NSArray[ObjectType]) GetObjects(objects unsafe.Pointer)

Copies all the objects contained in the array to aBuffer. Deprecated: Use -getObjects:range: instead

func (*NSArray[ObjectType]) GetObjectsRange

func (o *NSArray[ObjectType]) GetObjectsRange(objects unsafe.Pointer, range_ NSRange)

Copies references to objects contained in the array that fall within the specified range to aBuffer.

func (*NSArray[ObjectType]) IndexOfObject

func (o *NSArray[ObjectType]) IndexOfObject(anObject ObjectType) uint

Returns the lowest index whose corresponding array value is equal to a given object.

func (*NSArray[ObjectType]) IndexOfObjectAtIndexesOptionsPassingTest

func (o *NSArray[ObjectType]) IndexOfObjectAtIndexesOptionsPassingTest(s *NSIndexSet, opts NSEnumerationOptions, predicate objc.Block) uint

Returns the index, from a given set of indexes, of the first object in the array that passes a test in a given block for a given set of enumeration options.

func (*NSArray[ObjectType]) IndexOfObjectIdenticalTo

func (o *NSArray[ObjectType]) IndexOfObjectIdenticalTo(anObject ObjectType) uint

Returns the lowest index whose corresponding array value is identical to a given object.

func (*NSArray[ObjectType]) IndexOfObjectIdenticalToInRange

func (o *NSArray[ObjectType]) IndexOfObjectIdenticalToInRange(anObject ObjectType, range_ NSRange) uint

Returns the lowest index within a specified range whose corresponding array value is equal to a given object .

func (*NSArray[ObjectType]) IndexOfObjectInRange

func (o *NSArray[ObjectType]) IndexOfObjectInRange(anObject ObjectType, range_ NSRange) uint

Returns the lowest index within a specified range whose corresponding array value is equal to a given object .

func (*NSArray[ObjectType]) IndexOfObjectInSortedRangeOptionsUsingComparator

func (o *NSArray[ObjectType]) IndexOfObjectInSortedRangeOptionsUsingComparator(obj ObjectType, r NSRange, opts NSBinarySearchingOptions, cmp func(objc.ID, objc.ID) NSComparisonResult) uint

Returns the index, within a specified range, of an object compared with elements in the array using a given NSComparator block.

func (*NSArray[ObjectType]) IndexOfObjectPassingTest

func (o *NSArray[ObjectType]) IndexOfObjectPassingTest(predicate objc.Block) uint

Returns the index of the first object in the array that passes a test in a given block.

func (*NSArray[ObjectType]) IndexOfObjectWithOptionsPassingTest

func (o *NSArray[ObjectType]) IndexOfObjectWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) uint

Returns the index of an object in the array that passes a test in a given block for a given set of enumeration options.

func (*NSArray[ObjectType]) IndexesOfObjectsAtIndexesOptionsPassingTest

func (o *NSArray[ObjectType]) IndexesOfObjectsAtIndexesOptionsPassingTest(s *NSIndexSet, opts NSEnumerationOptions, predicate objc.Block) *NSIndexSet

Returns the indexes, from a given set of indexes, of objects in the array that pass a test in a given block for a given set of enumeration options.

func (*NSArray[ObjectType]) IndexesOfObjectsPassingTest

func (o *NSArray[ObjectType]) IndexesOfObjectsPassingTest(predicate objc.Block) *NSIndexSet

Returns the indexes of objects in the array that pass a test in a given block.

func (*NSArray[ObjectType]) IndexesOfObjectsWithOptionsPassingTest

func (o *NSArray[ObjectType]) IndexesOfObjectsWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSIndexSet

Returns the indexes of objects in the array that pass a test in a given block for a given set of enumeration options.

func (*NSArray[ObjectType]) Init

func (o *NSArray[ObjectType]) Init() *NSArray[ObjectType]

Initializes a newly allocated array.

func (*NSArray[ObjectType]) InitWithArray

func (o *NSArray[ObjectType]) InitWithArray(array *NSArray[ObjectType]) *NSArray[ObjectType]

Initializes a newly allocated array by placing in it the objects contained in a given array.

func (*NSArray[ObjectType]) InitWithArrayCopyItems

func (o *NSArray[ObjectType]) InitWithArrayCopyItems(array *NSArray[ObjectType], flag bool) *NSArray[ObjectType]

Initializes a newly allocated array using anArray as the source of data objects for the array.

func (*NSArray[ObjectType]) InitWithCoder

func (o *NSArray[ObjectType]) InitWithCoder(coder *NSCoder) *NSArray[ObjectType]

func (*NSArray[ObjectType]) InitWithContentsOfFile

func (o *NSArray[ObjectType]) InitWithContentsOfFile(path *NSString) *NSArray[ObjectType]

Initializes a newly allocated array with the contents of the file specified by a given path. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSArray[ObjectType]) InitWithContentsOfURL

func (o *NSArray[ObjectType]) InitWithContentsOfURL(url *NSURL) *NSArray[ObjectType]

Initializes a newly allocated array with the contents of the location specified by a given URL. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSArray[ObjectType]) InitWithContentsOfURLError

func (o *NSArray[ObjectType]) InitWithContentsOfURLError(url *NSURL) (*NSArray[ObjectType], error)

func (*NSArray[ObjectType]) InitWithObjectsCount

func (o *NSArray[ObjectType]) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSArray[ObjectType]

Initializes a newly allocated array to include a given number of objects from a given C array.

func (*NSArray[ObjectType]) IsEqualToArray

func (o *NSArray[ObjectType]) IsEqualToArray(otherArray *NSArray[ObjectType]) bool

Compares the receiving array to another array.

func (*NSArray[ObjectType]) LastObject

func (o *NSArray[ObjectType]) LastObject() ObjectType

func (*NSArray[ObjectType]) MakeObjectsPerformSelector

func (o *NSArray[ObjectType]) MakeObjectsPerformSelector(aSelector objc.SEL)

Sends to each object in the array the message identified by a given selector, starting with the first object and continuing through the array to the last object.

func (*NSArray[ObjectType]) MakeObjectsPerformSelectorWithObject

func (o *NSArray[ObjectType]) MakeObjectsPerformSelectorWithObject(aSelector objc.SEL, argument objc.ID)

Sends the aSelector message to each object in the array, starting with the first object and continuing through the array to the last object.

func (*NSArray[ObjectType]) ObjectAtIndex

func (o *NSArray[ObjectType]) ObjectAtIndex(index uint) ObjectType

Returns the object located at the specified index.

func (*NSArray[ObjectType]) ObjectAtIndexedSubscript

func (o *NSArray[ObjectType]) ObjectAtIndexedSubscript(idx uint) ObjectType

Returns the object at the specified index.

func (*NSArray[ObjectType]) ObjectEnumerator

func (o *NSArray[ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]

Returns an enumerator object that lets you access each object in the array.

func (*NSArray[ObjectType]) ObjectsAtIndexes

func (o *NSArray[ObjectType]) ObjectsAtIndexes(indexes *NSIndexSet) *NSArray[ObjectType]

Returns an array containing the objects in the array at the indexes specified by a given index set.

func (*NSArray[ObjectType]) PathsMatchingExtensions

func (o *NSArray[ObjectType]) PathsMatchingExtensions(filterTypes *NSArray[*NSString]) *NSArray[*NSString]

Returns an array containing all the pathname elements in the receiving array that have filename extensions from a given array.

func (*NSArray[ObjectType]) RemoveObserverFromObjectsAtIndexesForKeyPath

func (o *NSArray[ObjectType]) RemoveObserverFromObjectsAtIndexesForKeyPath(observer *NSObject, indexes *NSIndexSet, keyPath *NSString)

Removes anObserver from all key value observer notifications associated with the specified keyPath relative to the array’s objects at indexes.

func (*NSArray[ObjectType]) RemoveObserverFromObjectsAtIndexesForKeyPathContext

func (o *NSArray[ObjectType]) RemoveObserverFromObjectsAtIndexesForKeyPathContext(observer *NSObject, indexes *NSIndexSet, keyPath *NSString, context_ unsafe.Pointer)

Raises an exception.

func (*NSArray[ObjectType]) ReverseObjectEnumerator

func (o *NSArray[ObjectType]) ReverseObjectEnumerator() *NSEnumerator[ObjectType]

Returns an enumerator object that lets you access each object in the array, in reverse order.

func (*NSArray[ObjectType]) SortedArrayHint

func (o *NSArray[ObjectType]) SortedArrayHint() *NSData

func (*NSArray[ObjectType]) SortedArrayUsingComparator

func (o *NSArray[ObjectType]) SortedArrayUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[ObjectType]

Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block.

func (*NSArray[ObjectType]) SortedArrayUsingDescriptors

func (o *NSArray[ObjectType]) SortedArrayUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor]) *NSArray[ObjectType]

Returns a copy of the receiving array sorted as specified by a given array of sort descriptors.

func (*NSArray[ObjectType]) SortedArrayUsingFunctionContext

func (o *NSArray[ObjectType]) SortedArrayUsingFunctionContext(comparator unsafe.Pointer, context_ unsafe.Pointer) *NSArray[ObjectType]

Returns a new array that lists the receiving array’s elements in ascending order as defined by the comparison function comparator.

func (*NSArray[ObjectType]) SortedArrayUsingFunctionContextHint

func (o *NSArray[ObjectType]) SortedArrayUsingFunctionContextHint(comparator unsafe.Pointer, context_ unsafe.Pointer, hint *NSData) *NSArray[ObjectType]

Returns a new array that lists the receiving array’s elements in ascending order as defined by the comparison function comparator.

func (*NSArray[ObjectType]) SortedArrayUsingSelector

func (o *NSArray[ObjectType]) SortedArrayUsingSelector(comparator objc.SEL) *NSArray[ObjectType]

Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given selector.

func (*NSArray[ObjectType]) SortedArrayWithOptionsUsingComparator

func (o *NSArray[ObjectType]) SortedArrayWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[ObjectType]

Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block.

func (*NSArray[ObjectType]) SubarrayWithRange

func (o *NSArray[ObjectType]) SubarrayWithRange(range_ NSRange) *NSArray[ObjectType]

Returns a new array containing the receiving array’s elements that fall within the limits specified by a given range.

func (*NSArray[ObjectType]) WriteToFileAtomically

func (o *NSArray[ObjectType]) WriteToFileAtomically(path *NSString, useAuxiliaryFile bool) bool

Writes the contents of the array to a file at a given path. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSArray[ObjectType]) WriteToURLAtomically

func (o *NSArray[ObjectType]) WriteToURLAtomically(url *NSURL, atomically bool) bool

Writes the contents of the array to the location specified by a given URL. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSArray[ObjectType]) WriteToURLError

func (o *NSArray[ObjectType]) WriteToURLError(url *NSURL) (bool, error)

type NSAssertionHandler

type NSAssertionHandler struct {
	NSObject
}

An object that logs an assertion to the console.

Apple documentation: https://developer.apple.com/documentation/foundation/nsassertionhandler

func NSAssertionHandlerCurrentHandler

func NSAssertionHandlerCurrentHandler() *NSAssertionHandler

func NSAssertionHandlerFromID

func NSAssertionHandlerFromID(id objc.ID) *NSAssertionHandler

type NSAttributedString

type NSAttributedString struct {
	NSObject
}

A string of text that manages data, layout, and stylistic information for ranges of characters to support rendering.

Apple documentation: https://developer.apple.com/documentation/foundation/nsattributedstring

func NSAttributedStringFromID

func NSAttributedStringFromID(id objc.ID) *NSAttributedString

func NSAttributedStringLocalizedAttributedStringWithFormat

func NSAttributedStringLocalizedAttributedStringWithFormat(format *NSAttributedString) *NSAttributedString

Formats the string using the current locale and default options.

func NSAttributedStringLocalizedAttributedStringWithFormatContext

func NSAttributedStringLocalizedAttributedStringWithFormatContext(format *NSAttributedString, context_ *NSDictionary[*NSString, objc.ID]) *NSAttributedString

Formats the string using the current locale and default options.

func NSAttributedStringLocalizedAttributedStringWithFormatOptions

func NSAttributedStringLocalizedAttributedStringWithFormatOptions(format *NSAttributedString, options NSAttributedStringFormattingOptions) *NSAttributedString

Formats the string using the current locale and the specified options.

func NSAttributedStringLocalizedAttributedStringWithFormatOptionsContext

func NSAttributedStringLocalizedAttributedStringWithFormatOptionsContext(format *NSAttributedString, options NSAttributedStringFormattingOptions, context_ *NSDictionary[*NSString, objc.ID]) *NSAttributedString

Formats the string using the current locale and the specified options.

func (*NSAttributedString) AttributeAtIndexEffectiveRange

func (o *NSAttributedString) AttributeAtIndexEffectiveRange(attrName *NSString, location uint, range_ *NSRange) objc.ID

Returns the value for an attribute with the specified name of the character at the specified index and, by reference, the range where the attribute applies.

func (*NSAttributedString) AttributeAtIndexLongestEffectiveRangeInRange

func (o *NSAttributedString) AttributeAtIndexLongestEffectiveRangeInRange(attrName *NSString, location uint, range_ *NSRange, rangeLimit NSRange) objc.ID

Returns the value for the attribute with the specified name of the character at the specified index and, by reference, the range where the attribute applies.

func (*NSAttributedString) AttributedStringByInflectingString

func (o *NSAttributedString) AttributedStringByInflectingString() *NSAttributedString

If the string has portions tagged with NSInflectionRuleAttributeName that have no format specifiers, create a new string with those portions inflected by following the rule in the attribute.

func (*NSAttributedString) AttributedSubstringFromRange

func (o *NSAttributedString) AttributedSubstringFromRange(range_ NSRange) *NSAttributedString

Returns an attributed string consisting of the characters and attributes within the specified range in the attributed string.

func (*NSAttributedString) AttributesAtIndexEffectiveRange

func (o *NSAttributedString) AttributesAtIndexEffectiveRange(location uint, range_ *NSRange) *NSDictionary[*NSString, objc.ID]

Returns the attributes for the character at the specified index.

func (*NSAttributedString) AttributesAtIndexLongestEffectiveRangeInRange

func (o *NSAttributedString) AttributesAtIndexLongestEffectiveRangeInRange(location uint, range_ *NSRange, rangeLimit NSRange) *NSDictionary[*NSString, objc.ID]

Returns the attributes for the character at the specified index and, by reference, the range where the attributes apply.

func (*NSAttributedString) EnumerateAttributeInRangeOptionsUsing

func (o *NSAttributedString) EnumerateAttributeInRangeOptionsUsing(attrName *NSString, enumerationRange NSRange, opts NSAttributedStringEnumerationOptions, block objc.Block)

Executes the specified closure or block for each range of a particular attribute in the attributed string.

func (*NSAttributedString) EnumerateAttributesInRangeOptionsUsing

func (o *NSAttributedString) EnumerateAttributesInRangeOptionsUsing(enumerationRange NSRange, opts NSAttributedStringEnumerationOptions, block objc.Block)

Executes the specified closure or block for each range of attributes in the attributed string.

func (*NSAttributedString) InitWithAttributedString

func (o *NSAttributedString) InitWithAttributedString(attrStr *NSAttributedString) *NSAttributedString

func (*NSAttributedString) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError

func (o *NSAttributedString) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile *NSURL, options *NSAttributedStringMarkdownParsingOptions, baseURL *NSURL) (*NSAttributedString, error)

func (*NSAttributedString) InitWithFormatOptionsLocale

func (o *NSAttributedString) InitWithFormatOptionsLocale(format *NSAttributedString, options NSAttributedStringFormattingOptions, locale *NSLocale) *NSAttributedString

Formats the string using the specified locale (or the canonical one, if nil).

func (*NSAttributedString) InitWithFormatOptionsLocaleArguments

func (o *NSAttributedString) InitWithFormatOptionsLocaleArguments(format *NSAttributedString, options NSAttributedStringFormattingOptions, locale *NSLocale, arguments string) *NSAttributedString

Formats the string using the arguments list and the specified locale (or the canonical one, if nil).

func (*NSAttributedString) InitWithFormatOptionsLocaleContext

func (o *NSAttributedString) InitWithFormatOptionsLocaleContext(format *NSAttributedString, options NSAttributedStringFormattingOptions, locale *NSLocale, context_ *NSDictionary[*NSString, objc.ID]) *NSAttributedString

Formats the string using the specified locale (or the canonical one, if nil).

func (*NSAttributedString) InitWithFormatOptionsLocaleContextArguments

func (o *NSAttributedString) InitWithFormatOptionsLocaleContextArguments(format *NSAttributedString, options NSAttributedStringFormattingOptions, locale *NSLocale, context_ *NSDictionary[*NSString, objc.ID], arguments string) *NSAttributedString

Formats the string using the arguments list and the specified locale (or the canonical one, if nil).

func (*NSAttributedString) InitWithMarkdownOptionsBaseURLError

func (o *NSAttributedString) InitWithMarkdownOptionsBaseURLError(markdown *NSData, options *NSAttributedStringMarkdownParsingOptions, baseURL *NSURL) (*NSAttributedString, error)

func (*NSAttributedString) InitWithMarkdownStringOptionsBaseURLError

func (o *NSAttributedString) InitWithMarkdownStringOptionsBaseURLError(markdownString *NSString, options *NSAttributedStringMarkdownParsingOptions, baseURL *NSURL) (*NSAttributedString, error)

func (*NSAttributedString) InitWithString

func (o *NSAttributedString) InitWithString(str *NSString) *NSAttributedString

func (*NSAttributedString) InitWithStringAttributes

func (o *NSAttributedString) InitWithStringAttributes(str *NSString, attrs *NSDictionary[*NSString, objc.ID]) *NSAttributedString

func (*NSAttributedString) IsEqualToAttributedString

func (o *NSAttributedString) IsEqualToAttributedString(other *NSAttributedString) bool

Returns a Boolean value that indicates whether the attributed string is equal to the specified string.

func (*NSAttributedString) Length

func (o *NSAttributedString) Length() uint

func (*NSAttributedString) String

func (o *NSAttributedString) String() *NSString

type NSAttributedStringEnumerationOptions

type NSAttributedStringEnumerationOptions uint64

Options for enumerating attributes.

const (
	NSAttributedStringEnumerationReverse                          NSAttributedStringEnumerationOptions = 2
	NSAttributedStringEnumerationLongestEffectiveRangeNotRequired NSAttributedStringEnumerationOptions = 1048576
)

func (NSAttributedStringEnumerationOptions) String

type NSAttributedStringFormattingOptions

type NSAttributedStringFormattingOptions uint64

Options to use when creating an attributed string from a format string and variable list of arguments.

const (
	// An option to replace the attributes in a substituted string with those of the provided attributed string.
	NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging NSAttributedStringFormattingOptions = 1
	// An option to apply to the replaced portions of text in a format string.
	NSAttributedStringFormattingApplyReplacementIndexAttribute NSAttributedStringFormattingOptions = 2
)

func (NSAttributedStringFormattingOptions) String

type NSAttributedStringMarkdownInterpretedSyntax

type NSAttributedStringMarkdownInterpretedSyntax int64

A type that represents the syntax for intepreting a Markdown string.

const (
	// A syntax value that interprets the full Markdown syntax and produces all relevant attributes.
	NSAttributedStringMarkdownInterpretedSyntaxFull NSAttributedStringMarkdownInterpretedSyntax = 0
	// A syntax value that parses all Markdown text, but interprets only attributes that apply to inline spans.
	NSAttributedStringMarkdownInterpretedSyntaxInlineOnly NSAttributedStringMarkdownInterpretedSyntax = 1
	// A syntax value that parses all Markdown text, but interprets only attributes that apply to inline spans, perserving white space.
	NSAttributedStringMarkdownInterpretedSyntaxInlineOnlyPreservingWhitespace NSAttributedStringMarkdownInterpretedSyntax = 2
)

func (NSAttributedStringMarkdownInterpretedSyntax) String

type NSAttributedStringMarkdownParsingFailurePolicy

type NSAttributedStringMarkdownParsingFailurePolicy int64

A type that represents policies for handling parsing failures.

const (
	// A policy to return an error from the initializer if parsing fails.
	NSAttributedStringMarkdownParsingFailureReturnError NSAttributedStringMarkdownParsingFailurePolicy = 0
	// A policy to return a partially parsed string, if possible.
	NSAttributedStringMarkdownParsingFailureReturnPartiallyParsedIfPossible NSAttributedStringMarkdownParsingFailurePolicy = 1
)

func (NSAttributedStringMarkdownParsingFailurePolicy) String

type NSAttributedStringMarkdownParsingOptions

type NSAttributedStringMarkdownParsingOptions struct {
	NSObject
}

Options that affect the parsing of Markdown content into an attributed string.

Apple documentation: https://developer.apple.com/documentation/foundation/nsattributedstringmarkdownparsingoptions

func NSAttributedStringMarkdownParsingOptionsFromID

func NSAttributedStringMarkdownParsingOptionsFromID(id objc.ID) *NSAttributedStringMarkdownParsingOptions

func (*NSAttributedStringMarkdownParsingOptions) AllowsExtendedAttributes

func (o *NSAttributedStringMarkdownParsingOptions) AllowsExtendedAttributes() bool

func (*NSAttributedStringMarkdownParsingOptions) AppliesSourcePositionAttributes

func (o *NSAttributedStringMarkdownParsingOptions) AppliesSourcePositionAttributes() bool

func (*NSAttributedStringMarkdownParsingOptions) FailurePolicy

func (*NSAttributedStringMarkdownParsingOptions) Init

Creates a Markdown parsing options instance with the specified values.

func (*NSAttributedStringMarkdownParsingOptions) InterpretedSyntax

func (*NSAttributedStringMarkdownParsingOptions) LanguageCode

func (*NSAttributedStringMarkdownParsingOptions) SetAllowsExtendedAttributes

func (o *NSAttributedStringMarkdownParsingOptions) SetAllowsExtendedAttributes(allowsExtendedAttributes bool)

func (*NSAttributedStringMarkdownParsingOptions) SetAppliesSourcePositionAttributes

func (o *NSAttributedStringMarkdownParsingOptions) SetAppliesSourcePositionAttributes(appliesSourcePositionAttributes bool)

func (*NSAttributedStringMarkdownParsingOptions) SetFailurePolicy

func (*NSAttributedStringMarkdownParsingOptions) SetInterpretedSyntax

func (*NSAttributedStringMarkdownParsingOptions) SetLanguageCode

func (o *NSAttributedStringMarkdownParsingOptions) SetLanguageCode(languageCode *NSString)

type NSAttributedStringMarkdownSourcePosition

type NSAttributedStringMarkdownSourcePosition struct {
	NSObject
}

The position of attributed string text in its original Markdown source string.

Apple documentation: https://developer.apple.com/documentation/foundation/nsattributedstringmarkdownsourceposition

func NSAttributedStringMarkdownSourcePositionFromID

func NSAttributedStringMarkdownSourcePositionFromID(id objc.ID) *NSAttributedStringMarkdownSourcePosition

func (*NSAttributedStringMarkdownSourcePosition) EndColumn

func (*NSAttributedStringMarkdownSourcePosition) EndLine

func (*NSAttributedStringMarkdownSourcePosition) InitWithStartLineStartColumnEndLineEndColumn

func (o *NSAttributedStringMarkdownSourcePosition) InitWithStartLineStartColumnEndLineEndColumn(startLine int, startColumn int, endLine int, endColumn int) *NSAttributedStringMarkdownSourcePosition

Creates a Markdown source position instance from its start and end line and column.

func (*NSAttributedStringMarkdownSourcePosition) RangeInString

func (o *NSAttributedStringMarkdownSourcePosition) RangeInString(string_ *NSString) NSRange

Returns a range indicating the source portion within a Markdown string.

func (*NSAttributedStringMarkdownSourcePosition) StartColumn

func (*NSAttributedStringMarkdownSourcePosition) StartLine

type NSAutoreleasePool

type NSAutoreleasePool struct {
	NSObject
}

An object that supports Cocoa’s reference-counted memory management system.

Apple documentation: https://developer.apple.com/documentation/foundation/nsautoreleasepool

func NSAutoreleasePoolFromID

func NSAutoreleasePoolFromID(id objc.ID) *NSAutoreleasePool

func (*NSAutoreleasePool) AddObject

func (o *NSAutoreleasePool) AddObject(anObject objc.ID)

Adds a given object to the receiver

func (*NSAutoreleasePool) Drain

func (o *NSAutoreleasePool) Drain()

In a reference-counted environment, releases and pops the receiver; in a garbage-collected environment, triggers garbage collection if the memory allocated since the last collection is greater than the current threshold.

type NSBackgroundActivityResult

type NSBackgroundActivityResult int64

These constants indicate whether background activity has been completed successfully or whether additional processing should be deferred until a more optimal time.

const (
	NSBackgroundActivityResultFinished NSBackgroundActivityResult = 1
	NSBackgroundActivityResultDeferred NSBackgroundActivityResult = 2
)

func (NSBackgroundActivityResult) String

type NSBackgroundActivityScheduler

type NSBackgroundActivityScheduler struct {
	NSObject
}

A task scheduler suitable for low priority operations that can run in the background.

Apple documentation: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler

func NSBackgroundActivitySchedulerFromID

func NSBackgroundActivitySchedulerFromID(id objc.ID) *NSBackgroundActivityScheduler

func (*NSBackgroundActivityScheduler) Identifier

func (o *NSBackgroundActivityScheduler) Identifier() *NSString

func (*NSBackgroundActivityScheduler) InitWithIdentifier

func (o *NSBackgroundActivityScheduler) InitWithIdentifier(identifier *NSString) *NSBackgroundActivityScheduler

Initializes a background activity scheduler object with a specified unique identifier.

func (*NSBackgroundActivityScheduler) Interval

func (o *NSBackgroundActivityScheduler) Interval() float64

func (*NSBackgroundActivityScheduler) Invalidate

func (o *NSBackgroundActivityScheduler) Invalidate()

Prevents the background activity from being scheduled again.

func (*NSBackgroundActivityScheduler) QualityOfService

func (o *NSBackgroundActivityScheduler) QualityOfService() NSQualityOfService

func (*NSBackgroundActivityScheduler) Repeats

func (o *NSBackgroundActivityScheduler) Repeats() bool

func (*NSBackgroundActivityScheduler) ScheduleWith

func (o *NSBackgroundActivityScheduler) ScheduleWith(block func(objc.Block))

Begins scheduling the background activity.

func (*NSBackgroundActivityScheduler) SetInterval

func (o *NSBackgroundActivityScheduler) SetInterval(interval float64)

func (*NSBackgroundActivityScheduler) SetQualityOfService

func (o *NSBackgroundActivityScheduler) SetQualityOfService(qualityOfService NSQualityOfService)

func (*NSBackgroundActivityScheduler) SetRepeats

func (o *NSBackgroundActivityScheduler) SetRepeats(repeats bool)

func (*NSBackgroundActivityScheduler) SetTolerance

func (o *NSBackgroundActivityScheduler) SetTolerance(tolerance float64)

func (*NSBackgroundActivityScheduler) ShouldDefer

func (o *NSBackgroundActivityScheduler) ShouldDefer() bool

func (*NSBackgroundActivityScheduler) Tolerance

func (o *NSBackgroundActivityScheduler) Tolerance() float64

type NSBinarySearchingOptions

type NSBinarySearchingOptions uint64

Options for searches and insertions using indexOfObject:inSortedRange:options:usingComparator:.

const (
	// Specifies that the search should return the first object in the range that is equal to the given object.
	NSBinarySearchingFirstEqual NSBinarySearchingOptions = 256
	// Specifies that the search should return the last object in the range that is equal to the given object.
	NSBinarySearchingLastEqual NSBinarySearchingOptions = 512
	// Returns the index at which you should insert the object in order to maintain a sorted array.
	NSBinarySearchingInsertionIndex NSBinarySearchingOptions = 1024
)

func (NSBinarySearchingOptions) String

func (e NSBinarySearchingOptions) String() string

type NSBlockOperation

type NSBlockOperation struct {
	NSOperation
}

An operation that manages the concurrent execution of one or more blocks.

Apple documentation: https://developer.apple.com/documentation/foundation/nsblockoperation

func NSBlockOperationBlockOperationWith

func NSBlockOperationBlockOperationWith(block func()) *NSBlockOperation

func NSBlockOperationFromID

func NSBlockOperationFromID(id objc.ID) *NSBlockOperation

func (*NSBlockOperation) AddExecutionBlock

func (o *NSBlockOperation) AddExecutionBlock(block func())

func (*NSBlockOperation) ExecutionBlocks

func (o *NSBlockOperation) ExecutionBlocks() unsafe.Pointer

type NSBundle

type NSBundle struct {
	NSObject
}

A representation of the code and resources stored in a bundle directory on disk.

Apple documentation: https://developer.apple.com/documentation/foundation/nsbundle

func NSBundleBundleForClass

func NSBundleBundleForClass(aClass objc.Class) *NSBundle

func NSBundleBundleWithIdentifier

func NSBundleBundleWithIdentifier(identifier *NSString) *NSBundle

func NSBundleBundleWithPath

func NSBundleBundleWithPath(path *NSString) *NSBundle

Returns an NSBundle object that corresponds to the specified directory.

func NSBundleBundleWithURL

func NSBundleBundleWithURL(url *NSURL) *NSBundle

func NSBundleFromID

func NSBundleFromID(id objc.ID) *NSBundle

func NSBundleMainBundle

func NSBundleMainBundle() *NSBundle

func (*NSBundle) AppStoreReceiptURL

func (o *NSBundle) AppStoreReceiptURL() *NSURL

func (*NSBundle) BuiltInPlugInsPath

func (o *NSBundle) BuiltInPlugInsPath() *NSString

func (*NSBundle) BuiltInPlugInsURL

func (o *NSBundle) BuiltInPlugInsURL() *NSURL

func (*NSBundle) BundleIdentifier

func (o *NSBundle) BundleIdentifier() *NSString

func (*NSBundle) BundlePath

func (o *NSBundle) BundlePath() *NSString

func (*NSBundle) BundleURL

func (o *NSBundle) BundleURL() *NSURL

func (*NSBundle) ClassNamed

func (o *NSBundle) ClassNamed(className *NSString) objc.Class

func (*NSBundle) DevelopmentLocalization

func (o *NSBundle) DevelopmentLocalization() *NSString

func (*NSBundle) ExecutableArchitectures

func (o *NSBundle) ExecutableArchitectures() *NSArray[*NSNumber]

func (*NSBundle) ExecutablePath

func (o *NSBundle) ExecutablePath() *NSString

func (*NSBundle) ExecutableURL

func (o *NSBundle) ExecutableURL() *NSURL

func (*NSBundle) InfoDictionary

func (o *NSBundle) InfoDictionary() *NSDictionary[*NSString, objc.ID]

func (*NSBundle) InitWithPath

func (o *NSBundle) InitWithPath(path *NSString) *NSBundle

func (*NSBundle) InitWithURL

func (o *NSBundle) InitWithURL(url *NSURL) *NSBundle

func (*NSBundle) IsLoaded

func (o *NSBundle) IsLoaded() bool

func (*NSBundle) Load

func (o *NSBundle) Load() bool

func (*NSBundle) LoadAndReturnError

func (o *NSBundle) LoadAndReturnError() (bool, error)

func (*NSBundle) Localizations

func (o *NSBundle) Localizations() *NSArray[*NSString]

func (*NSBundle) LocalizedAttributedStringForKeyValueTable

func (o *NSBundle) LocalizedAttributedStringForKeyValueTable(key *NSString, value *NSString, tableName *NSString) *NSAttributedString

func (*NSBundle) LocalizedInfoDictionary

func (o *NSBundle) LocalizedInfoDictionary() *NSDictionary[*NSString, objc.ID]

func (*NSBundle) LocalizedStringForKeyValueTable

func (o *NSBundle) LocalizedStringForKeyValueTable(key *NSString, value *NSString, tableName *NSString) *NSString

func (*NSBundle) LocalizedStringForKeyValueTableLocalizations

func (o *NSBundle) LocalizedStringForKeyValueTableLocalizations(key *NSString, value *NSString, tableName *NSString, localizations *NSArray[*NSString]) *NSString

Look up a localized string given a list of available localizations.

func (*NSBundle) ObjectForInfoDictionaryKey

func (o *NSBundle) ObjectForInfoDictionaryKey(key *NSString) objc.ID

func (*NSBundle) PathForAuxiliaryExecutable

func (o *NSBundle) PathForAuxiliaryExecutable(executableName *NSString) *NSString

func (*NSBundle) PathForResourceOfType

func (o *NSBundle) PathForResourceOfType(name *NSString, ext *NSString) *NSString

func (*NSBundle) PathForResourceOfTypeInDirectory

func (o *NSBundle) PathForResourceOfTypeInDirectory(name *NSString, ext *NSString, subpath *NSString) *NSString

func (*NSBundle) PathForResourceOfTypeInDirectoryForLocalization

func (o *NSBundle) PathForResourceOfTypeInDirectoryForLocalization(name *NSString, ext *NSString, subpath *NSString, localizationName *NSString) *NSString

func (*NSBundle) PathsForResourcesOfTypeInDirectory

func (o *NSBundle) PathsForResourcesOfTypeInDirectory(ext *NSString, subpath *NSString) *NSArray[*NSString]

func (*NSBundle) PathsForResourcesOfTypeInDirectoryForLocalization

func (o *NSBundle) PathsForResourcesOfTypeInDirectoryForLocalization(ext *NSString, subpath *NSString, localizationName *NSString) *NSArray[*NSString]

func (*NSBundle) PreferredLocalizations

func (o *NSBundle) PreferredLocalizations() *NSArray[*NSString]

func (*NSBundle) PreflightAndReturnError

func (o *NSBundle) PreflightAndReturnError() (bool, error)

func (*NSBundle) PrincipalClass

func (o *NSBundle) PrincipalClass() objc.Class

func (*NSBundle) PrivateFrameworksPath

func (o *NSBundle) PrivateFrameworksPath() *NSString

func (*NSBundle) PrivateFrameworksURL

func (o *NSBundle) PrivateFrameworksURL() *NSURL

func (*NSBundle) ResourcePath

func (o *NSBundle) ResourcePath() *NSString

func (*NSBundle) ResourceURL

func (o *NSBundle) ResourceURL() *NSURL

func (*NSBundle) SharedFrameworksPath

func (o *NSBundle) SharedFrameworksPath() *NSString

func (*NSBundle) SharedFrameworksURL

func (o *NSBundle) SharedFrameworksURL() *NSURL

func (*NSBundle) SharedSupportPath

func (o *NSBundle) SharedSupportPath() *NSString

func (*NSBundle) SharedSupportURL

func (o *NSBundle) SharedSupportURL() *NSURL

func (*NSBundle) URLForAuxiliaryExecutable

func (o *NSBundle) URLForAuxiliaryExecutable(executableName *NSString) *NSURL

func (*NSBundle) URLForResourceWithExtension

func (o *NSBundle) URLForResourceWithExtension(name *NSString, ext *NSString) *NSURL

func (*NSBundle) URLForResourceWithExtensionSubdirectory

func (o *NSBundle) URLForResourceWithExtensionSubdirectory(name *NSString, ext *NSString, subpath *NSString) *NSURL

func (*NSBundle) URLForResourceWithExtensionSubdirectoryLocalization

func (o *NSBundle) URLForResourceWithExtensionSubdirectoryLocalization(name *NSString, ext *NSString, subpath *NSString, localizationName *NSString) *NSURL

func (*NSBundle) URLsForResourcesWithExtensionSubdirectory

func (o *NSBundle) URLsForResourcesWithExtensionSubdirectory(ext *NSString, subpath *NSString) *NSArray[*NSURL]

func (*NSBundle) URLsForResourcesWithExtensionSubdirectoryLocalization

func (o *NSBundle) URLsForResourcesWithExtensionSubdirectoryLocalization(ext *NSString, subpath *NSString, localizationName *NSString) *NSArray[*NSURL]

func (*NSBundle) Unload

func (o *NSBundle) Unload() bool

type NSByteCountFormatter

type NSByteCountFormatter struct {
	NSFormatter
}

A formatter that converts a byte count value into a localized description that is formatted with the appropriate byte modifier (KB, MB, GB and so on).

Apple documentation: https://developer.apple.com/documentation/foundation/nsbytecountformatter

func NSByteCountFormatterFromID

func NSByteCountFormatterFromID(id objc.ID) *NSByteCountFormatter

func (*NSByteCountFormatter) AllowedUnits

func (*NSByteCountFormatter) AllowsNonnumericFormatting

func (o *NSByteCountFormatter) AllowsNonnumericFormatting() bool

func (*NSByteCountFormatter) CountStyle

func (*NSByteCountFormatter) FormattingContext

func (o *NSByteCountFormatter) FormattingContext() NSFormattingContext

func (*NSByteCountFormatter) IncludesActualByteCount

func (o *NSByteCountFormatter) IncludesActualByteCount() bool

func (*NSByteCountFormatter) IncludesCount

func (o *NSByteCountFormatter) IncludesCount() bool

func (*NSByteCountFormatter) IncludesUnit

func (o *NSByteCountFormatter) IncludesUnit() bool

func (*NSByteCountFormatter) IsAdaptive

func (o *NSByteCountFormatter) IsAdaptive() bool

func (*NSByteCountFormatter) SetAdaptive

func (o *NSByteCountFormatter) SetAdaptive(adaptive bool)

func (*NSByteCountFormatter) SetAllowedUnits

func (o *NSByteCountFormatter) SetAllowedUnits(allowedUnits NSByteCountFormatterUnits)

func (*NSByteCountFormatter) SetAllowsNonnumericFormatting

func (o *NSByteCountFormatter) SetAllowsNonnumericFormatting(allowsNonnumericFormatting bool)

func (*NSByteCountFormatter) SetCountStyle

func (o *NSByteCountFormatter) SetCountStyle(countStyle NSByteCountFormatterCountStyle)

func (*NSByteCountFormatter) SetFormattingContext

func (o *NSByteCountFormatter) SetFormattingContext(formattingContext NSFormattingContext)

func (*NSByteCountFormatter) SetIncludesActualByteCount

func (o *NSByteCountFormatter) SetIncludesActualByteCount(includesActualByteCount bool)

func (*NSByteCountFormatter) SetIncludesCount

func (o *NSByteCountFormatter) SetIncludesCount(includesCount bool)

func (*NSByteCountFormatter) SetIncludesUnit

func (o *NSByteCountFormatter) SetIncludesUnit(includesUnit bool)

func (*NSByteCountFormatter) SetZeroPadsFractionDigits

func (o *NSByteCountFormatter) SetZeroPadsFractionDigits(zeroPadsFractionDigits bool)

func (*NSByteCountFormatter) StringFromByteCount

func (o *NSByteCountFormatter) StringFromByteCount(byteCount int64) *NSString

func (*NSByteCountFormatter) StringFromMeasurement

func (o *NSByteCountFormatter) StringFromMeasurement(measurement *NSMeasurement[*NSUnitInformationStorage]) *NSString

func (*NSByteCountFormatter) ZeroPadsFractionDigits

func (o *NSByteCountFormatter) ZeroPadsFractionDigits() bool

type NSByteCountFormatterCountStyle

type NSByteCountFormatterCountStyle int64

Specifies display of file or storage byte counts. The display style is platform specific.

const (
	NSByteCountFormatterCountStyleFile    NSByteCountFormatterCountStyle = 0
	NSByteCountFormatterCountStyleMemory  NSByteCountFormatterCountStyle = 1
	NSByteCountFormatterCountStyleDecimal NSByteCountFormatterCountStyle = 2
	NSByteCountFormatterCountStyleBinary  NSByteCountFormatterCountStyle = 3
)

func (NSByteCountFormatterCountStyle) String

type NSByteCountFormatterUnits

type NSByteCountFormatterUnits uint64

Specifies the units appropriate for the formatter to display. Specifying any units explicitly causes just those units to be used in showing the number.

const (
	// This causes default units appropriate for the platform to be used. This is the default.
	NSByteCountFormatterUseDefault    NSByteCountFormatterUnits = 0
	NSByteCountFormatterUseBytes      NSByteCountFormatterUnits = 1
	NSByteCountFormatterUseKB         NSByteCountFormatterUnits = 2
	NSByteCountFormatterUseMB         NSByteCountFormatterUnits = 4
	NSByteCountFormatterUseGB         NSByteCountFormatterUnits = 8
	NSByteCountFormatterUseTB         NSByteCountFormatterUnits = 16
	NSByteCountFormatterUsePB         NSByteCountFormatterUnits = 32
	NSByteCountFormatterUseEB         NSByteCountFormatterUnits = 64
	NSByteCountFormatterUseZB         NSByteCountFormatterUnits = 128
	NSByteCountFormatterUseYBOrHigher NSByteCountFormatterUnits = 65280
	NSByteCountFormatterUseAll        NSByteCountFormatterUnits = 65535
)

func (NSByteCountFormatterUnits) String

func (e NSByteCountFormatterUnits) String() string

type NSCache

type NSCache[KeyType purego.AnyObject, ObjectType purego.AnyObject] struct {
	NSObject
}

A mutable collection you use to temporarily store transient key-value pairs that are subject to eviction when resources are low.

Apple documentation: https://developer.apple.com/documentation/foundation/nscache

func NSCacheFromID

func NSCacheFromID[KeyType purego.AnyObject, ObjectType purego.AnyObject](id objc.ID) *NSCache[KeyType, ObjectType]

func (*NSCache[KeyType, ObjectType]) CountLimit

func (o *NSCache[KeyType, ObjectType]) CountLimit() uint

func (*NSCache[KeyType, ObjectType]) Delegate

func (o *NSCache[KeyType, ObjectType]) Delegate() NSCacheDelegate

func (*NSCache[KeyType, ObjectType]) EvictsObjectsWithDiscardedContent

func (o *NSCache[KeyType, ObjectType]) EvictsObjectsWithDiscardedContent() bool

func (*NSCache[KeyType, ObjectType]) Name

func (o *NSCache[KeyType, ObjectType]) Name() *NSString

func (*NSCache[KeyType, ObjectType]) ObjectForKey

func (o *NSCache[KeyType, ObjectType]) ObjectForKey(key KeyType) ObjectType

Returns the value associated with a given key.

func (*NSCache[KeyType, ObjectType]) RemoveAllObjects

func (o *NSCache[KeyType, ObjectType]) RemoveAllObjects()

Empties the cache.

func (*NSCache[KeyType, ObjectType]) RemoveObjectForKey

func (o *NSCache[KeyType, ObjectType]) RemoveObjectForKey(key KeyType)

Removes the value of the specified key in the cache.

func (*NSCache[KeyType, ObjectType]) SetCountLimit

func (o *NSCache[KeyType, ObjectType]) SetCountLimit(countLimit uint)

func (*NSCache[KeyType, ObjectType]) SetDelegate

func (o *NSCache[KeyType, ObjectType]) SetDelegate(delegate NSCacheDelegate)

func (*NSCache[KeyType, ObjectType]) SetEvictsObjectsWithDiscardedContent

func (o *NSCache[KeyType, ObjectType]) SetEvictsObjectsWithDiscardedContent(evictsObjectsWithDiscardedContent bool)

func (*NSCache[KeyType, ObjectType]) SetName

func (o *NSCache[KeyType, ObjectType]) SetName(name *NSString)

func (*NSCache[KeyType, ObjectType]) SetObjectForKey

func (o *NSCache[KeyType, ObjectType]) SetObjectForKey(obj ObjectType, key KeyType)

Sets the value of the specified key in the cache.

func (*NSCache[KeyType, ObjectType]) SetObjectForKeyCost

func (o *NSCache[KeyType, ObjectType]) SetObjectForKeyCost(obj ObjectType, key KeyType, g uint)

Sets the value of the specified key in the cache, and associates the key-value pair with the specified cost.

func (*NSCache[KeyType, ObjectType]) SetTotalCostLimit

func (o *NSCache[KeyType, ObjectType]) SetTotalCostLimit(totalCostLimit uint)

func (*NSCache[KeyType, ObjectType]) TotalCostLimit

func (o *NSCache[KeyType, ObjectType]) TotalCostLimit() uint

type NSCacheDelegate

type NSCacheDelegate interface {
}

NSCacheDelegate wraps the ObjC protocol NSCacheDelegate.

type NSCachedURLResponse

type NSCachedURLResponse struct {
	NSObject
}

A cached response to a URL request.

Apple documentation: https://developer.apple.com/documentation/foundation/nscachedurlresponse

func NSCachedURLResponseFromID

func NSCachedURLResponseFromID(id objc.ID) *NSCachedURLResponse

func (*NSCachedURLResponse) Data

func (o *NSCachedURLResponse) Data() *NSData

@abstract Returns the data of the receiver. @result The data of the receiver.

func (*NSCachedURLResponse) InitWithResponseData

func (o *NSCachedURLResponse) InitWithResponseData(response *NSURLResponse, data *NSData) *NSCachedURLResponse

@method initWithResponse:data @abstract Initializes an NSCachedURLResponse with the given response and data. @discussion A default NSURLCacheStoragePolicy is used for NSCachedURLResponse objects initialized with this method: NSURLCacheStorageAllowed. @param response a NSURLResponse object. @param data an NSData object representing the URL content corresponding to the given response. @result an initialized NSCachedURLResponse.

func (*NSCachedURLResponse) InitWithResponseDataUserInfoStoragePolicy

func (o *NSCachedURLResponse) InitWithResponseDataUserInfoStoragePolicy(response *NSURLResponse, data *NSData, userInfo *NSDictionary[objc.ID, objc.ID], storagePolicy NSURLCacheStoragePolicy) *NSCachedURLResponse

@method initWithResponse:data:userInfo:storagePolicy: @abstract Initializes an NSCachedURLResponse with the given response, data, user-info dictionary, and storage policy. @param response a NSURLResponse object. @param data an NSData object representing the URL content corresponding to the given response. @param userInfo a dictionary user-specified information to be stored with the NSCachedURLResponse. @param storagePolicy an NSURLCacheStoragePolicy constant. @result an initialized NSCachedURLResponse.

func (*NSCachedURLResponse) Response

func (o *NSCachedURLResponse) Response() *NSURLResponse

@abstract Returns the response wrapped by this instance. @result The response wrapped by this instance.

func (*NSCachedURLResponse) StoragePolicy

func (o *NSCachedURLResponse) StoragePolicy() NSURLCacheStoragePolicy

@abstract Returns the NSURLCacheStoragePolicy constant of the receiver. @result The NSURLCacheStoragePolicy constant of the receiver.

func (*NSCachedURLResponse) UserInfo

func (o *NSCachedURLResponse) UserInfo() *NSDictionary[objc.ID, objc.ID]

@abstract Returns the userInfo dictionary of the receiver. @result The userInfo dictionary of the receiver.

type NSCalculationError

type NSCalculationError uint64
const (
	NSCalculationNoError         NSCalculationError = 0
	NSCalculationLossOfPrecision NSCalculationError = 1
	NSCalculationUnderflow       NSCalculationError = 2
	NSCalculationOverflow        NSCalculationError = 3
	NSCalculationDivideByZero    NSCalculationError = 4
)

func NSDecimalAdd

func NSDecimalAdd(result *NSDecimal, leftOperand *NSDecimal, rightOperand *NSDecimal, roundingMode NSRoundingMode) NSCalculationError

func NSDecimalDivide

func NSDecimalDivide(result *NSDecimal, leftOperand *NSDecimal, rightOperand *NSDecimal, roundingMode NSRoundingMode) NSCalculationError

func NSDecimalMultiply

func NSDecimalMultiply(result *NSDecimal, leftOperand *NSDecimal, rightOperand *NSDecimal, roundingMode NSRoundingMode) NSCalculationError

func NSDecimalMultiplyByPowerOf10

func NSDecimalMultiplyByPowerOf10(result *NSDecimal, number *NSDecimal, power int16, roundingMode NSRoundingMode) NSCalculationError

func NSDecimalNormalize

func NSDecimalNormalize(number1 *NSDecimal, number2 *NSDecimal, roundingMode NSRoundingMode) NSCalculationError

func NSDecimalPower

func NSDecimalPower(result *NSDecimal, number *NSDecimal, power uint, roundingMode NSRoundingMode) NSCalculationError

func NSDecimalSubtract

func NSDecimalSubtract(result *NSDecimal, leftOperand *NSDecimal, rightOperand *NSDecimal, roundingMode NSRoundingMode) NSCalculationError

func (NSCalculationError) String

func (e NSCalculationError) String() string

type NSCalendar

type NSCalendar struct {
	NSObject
}

A definition of the relationships between calendar units and absolute points in time, providing features for calculation and comparison of dates.

Apple documentation: https://developer.apple.com/documentation/foundation/nscalendar Deprecated: since macOS 10.10.

func NSCalendarAutoupdatingCurrentCalendar

func NSCalendarAutoupdatingCurrentCalendar() *NSCalendar

func NSCalendarCalendarWithIdentifier

func NSCalendarCalendarWithIdentifier(calendarIdentifierConstant *NSString) *NSCalendar

Creates a new calendar specified by a given identifier.

func NSCalendarCurrentCalendar

func NSCalendarCurrentCalendar() *NSCalendar

func NSCalendarFromID

func NSCalendarFromID(id objc.ID) *NSCalendar

func (*NSCalendar) AMSymbol

func (o *NSCalendar) AMSymbol() *NSString

func (*NSCalendar) CalendarIdentifier

func (o *NSCalendar) CalendarIdentifier() *NSString

func (*NSCalendar) CompareDateToDateToUnitGranularity

func (o *NSCalendar) CompareDateToDateToUnitGranularity(date1 *NSDate, date2 *NSDate, unit NSCalendarUnit) NSComparisonResult

Indicates the ordering of two given dates based on their components down to a given unit granularity.

func (*NSCalendar) ComponentFromDate

func (o *NSCalendar) ComponentFromDate(unit NSCalendarUnit, date *NSDate) int

Returns the specified date component from a given date.

func (*NSCalendar) ComponentsFromDate

func (o *NSCalendar) ComponentsFromDate(unitFlags NSCalendarUnit, date *NSDate) *NSDateComponents

Returns the date components representing a given date.

func (*NSCalendar) ComponentsFromDateComponentsToDateComponentsOptions

func (o *NSCalendar) ComponentsFromDateComponentsToDateComponentsOptions(unitFlags NSCalendarUnit, startingDateComp *NSDateComponents, resultDateComp *NSDateComponents, options NSCalendarOptions) *NSDateComponents

Returns the difference between start and end dates given as date components.

func (*NSCalendar) ComponentsFromDateToDateOptions

func (o *NSCalendar) ComponentsFromDateToDateOptions(unitFlags NSCalendarUnit, startingDate *NSDate, resultDate *NSDate, opts NSCalendarOptions) *NSDateComponents

Returns the difference between two supplied dates as date components.

func (*NSCalendar) ComponentsInTimeZoneFromDate

func (o *NSCalendar) ComponentsInTimeZoneFromDate(timezone *NSTimeZone, date *NSDate) *NSDateComponents

Returns all the date components of a date, as if in a given time zone (instead of the receiving calendar’s time zone).

func (*NSCalendar) DateByAddingComponentsToDateOptions

func (o *NSCalendar) DateByAddingComponentsToDateOptions(comps *NSDateComponents, date *NSDate, opts NSCalendarOptions) *NSDate

Returns a date representing the absolute time calculated by adding given components to a given date.

func (*NSCalendar) DateByAddingUnitValueToDateOptions

func (o *NSCalendar) DateByAddingUnitValueToDateOptions(unit NSCalendarUnit, value int, date *NSDate, options NSCalendarOptions) *NSDate

Returns a date representing the absolute time calculated by adding the value of a given component to a given date.

func (*NSCalendar) DateBySettingHourMinuteSecondOfDateOptions

func (o *NSCalendar) DateBySettingHourMinuteSecondOfDateOptions(h int, m int, s int, date *NSDate, opts NSCalendarOptions) *NSDate

Creates a new date calculated with the given time.

func (*NSCalendar) DateBySettingUnitValueOfDateOptions

func (o *NSCalendar) DateBySettingUnitValueOfDateOptions(unit NSCalendarUnit, v int, date *NSDate, opts NSCalendarOptions) *NSDate

Returns a new date representing the date calculated by setting a specific component of a given date to a given value, while trying to keep lower components the same.

func (*NSCalendar) DateFromComponents

func (o *NSCalendar) DateFromComponents(comps *NSDateComponents) *NSDate

Returns a date representing the absolute time calculated from given components.

func (*NSCalendar) DateMatchesComponents

func (o *NSCalendar) DateMatchesComponents(date *NSDate, components *NSDateComponents) bool

Returns whether a given date matches all of the given date components.

func (*NSCalendar) DateWithEraYearForWeekOfYearWeekOfYearWeekdayHourMinuteSecondNanosecond

func (o *NSCalendar) DateWithEraYearForWeekOfYearWeekOfYearWeekdayHourMinuteSecondNanosecond(eraValue int, yearValue int, weekValue int, weekdayValue int, hourValue int, minuteValue int, secondValue int, nanosecondValue int) *NSDate

Returns a new date created with the given components base on a week-of-year value.

func (*NSCalendar) DateWithEraYearMonthDayHourMinuteSecondNanosecond

func (o *NSCalendar) DateWithEraYearMonthDayHourMinuteSecondNanosecond(eraValue int, yearValue int, monthValue int, dayValue int, hourValue int, minuteValue int, secondValue int, nanosecondValue int) *NSDate

Returns a date created with the given components.

func (*NSCalendar) EnumerateDatesStartingAfterDateMatchingComponentsOptionsUsing

func (o *NSCalendar) EnumerateDatesStartingAfterDateMatchingComponentsOptionsUsing(start *NSDate, comps *NSDateComponents, opts NSCalendarOptions, block func(*NSDate, bool, *bool))

Computes the dates that match (or most closely match) a given set of components, and calls the block once for each of them, until the enumeration is stopped.

func (*NSCalendar) EraSymbols

func (o *NSCalendar) EraSymbols() *NSArray[*NSString]

func (*NSCalendar) FirstWeekday

func (o *NSCalendar) FirstWeekday() uint

func (*NSCalendar) GetEraYearForWeekOfYearWeekOfYearWeekdayFromDate

func (o *NSCalendar) GetEraYearForWeekOfYearWeekOfYearWeekdayFromDate(eraValuePointer *int64, yearValuePointer *int64, weekValuePointer *int64, weekdayValuePointer *int64, date *NSDate)

Returns by reference the era, year, week of year, and weekday component values for a given date.

func (*NSCalendar) GetEraYearMonthDayFromDate

func (o *NSCalendar) GetEraYearMonthDayFromDate(eraValuePointer *int64, yearValuePointer *int64, monthValuePointer *int64, dayValuePointer *int64, date *NSDate)

Returns by reference the era, year, week of year, and weekday component values for a given date.

func (*NSCalendar) GetHourMinuteSecondNanosecondFromDate

func (o *NSCalendar) GetHourMinuteSecondNanosecondFromDate(hourValuePointer *int64, minuteValuePointer *int64, secondValuePointer *int64, nanosecondValuePointer *int64, date *NSDate)

Returns by reference the hour, minute, second, and nanosecond component values for a given date.

func (*NSCalendar) InitWithCalendarIdentifier

func (o *NSCalendar) InitWithCalendarIdentifier(ident *NSString) objc.ID

Initializes a calendar according to a given identifier.

func (*NSCalendar) IsDateEqualToDateToUnitGranularity

func (o *NSCalendar) IsDateEqualToDateToUnitGranularity(date1 *NSDate, date2 *NSDate, unit NSCalendarUnit) bool

Indicates whether two dates are equal to a given unit of granularity.

func (*NSCalendar) IsDateInSameDayAsDate

func (o *NSCalendar) IsDateInSameDayAsDate(date1 *NSDate, date2 *NSDate) bool

Indicates whether two dates are in the same day.

func (*NSCalendar) IsDateInToday

func (o *NSCalendar) IsDateInToday(date *NSDate) bool

Indicates whether the given date is in “today.”

func (*NSCalendar) IsDateInTomorrow

func (o *NSCalendar) IsDateInTomorrow(date *NSDate) bool

Indicates whether the given date is in “tomorrow.”

func (*NSCalendar) IsDateInWeekend

func (o *NSCalendar) IsDateInWeekend(date *NSDate) bool

Indicates whether a given date falls within a weekend period, as defined by the calendar and the calendar’s locale.

func (*NSCalendar) IsDateInYesterday

func (o *NSCalendar) IsDateInYesterday(date *NSDate) bool

Indicates whether the given date is in “yesterday.”

func (*NSCalendar) Locale

func (o *NSCalendar) Locale() *NSLocale

func (*NSCalendar) LongEraSymbols

func (o *NSCalendar) LongEraSymbols() *NSArray[*NSString]

func (*NSCalendar) MaximumRangeOfUnit

func (o *NSCalendar) MaximumRangeOfUnit(unit NSCalendarUnit) NSRange

Returns the maximum range limits of the values that a given unit can take on.

func (*NSCalendar) MinimumDaysInFirstWeek

func (o *NSCalendar) MinimumDaysInFirstWeek() uint

func (*NSCalendar) MinimumRangeOfUnit

func (o *NSCalendar) MinimumRangeOfUnit(unit NSCalendarUnit) NSRange

Returns the minimum range limits of the values that a given unit can take on.

func (*NSCalendar) MonthSymbols

func (o *NSCalendar) MonthSymbols() *NSArray[*NSString]

func (*NSCalendar) NextDateAfterDateMatchingComponentsOptions

func (o *NSCalendar) NextDateAfterDateMatchingComponentsOptions(date *NSDate, comps *NSDateComponents, options NSCalendarOptions) *NSDate

Returns the next date after a given date matching the given components.

func (*NSCalendar) NextDateAfterDateMatchingHourMinuteSecondOptions

func (o *NSCalendar) NextDateAfterDateMatchingHourMinuteSecondOptions(date *NSDate, hourValue int, minuteValue int, secondValue int, options NSCalendarOptions) *NSDate

Returns the next date after a given date that matches the given hour, minute, and second, component values.

func (*NSCalendar) NextDateAfterDateMatchingUnitValueOptions

func (o *NSCalendar) NextDateAfterDateMatchingUnitValueOptions(date *NSDate, unit NSCalendarUnit, value int, options NSCalendarOptions) *NSDate

Returns the next date after a given date matching the given calendar unit value.

func (*NSCalendar) NextWeekendStartDateIntervalOptionsAfterDate

func (o *NSCalendar) NextWeekendStartDateIntervalOptionsAfterDate(datep *NSDate, tip *float64, options NSCalendarOptions, date *NSDate) bool

Returns by reference the starting date and time interval range of the next weekend period after a given date.

func (*NSCalendar) OrdinalityOfUnitInUnitForDate

func (o *NSCalendar) OrdinalityOfUnitInUnitForDate(smaller NSCalendarUnit, larger NSCalendarUnit, date *NSDate) uint

Returns, for a given absolute time, the ordinal number of a smaller calendar unit (such as a day) within a specified larger calendar unit (such as a week).

func (*NSCalendar) PMSymbol

func (o *NSCalendar) PMSymbol() *NSString

func (*NSCalendar) QuarterSymbols

func (o *NSCalendar) QuarterSymbols() *NSArray[*NSString]

func (*NSCalendar) RangeOfUnitInUnitForDate

func (o *NSCalendar) RangeOfUnitInUnitForDate(smaller NSCalendarUnit, larger NSCalendarUnit, date *NSDate) NSRange

Returns the range of absolute time values that a smaller calendar unit (such as a day) can take on in a larger calendar unit (such as a month) that includes a specified absolute time.

func (*NSCalendar) RangeOfUnitStartDateIntervalForDate

func (o *NSCalendar) RangeOfUnitStartDateIntervalForDate(unit NSCalendarUnit, datep *NSDate, tip *float64, date *NSDate) bool

Returns by reference the starting time and duration of a given calendar unit that contains a given date.

func (*NSCalendar) RangeOfWeekendStartDateIntervalContainingDate

func (o *NSCalendar) RangeOfWeekendStartDateIntervalContainingDate(datep *NSDate, tip *float64, date *NSDate) bool

Returns whether a given date falls within a weekend period, and if so, returns by reference the start date and time interval of the weekend range.

func (*NSCalendar) SetFirstWeekday

func (o *NSCalendar) SetFirstWeekday(firstWeekday uint)

func (*NSCalendar) SetLocale

func (o *NSCalendar) SetLocale(locale *NSLocale)

func (*NSCalendar) SetMinimumDaysInFirstWeek

func (o *NSCalendar) SetMinimumDaysInFirstWeek(minimumDaysInFirstWeek uint)

func (*NSCalendar) SetTimeZone

func (o *NSCalendar) SetTimeZone(timeZone *NSTimeZone)

func (*NSCalendar) ShortMonthSymbols

func (o *NSCalendar) ShortMonthSymbols() *NSArray[*NSString]

func (*NSCalendar) ShortQuarterSymbols

func (o *NSCalendar) ShortQuarterSymbols() *NSArray[*NSString]

func (*NSCalendar) ShortStandaloneMonthSymbols

func (o *NSCalendar) ShortStandaloneMonthSymbols() *NSArray[*NSString]

func (*NSCalendar) ShortStandaloneQuarterSymbols

func (o *NSCalendar) ShortStandaloneQuarterSymbols() *NSArray[*NSString]

func (*NSCalendar) ShortStandaloneWeekdaySymbols

func (o *NSCalendar) ShortStandaloneWeekdaySymbols() *NSArray[*NSString]

func (*NSCalendar) ShortWeekdaySymbols

func (o *NSCalendar) ShortWeekdaySymbols() *NSArray[*NSString]

func (*NSCalendar) StandaloneMonthSymbols

func (o *NSCalendar) StandaloneMonthSymbols() *NSArray[*NSString]

func (*NSCalendar) StandaloneQuarterSymbols

func (o *NSCalendar) StandaloneQuarterSymbols() *NSArray[*NSString]

func (*NSCalendar) StandaloneWeekdaySymbols

func (o *NSCalendar) StandaloneWeekdaySymbols() *NSArray[*NSString]

func (*NSCalendar) StartOfDayForDate

func (o *NSCalendar) StartOfDayForDate(date *NSDate) *NSDate

Returns the first moment of a given date as a date instance.

func (*NSCalendar) TimeZone

func (o *NSCalendar) TimeZone() *NSTimeZone

func (*NSCalendar) VeryShortMonthSymbols

func (o *NSCalendar) VeryShortMonthSymbols() *NSArray[*NSString]

func (*NSCalendar) VeryShortStandaloneMonthSymbols

func (o *NSCalendar) VeryShortStandaloneMonthSymbols() *NSArray[*NSString]

func (*NSCalendar) VeryShortStandaloneWeekdaySymbols

func (o *NSCalendar) VeryShortStandaloneWeekdaySymbols() *NSArray[*NSString]

func (*NSCalendar) VeryShortWeekdaySymbols

func (o *NSCalendar) VeryShortWeekdaySymbols() *NSArray[*NSString]

func (*NSCalendar) WeekdaySymbols

func (o *NSCalendar) WeekdaySymbols() *NSArray[*NSString]

type NSCalendarDate

type NSCalendarDate struct {
	NSDate
}

A specialized date object with embedded calendar information.

Apple documentation: https://developer.apple.com/documentation/foundation/nscalendardate Deprecated: Use NSCalendar and NSDateComponents and NSDateFormatter instead

func NSCalendarDateDistantFuture deprecated

func NSCalendarDateDistantFuture() *NSCalendarDate

Deprecated: since macOS 10.10.

func NSCalendarDateDistantPast deprecated

func NSCalendarDateDistantPast() *NSCalendarDate

Deprecated: since macOS 10.10.

func NSCalendarDateFromID

func NSCalendarDateFromID(id objc.ID) *NSCalendarDate

func (*NSCalendarDate) CalendarFormat deprecated

func (o *NSCalendarDate) CalendarFormat() *NSString

Deprecated: since macOS 10.10.

func (*NSCalendarDate) DateByAddingYearsMonthsDaysHoursMinutesSeconds deprecated

func (o *NSCalendarDate) DateByAddingYearsMonthsDaysHoursMinutesSeconds(year int, month int, day int, hour int, minute int, second int) *NSCalendarDate

Deprecated: Use NSCalendar instead

func (*NSCalendarDate) DayOfCommonEra deprecated

func (o *NSCalendarDate) DayOfCommonEra() int

Deprecated: since macOS 10.10.

func (*NSCalendarDate) DayOfMonth deprecated

func (o *NSCalendarDate) DayOfMonth() int

Deprecated: since macOS 10.10.

func (*NSCalendarDate) DayOfWeek deprecated

func (o *NSCalendarDate) DayOfWeek() int

Deprecated: since macOS 10.10.

func (*NSCalendarDate) DayOfYear deprecated

func (o *NSCalendarDate) DayOfYear() int

Deprecated: since macOS 10.10.

func (*NSCalendarDate) DescriptionWithCalendarFormat deprecated

func (o *NSCalendarDate) DescriptionWithCalendarFormat(format *NSString) *NSString

Deprecated: since macOS 10.10.

func (*NSCalendarDate) DescriptionWithCalendarFormatLocale deprecated

func (o *NSCalendarDate) DescriptionWithCalendarFormatLocale(format *NSString, locale objc.ID) *NSString

Deprecated: since macOS 10.10.

func (*NSCalendarDate) HourOfDay deprecated

func (o *NSCalendarDate) HourOfDay() int

Deprecated: since macOS 10.10.

func (*NSCalendarDate) InitWithString deprecated

func (o *NSCalendarDate) InitWithString(description *NSString) objc.ID

Deprecated: Use NSDateFormatter instead

func (*NSCalendarDate) InitWithStringCalendarFormat deprecated

func (o *NSCalendarDate) InitWithStringCalendarFormat(description *NSString, format *NSString) objc.ID

Deprecated: Use NSDateFormatter instead

func (*NSCalendarDate) InitWithStringCalendarFormatLocale deprecated

func (o *NSCalendarDate) InitWithStringCalendarFormatLocale(description *NSString, format *NSString, locale objc.ID) objc.ID

Deprecated: Use NSDateFormatter instead

func (*NSCalendarDate) InitWithYearMonthDayHourMinuteSecondTimeZone deprecated

func (o *NSCalendarDate) InitWithYearMonthDayHourMinuteSecondTimeZone(year int, month uint, day uint, hour uint, minute uint, second uint, aTimeZone *NSTimeZone) objc.ID

Deprecated: Use NSCalendar and NSDateComponents instead

func (*NSCalendarDate) MinuteOfHour deprecated

func (o *NSCalendarDate) MinuteOfHour() int

Deprecated: since macOS 10.10.

func (*NSCalendarDate) MonthOfYear deprecated

func (o *NSCalendarDate) MonthOfYear() int

Deprecated: since macOS 10.10.

func (*NSCalendarDate) SecondOfMinute deprecated

func (o *NSCalendarDate) SecondOfMinute() int

Deprecated: since macOS 10.10.

func (*NSCalendarDate) SetCalendarFormat deprecated

func (o *NSCalendarDate) SetCalendarFormat(format *NSString)

Deprecated: since macOS 10.10.

func (*NSCalendarDate) SetTimeZone deprecated

func (o *NSCalendarDate) SetTimeZone(aTimeZone *NSTimeZone)

Deprecated: since macOS 10.10.

func (*NSCalendarDate) TimeZone deprecated

func (o *NSCalendarDate) TimeZone() *NSTimeZone

Deprecated: since macOS 10.10.

func (*NSCalendarDate) YearOfCommonEra deprecated

func (o *NSCalendarDate) YearOfCommonEra() int

Deprecated: since macOS 10.10.

func (*NSCalendarDate) YearsMonthsDaysHoursMinutesSecondsSinceDate deprecated

func (o *NSCalendarDate) YearsMonthsDaysHoursMinutesSecondsSinceDate(yp *int64, mop *int64, dp *int64, hp *int64, mip *int64, sp *int64, date *NSCalendarDate)

Deprecated: since macOS 10.10.

type NSCalendarOptions

type NSCalendarOptions uint64

The options for arithmetic operations involving calendars.

const (
	NSCalendarWrapComponents                          NSCalendarOptions = 1
	NSCalendarMatchStrictly                           NSCalendarOptions = 2
	NSCalendarSearchBackwards                         NSCalendarOptions = 4
	NSCalendarMatchPreviousTimePreservingSmallerUnits NSCalendarOptions = 256
	NSCalendarMatchNextTimePreservingSmallerUnits     NSCalendarOptions = 512
	NSCalendarMatchNextTime                           NSCalendarOptions = 1024
	NSCalendarMatchFirst                              NSCalendarOptions = 4096
	NSCalendarMatchLast                               NSCalendarOptions = 8192
)

func (NSCalendarOptions) String

func (e NSCalendarOptions) String() string

type NSCalendarUnit

type NSCalendarUnit uint64

Calendrical units such as year, month, day and hour.

const (
	NSCalendarUnitEra               NSCalendarUnit = 2
	NSCalendarUnitYear              NSCalendarUnit = 4
	NSCalendarUnitMonth             NSCalendarUnit = 8
	NSCalendarUnitDay               NSCalendarUnit = 16
	NSCalendarUnitHour              NSCalendarUnit = 32
	NSCalendarUnitMinute            NSCalendarUnit = 64
	NSCalendarUnitSecond            NSCalendarUnit = 128
	NSCalendarUnitWeekday           NSCalendarUnit = 512
	NSCalendarUnitWeekdayOrdinal    NSCalendarUnit = 1024
	NSCalendarUnitQuarter           NSCalendarUnit = 2048
	NSCalendarUnitWeekOfMonth       NSCalendarUnit = 4096
	NSCalendarUnitWeekOfYear        NSCalendarUnit = 8192
	NSCalendarUnitYearForWeekOfYear NSCalendarUnit = 16384
	NSCalendarUnitNanosecond        NSCalendarUnit = 32768
	NSCalendarUnitDayOfYear         NSCalendarUnit = 65536
	NSCalendarUnitCalendar          NSCalendarUnit = 1048576
	NSCalendarUnitTimeZone          NSCalendarUnit = 2097152
	NSCalendarUnitIsLeapMonth       NSCalendarUnit = 1073741824
	NSCalendarUnitIsRepeatedDay     NSCalendarUnit = 2147483648
	NSEraCalendarUnit               NSCalendarUnit = 2
	NSYearCalendarUnit              NSCalendarUnit = 4
	NSMonthCalendarUnit             NSCalendarUnit = 8
	NSDayCalendarUnit               NSCalendarUnit = 16
	NSHourCalendarUnit              NSCalendarUnit = 32
	NSMinuteCalendarUnit            NSCalendarUnit = 64
	NSSecondCalendarUnit            NSCalendarUnit = 128
	NSWeekCalendarUnit              NSCalendarUnit = 256
	NSWeekdayCalendarUnit           NSCalendarUnit = 512
	NSWeekdayOrdinalCalendarUnit    NSCalendarUnit = 1024
	NSQuarterCalendarUnit           NSCalendarUnit = 2048
	NSWeekOfMonthCalendarUnit       NSCalendarUnit = 4096
	NSWeekOfYearCalendarUnit        NSCalendarUnit = 8192
	NSYearForWeekOfYearCalendarUnit NSCalendarUnit = 16384
	NSCalendarCalendarUnit          NSCalendarUnit = 1048576
	NSTimeZoneCalendarUnit          NSCalendarUnit = 2097152
)

func (NSCalendarUnit) String

func (e NSCalendarUnit) String() string

type NSCharacterSet

type NSCharacterSet struct {
	NSObject
}

An object representing a fixed set of Unicode character values for use in search operations.

Apple documentation: https://developer.apple.com/documentation/foundation/nscharacterset

func NSCharacterSetAlphanumericCharacterSet

func NSCharacterSetAlphanumericCharacterSet() *NSCharacterSet

func NSCharacterSetCapitalizedLetterCharacterSet

func NSCharacterSetCapitalizedLetterCharacterSet() *NSCharacterSet

func NSCharacterSetCharacterSetWithBitmapRepresentation

func NSCharacterSetCharacterSetWithBitmapRepresentation(data *NSData) *NSCharacterSet

Returns a character set containing characters determined by a given bitmap representation.

func NSCharacterSetCharacterSetWithCharactersInString

func NSCharacterSetCharacterSetWithCharactersInString(aString *NSString) *NSCharacterSet

Returns a character set containing the characters in a given string.

func NSCharacterSetCharacterSetWithContentsOfFile

func NSCharacterSetCharacterSetWithContentsOfFile(fName *NSString) *NSCharacterSet

Returns a character set read from the bitmap representation stored in the file a given path.

func NSCharacterSetCharacterSetWithRange

func NSCharacterSetCharacterSetWithRange(aRange NSRange) *NSCharacterSet

Returns a character set containing characters with Unicode values in a given range.

func NSCharacterSetControlCharacterSet

func NSCharacterSetControlCharacterSet() *NSCharacterSet

func NSCharacterSetDecimalDigitCharacterSet

func NSCharacterSetDecimalDigitCharacterSet() *NSCharacterSet

func NSCharacterSetDecomposableCharacterSet

func NSCharacterSetDecomposableCharacterSet() *NSCharacterSet

func NSCharacterSetFromID

func NSCharacterSetFromID(id objc.ID) *NSCharacterSet

func NSCharacterSetIllegalCharacterSet

func NSCharacterSetIllegalCharacterSet() *NSCharacterSet

func NSCharacterSetLetterCharacterSet

func NSCharacterSetLetterCharacterSet() *NSCharacterSet

func NSCharacterSetLowercaseLetterCharacterSet

func NSCharacterSetLowercaseLetterCharacterSet() *NSCharacterSet

func NSCharacterSetNewlineCharacterSet

func NSCharacterSetNewlineCharacterSet() *NSCharacterSet

func NSCharacterSetNonBaseCharacterSet

func NSCharacterSetNonBaseCharacterSet() *NSCharacterSet

func NSCharacterSetPunctuationCharacterSet

func NSCharacterSetPunctuationCharacterSet() *NSCharacterSet

func NSCharacterSetSymbolCharacterSet

func NSCharacterSetSymbolCharacterSet() *NSCharacterSet

func NSCharacterSetURLFragmentAllowedCharacterSet

func NSCharacterSetURLFragmentAllowedCharacterSet() *NSCharacterSet

func NSCharacterSetURLHostAllowedCharacterSet

func NSCharacterSetURLHostAllowedCharacterSet() *NSCharacterSet

func NSCharacterSetURLPasswordAllowedCharacterSet

func NSCharacterSetURLPasswordAllowedCharacterSet() *NSCharacterSet

func NSCharacterSetURLPathAllowedCharacterSet

func NSCharacterSetURLPathAllowedCharacterSet() *NSCharacterSet

func NSCharacterSetURLQueryAllowedCharacterSet

func NSCharacterSetURLQueryAllowedCharacterSet() *NSCharacterSet

func NSCharacterSetURLUserAllowedCharacterSet

func NSCharacterSetURLUserAllowedCharacterSet() *NSCharacterSet

func NSCharacterSetUppercaseLetterCharacterSet

func NSCharacterSetUppercaseLetterCharacterSet() *NSCharacterSet

func NSCharacterSetWhitespaceAndNewlineCharacterSet

func NSCharacterSetWhitespaceAndNewlineCharacterSet() *NSCharacterSet

func NSCharacterSetWhitespaceCharacterSet

func NSCharacterSetWhitespaceCharacterSet() *NSCharacterSet

func (*NSCharacterSet) BitmapRepresentation

func (o *NSCharacterSet) BitmapRepresentation() *NSData

func (*NSCharacterSet) CharacterIsMember

func (o *NSCharacterSet) CharacterIsMember(aCharacter uint16) bool

Returns a Boolean value that indicates whether a given character is in the receiver.

func (*NSCharacterSet) HasMemberInPlane

func (o *NSCharacterSet) HasMemberInPlane(thePlane uint8) bool

Returns a Boolean value that indicates whether the receiver has at least one member in a given character plane.

func (*NSCharacterSet) InitWithCoder

func (o *NSCharacterSet) InitWithCoder(coder *NSCoder) *NSCharacterSet

func (*NSCharacterSet) InvertedSet

func (o *NSCharacterSet) InvertedSet() *NSCharacterSet

func (*NSCharacterSet) IsSupersetOfSet

func (o *NSCharacterSet) IsSupersetOfSet(theOtherSet *NSCharacterSet) bool

Returns a Boolean value that indicates whether the receiver is a superset of another given character set.

func (*NSCharacterSet) LongCharacterIsMember

func (o *NSCharacterSet) LongCharacterIsMember(theLongChar uint) bool

Returns a Boolean value that indicates whether a given long character is a member of the receiver.

type NSClassDescription

type NSClassDescription struct {
	NSObject
}

An abstract class that provides the interface for querying the relationships and properties of a class.

Apple documentation: https://developer.apple.com/documentation/foundation/nsclassdescription

func NSClassDescriptionClassDescriptionForClass

func NSClassDescriptionClassDescriptionForClass(aClass objc.Class) *NSClassDescription

Returns the class description for a given class.

func NSClassDescriptionFromID

func NSClassDescriptionFromID(id objc.ID) *NSClassDescription

type NSCloneCommand

type NSCloneCommand struct {
	NSScriptCommand
}

A command that clones one or more scriptable objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nsclonecommand

func NSCloneCommandFromID

func NSCloneCommandFromID(id objc.ID) *NSCloneCommand

func (*NSCloneCommand) KeySpecifier

func (o *NSCloneCommand) KeySpecifier() *NSScriptObjectSpecifier

type NSCloseCommand

type NSCloseCommand struct {
	NSScriptCommand
}

A command that closes one or more scriptable objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nsclosecommand

func NSCloseCommandFromID

func NSCloseCommandFromID(id objc.ID) *NSCloseCommand

func (*NSCloseCommand) SaveOptions

func (o *NSCloseCommand) SaveOptions() NSSaveOptions

type NSCoder

type NSCoder struct {
	NSObject
}

An abstract class that serves as the basis for objects that enable archiving and distribution of other objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nscoder

func NSCoderFromID

func NSCoderFromID(id objc.ID) *NSCoder

func (*NSCoder) AllowedClasses

func (o *NSCoder) AllowedClasses() *NSSet[objc.Class]

func (*NSCoder) AllowsKeyedCoding

func (o *NSCoder) AllowsKeyedCoding() bool

func (*NSCoder) ContainsValueForKey

func (o *NSCoder) ContainsValueForKey(key *NSString) bool

Returns a Boolean value that indicates whether an encoded value is available for a string.

func (*NSCoder) DecodeArrayOfObjCTypeCountAt

func (o *NSCoder) DecodeArrayOfObjCTypeCountAt(itemType string, count uint, array unsafe.Pointer)

Decodes an array of count items, whose Objective-C type is given by itemType.

func (*NSCoder) DecodeArrayOfObjectsOfClassForKey

func (o *NSCoder) DecodeArrayOfObjectsOfClassForKey(cls objc.Class, key *NSString) *NSArray[objc.ID]

Decodes the \c NSArray object for the given \c key, which should be an \c NSArray, containing the given non-collection class (no nested arrays or arrays of dictionaries, etc) from the coder.

func (*NSCoder) DecodeArrayOfObjectsOfClassesForKey

func (o *NSCoder) DecodeArrayOfObjectsOfClassesForKey(classes *NSSet[objc.Class], key *NSString) *NSArray[objc.ID]

Decodes the \c NSArray object for the given \c key, which should be an \c NSArray, containing the given non-collection classes (no nested arrays or arrays of dictionaries, etc) from the coder.

func (*NSCoder) DecodeBoolForKey

func (o *NSCoder) DecodeBoolForKey(key *NSString) bool

Decodes and returns a boolean value that was previously encoded with encodeBool:forKey: and associated with the string key.

func (*NSCoder) DecodeBytesForKeyMinimumLength

func (o *NSCoder) DecodeBytesForKeyMinimumLength(key *NSString, length uint) unsafe.Pointer

Decode bytes from the decoder for a given key. The length of the bytes must be greater than or equal to the length parameter. If the result exists, but is of insufficient length, then the decoder uses failWithError to fail the entire decode operation. The result of that is configurable on a per-NSCoder basis using NSDecodingFailurePolicy.

func (*NSCoder) DecodeBytesForKeyReturnedLength

func (o *NSCoder) DecodeBytesForKeyReturnedLength(key *NSString, lengthp *uint) unsafe.Pointer

Decodes a buffer of data that was previously encoded with encodeBytes:length:forKey: and associated with the string key.

func (*NSCoder) DecodeBytesWithMinimumLength

func (o *NSCoder) DecodeBytesWithMinimumLength(length uint) unsafe.Pointer

Decode bytes from the decoder. The length of the bytes must be greater than or equal to the length parameter. If the result exists, but is of insufficient length, then the decoder uses failWithError to fail the entire decode operation. The result of that is configurable on a per-NSCoder basis using NSDecodingFailurePolicy.

func (*NSCoder) DecodeBytesWithReturnedLength

func (o *NSCoder) DecodeBytesWithReturnedLength(lengthp *uint) unsafe.Pointer

Decodes a buffer of data whose types are unspecified.

func (*NSCoder) DecodeDataObject

func (o *NSCoder) DecodeDataObject() *NSData

Decodes and returns an NSData object that was previously encoded with encodeDataObject:. Subclasses must override this method.

func (*NSCoder) DecodeDictionaryWithKeysOfClassObjectsOfClassForKey

func (o *NSCoder) DecodeDictionaryWithKeysOfClassObjectsOfClassForKey(keyCls objc.Class, objectCls objc.Class, key *NSString) *NSDictionary[objc.ID, objc.ID]

Decodes the \c NSDictionary object for the given \c key, which should be an \c NSDictionary<keyCls,objectCls> , with keys of type given in \c keyCls and objects of the given non-collection class \c objectCls (no nested dictionaries or other dictionaries contained in the dictionary, etc) from the coder.

func (*NSCoder) DecodeDictionaryWithKeysOfClassesObjectsOfClassesForKey

func (o *NSCoder) DecodeDictionaryWithKeysOfClassesObjectsOfClassesForKey(keyClasses *NSSet[objc.Class], objectClasses *NSSet[objc.Class], key *NSString) *NSDictionary[objc.ID, objc.ID]

Decodes the \c NSDictionary object for the given \c key, which should be an \c NSDictionary, with keys of the types given in \c keyClasses and objects of the given non-collection classes in \c objectClasses (no nested dictionaries or other dictionaries contained in the dictionary, etc) from the given coder.

func (*NSCoder) DecodeDoubleForKey

func (o *NSCoder) DecodeDoubleForKey(key *NSString) float64

Decodes and returns a double value that was previously encoded with either encodeFloat:forKey: or encodeDouble:forKey: and associated with the string key.

func (*NSCoder) DecodeFloatForKey

func (o *NSCoder) DecodeFloatForKey(key *NSString) float32

Decodes and returns a float value that was previously encoded with encodeFloat:forKey: or encodeDouble:forKey: and associated with the string key.

func (*NSCoder) DecodeInt32ForKey

func (o *NSCoder) DecodeInt32ForKey(key *NSString) int32

Decodes and returns a 32-bit integer value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key.

func (*NSCoder) DecodeInt64ForKey

func (o *NSCoder) DecodeInt64ForKey(key *NSString) int64

Decodes and returns a 64-bit integer value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key.

func (*NSCoder) DecodeIntForKey

func (o *NSCoder) DecodeIntForKey(key *NSString) int

Decodes and returns an int value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key.

func (*NSCoder) DecodeIntegerForKey

func (o *NSCoder) DecodeIntegerForKey(key *NSString) int

Decodes and returns an NSInteger value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key.

func (*NSCoder) DecodeNXObject

func (o *NSCoder) DecodeNXObject() objc.ID

Decodes an object previously written with encodeNXObject:. Deprecated: Not supported

func (*NSCoder) DecodeObject

func (o *NSCoder) DecodeObject() objc.ID

Decodes and returns an object that was previously encoded with any of the encode…Object methods.

func (*NSCoder) DecodeObjectForKey

func (o *NSCoder) DecodeObjectForKey(key *NSString) objc.ID

Decodes and returns a previously-encoded object that was previously encoded with encodeObject:forKey: or encodeConditionalObject:forKey: and associated with the string key.

func (*NSCoder) DecodeObjectOfClassForKey

func (o *NSCoder) DecodeObjectOfClassForKey(aClass objc.Class, key *NSString) objc.ID

Decodes an object for the key, restricted to the specified class.

func (*NSCoder) DecodeObjectOfClassesForKey

func (o *NSCoder) DecodeObjectOfClassesForKey(classes *NSSet[objc.Class], key *NSString) objc.ID

Decodes an object for the key, restricted to the specified classes.

func (*NSCoder) DecodePoint

func (o *NSCoder) DecodePoint() corefoundation.CGPoint

Decodes and returns an NSPoint structure that was previously encoded with encodePoint:.

func (*NSCoder) DecodePointForKey

func (o *NSCoder) DecodePointForKey(key *NSString) corefoundation.CGPoint

Decodes and returns an NSPoint structure that was previously encoded with encodePoint:forKey:.

func (*NSCoder) DecodePropertyList

func (o *NSCoder) DecodePropertyList() objc.ID

Decodes a property list that was previously encoded with encodePropertyList:.

func (*NSCoder) DecodePropertyListForKey

func (o *NSCoder) DecodePropertyListForKey(key *NSString) objc.ID

Returns a decoded property list for the specified key.

func (*NSCoder) DecodeRect

func (o *NSCoder) DecodeRect() corefoundation.CGRect

Decodes and returns an NSRect structure that was previously encoded with encodeRect:.

func (*NSCoder) DecodeRectForKey

func (o *NSCoder) DecodeRectForKey(key *NSString) corefoundation.CGRect

Decodes and returns an NSRect structure that was previously encoded with encodeRect:forKey:.

func (*NSCoder) DecodeSize

func (o *NSCoder) DecodeSize() corefoundation.CGSize

Decodes and returns an NSSize structure that was previously encoded with encodeSize:.

func (*NSCoder) DecodeSizeForKey

func (o *NSCoder) DecodeSizeForKey(key *NSString) corefoundation.CGSize

Decodes and returns an NSSize structure that was previously encoded with encodeSize:forKey:.

func (*NSCoder) DecodeTopLevelObjectAndReturnError

func (o *NSCoder) DecodeTopLevelObjectAndReturnError() (objc.ID, error)

Decodes a previously-encoded object, populating an error if decoding fails.

func (*NSCoder) DecodeTopLevelObjectForKeyError

func (o *NSCoder) DecodeTopLevelObjectForKeyError(key *NSString) (objc.ID, error)

Decodes the previously-encoded object associated by a key, populating an error if decoding fails.

func (*NSCoder) DecodeTopLevelObjectOfClassForKeyError

func (o *NSCoder) DecodeTopLevelObjectOfClassForKeyError(aClass objc.Class, key *NSString) (objc.ID, error)

Decode an object as an expected type, failing if the archived type does not match.

func (*NSCoder) DecodeTopLevelObjectOfClassesForKeyError

func (o *NSCoder) DecodeTopLevelObjectOfClassesForKeyError(classes *NSSet[objc.Class], key *NSString) (objc.ID, error)

Decode an object as one of several expected types, failing if the archived type does not match.

func (*NSCoder) DecodeValueOfObjCTypeAt

func (o *NSCoder) DecodeValueOfObjCTypeAt(type_ string, data unsafe.Pointer)

Decodes a single value, whose Objective-C type is given by valueType. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSCoder) DecodeValueOfObjCTypeAtSize

func (o *NSCoder) DecodeValueOfObjCTypeAtSize(type_ string, data unsafe.Pointer, size uint)

Decodes a single value of a known type from the specified data buffer.

func (*NSCoder) DecodingFailurePolicy

func (o *NSCoder) DecodingFailurePolicy() NSDecodingFailurePolicy

@abstract Defines the behavior this NSCoder should take on decode failure (i.e. corrupt archive, invalid data, etc.). @discussion The default result of this property is NSDecodingFailurePolicyRaiseException, subclasses can change this to an alternative policy.

func (*NSCoder) EncodeArrayOfObjCTypeCountAt

func (o *NSCoder) EncodeArrayOfObjCTypeCountAt(type_ string, count uint, array unsafe.Pointer)

Encodes an array of the given Objective-C type, provided the number of items and a pointer.

func (*NSCoder) EncodeBoolForKey

func (o *NSCoder) EncodeBoolForKey(value bool, key *NSString)

Encodes a Boolean value and associates it with the string key.

func (*NSCoder) EncodeBycopyObject

func (o *NSCoder) EncodeBycopyObject(anObject objc.ID)

An encoding method for subclasses to override such that it creates a copy, rather than a proxy, when decoded.

func (*NSCoder) EncodeByrefObject

func (o *NSCoder) EncodeByrefObject(anObject objc.ID)

An encoding method for subclasses to override such that it creates a proxy, rather than a copy, when decoded.

func (*NSCoder) EncodeBytesLength

func (o *NSCoder) EncodeBytesLength(byteaddr unsafe.Pointer, length uint)

Encodes a buffer of data of an unspecified type.

func (*NSCoder) EncodeBytesLengthForKey

func (o *NSCoder) EncodeBytesLengthForKey(bytes_ *uint8, length uint, key *NSString)

Encodes a buffer of data, given its length and a pointer, and associates it with a string key.

func (*NSCoder) EncodeConditionalObject

func (o *NSCoder) EncodeConditionalObject(object objc.ID)

An encoding method for subclasses to override to conditionally encode an object, preserving common references to it.

func (*NSCoder) EncodeConditionalObjectForKey

func (o *NSCoder) EncodeConditionalObjectForKey(object objc.ID, key *NSString)

An encoding method for subclasses to override to conditionally encode an object, preserving common references to it, only if it has been unconditionally encoded.

func (*NSCoder) EncodeDataObject

func (o *NSCoder) EncodeDataObject(data *NSData)

Encodes a given data object.

func (*NSCoder) EncodeDoubleForKey

func (o *NSCoder) EncodeDoubleForKey(value float64, key *NSString)

Encodes a double-precision floating point value and associates it with the string key.

func (*NSCoder) EncodeFloatForKey

func (o *NSCoder) EncodeFloatForKey(value float32, key *NSString)

Encodes a floating point value and associates it with the string key.

func (*NSCoder) EncodeInt32ForKey

func (o *NSCoder) EncodeInt32ForKey(value int32, key *NSString)

Encodes a 32-bit integer value and associates it with the string key.

func (*NSCoder) EncodeInt64ForKey

func (o *NSCoder) EncodeInt64ForKey(value int64, key *NSString)

Encodes a 64-bit integer value and associates it with the string key.

func (*NSCoder) EncodeIntForKey

func (o *NSCoder) EncodeIntForKey(value int, key *NSString)

Encodes a C integer value and associates it with the string key.

func (*NSCoder) EncodeIntegerForKey

func (o *NSCoder) EncodeIntegerForKey(value int, key *NSString)

Encodes an integer value and associates it with the string key.

func (*NSCoder) EncodeNXObject

func (o *NSCoder) EncodeNXObject(object objc.ID)

Encodes an old-style object onto the coder. Deprecated: Not supported

func (*NSCoder) EncodeObject

func (o *NSCoder) EncodeObject(object objc.ID)

Encodes an object.

func (*NSCoder) EncodeObjectForKey

func (o *NSCoder) EncodeObjectForKey(object objc.ID, key *NSString)

Encodes an object and associates it with the string key.

func (*NSCoder) EncodePoint

func (o *NSCoder) EncodePoint(point corefoundation.CGPoint)

Encodes a point.

func (*NSCoder) EncodePointForKey

func (o *NSCoder) EncodePointForKey(point corefoundation.CGPoint, key *NSString)

Encodes a point and associates it with the string key.

func (*NSCoder) EncodePropertyList

func (o *NSCoder) EncodePropertyList(aPropertyList objc.ID)

Encodes a property list.

func (*NSCoder) EncodeRect

func (o *NSCoder) EncodeRect(rect corefoundation.CGRect)

Encodes a rectangle structure.

func (*NSCoder) EncodeRectForKey

func (o *NSCoder) EncodeRectForKey(rect corefoundation.CGRect, key *NSString)

Encodes a rectangle structure and associates it with the string key.

func (*NSCoder) EncodeRootObject

func (o *NSCoder) EncodeRootObject(rootObject objc.ID)

An encoding method for subclasses to override to encode an interconnected group of objects, starting with the provided root object.

func (*NSCoder) EncodeSize

func (o *NSCoder) EncodeSize(size corefoundation.CGSize)

Encodes a size structure.

func (*NSCoder) EncodeSizeForKey

func (o *NSCoder) EncodeSizeForKey(size corefoundation.CGSize, key *NSString)

Encodes a size structure and associates it with the given string key.

func (*NSCoder) EncodeValueOfObjCTypeAt

func (o *NSCoder) EncodeValueOfObjCTypeAt(type_ string, addr unsafe.Pointer)

Encodes a value of the given type at the given address.

func (*NSCoder) Error

func (o *NSCoder) Error() unsafe.Pointer

@abstract The current error (if there is one) for the current TopLevel decode. @discussion The meaning of this property changes based on the result of the decodingFailurePolicy property: For NSDecodingFailurePolicyRaiseException, this property will always be nil. For NSDecodingFailurePolicySetErrorAndReturn, this property can be non-nil, and if so, indicates that there was a failure while decoding the archive (specifically its the very first error encountered). While .error is non-nil, all attempts to decode data from this coder will return a nil/zero-equivalent value. This error is consumed by a TopLevel decode API (which resets this coder back to a being able to potentially decode data).

func (*NSCoder) FailWithError

func (o *NSCoder) FailWithError(error_ unsafe.Pointer)

Signals to this coder that the decode operation has failed.

func (*NSCoder) ObjectZone

func (o *NSCoder) ObjectZone() unsafe.Pointer

This method is present for historical reasons and has no effect.

func (*NSCoder) RequiresSecureCoding

func (o *NSCoder) RequiresSecureCoding() bool

func (*NSCoder) SetObjectZone

func (o *NSCoder) SetObjectZone(zone unsafe.Pointer)

This method is present for historical reasons and has no effect.

func (*NSCoder) SystemVersion

func (o *NSCoder) SystemVersion() uint

func (*NSCoder) VersionForClassName

func (o *NSCoder) VersionForClassName(className *NSString) int

This method is present for historical reasons and is not used with keyed archivers.

type NSCoding

type NSCoding interface {
	EncodeWithCoder(coder *NSCoder)
	InitWithCoder(coder *NSCoder) unsafe.Pointer
}

NSCoding wraps the ObjC protocol NSCoding.

type NSCollectionChangeType

type NSCollectionChangeType int64

The type of change represented in computing the difference of an ordered collection.

const (
	// A change type that represents the insertion of an object into an ordered collection.
	NSCollectionChangeInsert NSCollectionChangeType = 0
	// A change type that represents the removal of an object from an ordered collection.
	NSCollectionChangeRemove NSCollectionChangeType = 1
)

func (NSCollectionChangeType) String

func (e NSCollectionChangeType) String() string

type NSComparisonPredicate

type NSComparisonPredicate struct {
	NSPredicate
}

A specialized predicate for comparing expressions.

Apple documentation: https://developer.apple.com/documentation/foundation/nscomparisonpredicate

func NSComparisonPredicateFromID

func NSComparisonPredicateFromID(id objc.ID) *NSComparisonPredicate

func NSComparisonPredicatePredicateWithLeftExpressionRightExpressionCustomSelector

func NSComparisonPredicatePredicateWithLeftExpressionRightExpressionCustomSelector(lhs *NSExpression, rhs *NSExpression, selector objc.SEL) *NSComparisonPredicate

Returns a new predicate formed by combining the left and right expressions using a given selector.

func NSComparisonPredicatePredicateWithLeftExpressionRightExpressionModifierTypeOptions

func NSComparisonPredicatePredicateWithLeftExpressionRightExpressionModifierTypeOptions(lhs *NSExpression, rhs *NSExpression, modifier NSComparisonPredicateModifier, type_ NSPredicateOperatorType, options NSComparisonPredicateOptions) *NSComparisonPredicate

Creates and returns a predicate of a given type formed by combining given left and right expressions using a given modifier and options.

func (*NSComparisonPredicate) ComparisonPredicateModifier

func (o *NSComparisonPredicate) ComparisonPredicateModifier() NSComparisonPredicateModifier

func (*NSComparisonPredicate) CustomSelector

func (o *NSComparisonPredicate) CustomSelector() objc.SEL

func (*NSComparisonPredicate) InitWithCoder

func (o *NSComparisonPredicate) InitWithCoder(coder *NSCoder) *NSComparisonPredicate

Creates a predicate by decoding from the coder you specify.

func (*NSComparisonPredicate) InitWithLeftExpressionRightExpressionCustomSelector

func (o *NSComparisonPredicate) InitWithLeftExpressionRightExpressionCustomSelector(lhs *NSExpression, rhs *NSExpression, selector objc.SEL) *NSComparisonPredicate

Creates a predicate that you form by combining specified left and right expressions using a specified selector.

func (*NSComparisonPredicate) InitWithLeftExpressionRightExpressionModifierTypeOptions

func (o *NSComparisonPredicate) InitWithLeftExpressionRightExpressionModifierTypeOptions(lhs *NSExpression, rhs *NSExpression, modifier NSComparisonPredicateModifier, type_ NSPredicateOperatorType, options NSComparisonPredicateOptions) *NSComparisonPredicate

Creates a predicate to a specified type that you form by combining specified left and right expressions using a specified modifier and options.

func (*NSComparisonPredicate) LeftExpression

func (o *NSComparisonPredicate) LeftExpression() *NSExpression

func (*NSComparisonPredicate) Options

func (*NSComparisonPredicate) PredicateOperatorType

func (o *NSComparisonPredicate) PredicateOperatorType() NSPredicateOperatorType

func (*NSComparisonPredicate) RightExpression

func (o *NSComparisonPredicate) RightExpression() *NSExpression

type NSComparisonPredicateModifier

type NSComparisonPredicateModifier uint64

Constants that describe the possible types of modifier for a comparison predicate.

const (
	NSDirectPredicateModifier NSComparisonPredicateModifier = 0
	NSAllPredicateModifier    NSComparisonPredicateModifier = 1
	NSAnyPredicateModifier    NSComparisonPredicateModifier = 2
)

func (NSComparisonPredicateModifier) String

type NSComparisonPredicateOptions

type NSComparisonPredicateOptions uint64

Constants that describe the possible types of string comparison for comparison predicates.

const (
	NSCaseInsensitivePredicateOption      NSComparisonPredicateOptions = 1
	NSDiacriticInsensitivePredicateOption NSComparisonPredicateOptions = 2
	NSNormalizedPredicateOption           NSComparisonPredicateOptions = 4
)

func (NSComparisonPredicateOptions) String

type NSComparisonResult

type NSComparisonResult int64

Constants that indicate sort order.

const (
	NSOrderedAscending  NSComparisonResult = -1
	NSOrderedSame       NSComparisonResult = 0
	NSOrderedDescending NSComparisonResult = 1
)

func NSDecimalCompare

func NSDecimalCompare(leftOperand *NSDecimal, rightOperand *NSDecimal) NSComparisonResult

func (NSComparisonResult) String

func (e NSComparisonResult) String() string

type NSCompoundPredicate

type NSCompoundPredicate struct {
	NSPredicate
}

A specialized predicate that evaluates logical combinations of other predicates.

Apple documentation: https://developer.apple.com/documentation/foundation/nscompoundpredicate

func NSCompoundPredicateAndPredicateWithSubpredicates

func NSCompoundPredicateAndPredicateWithSubpredicates(subpredicates *NSArray[*NSPredicate]) *NSCompoundPredicate

Returns a new predicate that you form using an AND operation on the predicates in a specified array.

func NSCompoundPredicateFromID

func NSCompoundPredicateFromID(id objc.ID) *NSCompoundPredicate

func NSCompoundPredicateNotPredicateWithSubpredicate

func NSCompoundPredicateNotPredicateWithSubpredicate(predicate *NSPredicate) *NSCompoundPredicate

Returns a new predicate that you form using a NOT operation on a specified predicate.

func NSCompoundPredicateOrPredicateWithSubpredicates

func NSCompoundPredicateOrPredicateWithSubpredicates(subpredicates *NSArray[*NSPredicate]) *NSCompoundPredicate

Returns a new predicate that you form using an OR operation on the predicates in a specified array.

func (*NSCompoundPredicate) CompoundPredicateType

func (o *NSCompoundPredicate) CompoundPredicateType() NSCompoundPredicateType

func (*NSCompoundPredicate) InitWithCoder

func (o *NSCompoundPredicate) InitWithCoder(coder *NSCoder) *NSCompoundPredicate

Creates a predicate by decoding from the coder you specify.

func (*NSCompoundPredicate) InitWithTypeSubpredicates

func (o *NSCompoundPredicate) InitWithTypeSubpredicates(type_ NSCompoundPredicateType, subpredicates *NSArray[*NSPredicate]) *NSCompoundPredicate

Returns the receiver that a specified type initializes using predicates from a specified array.

func (*NSCompoundPredicate) Subpredicates

func (o *NSCompoundPredicate) Subpredicates() *NSArray[objc.ID]

type NSCompoundPredicateType

type NSCompoundPredicateType uint64

Constants that describe the possible types of a compound predicate.

const (
	NSNotPredicateType NSCompoundPredicateType = 0
	NSAndPredicateType NSCompoundPredicateType = 1
	NSOrPredicateType  NSCompoundPredicateType = 2
)

func (NSCompoundPredicateType) String

func (e NSCompoundPredicateType) String() string

type NSCondition

type NSCondition struct {
	NSObject
}

A condition variable whose semantics follow those used for POSIX-style conditions.

Apple documentation: https://developer.apple.com/documentation/foundation/nscondition

func NSConditionFromID

func NSConditionFromID(id objc.ID) *NSCondition

func (*NSCondition) Broadcast

func (o *NSCondition) Broadcast()

Signals the condition, waking up all threads waiting on it.

func (*NSCondition) Name

func (o *NSCondition) Name() *NSString

func (*NSCondition) SetName

func (o *NSCondition) SetName(name *NSString)

func (*NSCondition) Signal

func (o *NSCondition) Signal()

Signals the condition, waking up one thread waiting on it.

func (*NSCondition) Wait

func (o *NSCondition) Wait()

Blocks the current thread until the condition is signaled.

func (*NSCondition) WaitUntilDate

func (o *NSCondition) WaitUntilDate(limit *NSDate) bool

Blocks the current thread until the condition is signaled or the specified time limit is reached.

type NSConditionLock

type NSConditionLock struct {
	NSObject
}

A lock that can be associated with specific, user-defined conditions.

Apple documentation: https://developer.apple.com/documentation/foundation/nsconditionlock

func NSConditionLockFromID

func NSConditionLockFromID(id objc.ID) *NSConditionLock

func (*NSConditionLock) Condition

func (o *NSConditionLock) Condition() int

func (*NSConditionLock) InitWithCondition

func (o *NSConditionLock) InitWithCondition(condition int) *NSConditionLock

Initializes a newly allocated NSConditionLock object and sets its condition.

func (*NSConditionLock) LockBeforeDate

func (o *NSConditionLock) LockBeforeDate(limit *NSDate) bool

Attempts to acquire a lock before a specified moment in time.

func (*NSConditionLock) LockWhenCondition

func (o *NSConditionLock) LockWhenCondition(condition int)

Attempts to acquire a lock.

func (*NSConditionLock) LockWhenConditionBeforeDate

func (o *NSConditionLock) LockWhenConditionBeforeDate(condition int, limit *NSDate) bool

Attempts to acquire a lock before a specified moment in time.

func (*NSConditionLock) Name

func (o *NSConditionLock) Name() *NSString

func (*NSConditionLock) SetName

func (o *NSConditionLock) SetName(name *NSString)

func (*NSConditionLock) TryLock

func (o *NSConditionLock) TryLock() bool

Attempts to acquire a lock without regard to the receiver’s condition.

func (*NSConditionLock) TryLockWhenCondition

func (o *NSConditionLock) TryLockWhenCondition(condition int) bool

Attempts to acquire a lock if the receiver’s condition is equal to the specified condition.

func (*NSConditionLock) UnlockWithCondition

func (o *NSConditionLock) UnlockWithCondition(condition int)

Relinquishes the lock and sets the receiver’s condition.

type NSConnection

type NSConnection struct {
	NSObject
}

An object that manages the communication between objects in different threads or between a thread and a process running on a local or remote system.

Apple documentation: https://developer.apple.com/documentation/foundation/nsconnection Deprecated: Use NSXPCConnection instead

func NSConnectionConnectionWithReceivePortSendPort

func NSConnectionConnectionWithReceivePortSendPort(receivePort *NSPort, sendPort *NSPort) *NSConnection

Returns an NSConnection object that communicates using given send and receive ports.

func NSConnectionConnectionWithRegisteredNameHost

func NSConnectionConnectionWithRegisteredNameHost(name *NSString, hostName *NSString) *NSConnection

Returns the NSConnection object whose send port links it to the NSConnection object registered with the default NSPortNameServer under a given name on a given host. Deprecated: since macOS 10.6.

func NSConnectionConnectionWithRegisteredNameHostUsingNameServer

func NSConnectionConnectionWithRegisteredNameHostUsingNameServer(name *NSString, hostName *NSString, server *NSPortNameServer) *NSConnection

Returns the NSConnection object whose send port links it to the NSConnection object registered under a given name with a given server on a given host. Deprecated: since macOS 10.6.

func NSConnectionDefaultConnection

func NSConnectionDefaultConnection() *NSConnection

Returns the default NSConnection object for the current thread. Deprecated: since macOS 10.6.

func NSConnectionFromID

func NSConnectionFromID(id objc.ID) *NSConnection

func NSConnectionServiceConnectionWithNameRootObject

func NSConnectionServiceConnectionWithNameRootObject(name *NSString, root objc.ID) *NSConnection

Creates and returns a new connection object representing a vended service on the default system port name server.

func NSConnectionServiceConnectionWithNameRootObjectUsingNameServer

func NSConnectionServiceConnectionWithNameRootObjectUsingNameServer(name *NSString, root objc.ID, server *NSPortNameServer) *NSConnection

Creates and returns a new connection object representing a vended service on the specified port name server.

func (*NSConnection) AddRequestMode

func (o *NSConnection) AddRequestMode(rmode *NSString)

Adds mode to the set of run-loop input modes that the receiver uses for connection requests.

func (*NSConnection) AddRunLoop

func (o *NSConnection) AddRunLoop(runloop *NSRunLoop)

Adds the specified run loop to the list of run loops the receiver monitors and from which it responds to requests.

func (*NSConnection) Delegate

func (o *NSConnection) Delegate() NSConnectionDelegate

func (*NSConnection) DispatchWithComponents

func (o *NSConnection) DispatchWithComponents(components *NSArray[objc.ID])

Allows subclasses to ask a connection object to dispatch component data.

func (*NSConnection) EnableMultipleThreads

func (o *NSConnection) EnableMultipleThreads()

Configures the receiver to allow requests from multiple threads to the remote object, without requiring each thread to each maintain its own connection.

func (*NSConnection) IndependentConversationQueueing

func (o *NSConnection) IndependentConversationQueueing() bool

func (*NSConnection) InitWithReceivePortSendPort

func (o *NSConnection) InitWithReceivePortSendPort(receivePort *NSPort, sendPort *NSPort) *NSConnection

Returns an NSConnection object initialized with given send and receive ports.

func (*NSConnection) Invalidate

func (o *NSConnection) Invalidate()

Invalidates the receiver.

func (*NSConnection) IsValid

func (o *NSConnection) IsValid() bool

func (*NSConnection) LocalObjects

func (o *NSConnection) LocalObjects() *NSArray[objc.ID]

func (*NSConnection) MultipleThreadsEnabled

func (o *NSConnection) MultipleThreadsEnabled() bool

func (*NSConnection) ReceivePort

func (o *NSConnection) ReceivePort() *NSPort

func (*NSConnection) RegisterName

func (o *NSConnection) RegisterName(name *NSString) bool

Registers the specified service using with the default system port name server.

func (*NSConnection) RegisterNameWithNameServer

func (o *NSConnection) RegisterNameWithNameServer(name *NSString, server *NSPortNameServer) bool

Registers a service with the specified port name server.

func (*NSConnection) RemoteObjects

func (o *NSConnection) RemoteObjects() *NSArray[objc.ID]

func (*NSConnection) RemoveRequestMode

func (o *NSConnection) RemoveRequestMode(rmode *NSString)

Removes mode from the set of run-loop input modes the receiver uses for connection requests.

func (*NSConnection) RemoveRunLoop

func (o *NSConnection) RemoveRunLoop(runloop *NSRunLoop)

Removes a given NSRunLoop object from the list of run loops the receiver monitors and from which it responds to requests.

func (*NSConnection) ReplyTimeout

func (o *NSConnection) ReplyTimeout() float64

func (*NSConnection) RequestModes

func (o *NSConnection) RequestModes() *NSArray[*NSString]

func (*NSConnection) RequestTimeout

func (o *NSConnection) RequestTimeout() float64

func (*NSConnection) RootObject

func (o *NSConnection) RootObject() objc.ID

func (*NSConnection) RootProxy

func (o *NSConnection) RootProxy() *NSDistantObject

func (*NSConnection) RunInNewThread

func (o *NSConnection) RunInNewThread()

Creates and starts a new NSThread object and then runs the receiving connection in the new thread.

func (*NSConnection) SendPort

func (o *NSConnection) SendPort() *NSPort

func (*NSConnection) SetDelegate

func (o *NSConnection) SetDelegate(delegate NSConnectionDelegate)

func (*NSConnection) SetIndependentConversationQueueing

func (o *NSConnection) SetIndependentConversationQueueing(independentConversationQueueing bool)

func (*NSConnection) SetReplyTimeout

func (o *NSConnection) SetReplyTimeout(replyTimeout float64)

func (*NSConnection) SetRequestTimeout

func (o *NSConnection) SetRequestTimeout(requestTimeout float64)

func (*NSConnection) SetRootObject

func (o *NSConnection) SetRootObject(rootObject objc.ID)

func (*NSConnection) Statistics

func (o *NSConnection) Statistics() *NSDictionary[*NSString, *NSNumber]

type NSConnectionDelegate

type NSConnectionDelegate interface {
}

NSConnectionDelegate wraps the ObjC protocol NSConnectionDelegate.

type NSConstantString

type NSConstantString struct {
	NSSimpleCString
}

Apple documentation: https://developer.apple.com/documentation/foundation/nsconstantstring

func NSConstantStringFromID

func NSConstantStringFromID(id objc.ID) *NSConstantString

type NSCopying

type NSCopying interface {
	CopyWithZone(zone unsafe.Pointer) objc.ID
}

NSCopying wraps the ObjC protocol NSCopying.

type NSCountedSet

type NSCountedSet[ObjectType purego.AnyObject] struct {
	NSMutableSet[ObjectType]
}

A mutable, unordered collection of distinct objects that may appear more than once in the collection.

Apple documentation: https://developer.apple.com/documentation/foundation/nscountedset

func NSCountedSetFromID

func NSCountedSetFromID[ObjectType purego.AnyObject](id objc.ID) *NSCountedSet[ObjectType]

func (*NSCountedSet[ObjectType]) CountForObject

func (o *NSCountedSet[ObjectType]) CountForObject(object ObjectType) uint

Returns the count associated with a given object in the set.

func (*NSCountedSet[ObjectType]) InitWithArray

func (o *NSCountedSet[ObjectType]) InitWithArray(array *NSArray[ObjectType]) *NSCountedSet[ObjectType]

Returns a counted set object initialized with the contents of a given array.

func (*NSCountedSet[ObjectType]) InitWithCapacity

func (o *NSCountedSet[ObjectType]) InitWithCapacity(numItems uint) *NSCountedSet[ObjectType]

Returns a counted set object initialized with enough memory to hold a given number of objects.

func (*NSCountedSet[ObjectType]) InitWithSet

func (o *NSCountedSet[ObjectType]) InitWithSet(set *NSSet[ObjectType]) *NSCountedSet[ObjectType]

Returns a counted set object initialized with the contents of a given set.

type NSCreateCommand

type NSCreateCommand struct {
	NSScriptCommand
}

A command that creates a scriptable object.

Apple documentation: https://developer.apple.com/documentation/foundation/nscreatecommand

func NSCreateCommandFromID

func NSCreateCommandFromID(id objc.ID) *NSCreateCommand

func (*NSCreateCommand) CreateClassDescription

func (o *NSCreateCommand) CreateClassDescription() *NSScriptClassDescription

func (*NSCreateCommand) ResolvedKeyDictionary

func (o *NSCreateCommand) ResolvedKeyDictionary() *NSDictionary[*NSString, objc.ID]

type NSData

type NSData struct {
	NSObject
}

A static byte buffer in memory.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdata

func NSArchiverArchivedDataWithRootObject

func NSArchiverArchivedDataWithRootObject(rootObject objc.ID) *NSData

Returns a data object containing the encoded form of the object graph whose root object is given.

func NSDataData

func NSDataData() *NSData

Creates an empty data object.

func NSDataDataWithBytesLength

func NSDataDataWithBytesLength(bytes_ unsafe.Pointer, length uint) *NSData

Creates a data object containing a given number of bytes copied from a given buffer.

func NSDataDataWithBytesNoCopyLength

func NSDataDataWithBytesNoCopyLength(bytes_ unsafe.Pointer, length uint) *NSData

Creates a data object that holds a given number of bytes from a given buffer.

func NSDataDataWithBytesNoCopyLengthFreeWhenDone

func NSDataDataWithBytesNoCopyLengthFreeWhenDone(bytes_ unsafe.Pointer, length uint, b bool) *NSData

Creates a data object that holds a given number of bytes from a given buffer.

func NSDataDataWithContentsOfFile

func NSDataDataWithContentsOfFile(path *NSString) *NSData

Creates a data object by reading every byte from the file at a given path.

func NSDataDataWithContentsOfFileOptionsError

func NSDataDataWithContentsOfFileOptionsError(path *NSString, readOptionsMask NSDataReadingOptions) (*NSData, error)

Creates a data object by reading every byte from the file at a given path.

func NSDataDataWithContentsOfURL

func NSDataDataWithContentsOfURL(url *NSURL) *NSData

Creates a data object from the data at the specified file URL.

func NSDataDataWithContentsOfURLOptionsError

func NSDataDataWithContentsOfURLOptionsError(url *NSURL, readOptionsMask NSDataReadingOptions) (*NSData, error)

Creates a data object from the data at the provided file URL using specific reading options.

func NSDataDataWithData

func NSDataDataWithData(data *NSData) *NSData

Creates a data object containing the contents of another data object.

func NSDataFromID

func NSDataFromID(id objc.ID) *NSData

func NSJSONSerializationDataWithJSONObjectOptionsError

func NSJSONSerializationDataWithJSONObjectOptionsError(obj objc.ID, opt NSJSONWritingOptions) (*NSData, error)

func NSKeyedArchiverArchivedDataWithRootObject

func NSKeyedArchiverArchivedDataWithRootObject(rootObject objc.ID) *NSData

Returns a data object that contains the encoded form of the object graph formed by the given root object. Deprecated: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead

func NSKeyedArchiverArchivedDataWithRootObjectRequiringSecureCodingError

func NSKeyedArchiverArchivedDataWithRootObjectRequiringSecureCodingError(object objc.ID, requiresSecureCoding bool) (*NSData, error)

Encodes an object graph with the given root object into a data representation, optionally requiring secure coding.

func NSNetServiceDataFromTXTRecordDictionary

func NSNetServiceDataFromTXTRecordDictionary(txtDictionary *NSDictionary[*NSString, *NSData]) *NSData

func NSPropertyListSerializationDataFromPropertyListFormatErrorDescription deprecated

func NSPropertyListSerializationDataFromPropertyListFormatErrorDescription(plist objc.ID, format NSPropertyListFormat, errorString *NSString) *NSData

Deprecated: Use dataWithPropertyList:format:options:error: instead.

func NSPropertyListSerializationDataWithPropertyListFormatOptionsError

func NSPropertyListSerializationDataWithPropertyListFormatOptionsError(plist objc.ID, format NSPropertyListFormat, opt uint) (*NSData, error)

func NSURLBookmarkDataWithContentsOfURLError

func NSURLBookmarkDataWithContentsOfURLError(bookmarkFileURL *NSURL) (*NSData, error)

Initializes and returns bookmark data derived from an alias file pointed to by a specified URL.

func NSURLConnectionSendSynchronousRequestReturningResponseError

func NSURLConnectionSendSynchronousRequestReturningResponseError(request *NSURLRequest, response *NSURLResponse) (*NSData, error)

Performs a synchronous load of the specified URL request. Deprecated: Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h

func (*NSData) Base64EncodedDataWithOptions

func (o *NSData) Base64EncodedDataWithOptions(options NSDataBase64EncodingOptions) *NSData

Creates a Base64, UTF-8 encoded data object from the string using the given options.

func (*NSData) Base64EncodedStringWithOptions

func (o *NSData) Base64EncodedStringWithOptions(options NSDataBase64EncodingOptions) *NSString

Creates a Base64 encoded string from the string using the given options.

func (*NSData) Base64Encoding

func (o *NSData) Base64Encoding() *NSString

Initializes a Base64 encoded string from the string. Deprecated: Use base64EncodedStringWithOptions: instead

func (*NSData) Bytes

func (o *NSData) Bytes() unsafe.Pointer

func (*NSData) CompressedDataUsingAlgorithmError

func (o *NSData) CompressedDataUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (*NSData, error)

Returns a new data object by compressing the data object’s bytes.

func (*NSData) DecompressedDataUsingAlgorithmError

func (o *NSData) DecompressedDataUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (*NSData, error)

Returns a new data object by decompressing data object’s bytes.

func (*NSData) EnumerateByteRangesUsing

func (o *NSData) EnumerateByteRangesUsing(block objc.Block)

Enumerates each range of bytes in the data object using a block.

func (*NSData) GetBytes

func (o *NSData) GetBytes(buffer unsafe.Pointer)

Copies a data object’s contents into a given buffer. Deprecated: This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead.

func (*NSData) GetBytesLength

func (o *NSData) GetBytesLength(buffer unsafe.Pointer, length uint)

Copies a number of bytes from the start of the data object into a given buffer.

func (*NSData) GetBytesRange

func (o *NSData) GetBytesRange(buffer unsafe.Pointer, range_ NSRange)

Copies a range of bytes from the data object into a given buffer.

func (*NSData) InitWithBase64EncodedDataOptions

func (o *NSData) InitWithBase64EncodedDataOptions(base64Data *NSData, options NSDataBase64DecodingOptions) *NSData

Initializes a data object with the given Base64 encoded data.

func (*NSData) InitWithBase64EncodedStringOptions

func (o *NSData) InitWithBase64EncodedStringOptions(base64String *NSString, options NSDataBase64DecodingOptions) *NSData

Initializes a data object with the given Base64 encoded string.

func (*NSData) InitWithBase64Encoding

func (o *NSData) InitWithBase64Encoding(base64String *NSString) objc.ID

Initializes a data object initialized with the given Base64 encoded string. Deprecated: Use initWithBase64EncodedString:options: instead

func (*NSData) InitWithBytesLength

func (o *NSData) InitWithBytesLength(bytes_ unsafe.Pointer, length uint) *NSData

Initializes a data object filled with a given number of bytes copied from a given buffer.

func (*NSData) InitWithBytesNoCopyLength

func (o *NSData) InitWithBytesNoCopyLength(bytes_ unsafe.Pointer, length uint) *NSData

Initializes a data object filled with a given number of bytes of data from a given buffer.

func (*NSData) InitWithBytesNoCopyLengthDeallocator

func (o *NSData) InitWithBytesNoCopyLengthDeallocator(bytes_ unsafe.Pointer, length uint, deallocator func(unsafe.Pointer, uint)) *NSData

Initializes a data object filled with a given number of bytes of data from a given buffer, with a custom deallocator block.

func (*NSData) InitWithBytesNoCopyLengthFreeWhenDone

func (o *NSData) InitWithBytesNoCopyLengthFreeWhenDone(bytes_ unsafe.Pointer, length uint, b bool) *NSData

Initializes a newly allocated data object by adding the given number of bytes from the given buffer.

func (*NSData) InitWithContentsOfFile

func (o *NSData) InitWithContentsOfFile(path *NSString) *NSData

Initializes a data object with the content of the file at a given path.

func (*NSData) InitWithContentsOfFileOptionsError

func (o *NSData) InitWithContentsOfFileOptionsError(path *NSString, readOptionsMask NSDataReadingOptions) (*NSData, error)

Initializes a data object with the content of the file at a given path.

func (*NSData) InitWithContentsOfMappedFile

func (o *NSData) InitWithContentsOfMappedFile(path *NSString) objc.ID

Initializes a data object with the contents of the mapped file specified by a given path. Deprecated: Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.

func (*NSData) InitWithContentsOfURL

func (o *NSData) InitWithContentsOfURL(url *NSURL) *NSData

Creates a data object from the data at the specified file URL, or returns nil if the system can’t create one.

func (*NSData) InitWithContentsOfURLOptionsError

func (o *NSData) InitWithContentsOfURLOptionsError(url *NSURL, readOptionsMask NSDataReadingOptions) (*NSData, error)

Creates a data object from the data at the provided file URL using specific reading options.

func (*NSData) InitWithData

func (o *NSData) InitWithData(data *NSData) *NSData

Initializes a data object with the contents of another data object.

func (*NSData) IsEqualToData

func (o *NSData) IsEqualToData(other *NSData) bool

Returns a Boolean value indicating whether this data object is the same as another.

func (*NSData) Length

func (o *NSData) Length() uint

func (*NSData) RangeOfDataOptionsRange

func (o *NSData) RangeOfDataOptionsRange(dataToFind *NSData, mask NSDataSearchOptions, searchRange NSRange) NSRange

Finds and returns the range of the first occurrence of the given data, within the given range, subject to given options.

func (*NSData) SubdataWithRange

func (o *NSData) SubdataWithRange(range_ NSRange) *NSData

Returns a new data object containing the data object’s bytes that fall within the limits specified by a given range.

func (*NSData) WriteToFileAtomically

func (o *NSData) WriteToFileAtomically(path *NSString, useAuxiliaryFile bool) bool

Writes the data object’s bytes to the file specified by a given path.

func (*NSData) WriteToFileOptionsError

func (o *NSData) WriteToFileOptionsError(path *NSString, writeOptionsMask NSDataWritingOptions) (bool, error)

Writes the data object’s bytes to the file specified by a given path.

func (*NSData) WriteToURLAtomically

func (o *NSData) WriteToURLAtomically(url *NSURL, atomically bool) bool

Writes the data object’s bytes to the location specified by a given URL.

func (*NSData) WriteToURLOptionsError

func (o *NSData) WriteToURLOptionsError(url *NSURL, writeOptionsMask NSDataWritingOptions) (bool, error)

Writes the data object’s bytes to the location specified by a given URL.

type NSDataBase64DecodingOptions

type NSDataBase64DecodingOptions uint64

Options to modify the decoding algorithm used to decode Base64 encoded data.

const (
	NSDataBase64DecodingIgnoreUnknownCharacters NSDataBase64DecodingOptions = 1
)

func (NSDataBase64DecodingOptions) String

type NSDataBase64EncodingOptions

type NSDataBase64EncodingOptions uint64

Options for methods used to Base64 encode data.

const (
	NSDataBase64Encoding64CharacterLineLength     NSDataBase64EncodingOptions = 1
	NSDataBase64Encoding76CharacterLineLength     NSDataBase64EncodingOptions = 2
	NSDataBase64EncodingEndLineWithCarriageReturn NSDataBase64EncodingOptions = 16
	NSDataBase64EncodingEndLineWithLineFeed       NSDataBase64EncodingOptions = 32
)

func (NSDataBase64EncodingOptions) String

type NSDataCompressionAlgorithm

type NSDataCompressionAlgorithm int64

An algorithm that indicates how to compress or decompress data.

const (
	NSDataCompressionAlgorithmLZFSE NSDataCompressionAlgorithm = 0
	NSDataCompressionAlgorithmLZ4   NSDataCompressionAlgorithm = 1
	NSDataCompressionAlgorithmLZMA  NSDataCompressionAlgorithm = 2
	NSDataCompressionAlgorithmZlib  NSDataCompressionAlgorithm = 3
)

func (NSDataCompressionAlgorithm) String

type NSDataDetector

type NSDataDetector struct {
	NSRegularExpression
}

A specialized regular expression object that matches natural language text for predefined data patterns.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdatadetector

func NSDataDetectorDataDetectorWithTypesError

func NSDataDetectorDataDetectorWithTypesError(checkingTypes uint64) (*NSDataDetector, error)

Creates and returns a new data detector instance.

func NSDataDetectorFromID

func NSDataDetectorFromID(id objc.ID) *NSDataDetector

func (*NSDataDetector) CheckingTypes

func (o *NSDataDetector) CheckingTypes() uint64

func (*NSDataDetector) InitWithTypesError

func (o *NSDataDetector) InitWithTypesError(checkingTypes uint64) (*NSDataDetector, error)

Initializes and returns a data detector instance.

type NSDataReadingOptions

type NSDataReadingOptions uint64

Options for methods used to read data objects.

const (
	NSDataReadingMappedIfSafe NSDataReadingOptions = 1
	NSDataReadingUncached     NSDataReadingOptions = 2
	NSDataReadingMappedAlways NSDataReadingOptions = 8
	NSDataReadingMapped       NSDataReadingOptions = 1
	NSMappedRead              NSDataReadingOptions = 1
	NSUncachedRead            NSDataReadingOptions = 2
)

func (NSDataReadingOptions) String

func (e NSDataReadingOptions) String() string

type NSDataSearchOptions

type NSDataSearchOptions uint64

Options for method used to search data objects.

const (
	NSDataSearchBackwards NSDataSearchOptions = 1
	NSDataSearchAnchored  NSDataSearchOptions = 2
)

func (NSDataSearchOptions) String

func (e NSDataSearchOptions) String() string

type NSDataWritingOptions

type NSDataWritingOptions uint64

Options for methods used to write data objects.

const (
	NSDataWritingAtomic                                             NSDataWritingOptions = 1
	NSDataWritingWithoutOverwriting                                 NSDataWritingOptions = 2
	NSDataWritingFileProtectionNone                                 NSDataWritingOptions = 268435456
	NSDataWritingFileProtectionComplete                             NSDataWritingOptions = 536870912
	NSDataWritingFileProtectionCompleteUnlessOpen                   NSDataWritingOptions = 805306368
	NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication NSDataWritingOptions = 1073741824
	NSDataWritingFileProtectionMask                                 NSDataWritingOptions = 4026531840
	NSAtomicWrite                                                   NSDataWritingOptions = 1
)

func (NSDataWritingOptions) String

func (e NSDataWritingOptions) String() string

type NSDate

type NSDate struct {
	NSObject
}

A representation of a specific point in time, independent of any calendar or time zone.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdate

func NSDateDate

func NSDateDate() *NSDate

Creates and returns a new date object set to the current date and time.

func NSDateDateWithTimeIntervalSince1970

func NSDateDateWithTimeIntervalSince1970(secs float64) *NSDate

Creates and returns a date object set to the given number of seconds from 00:00:00 UTC on 1 January 1970.

func NSDateDateWithTimeIntervalSinceDate

func NSDateDateWithTimeIntervalSinceDate(secsToBeAdded float64, date *NSDate) *NSDate

Creates and returns a date object set to a given number of seconds from the specified date.

func NSDateDateWithTimeIntervalSinceNow

func NSDateDateWithTimeIntervalSinceNow(secs float64) *NSDate

Creates and returns a date object set to a given number of seconds from the current date and time.

func NSDateDateWithTimeIntervalSinceReferenceDate

func NSDateDateWithTimeIntervalSinceReferenceDate(ti float64) *NSDate

Creates and returns a date object set to a given number of seconds from 00:00:00 UTC on 1 January 2001.

func NSDateDistantFuture

func NSDateDistantFuture() *NSDate

func NSDateDistantPast

func NSDateDistantPast() *NSDate

func NSDateFromID

func NSDateFromID(id objc.ID) *NSDate

func NSDateNow

func NSDateNow() *NSDate

func (*NSDate) AddTimeInterval

func (o *NSDate) AddTimeInterval(seconds float64) objc.ID

Returns a new date object that is set to a given number of seconds relative to the receiver. Deprecated: Use dateByAddingTimeInterval instead

func (*NSDate) Compare

func (o *NSDate) Compare(other *NSDate) NSComparisonResult

Indicates the temporal ordering of the receiver and another given date.

func (*NSDate) DateByAddingTimeInterval

func (o *NSDate) DateByAddingTimeInterval(ti float64) *NSDate

Returns a new date object that is set to a given number of seconds relative to the receiver.

func (*NSDate) DateWithCalendarFormatTimeZone

func (o *NSDate) DateWithCalendarFormatTimeZone(format *NSString, aTimeZone *NSTimeZone) *NSCalendarDate

Converts the receiver to a calendar date with a given format string and time zone. Deprecated: since macOS 10.10.

func (*NSDate) DescriptionWithCalendarFormatTimeZoneLocale

func (o *NSDate) DescriptionWithCalendarFormatTimeZoneLocale(format *NSString, aTimeZone *NSTimeZone, locale objc.ID) *NSString

Returns a string representation of the date formatted as specified by given conversion specifiers. Deprecated: since macOS 10.10.

func (*NSDate) DescriptionWithLocale

func (o *NSDate) DescriptionWithLocale(locale objc.ID) *NSString

Returns a string representation of the date using the given locale.

func (*NSDate) EarlierDate

func (o *NSDate) EarlierDate(anotherDate *NSDate) *NSDate

Returns the earlier of the receiver and another given date.

func (*NSDate) Init

func (o *NSDate) Init() *NSDate

Returns a date object initialized to the current date and time.

func (*NSDate) InitWithCoder

func (o *NSDate) InitWithCoder(coder *NSCoder) *NSDate

Returns a date object initialized from data in the given unarchiver.

func (*NSDate) InitWithString

func (o *NSDate) InitWithString(description *NSString) objc.ID

Returns a date object initialized with a date and time value specified by a given string in the international string representation format. Deprecated: Use NSDateFormatter instead

func (*NSDate) InitWithTimeIntervalSince1970

func (o *NSDate) InitWithTimeIntervalSince1970(secs float64) *NSDate

Returns a date object initialized relative to 00:00:00 UTC on 1 January 1970 by a given number of seconds.

func (*NSDate) InitWithTimeIntervalSinceDate

func (o *NSDate) InitWithTimeIntervalSinceDate(secsToBeAdded float64, date *NSDate) *NSDate

Returns a date object initialized relative to another given date by a given number of seconds.

func (*NSDate) InitWithTimeIntervalSinceNow

func (o *NSDate) InitWithTimeIntervalSinceNow(secs float64) *NSDate

Returns a date object initialized relative to the current date and time by a given number of seconds.

func (*NSDate) InitWithTimeIntervalSinceReferenceDate

func (o *NSDate) InitWithTimeIntervalSinceReferenceDate(ti float64) *NSDate

Returns a date object initialized relative to 00:00:00 UTC on 1 January 2001 by a given number of seconds.

func (*NSDate) IsEqualToDate

func (o *NSDate) IsEqualToDate(otherDate *NSDate) bool

Returns a Boolean value that indicates whether a given object is a date that is exactly equal the receiver.

func (*NSDate) LaterDate

func (o *NSDate) LaterDate(anotherDate *NSDate) *NSDate

Returns the later of the receiver and another given date.

func (*NSDate) TimeIntervalSince1970

func (o *NSDate) TimeIntervalSince1970() float64

func (*NSDate) TimeIntervalSinceDate

func (o *NSDate) TimeIntervalSinceDate(anotherDate *NSDate) float64

Returns the interval between the receiver and another given date.

func (*NSDate) TimeIntervalSinceNow

func (o *NSDate) TimeIntervalSinceNow() float64

func (*NSDate) TimeIntervalSinceReferenceDate

func (o *NSDate) TimeIntervalSinceReferenceDate() float64

type NSDateComponents

type NSDateComponents struct {
	NSObject
}

An object that specifies a date or time in terms of units (such as year, month, day, hour, and minute) to be evaluated in a calendar system and time zone.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdatecomponents Deprecated: since macOS 10.10.

func NSDateComponentsFromID

func NSDateComponentsFromID(id objc.ID) *NSDateComponents

func (*NSDateComponents) Calendar

func (o *NSDateComponents) Calendar() *NSCalendar

func (*NSDateComponents) Date

func (o *NSDateComponents) Date() *NSDate

func (*NSDateComponents) Day

func (o *NSDateComponents) Day() int

func (*NSDateComponents) DayOfYear

func (o *NSDateComponents) DayOfYear() int

func (*NSDateComponents) Era

func (o *NSDateComponents) Era() int

func (*NSDateComponents) Hour

func (o *NSDateComponents) Hour() int

func (*NSDateComponents) IsLeapMonth

func (o *NSDateComponents) IsLeapMonth() bool

func (*NSDateComponents) IsRepeatedDay

func (o *NSDateComponents) IsRepeatedDay() bool

func (*NSDateComponents) IsValidDate

func (o *NSDateComponents) IsValidDate() bool

func (*NSDateComponents) IsValidDateInCalendar

func (o *NSDateComponents) IsValidDateInCalendar(calendar *NSCalendar) bool

Returns a Boolean value that indicates whether the current combination of properties represents a date which exists in the specified calendar.

func (*NSDateComponents) Minute

func (o *NSDateComponents) Minute() int

func (*NSDateComponents) Month

func (o *NSDateComponents) Month() int

func (*NSDateComponents) Nanosecond

func (o *NSDateComponents) Nanosecond() int

func (*NSDateComponents) Quarter

func (o *NSDateComponents) Quarter() int

func (*NSDateComponents) Second

func (o *NSDateComponents) Second() int

func (*NSDateComponents) SetCalendar

func (o *NSDateComponents) SetCalendar(calendar *NSCalendar)

func (*NSDateComponents) SetDay

func (o *NSDateComponents) SetDay(day int)

func (*NSDateComponents) SetDayOfYear

func (o *NSDateComponents) SetDayOfYear(dayOfYear int)

func (*NSDateComponents) SetEra

func (o *NSDateComponents) SetEra(era int)

func (*NSDateComponents) SetHour

func (o *NSDateComponents) SetHour(hour int)

func (*NSDateComponents) SetLeapMonth

func (o *NSDateComponents) SetLeapMonth(leapMonth bool)

func (*NSDateComponents) SetMinute

func (o *NSDateComponents) SetMinute(minute int)

func (*NSDateComponents) SetMonth

func (o *NSDateComponents) SetMonth(month int)

func (*NSDateComponents) SetNanosecond

func (o *NSDateComponents) SetNanosecond(nanosecond int)

func (*NSDateComponents) SetQuarter

func (o *NSDateComponents) SetQuarter(quarter int)

func (*NSDateComponents) SetRepeatedDay

func (o *NSDateComponents) SetRepeatedDay(repeatedDay bool)

func (*NSDateComponents) SetSecond

func (o *NSDateComponents) SetSecond(second int)

func (*NSDateComponents) SetTimeZone

func (o *NSDateComponents) SetTimeZone(timeZone *NSTimeZone)

func (*NSDateComponents) SetValueForComponent

func (o *NSDateComponents) SetValueForComponent(value int, unit NSCalendarUnit)

Sets a value for a given calendar unit.

func (*NSDateComponents) SetWeek

func (o *NSDateComponents) SetWeek(v int)

Sets the number of weeks. Deprecated: Use -setWeekOfMonth: or -setWeekOfYear:, depending on which you mean

func (*NSDateComponents) SetWeekOfMonth

func (o *NSDateComponents) SetWeekOfMonth(weekOfMonth int)

func (*NSDateComponents) SetWeekOfYear

func (o *NSDateComponents) SetWeekOfYear(weekOfYear int)

func (*NSDateComponents) SetWeekday

func (o *NSDateComponents) SetWeekday(weekday int)

func (*NSDateComponents) SetWeekdayOrdinal

func (o *NSDateComponents) SetWeekdayOrdinal(weekdayOrdinal int)

func (*NSDateComponents) SetYear

func (o *NSDateComponents) SetYear(year int)

func (*NSDateComponents) SetYearForWeekOfYear

func (o *NSDateComponents) SetYearForWeekOfYear(yearForWeekOfYear int)

func (*NSDateComponents) TimeZone

func (o *NSDateComponents) TimeZone() *NSTimeZone

func (*NSDateComponents) ValueForComponent

func (o *NSDateComponents) ValueForComponent(unit NSCalendarUnit) int

Returns the value for a given calendar unit.

func (*NSDateComponents) Week

func (o *NSDateComponents) Week() int

Returns the number of weeks. Deprecated: Use -weekOfMonth or -weekOfYear, depending on which you mean

func (*NSDateComponents) WeekOfMonth

func (o *NSDateComponents) WeekOfMonth() int

func (*NSDateComponents) WeekOfYear

func (o *NSDateComponents) WeekOfYear() int

func (*NSDateComponents) Weekday

func (o *NSDateComponents) Weekday() int

func (*NSDateComponents) WeekdayOrdinal

func (o *NSDateComponents) WeekdayOrdinal() int

func (*NSDateComponents) Year

func (o *NSDateComponents) Year() int

func (*NSDateComponents) YearForWeekOfYear

func (o *NSDateComponents) YearForWeekOfYear() int

type NSDateComponentsFormatter

type NSDateComponentsFormatter struct {
	NSFormatter
}

A formatter that creates string representations of quantities of time.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter

func NSDateComponentsFormatterFromID

func NSDateComponentsFormatterFromID(id objc.ID) *NSDateComponentsFormatter

func (*NSDateComponentsFormatter) AllowedUnits

func (o *NSDateComponentsFormatter) AllowedUnits() NSCalendarUnit

func (*NSDateComponentsFormatter) AllowsFractionalUnits

func (o *NSDateComponentsFormatter) AllowsFractionalUnits() bool

func (*NSDateComponentsFormatter) Calendar

func (o *NSDateComponentsFormatter) Calendar() *NSCalendar

func (*NSDateComponentsFormatter) CollapsesLargestUnit

func (o *NSDateComponentsFormatter) CollapsesLargestUnit() bool

func (*NSDateComponentsFormatter) FormattingContext

func (o *NSDateComponentsFormatter) FormattingContext() NSFormattingContext

func (*NSDateComponentsFormatter) IncludesApproximationPhrase

func (o *NSDateComponentsFormatter) IncludesApproximationPhrase() bool

func (*NSDateComponentsFormatter) IncludesTimeRemainingPhrase

func (o *NSDateComponentsFormatter) IncludesTimeRemainingPhrase() bool

func (*NSDateComponentsFormatter) MaximumUnitCount

func (o *NSDateComponentsFormatter) MaximumUnitCount() int

func (*NSDateComponentsFormatter) ReferenceDate

func (o *NSDateComponentsFormatter) ReferenceDate() *NSDate

func (*NSDateComponentsFormatter) SetAllowedUnits

func (o *NSDateComponentsFormatter) SetAllowedUnits(allowedUnits NSCalendarUnit)

func (*NSDateComponentsFormatter) SetAllowsFractionalUnits

func (o *NSDateComponentsFormatter) SetAllowsFractionalUnits(allowsFractionalUnits bool)

func (*NSDateComponentsFormatter) SetCalendar

func (o *NSDateComponentsFormatter) SetCalendar(calendar *NSCalendar)

func (*NSDateComponentsFormatter) SetCollapsesLargestUnit

func (o *NSDateComponentsFormatter) SetCollapsesLargestUnit(collapsesLargestUnit bool)

func (*NSDateComponentsFormatter) SetFormattingContext

func (o *NSDateComponentsFormatter) SetFormattingContext(formattingContext NSFormattingContext)

func (*NSDateComponentsFormatter) SetIncludesApproximationPhrase

func (o *NSDateComponentsFormatter) SetIncludesApproximationPhrase(includesApproximationPhrase bool)

func (*NSDateComponentsFormatter) SetIncludesTimeRemainingPhrase

func (o *NSDateComponentsFormatter) SetIncludesTimeRemainingPhrase(includesTimeRemainingPhrase bool)

func (*NSDateComponentsFormatter) SetMaximumUnitCount

func (o *NSDateComponentsFormatter) SetMaximumUnitCount(maximumUnitCount int)

func (*NSDateComponentsFormatter) SetReferenceDate

func (o *NSDateComponentsFormatter) SetReferenceDate(referenceDate *NSDate)

func (*NSDateComponentsFormatter) SetUnitsStyle

func (*NSDateComponentsFormatter) SetZeroFormattingBehavior

func (o *NSDateComponentsFormatter) SetZeroFormattingBehavior(zeroFormattingBehavior NSDateComponentsFormatterZeroFormattingBehavior)

func (*NSDateComponentsFormatter) StringFromDateComponents

func (o *NSDateComponentsFormatter) StringFromDateComponents(components *NSDateComponents) *NSString

func (*NSDateComponentsFormatter) StringFromDateToDate

func (o *NSDateComponentsFormatter) StringFromDateToDate(startDate *NSDate, endDate *NSDate) *NSString

func (*NSDateComponentsFormatter) StringFromTimeInterval

func (o *NSDateComponentsFormatter) StringFromTimeInterval(ti float64) *NSString

func (*NSDateComponentsFormatter) UnitsStyle

func (*NSDateComponentsFormatter) ZeroFormattingBehavior

type NSDateComponentsFormatterUnitsStyle

type NSDateComponentsFormatterUnitsStyle int64

Constants for specifying how to represent quantities of time.

const (
	NSDateComponentsFormatterUnitsStylePositional  NSDateComponentsFormatterUnitsStyle = 0
	NSDateComponentsFormatterUnitsStyleAbbreviated NSDateComponentsFormatterUnitsStyle = 1
	NSDateComponentsFormatterUnitsStyleShort       NSDateComponentsFormatterUnitsStyle = 2
	NSDateComponentsFormatterUnitsStyleFull        NSDateComponentsFormatterUnitsStyle = 3
	NSDateComponentsFormatterUnitsStyleSpellOut    NSDateComponentsFormatterUnitsStyle = 4
	NSDateComponentsFormatterUnitsStyleBrief       NSDateComponentsFormatterUnitsStyle = 5
)

func (NSDateComponentsFormatterUnitsStyle) String

type NSDateComponentsFormatterZeroFormattingBehavior

type NSDateComponentsFormatterZeroFormattingBehavior uint64

Formatting constants for when values contain zeroes.

const (
	// No formatting behavior. This behavior prevents the dropping of zero values or adding of zeroes for padding. For example, with hours, minutes, and seconds displayed, the abbreviated value for one hour and 10 seconds is “1h 0m 10s”.
	NSDateComponentsFormatterZeroFormattingBehaviorNone         NSDateComponentsFormatterZeroFormattingBehavior = 0
	NSDateComponentsFormatterZeroFormattingBehaviorDefault      NSDateComponentsFormatterZeroFormattingBehavior = 1
	NSDateComponentsFormatterZeroFormattingBehaviorDropLeading  NSDateComponentsFormatterZeroFormattingBehavior = 2
	NSDateComponentsFormatterZeroFormattingBehaviorDropMiddle   NSDateComponentsFormatterZeroFormattingBehavior = 4
	NSDateComponentsFormatterZeroFormattingBehaviorDropTrailing NSDateComponentsFormatterZeroFormattingBehavior = 8
	NSDateComponentsFormatterZeroFormattingBehaviorDropAll      NSDateComponentsFormatterZeroFormattingBehavior = 14
	NSDateComponentsFormatterZeroFormattingBehaviorPad          NSDateComponentsFormatterZeroFormattingBehavior = 65536
)

func (NSDateComponentsFormatterZeroFormattingBehavior) String

type NSDateFormatter

type NSDateFormatter struct {
	NSFormatter
}

A formatter that converts between dates and their textual representations.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdateformatter

func NSDateFormatterFromID

func NSDateFormatterFromID(id objc.ID) *NSDateFormatter

func (*NSDateFormatter) AMSymbol

func (o *NSDateFormatter) AMSymbol() *NSString

func (*NSDateFormatter) AllowsNaturalLanguage

func (o *NSDateFormatter) AllowsNaturalLanguage() bool

Returns a Boolean value that indicates whether the receiver attempts to process dates entered as a vernacular string. Deprecated: There is no replacement

func (*NSDateFormatter) Calendar

func (o *NSDateFormatter) Calendar() *NSCalendar

func (*NSDateFormatter) DateFormat

func (o *NSDateFormatter) DateFormat() *NSString

func (*NSDateFormatter) DateFromString

func (o *NSDateFormatter) DateFromString(string_ *NSString) *NSDate

func (*NSDateFormatter) DateStyle

func (o *NSDateFormatter) DateStyle() NSDateFormatterStyle

func (*NSDateFormatter) DefaultDate

func (o *NSDateFormatter) DefaultDate() *NSDate

func (*NSDateFormatter) DoesRelativeDateFormatting

func (o *NSDateFormatter) DoesRelativeDateFormatting() bool

func (*NSDateFormatter) EraSymbols

func (o *NSDateFormatter) EraSymbols() *NSArray[*NSString]

func (*NSDateFormatter) FormatterBehavior

func (o *NSDateFormatter) FormatterBehavior() NSDateFormatterBehavior

func (*NSDateFormatter) FormattingContext

func (o *NSDateFormatter) FormattingContext() NSFormattingContext

func (*NSDateFormatter) GeneratesCalendarDates

func (o *NSDateFormatter) GeneratesCalendarDates() bool

func (*NSDateFormatter) GetObjectValueForStringRangeError

func (o *NSDateFormatter) GetObjectValueForStringRangeError(obj **ObjcObject, string_ *NSString, rangep *NSRange) (bool, error)

func (*NSDateFormatter) GregorianStartDate

func (o *NSDateFormatter) GregorianStartDate() *NSDate

func (*NSDateFormatter) InitWithDateFormatAllowNaturalLanguage

func (o *NSDateFormatter) InitWithDateFormatAllowNaturalLanguage(format *NSString, flag bool) objc.ID

Initializes and returns an NSDateFormatter instance that uses the OS X 10.0 formatting behavior and the given date format string in its conversions. Deprecated: Create an NSDateFormatter with `init` and set the dateFormat property instead.

func (*NSDateFormatter) IsLenient

func (o *NSDateFormatter) IsLenient() bool

func (*NSDateFormatter) Locale

func (o *NSDateFormatter) Locale() *NSLocale

func (*NSDateFormatter) LongEraSymbols

func (o *NSDateFormatter) LongEraSymbols() *NSArray[*NSString]

func (*NSDateFormatter) MonthSymbols

func (o *NSDateFormatter) MonthSymbols() *NSArray[*NSString]

func (*NSDateFormatter) PMSymbol

func (o *NSDateFormatter) PMSymbol() *NSString

func (*NSDateFormatter) QuarterSymbols

func (o *NSDateFormatter) QuarterSymbols() *NSArray[*NSString]

func (*NSDateFormatter) SetAMSymbol

func (o *NSDateFormatter) SetAMSymbol(aMSymbol *NSString)

func (*NSDateFormatter) SetCalendar

func (o *NSDateFormatter) SetCalendar(calendar *NSCalendar)

func (*NSDateFormatter) SetDateFormat

func (o *NSDateFormatter) SetDateFormat(dateFormat *NSString)

func (*NSDateFormatter) SetDateStyle

func (o *NSDateFormatter) SetDateStyle(dateStyle NSDateFormatterStyle)

func (*NSDateFormatter) SetDefaultDate

func (o *NSDateFormatter) SetDefaultDate(defaultDate *NSDate)

func (*NSDateFormatter) SetDoesRelativeDateFormatting

func (o *NSDateFormatter) SetDoesRelativeDateFormatting(doesRelativeDateFormatting bool)

func (*NSDateFormatter) SetEraSymbols

func (o *NSDateFormatter) SetEraSymbols(eraSymbols *NSArray[*NSString])

func (*NSDateFormatter) SetFormatterBehavior

func (o *NSDateFormatter) SetFormatterBehavior(formatterBehavior NSDateFormatterBehavior)

func (*NSDateFormatter) SetFormattingContext

func (o *NSDateFormatter) SetFormattingContext(formattingContext NSFormattingContext)

func (*NSDateFormatter) SetGeneratesCalendarDates

func (o *NSDateFormatter) SetGeneratesCalendarDates(generatesCalendarDates bool)

func (*NSDateFormatter) SetGregorianStartDate

func (o *NSDateFormatter) SetGregorianStartDate(gregorianStartDate *NSDate)

func (*NSDateFormatter) SetLenient

func (o *NSDateFormatter) SetLenient(lenient bool)

func (*NSDateFormatter) SetLocale

func (o *NSDateFormatter) SetLocale(locale *NSLocale)

func (*NSDateFormatter) SetLocalizedDateFormatFromTemplate

func (o *NSDateFormatter) SetLocalizedDateFormatFromTemplate(dateFormatTemplate *NSString)

func (*NSDateFormatter) SetLongEraSymbols

func (o *NSDateFormatter) SetLongEraSymbols(longEraSymbols *NSArray[*NSString])

func (*NSDateFormatter) SetMonthSymbols

func (o *NSDateFormatter) SetMonthSymbols(monthSymbols *NSArray[*NSString])

func (*NSDateFormatter) SetPMSymbol

func (o *NSDateFormatter) SetPMSymbol(pMSymbol *NSString)

func (*NSDateFormatter) SetQuarterSymbols

func (o *NSDateFormatter) SetQuarterSymbols(quarterSymbols *NSArray[*NSString])

func (*NSDateFormatter) SetShortMonthSymbols

func (o *NSDateFormatter) SetShortMonthSymbols(shortMonthSymbols *NSArray[*NSString])

func (*NSDateFormatter) SetShortQuarterSymbols

func (o *NSDateFormatter) SetShortQuarterSymbols(shortQuarterSymbols *NSArray[*NSString])

func (*NSDateFormatter) SetShortStandaloneMonthSymbols

func (o *NSDateFormatter) SetShortStandaloneMonthSymbols(shortStandaloneMonthSymbols *NSArray[*NSString])

func (*NSDateFormatter) SetShortStandaloneQuarterSymbols

func (o *NSDateFormatter) SetShortStandaloneQuarterSymbols(shortStandaloneQuarterSymbols *NSArray[*NSString])

func (*NSDateFormatter) SetShortStandaloneWeekdaySymbols

func (o *NSDateFormatter) SetShortStandaloneWeekdaySymbols(shortStandaloneWeekdaySymbols *NSArray[*NSString])

func (*NSDateFormatter) SetShortWeekdaySymbols

func (o *NSDateFormatter) SetShortWeekdaySymbols(shortWeekdaySymbols *NSArray[*NSString])

func (*NSDateFormatter) SetStandaloneMonthSymbols

func (o *NSDateFormatter) SetStandaloneMonthSymbols(standaloneMonthSymbols *NSArray[*NSString])

func (*NSDateFormatter) SetStandaloneQuarterSymbols

func (o *NSDateFormatter) SetStandaloneQuarterSymbols(standaloneQuarterSymbols *NSArray[*NSString])

func (*NSDateFormatter) SetStandaloneWeekdaySymbols

func (o *NSDateFormatter) SetStandaloneWeekdaySymbols(standaloneWeekdaySymbols *NSArray[*NSString])

func (*NSDateFormatter) SetTimeStyle

func (o *NSDateFormatter) SetTimeStyle(timeStyle NSDateFormatterStyle)

func (*NSDateFormatter) SetTimeZone

func (o *NSDateFormatter) SetTimeZone(timeZone *NSTimeZone)

func (*NSDateFormatter) SetTwoDigitStartDate

func (o *NSDateFormatter) SetTwoDigitStartDate(twoDigitStartDate *NSDate)

func (*NSDateFormatter) SetVeryShortMonthSymbols

func (o *NSDateFormatter) SetVeryShortMonthSymbols(veryShortMonthSymbols *NSArray[*NSString])

func (*NSDateFormatter) SetVeryShortStandaloneMonthSymbols

func (o *NSDateFormatter) SetVeryShortStandaloneMonthSymbols(veryShortStandaloneMonthSymbols *NSArray[*NSString])

func (*NSDateFormatter) SetVeryShortStandaloneWeekdaySymbols

func (o *NSDateFormatter) SetVeryShortStandaloneWeekdaySymbols(veryShortStandaloneWeekdaySymbols *NSArray[*NSString])

func (*NSDateFormatter) SetVeryShortWeekdaySymbols

func (o *NSDateFormatter) SetVeryShortWeekdaySymbols(veryShortWeekdaySymbols *NSArray[*NSString])

func (*NSDateFormatter) SetWeekdaySymbols

func (o *NSDateFormatter) SetWeekdaySymbols(weekdaySymbols *NSArray[*NSString])

func (*NSDateFormatter) ShortMonthSymbols

func (o *NSDateFormatter) ShortMonthSymbols() *NSArray[*NSString]

func (*NSDateFormatter) ShortQuarterSymbols

func (o *NSDateFormatter) ShortQuarterSymbols() *NSArray[*NSString]

func (*NSDateFormatter) ShortStandaloneMonthSymbols

func (o *NSDateFormatter) ShortStandaloneMonthSymbols() *NSArray[*NSString]

func (*NSDateFormatter) ShortStandaloneQuarterSymbols

func (o *NSDateFormatter) ShortStandaloneQuarterSymbols() *NSArray[*NSString]

func (*NSDateFormatter) ShortStandaloneWeekdaySymbols

func (o *NSDateFormatter) ShortStandaloneWeekdaySymbols() *NSArray[*NSString]

func (*NSDateFormatter) ShortWeekdaySymbols

func (o *NSDateFormatter) ShortWeekdaySymbols() *NSArray[*NSString]

func (*NSDateFormatter) StandaloneMonthSymbols

func (o *NSDateFormatter) StandaloneMonthSymbols() *NSArray[*NSString]

func (*NSDateFormatter) StandaloneQuarterSymbols

func (o *NSDateFormatter) StandaloneQuarterSymbols() *NSArray[*NSString]

func (*NSDateFormatter) StandaloneWeekdaySymbols

func (o *NSDateFormatter) StandaloneWeekdaySymbols() *NSArray[*NSString]

func (*NSDateFormatter) StringFromDate

func (o *NSDateFormatter) StringFromDate(date *NSDate) *NSString

func (*NSDateFormatter) TimeStyle

func (o *NSDateFormatter) TimeStyle() NSDateFormatterStyle

func (*NSDateFormatter) TimeZone

func (o *NSDateFormatter) TimeZone() *NSTimeZone

func (*NSDateFormatter) TwoDigitStartDate

func (o *NSDateFormatter) TwoDigitStartDate() *NSDate

func (*NSDateFormatter) VeryShortMonthSymbols

func (o *NSDateFormatter) VeryShortMonthSymbols() *NSArray[*NSString]

func (*NSDateFormatter) VeryShortStandaloneMonthSymbols

func (o *NSDateFormatter) VeryShortStandaloneMonthSymbols() *NSArray[*NSString]

func (*NSDateFormatter) VeryShortStandaloneWeekdaySymbols

func (o *NSDateFormatter) VeryShortStandaloneWeekdaySymbols() *NSArray[*NSString]

func (*NSDateFormatter) VeryShortWeekdaySymbols

func (o *NSDateFormatter) VeryShortWeekdaySymbols() *NSArray[*NSString]

func (*NSDateFormatter) WeekdaySymbols

func (o *NSDateFormatter) WeekdaySymbols() *NSArray[*NSString]

type NSDateFormatterBehavior

type NSDateFormatterBehavior uint64

Constants that specify the behavior NSDateFormatter should exhibit.

const (
	NSDateFormatterBehaviorDefault NSDateFormatterBehavior = 0
	NSDateFormatterBehavior10_0    NSDateFormatterBehavior = 1000
	NSDateFormatterBehavior10_4    NSDateFormatterBehavior = 1040
)

func NSDateFormatterDefaultFormatterBehavior

func NSDateFormatterDefaultFormatterBehavior() NSDateFormatterBehavior

func (NSDateFormatterBehavior) String

func (e NSDateFormatterBehavior) String() string

type NSDateFormatterStyle

type NSDateFormatterStyle uint64

The following constants specify predefined format styles for dates and times.

const (
	NSDateFormatterNoStyle     NSDateFormatterStyle = 0
	NSDateFormatterShortStyle  NSDateFormatterStyle = 1
	NSDateFormatterMediumStyle NSDateFormatterStyle = 2
	NSDateFormatterLongStyle   NSDateFormatterStyle = 3
	NSDateFormatterFullStyle   NSDateFormatterStyle = 4
)

func (NSDateFormatterStyle) String

func (e NSDateFormatterStyle) String() string

type NSDateInterval

type NSDateInterval struct {
	NSObject
}

An object representing the span of time between a specific start date and end date.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdateinterval

func NSDateIntervalFromID

func NSDateIntervalFromID(id objc.ID) *NSDateInterval

func (*NSDateInterval) Compare

func (o *NSDateInterval) Compare(dateInterval *NSDateInterval) NSComparisonResult

Compares the receiver with the specified date interval.

func (*NSDateInterval) ContainsDate

func (o *NSDateInterval) ContainsDate(date *NSDate) bool

Indicates whether the receiver contains the specified date.

func (*NSDateInterval) Duration

func (o *NSDateInterval) Duration() float64

func (*NSDateInterval) EndDate

func (o *NSDateInterval) EndDate() *NSDate

func (*NSDateInterval) Init

func (o *NSDateInterval) Init() *NSDateInterval

Initializes a date interval by setting the start and end date to the current date.

func (*NSDateInterval) InitWithCoder

func (o *NSDateInterval) InitWithCoder(coder *NSCoder) *NSDateInterval

Returns a date interval initialized from data in the given unarchiver.

func (*NSDateInterval) InitWithStartDateDuration

func (o *NSDateInterval) InitWithStartDateDuration(startDate *NSDate, duration float64) *NSDateInterval

Initializes a date interval with a given start date and duration.

func (*NSDateInterval) InitWithStartDateEndDate

func (o *NSDateInterval) InitWithStartDateEndDate(startDate *NSDate, endDate *NSDate) *NSDateInterval

Initializes a date interval from a given start date and end date.

func (*NSDateInterval) IntersectionWithDateInterval

func (o *NSDateInterval) IntersectionWithDateInterval(dateInterval *NSDateInterval) *NSDateInterval

Returns the intersection between the receiver and the specified date interval.

func (*NSDateInterval) IntersectsDateInterval

func (o *NSDateInterval) IntersectsDateInterval(dateInterval *NSDateInterval) bool

Indicates whether the receiver intersects with the specified date interval.

func (*NSDateInterval) IsEqualToDateInterval

func (o *NSDateInterval) IsEqualToDateInterval(dateInterval *NSDateInterval) bool

Indicates whether the receiver is equal to the specified date interval.

func (*NSDateInterval) StartDate

func (o *NSDateInterval) StartDate() *NSDate

type NSDateIntervalFormatter

type NSDateIntervalFormatter struct {
	NSFormatter
}

A formatter that creates string representations of time intervals.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdateintervalformatter

func NSDateIntervalFormatterFromID

func NSDateIntervalFormatterFromID(id objc.ID) *NSDateIntervalFormatter

func (*NSDateIntervalFormatter) Calendar

func (o *NSDateIntervalFormatter) Calendar() *NSCalendar

func (*NSDateIntervalFormatter) DateStyle

func (*NSDateIntervalFormatter) DateTemplate

func (o *NSDateIntervalFormatter) DateTemplate() *NSString

func (*NSDateIntervalFormatter) Locale

func (o *NSDateIntervalFormatter) Locale() *NSLocale

func (*NSDateIntervalFormatter) SetCalendar

func (o *NSDateIntervalFormatter) SetCalendar(calendar *NSCalendar)

func (*NSDateIntervalFormatter) SetDateStyle

func (o *NSDateIntervalFormatter) SetDateStyle(dateStyle NSDateIntervalFormatterStyle)

func (*NSDateIntervalFormatter) SetDateTemplate

func (o *NSDateIntervalFormatter) SetDateTemplate(dateTemplate *NSString)

func (*NSDateIntervalFormatter) SetLocale

func (o *NSDateIntervalFormatter) SetLocale(locale *NSLocale)

func (*NSDateIntervalFormatter) SetTimeStyle

func (o *NSDateIntervalFormatter) SetTimeStyle(timeStyle NSDateIntervalFormatterStyle)

func (*NSDateIntervalFormatter) SetTimeZone

func (o *NSDateIntervalFormatter) SetTimeZone(timeZone *NSTimeZone)

func (*NSDateIntervalFormatter) StringFromDateInterval

func (o *NSDateIntervalFormatter) StringFromDateInterval(dateInterval *NSDateInterval) *NSString

func (*NSDateIntervalFormatter) StringFromDateToDate

func (o *NSDateIntervalFormatter) StringFromDateToDate(fromDate *NSDate, toDate *NSDate) *NSString

func (*NSDateIntervalFormatter) TimeStyle

func (*NSDateIntervalFormatter) TimeZone

func (o *NSDateIntervalFormatter) TimeZone() *NSTimeZone

type NSDateIntervalFormatterStyle

type NSDateIntervalFormatterStyle uint64

Formatting styles for individual date and time values.

const (
	NSDateIntervalFormatterNoStyle     NSDateIntervalFormatterStyle = 0
	NSDateIntervalFormatterShortStyle  NSDateIntervalFormatterStyle = 1
	NSDateIntervalFormatterMediumStyle NSDateIntervalFormatterStyle = 2
	NSDateIntervalFormatterLongStyle   NSDateIntervalFormatterStyle = 3
	NSDateIntervalFormatterFullStyle   NSDateIntervalFormatterStyle = 4
)

func (NSDateIntervalFormatterStyle) String

type NSDecimal

type NSDecimal struct {
}

A structure representing a base-10 number.

type NSDecimalNumber

type NSDecimalNumber struct {
	NSNumber
}

An object for representing and performing arithmetic on base-10 numbers.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdecimalnumber

func NSDecimalNumberDecimalNumberWithDecimal

func NSDecimalNumberDecimalNumberWithDecimal(dcm NSDecimal) *NSDecimalNumber

Creates and returns a decimal number equivalent to a given decimal structure.

func NSDecimalNumberDecimalNumberWithMantissaExponentIsNegative

func NSDecimalNumberDecimalNumberWithMantissaExponentIsNegative(mantissa uint64, exponent int16, flag bool) *NSDecimalNumber

Creates and returns a decimal number equivalent to the number specified by the arguments.

func NSDecimalNumberDecimalNumberWithString

func NSDecimalNumberDecimalNumberWithString(numberValue *NSString) *NSDecimalNumber

Creates a decimal number whose value is equivalent to that in a given numeric string.

func NSDecimalNumberDecimalNumberWithStringLocale

func NSDecimalNumberDecimalNumberWithStringLocale(numberValue *NSString, locale objc.ID) *NSDecimalNumber

Creates a decimal number whose value is equivalent to that in a given numeric string, interpreted using a given locale.

func NSDecimalNumberFromID

func NSDecimalNumberFromID(id objc.ID) *NSDecimalNumber

func NSDecimalNumberMaximumDecimalNumber

func NSDecimalNumberMaximumDecimalNumber() *NSDecimalNumber

func NSDecimalNumberMinimumDecimalNumber

func NSDecimalNumberMinimumDecimalNumber() *NSDecimalNumber

func NSDecimalNumberNotANumber

func NSDecimalNumberNotANumber() *NSDecimalNumber

func NSDecimalNumberOne

func NSDecimalNumberOne() *NSDecimalNumber

func NSDecimalNumberZero

func NSDecimalNumberZero() *NSDecimalNumber

func (*NSDecimalNumber) DecimalNumberByAdding

func (o *NSDecimalNumber) DecimalNumberByAdding(decimalNumber *NSDecimalNumber) *NSDecimalNumber

Adds this number to another given number.

func (*NSDecimalNumber) DecimalNumberByAddingWithBehavior

func (o *NSDecimalNumber) DecimalNumberByAddingWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber

Adds this number to another given number using the specified behavior.

func (*NSDecimalNumber) DecimalNumberByDividingBy

func (o *NSDecimalNumber) DecimalNumberByDividingBy(decimalNumber *NSDecimalNumber) *NSDecimalNumber

Divides the number by another given number.

func (*NSDecimalNumber) DecimalNumberByDividingByWithBehavior

func (o *NSDecimalNumber) DecimalNumberByDividingByWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber

Divides this number by another given number using the specified behavior.

func (*NSDecimalNumber) DecimalNumberByMultiplyingBy

func (o *NSDecimalNumber) DecimalNumberByMultiplyingBy(decimalNumber *NSDecimalNumber) *NSDecimalNumber

Multiplies the number by another given number.

func (*NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10

func (o *NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10(power int16) *NSDecimalNumber

Multiplies the number by 10 raised to the given power.

func (*NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10WithBehavior

func (o *NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10WithBehavior(power int16, behavior NSDecimalNumberBehaviors) *NSDecimalNumber

Multiplies the number by 10 raised to the given power using the specified behavior.

func (*NSDecimalNumber) DecimalNumberByMultiplyingByWithBehavior

func (o *NSDecimalNumber) DecimalNumberByMultiplyingByWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber

Multiplies this number by another given number using the specified behavior.

func (*NSDecimalNumber) DecimalNumberByRaisingToPower

func (o *NSDecimalNumber) DecimalNumberByRaisingToPower(power uint) *NSDecimalNumber

Raises the number to a given power.

func (*NSDecimalNumber) DecimalNumberByRaisingToPowerWithBehavior

func (o *NSDecimalNumber) DecimalNumberByRaisingToPowerWithBehavior(power uint, behavior NSDecimalNumberBehaviors) *NSDecimalNumber

Raises the number to a given power using the specified behavior.

func (*NSDecimalNumber) DecimalNumberByRoundingAccordingToBehavior

func (o *NSDecimalNumber) DecimalNumberByRoundingAccordingToBehavior(behavior NSDecimalNumberBehaviors) *NSDecimalNumber

Returns a rounded version of the decimal number using the specified rounding behavior.

func (*NSDecimalNumber) DecimalNumberBySubtracting

func (o *NSDecimalNumber) DecimalNumberBySubtracting(decimalNumber *NSDecimalNumber) *NSDecimalNumber

Subtracts another given number from this one.

func (*NSDecimalNumber) DecimalNumberBySubtractingWithBehavior

func (o *NSDecimalNumber) DecimalNumberBySubtractingWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber

Subtracts this a given number from this one using the specified behavior.

func (*NSDecimalNumber) InitWithDecimal

func (o *NSDecimalNumber) InitWithDecimal(dcm NSDecimal) *NSDecimalNumber

Initializes a decimal number to represent a given decimal.

func (*NSDecimalNumber) InitWithMantissaExponentIsNegative

func (o *NSDecimalNumber) InitWithMantissaExponentIsNegative(mantissa uint64, exponent int16, flag bool) *NSDecimalNumber

Initializes a decimal number using the given mantissa, exponent, and sign.

func (*NSDecimalNumber) InitWithString

func (o *NSDecimalNumber) InitWithString(numberValue *NSString) *NSDecimalNumber

Initializes a decimal number so that its value is equivalent to that in a given numeric string.

func (*NSDecimalNumber) InitWithStringLocale

func (o *NSDecimalNumber) InitWithStringLocale(numberValue *NSString, locale objc.ID) *NSDecimalNumber

Initializes a decimal number so that its value is equivalent to that in a given numeric string, interpreted using a given locale.

type NSDecimalNumberBehaviors

type NSDecimalNumberBehaviors interface {
	RoundingMode() NSRoundingMode
	Scale() int16
	ExceptionDuringOperationErrorLeftOperandRightOperand(operation objc.SEL, error_ NSCalculationError, leftOperand *NSDecimalNumber, rightOperand *NSDecimalNumber) *NSDecimalNumber
}

NSDecimalNumberBehaviors wraps the ObjC protocol NSDecimalNumberBehaviors.

func NSDecimalNumberDefaultBehavior

func NSDecimalNumberDefaultBehavior() NSDecimalNumberBehaviors

type NSDecimalNumberHandler

type NSDecimalNumberHandler struct {
	NSObject
}

A class that adopts the decimal number behaviors protocol.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdecimalnumberhandler

func NSDecimalNumberHandlerDecimalNumberHandlerWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero

func NSDecimalNumberHandlerDecimalNumberHandlerWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero(roundingMode NSRoundingMode, scale int16, exact bool, overflow bool, underflow bool, divideByZero bool) *NSDecimalNumberHandler

Returns an NSDecimalNumberHandler object with customized behavior.

func NSDecimalNumberHandlerDefaultDecimalNumberHandler

func NSDecimalNumberHandlerDefaultDecimalNumberHandler() *NSDecimalNumberHandler

func NSDecimalNumberHandlerFromID

func NSDecimalNumberHandlerFromID(id objc.ID) *NSDecimalNumberHandler

func (*NSDecimalNumberHandler) InitWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero

func (o *NSDecimalNumberHandler) InitWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero(roundingMode NSRoundingMode, scale int16, exact bool, overflow bool, underflow bool, divideByZero bool) *NSDecimalNumberHandler

Returns an NSDecimalNumberHandler object initialized so it behaves as specified by the method’s arguments.

type NSDecodingFailurePolicy

type NSDecodingFailurePolicy int64

Policies describing the action the coder should take when encountering decode failures.

const (
	NSDecodingFailurePolicyRaiseException    NSDecodingFailurePolicy = 0
	NSDecodingFailurePolicySetErrorAndReturn NSDecodingFailurePolicy = 1
)

func (NSDecodingFailurePolicy) String

func (e NSDecodingFailurePolicy) String() string

type NSDeleteCommand

type NSDeleteCommand struct {
	NSScriptCommand
}

A command that deletes a scriptable object.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdeletecommand

func NSDeleteCommandFromID

func NSDeleteCommandFromID(id objc.ID) *NSDeleteCommand

func (*NSDeleteCommand) KeySpecifier

func (o *NSDeleteCommand) KeySpecifier() *NSScriptObjectSpecifier

type NSDictionary

type NSDictionary[KeyType purego.AnyObject, ObjectType purego.AnyObject] struct {
	NSObject
}

A static collection of objects associated with unique keys.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdictionary

func NSDictionaryDictionary

func NSDictionaryDictionary() *NSDictionary[objc.ID, objc.ID]

Creates an empty dictionary.

func NSDictionaryDictionaryWithContentsOfFile

func NSDictionaryDictionaryWithContentsOfFile(path *NSString) *NSDictionary[objc.ID, objc.ID]

Creates a dictionary using the keys and values found in a file specified by a given path. Deprecated: since macOS API_TO_BE_DEPRECATED.

func NSDictionaryDictionaryWithContentsOfURL

func NSDictionaryDictionaryWithContentsOfURL(url *NSURL) *NSDictionary[objc.ID, objc.ID]

Creates a dictionary using the keys and values found in a resource specified by a given URL. Deprecated: since macOS API_TO_BE_DEPRECATED.

func NSDictionaryDictionaryWithContentsOfURLError

func NSDictionaryDictionaryWithContentsOfURLError(url *NSURL) (*NSDictionary[*NSString, objc.ID], error)

Creates a dictionary using the keys and values found in a resource specified by a given URL.

func NSDictionaryDictionaryWithDictionary

func NSDictionaryDictionaryWithDictionary(dict *NSDictionary[objc.ID, objc.ID]) *NSDictionary[objc.ID, objc.ID]

Creates a dictionary containing the keys and values from another given dictionary.

func NSDictionaryDictionaryWithObjectForKey

func NSDictionaryDictionaryWithObjectForKey(object objc.ID, key NSCopying) *NSDictionary[objc.ID, objc.ID]

Creates a dictionary containing a given key and value.

func NSDictionaryDictionaryWithObjectsForKeys

func NSDictionaryDictionaryWithObjectsForKeys(objects *NSArray[objc.ID], keys *NSArray[NSCopying]) *NSDictionary[objc.ID, objc.ID]

Creates a dictionary containing entries constructed from the contents of an array of keys and an array of values.

func NSDictionaryDictionaryWithObjectsForKeysCount

func NSDictionaryDictionaryWithObjectsForKeysCount(objects unsafe.Pointer, keys NSCopying, cnt uint) *NSDictionary[objc.ID, objc.ID]

Creates a dictionary containing a specified number of objects from a C array.

func NSDictionaryFromID

func NSDictionaryFromID[KeyType purego.AnyObject, ObjectType purego.AnyObject](id objc.ID) *NSDictionary[KeyType, ObjectType]

func NSHTTPCookieRequestHeaderFieldsWithCookies

func NSHTTPCookieRequestHeaderFieldsWithCookies(cookies *NSArray[*NSHTTPCookie]) *NSDictionary[*NSString, *NSString]

@method requestHeaderFieldsWithCookies: @abstract Return a dictionary of header fields that can be used to add the specified cookies to the request. @param cookies The cookies to turn into request headers. @result An NSDictionary where the keys are header field names, and the values are the corresponding header field values.

func NSKeyedUnarchiverUnarchivedDictionaryWithKeysOfClassObjectsOfClassFromDataError

func NSKeyedUnarchiverUnarchivedDictionaryWithKeysOfClassObjectsOfClassFromDataError(keyCls objc.Class, valueCls objc.Class, data *NSData) (*NSDictionary[objc.ID, objc.ID], error)

Decodes the \c NSDictionary root object from \c data which should be an \c NSDictionary<keyCls,objectCls> with keys of type given in \c keyCls and objects of the given non-collection class \c objectCls (no nested dictionaries or other dictionaries contained in the dictionary, etc) from the given archive, previously encoded by \c NSKeyedArchiver.

func NSKeyedUnarchiverUnarchivedDictionaryWithKeysOfClassesObjectsOfClassesFromDataError

func NSKeyedUnarchiverUnarchivedDictionaryWithKeysOfClassesObjectsOfClassesFromDataError(keyClasses *NSSet[objc.Class], valueClasses *NSSet[objc.Class], data *NSData) (*NSDictionary[objc.ID, objc.ID], error)

Decodes the \c NSDictionary root object from \c data which should be an \c NSDictionary, with keys of the types given in \c keyClasses and objects of the given non-collection classes in \c objectClasses (no nested dictionaries or other dictionaries contained in the dictionary, etc) from the given archive, previously encoded by \c NSKeyedArchiver.

func NSLocaleComponentsFromLocaleIdentifier

func NSLocaleComponentsFromLocaleIdentifier(string_ *NSString) *NSDictionary[*NSString, *NSString]

Returns a dictionary that is the result of parsing a locale ID.

func NSNetServiceDictionaryFromTXTRecordData

func NSNetServiceDictionaryFromTXTRecordData(txtData *NSData) *NSDictionary[*NSString, *NSData]

func NSTimeZoneAbbreviationDictionary

func NSTimeZoneAbbreviationDictionary() *NSDictionary[*NSString, *NSString]

func NSURLResourceValuesForKeysFromBookmarkData

func NSURLResourceValuesForKeysFromBookmarkData(keys *NSArray[*NSString], bookmarkData *NSData) *NSDictionary[*NSString, objc.ID]

Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data.

func (*NSDictionary[KeyType, ObjectType]) AllKeys

func (o *NSDictionary[KeyType, ObjectType]) AllKeys() *NSArray[KeyType]

func (*NSDictionary[KeyType, ObjectType]) AllKeysForObject

func (o *NSDictionary[KeyType, ObjectType]) AllKeysForObject(anObject ObjectType) *NSArray[KeyType]

Returns a new array containing the keys corresponding to all occurrences of a given object in the dictionary.

func (*NSDictionary[KeyType, ObjectType]) AllValues

func (o *NSDictionary[KeyType, ObjectType]) AllValues() *NSArray[ObjectType]

func (*NSDictionary[KeyType, ObjectType]) Count

func (o *NSDictionary[KeyType, ObjectType]) Count() uint

func (*NSDictionary[KeyType, ObjectType]) CountByEnumeratingWithStateObjectsCount

func (o *NSDictionary[KeyType, ObjectType]) CountByEnumeratingWithStateObjectsCount(state *NSFastEnumerationState, buffer unsafe.Pointer, len_ uint) uint

Returns by reference a C array of objects over which the sender should iterate.

func (*NSDictionary[KeyType, ObjectType]) DescriptionInStringsFileFormat

func (o *NSDictionary[KeyType, ObjectType]) DescriptionInStringsFileFormat() *NSString

func (*NSDictionary[KeyType, ObjectType]) DescriptionWithLocale

func (o *NSDictionary[KeyType, ObjectType]) DescriptionWithLocale(locale objc.ID) *NSString

Returns a string object that represents the contents of the dictionary, formatted as a property list.

func (*NSDictionary[KeyType, ObjectType]) DescriptionWithLocaleIndent

func (o *NSDictionary[KeyType, ObjectType]) DescriptionWithLocaleIndent(locale objc.ID, level uint) *NSString

Returns a string object that represents the contents of the dictionary, formatted as a property list.

func (*NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsUsing

func (o *NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsUsing(block objc.Block)

Applies a given block object to the entries of the dictionary.

func (*NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsWithOptionsUsing

func (o *NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)

Applies a given block object to the entries of the dictionary, with options specifying how the enumeration is performed.

func (*NSDictionary[KeyType, ObjectType]) FileCreationDate

func (o *NSDictionary[KeyType, ObjectType]) FileCreationDate() *NSDate

Returns the file’s creation date.

func (*NSDictionary[KeyType, ObjectType]) FileExtensionHidden

func (o *NSDictionary[KeyType, ObjectType]) FileExtensionHidden() bool

Returns a Boolean value indicating whether the file hides its extension.

func (*NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountID

func (o *NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountID() *NSNumber

Returns file’s group owner account ID.

func (*NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountName

func (o *NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountName() *NSString

Returns the file’s group owner account name.

func (*NSDictionary[KeyType, ObjectType]) FileHFSCreatorCode

func (o *NSDictionary[KeyType, ObjectType]) FileHFSCreatorCode() uint

Returns the file’s HFS creator code.

func (*NSDictionary[KeyType, ObjectType]) FileHFSTypeCode

func (o *NSDictionary[KeyType, ObjectType]) FileHFSTypeCode() uint

Returns file’s HFS type code.

func (*NSDictionary[KeyType, ObjectType]) FileIsAppendOnly

func (o *NSDictionary[KeyType, ObjectType]) FileIsAppendOnly() bool

Returns a Boolean value indicating whether the file is append only.

func (*NSDictionary[KeyType, ObjectType]) FileIsImmutable

func (o *NSDictionary[KeyType, ObjectType]) FileIsImmutable() bool

Returns a Boolean value indicating whether the file is immutable.

func (*NSDictionary[KeyType, ObjectType]) FileModificationDate

func (o *NSDictionary[KeyType, ObjectType]) FileModificationDate() *NSDate

Returns file’s modification date.

func (*NSDictionary[KeyType, ObjectType]) FileOwnerAccountID

func (o *NSDictionary[KeyType, ObjectType]) FileOwnerAccountID() *NSNumber

Returns the file’s owner account ID.

func (*NSDictionary[KeyType, ObjectType]) FileOwnerAccountName

func (o *NSDictionary[KeyType, ObjectType]) FileOwnerAccountName() *NSString

Returns the file’s owner account name.

func (*NSDictionary[KeyType, ObjectType]) FilePosixPermissions

func (o *NSDictionary[KeyType, ObjectType]) FilePosixPermissions() uint

Returns the file’s POSIX permissions.

func (*NSDictionary[KeyType, ObjectType]) FileSize

func (o *NSDictionary[KeyType, ObjectType]) FileSize() uint64

Returns the file’s size, in bytes.

func (*NSDictionary[KeyType, ObjectType]) FileSystemFileNumber

func (o *NSDictionary[KeyType, ObjectType]) FileSystemFileNumber() uint

Returns the filesystem file number.

func (*NSDictionary[KeyType, ObjectType]) FileSystemNumber

func (o *NSDictionary[KeyType, ObjectType]) FileSystemNumber() int

Returns the filesystem number.

func (*NSDictionary[KeyType, ObjectType]) FileType

func (o *NSDictionary[KeyType, ObjectType]) FileType() *NSString

Returns the file type.

func (*NSDictionary[KeyType, ObjectType]) GetObjectsAndKeys

func (o *NSDictionary[KeyType, ObjectType]) GetObjectsAndKeys(objects unsafe.Pointer, keys unsafe.Pointer)

Returns by reference C arrays of the keys and values in the dictionary. Deprecated: Use -getObjects:andKeys:count: instead

func (*NSDictionary[KeyType, ObjectType]) GetObjectsAndKeysCount

func (o *NSDictionary[KeyType, ObjectType]) GetObjectsAndKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, count uint)

Returns by reference C arrays of the keys and values in the dictionary.

func (*NSDictionary[KeyType, ObjectType]) Init

func (o *NSDictionary[KeyType, ObjectType]) Init() *NSDictionary[KeyType, ObjectType]

Initializes a newly allocated dictionary.

func (*NSDictionary[KeyType, ObjectType]) InitWithCoder

func (o *NSDictionary[KeyType, ObjectType]) InitWithCoder(coder *NSCoder) *NSDictionary[KeyType, ObjectType]

Creates a dictionary initialized from data in the provided unarchiver.

func (*NSDictionary[KeyType, ObjectType]) InitWithContentsOfFile

func (o *NSDictionary[KeyType, ObjectType]) InitWithContentsOfFile(path *NSString) *NSDictionary[KeyType, ObjectType]

Initializes a newly allocated dictionary using the keys and values found in a file at a given path. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSDictionary[KeyType, ObjectType]) InitWithContentsOfURL

func (o *NSDictionary[KeyType, ObjectType]) InitWithContentsOfURL(url *NSURL) *NSDictionary[KeyType, ObjectType]

Initializes a newly allocated dictionary using the keys and values found at a given URL. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSDictionary[KeyType, ObjectType]) InitWithContentsOfURLError

func (o *NSDictionary[KeyType, ObjectType]) InitWithContentsOfURLError(url *NSURL) (*NSDictionary[*NSString, ObjectType], error)

Initializes a newly allocated dictionary using the keys and values found at a given URL.

func (*NSDictionary[KeyType, ObjectType]) InitWithDictionary

func (o *NSDictionary[KeyType, ObjectType]) InitWithDictionary(otherDictionary *NSDictionary[KeyType, ObjectType]) *NSDictionary[KeyType, ObjectType]

Initializes a newly allocated dictionary by placing in it the keys and values contained in another given dictionary.

func (*NSDictionary[KeyType, ObjectType]) InitWithDictionaryCopyItems

func (o *NSDictionary[KeyType, ObjectType]) InitWithDictionaryCopyItems(otherDictionary *NSDictionary[KeyType, ObjectType], flag bool) *NSDictionary[KeyType, ObjectType]

Initializes a newly allocated dictionary using the objects contained in another given dictionary.

func (*NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeys

func (o *NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeys(objects *NSArray[ObjectType], keys *NSArray[NSCopying]) *NSDictionary[KeyType, ObjectType]

Initializes a newly allocated dictionary with key-value pairs constructed from the provided arrays of keys and objects.

func (*NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeysCount

func (o *NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeysCount(objects unsafe.Pointer, keys NSCopying, cnt uint) *NSDictionary[KeyType, ObjectType]

Initializes a newly allocated dictionary with the specified number of key-value pairs constructed from the provided C arrays of keys and objects.

func (*NSDictionary[KeyType, ObjectType]) IsEqualToDictionary

func (o *NSDictionary[KeyType, ObjectType]) IsEqualToDictionary(otherDictionary *NSDictionary[KeyType, ObjectType]) bool

Returns a Boolean value that indicates whether the contents of the receiving dictionary are equal to the contents of another given dictionary.

func (*NSDictionary[KeyType, ObjectType]) KeyEnumerator

func (o *NSDictionary[KeyType, ObjectType]) KeyEnumerator() *NSEnumerator[KeyType]

Provides an enumerator to access the keys in the dictionary.

func (*NSDictionary[KeyType, ObjectType]) KeysOfEntriesPassingTest

func (o *NSDictionary[KeyType, ObjectType]) KeysOfEntriesPassingTest(predicate objc.Block) *NSSet[KeyType]

Returns the set of keys whose corresponding value satisfies a constraint described by a block object.

func (*NSDictionary[KeyType, ObjectType]) KeysOfEntriesWithOptionsPassingTest

func (o *NSDictionary[KeyType, ObjectType]) KeysOfEntriesWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSSet[KeyType]

Returns the set of keys whose corresponding value satisfies a constraint described by a block object.

func (*NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingComparator

func (o *NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[KeyType]

Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values using a given comparator block.

func (*NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingSelector

func (o *NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingSelector(comparator objc.SEL) *NSArray[KeyType]

Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values.

func (*NSDictionary[KeyType, ObjectType]) KeysSortedByValueWithOptionsUsingComparator

func (o *NSDictionary[KeyType, ObjectType]) KeysSortedByValueWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[KeyType]

Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values using a given comparator block and a specified set of options.

func (*NSDictionary[KeyType, ObjectType]) ObjectEnumerator

func (o *NSDictionary[KeyType, ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]

Returns an enumerator object that lets you access each value in the dictionary.

func (*NSDictionary[KeyType, ObjectType]) ObjectForKey

func (o *NSDictionary[KeyType, ObjectType]) ObjectForKey(aKey KeyType) ObjectType

Returns the value associated with a given key.

func (*NSDictionary[KeyType, ObjectType]) ObjectForKeyedSubscript

func (o *NSDictionary[KeyType, ObjectType]) ObjectForKeyedSubscript(key KeyType) ObjectType

Returns the value associated with a given key.

func (*NSDictionary[KeyType, ObjectType]) ObjectsForKeysNotFoundMarker

func (o *NSDictionary[KeyType, ObjectType]) ObjectsForKeysNotFoundMarker(keys *NSArray[KeyType], marker ObjectType) *NSArray[ObjectType]

Returns as a static array the set of objects from the dictionary that corresponds to the specified keys.

func (*NSDictionary[KeyType, ObjectType]) WriteToFileAtomically

func (o *NSDictionary[KeyType, ObjectType]) WriteToFileAtomically(path *NSString, useAuxiliaryFile bool) bool

Writes a property list representation of the contents of the dictionary to a given path. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSDictionary[KeyType, ObjectType]) WriteToURLAtomically

func (o *NSDictionary[KeyType, ObjectType]) WriteToURLAtomically(url *NSURL, atomically bool) bool

Writes a property list representation of the contents of the dictionary to a given URL. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSDictionary[KeyType, ObjectType]) WriteToURLError

func (o *NSDictionary[KeyType, ObjectType]) WriteToURLError(url *NSURL) (bool, error)

Writes a property list representation of the contents of the dictionary to a given URL.

type NSDimension

type NSDimension struct {
	NSUnit
}

An abstract class representing a dimensional unit of measure.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdimension

func NSDimensionBaseUnit

func NSDimensionBaseUnit() *NSDimension

func NSDimensionFromID

func NSDimensionFromID(id objc.ID) *NSDimension

func (*NSDimension) Converter

func (o *NSDimension) Converter() *NSUnitConverter

func (*NSDimension) InitWithSymbolConverter

func (o *NSDimension) InitWithSymbolConverter(symbol *NSString, converter *NSUnitConverter) *NSDimension

type NSDirectoryEnumerationOptions

type NSDirectoryEnumerationOptions uint64

Options for enumerating the contents of directories.

const (
	NSDirectoryEnumerationSkipsSubdirectoryDescendants NSDirectoryEnumerationOptions = 1
	NSDirectoryEnumerationSkipsPackageDescendants      NSDirectoryEnumerationOptions = 2
	NSDirectoryEnumerationSkipsHiddenFiles             NSDirectoryEnumerationOptions = 4
	NSDirectoryEnumerationIncludesDirectoriesPostOrder NSDirectoryEnumerationOptions = 8
	NSDirectoryEnumerationProducesRelativePathURLs     NSDirectoryEnumerationOptions = 16
)

func (NSDirectoryEnumerationOptions) String

type NSDirectoryEnumerator

type NSDirectoryEnumerator[ObjectType purego.AnyObject] struct {
	NSEnumerator[ObjectType]
}

An object that enumerates the contents of a directory.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdirectoryenumerator

func NSDirectoryEnumeratorFromID

func NSDirectoryEnumeratorFromID[ObjectType purego.AnyObject](id objc.ID) *NSDirectoryEnumerator[ObjectType]

func (*NSDirectoryEnumerator[ObjectType]) DirectoryAttributes

func (o *NSDirectoryEnumerator[ObjectType]) DirectoryAttributes() *NSDictionary[*NSString, objc.ID]

func (*NSDirectoryEnumerator[ObjectType]) FileAttributes

func (o *NSDirectoryEnumerator[ObjectType]) FileAttributes() *NSDictionary[*NSString, objc.ID]

func (*NSDirectoryEnumerator[ObjectType]) IsEnumeratingDirectoryPostOrder

func (o *NSDirectoryEnumerator[ObjectType]) IsEnumeratingDirectoryPostOrder() bool

func (*NSDirectoryEnumerator[ObjectType]) Level

func (o *NSDirectoryEnumerator[ObjectType]) Level() uint

func (*NSDirectoryEnumerator[ObjectType]) SkipDescendants

func (o *NSDirectoryEnumerator[ObjectType]) SkipDescendants()

func (*NSDirectoryEnumerator[ObjectType]) SkipDescendents

func (o *NSDirectoryEnumerator[ObjectType]) SkipDescendents()

type NSDiscardableContent

type NSDiscardableContent interface {
	BeginContentAccess() bool
	EndContentAccess()
	DiscardContentIfPossible()
	IsContentDiscarded() bool
}

NSDiscardableContent wraps the ObjC protocol NSDiscardableContent.

type NSDistantObject

type NSDistantObject struct {
	NSProxy
}

A proxy for objects in other applications or threads.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdistantobject Deprecated: Use NSXPCConnection instead

func NSConnectionRootProxyForConnectionWithRegisteredNameHost

func NSConnectionRootProxyForConnectionWithRegisteredNameHost(name *NSString, hostName *NSString) *NSDistantObject

Returns a proxy for the root object of the NSConnection object registered with the default NSPortNameServer under a given name on a given host. Deprecated: since macOS 10.6.

func NSConnectionRootProxyForConnectionWithRegisteredNameHostUsingNameServer

func NSConnectionRootProxyForConnectionWithRegisteredNameHostUsingNameServer(name *NSString, hostName *NSString, server *NSPortNameServer) *NSDistantObject

Returns a proxy for the root object of the NSConnection object registered with server under name on a given host.

func NSDistantObjectFromID

func NSDistantObjectFromID(id objc.ID) *NSDistantObject

func (*NSDistantObject) ConnectionForProxy

func (o *NSDistantObject) ConnectionForProxy() *NSConnection

func (*NSDistantObject) InitWithCoder

func (o *NSDistantObject) InitWithCoder(inCoder *NSCoder) *NSDistantObject

func (*NSDistantObject) InitWithLocalConnection

func (o *NSDistantObject) InitWithLocalConnection(target objc.ID, connection *NSConnection) *NSDistantObject

Initializes an NSDistantObject object as a local proxy for a given object.

func (*NSDistantObject) InitWithTargetConnection

func (o *NSDistantObject) InitWithTargetConnection(target objc.ID, connection *NSConnection) *NSDistantObject

Initializes a newly allocated NSDistantObject as a remote proxy for target, which is an id in another thread or another application’s address space.

func (*NSDistantObject) SetProtocolForProxy

func (o *NSDistantObject) SetProtocolForProxy(proto unsafe.Pointer)

Sets the methods known to be handled by the receiver to those in a given protocol.

type NSDistantObjectRequest

type NSDistantObjectRequest struct {
	NSObject
}

An object used by the distributed objects system to help handle invocations between different processes.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdistantobjectrequest Deprecated: Use NSXPCConnection instead

func NSDistantObjectRequestFromID

func NSDistantObjectRequestFromID(id objc.ID) *NSDistantObjectRequest

func (*NSDistantObjectRequest) Connection

func (o *NSDistantObjectRequest) Connection() *NSConnection

func (*NSDistantObjectRequest) Conversation

func (o *NSDistantObjectRequest) Conversation() objc.ID

func (*NSDistantObjectRequest) Invocation deprecated

func (o *NSDistantObjectRequest) Invocation() *NSInvocation

Deprecated: Use NSXPCConnection instead

func (*NSDistantObjectRequest) ReplyWithException

func (o *NSDistantObjectRequest) ReplyWithException(exception *NSException)

Sends a reply back to the remote object making the distant object request.

type NSDistributedLock

type NSDistributedLock struct {
	NSObject
}

A lock that multiple applications on multiple hosts can use to restrict access to some shared resource, such as a file.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdistributedlock

func NSDistributedLockFromID

func NSDistributedLockFromID(id objc.ID) *NSDistributedLock

func NSDistributedLockLockWithPath

func NSDistributedLockLockWithPath(path *NSString) *NSDistributedLock

Returns an NSDistributedLock object initialized to use as the locking object the file-system entry specified by a given path.

func (*NSDistributedLock) BreakLock

func (o *NSDistributedLock) BreakLock()

Forces the lock to be relinquished.

func (*NSDistributedLock) InitWithPath

func (o *NSDistributedLock) InitWithPath(path *NSString) *NSDistributedLock

Initializes an NSDistributedLock object to use as the lock the file-system entry specified by a given path.

func (*NSDistributedLock) LockDate

func (o *NSDistributedLock) LockDate() *NSDate

func (*NSDistributedLock) TryLock

func (o *NSDistributedLock) TryLock() bool

Attempts to acquire the receiver and immediately returns a Boolean value that indicates whether the attempt was successful.

func (*NSDistributedLock) Unlock

func (o *NSDistributedLock) Unlock()

Relinquishes the receiver.

type NSDistributedNotificationCenter

type NSDistributedNotificationCenter struct {
	NSNotificationCenter
}

A notification dispatch mechanism that enables the broadcast of notifications across task boundaries.

Apple documentation: https://developer.apple.com/documentation/foundation/nsdistributednotificationcenter

func NSDistributedNotificationCenterDefaultCenter

func NSDistributedNotificationCenterDefaultCenter() *NSDistributedNotificationCenter

func NSDistributedNotificationCenterFromID

func NSDistributedNotificationCenterFromID(id objc.ID) *NSDistributedNotificationCenter

func NSDistributedNotificationCenterNotificationCenterForType

func NSDistributedNotificationCenterNotificationCenterForType(notificationCenterType *NSString) *NSDistributedNotificationCenter

func (*NSDistributedNotificationCenter) AddObserverSelectorNameObjectSuspensionBehavior

func (o *NSDistributedNotificationCenter) AddObserverSelectorNameObjectSuspensionBehavior(observer objc.ID, selector objc.SEL, name *NSString, object *NSString, suspensionBehavior NSNotificationSuspensionBehavior)

func (*NSDistributedNotificationCenter) PostNotificationNameObjectUserInfoDeliverImmediately

func (o *NSDistributedNotificationCenter) PostNotificationNameObjectUserInfoDeliverImmediately(name *NSString, object *NSString, userInfo *NSDictionary[objc.ID, objc.ID], deliverImmediately bool)

func (*NSDistributedNotificationCenter) PostNotificationNameObjectUserInfoOptions

func (o *NSDistributedNotificationCenter) PostNotificationNameObjectUserInfoOptions(name *NSString, object *NSString, userInfo *NSDictionary[objc.ID, objc.ID], options NSDistributedNotificationOptions)

func (*NSDistributedNotificationCenter) SetSuspended

func (o *NSDistributedNotificationCenter) SetSuspended(suspended bool)

func (*NSDistributedNotificationCenter) Suspended

func (o *NSDistributedNotificationCenter) Suspended() bool

type NSDistributedNotificationOptions

type NSDistributedNotificationOptions uint64
const (
	NSDistributedNotificationDeliverImmediately NSDistributedNotificationOptions = 1
	NSDistributedNotificationPostToAllSessions  NSDistributedNotificationOptions = 2
)

func (NSDistributedNotificationOptions) String

type NSEdgeInsets

type NSEdgeInsets struct {
	Top    float64
	Left   float64
	Bottom float64
	Right  float64
}

A description of the distance between the edges of two rectangles.

func NSEdgeInsetsMake

func NSEdgeInsetsMake(top float64, left float64, bottom float64, right float64) NSEdgeInsets

func NSEdgeInsetsZero

func NSEdgeInsetsZero() NSEdgeInsets

type NSEnergyFormatter

type NSEnergyFormatter struct {
	NSFormatter
}

A formatter that provides localized descriptions of energy values.

Apple documentation: https://developer.apple.com/documentation/foundation/nsenergyformatter

func NSEnergyFormatterFromID

func NSEnergyFormatterFromID(id objc.ID) *NSEnergyFormatter

func (*NSEnergyFormatter) IsForFoodEnergyUse

func (o *NSEnergyFormatter) IsForFoodEnergyUse() bool

func (*NSEnergyFormatter) NumberFormatter

func (o *NSEnergyFormatter) NumberFormatter() *NSNumberFormatter

func (*NSEnergyFormatter) SetForFoodEnergyUse

func (o *NSEnergyFormatter) SetForFoodEnergyUse(forFoodEnergyUse bool)

func (*NSEnergyFormatter) SetNumberFormatter

func (o *NSEnergyFormatter) SetNumberFormatter(numberFormatter *NSNumberFormatter)

func (*NSEnergyFormatter) SetUnitStyle

func (o *NSEnergyFormatter) SetUnitStyle(unitStyle NSFormattingUnitStyle)

func (*NSEnergyFormatter) StringFromJoules

func (o *NSEnergyFormatter) StringFromJoules(numberInJoules float64) *NSString

func (*NSEnergyFormatter) StringFromValueUnit

func (o *NSEnergyFormatter) StringFromValueUnit(value float64, unit NSEnergyFormatterUnit) *NSString

func (*NSEnergyFormatter) UnitStringFromJoulesUsedUnit

func (o *NSEnergyFormatter) UnitStringFromJoulesUsedUnit(numberInJoules float64, unitp *NSEnergyFormatterUnit) *NSString

func (*NSEnergyFormatter) UnitStringFromValueUnit

func (o *NSEnergyFormatter) UnitStringFromValueUnit(value float64, unit NSEnergyFormatterUnit) *NSString

func (*NSEnergyFormatter) UnitStyle

type NSEnergyFormatterUnit

type NSEnergyFormatterUnit int64

The units supported by the NSEnergyFormatter class.

const (
	NSEnergyFormatterUnitJoule       NSEnergyFormatterUnit = 11
	NSEnergyFormatterUnitKilojoule   NSEnergyFormatterUnit = 14
	NSEnergyFormatterUnitCalorie     NSEnergyFormatterUnit = 1793
	NSEnergyFormatterUnitKilocalorie NSEnergyFormatterUnit = 1794
)

func (NSEnergyFormatterUnit) String

func (e NSEnergyFormatterUnit) String() string

type NSEnumerationOptions

type NSEnumerationOptions uint64

Options for block enumeration operations.

const (
	// Specifies that the Block enumeration should be concurrent.
	NSEnumerationConcurrent NSEnumerationOptions = 1
	// Specifies that the enumeration should be performed in reverse.
	NSEnumerationReverse NSEnumerationOptions = 2
)

func (NSEnumerationOptions) String

func (e NSEnumerationOptions) String() string

type NSEnumerator

type NSEnumerator[ObjectType purego.AnyObject] struct {
	NSObject
}

An abstract class whose subclasses enumerate collections of objects, such as arrays and dictionaries.

Apple documentation: https://developer.apple.com/documentation/foundation/nsenumerator

func NSEnumeratorFromID

func NSEnumeratorFromID[ObjectType purego.AnyObject](id objc.ID) *NSEnumerator[ObjectType]

func (*NSEnumerator[ObjectType]) AllObjects

func (o *NSEnumerator[ObjectType]) AllObjects() *NSArray[ObjectType]

func (*NSEnumerator[ObjectType]) NextObject

func (o *NSEnumerator[ObjectType]) NextObject() ObjectType

Returns the next object from the collection being enumerated.

type NSError

type NSError struct {
	NSObject
}

Information about an error condition including a domain, a domain-specific error code, and application-specific information.

Apple documentation: https://developer.apple.com/documentation/foundation/nserror

func NSErrorErrorWithDomainCodeUserInfo

func NSErrorErrorWithDomainCodeUserInfo(domain *NSString, code int, dict *NSDictionary[*NSString, objc.ID]) *NSError

Creates and initializes an NSError object for a given domain and code with a given userInfo dictionary.

func NSErrorFromID

func NSErrorFromID(id objc.ID) *NSError

func (*NSError) Code

func (o *NSError) Code() int

func (*NSError) Domain

func (o *NSError) Domain() *NSString

func (*NSError) HelpAnchor

func (o *NSError) HelpAnchor() *NSString

func (*NSError) InitWithDomainCodeUserInfo

func (o *NSError) InitWithDomainCodeUserInfo(domain *NSString, code int, dict *NSDictionary[*NSString, objc.ID]) *NSError

Returns an NSError object initialized for a given domain and code with a given userInfo dictionary.

func (*NSError) LocalizedDescription

func (o *NSError) LocalizedDescription() *NSString

func (*NSError) LocalizedFailureReason

func (o *NSError) LocalizedFailureReason() *NSString

func (*NSError) LocalizedRecoveryOptions

func (o *NSError) LocalizedRecoveryOptions() *NSArray[*NSString]

func (*NSError) LocalizedRecoverySuggestion

func (o *NSError) LocalizedRecoverySuggestion() *NSString

func (*NSError) RecoveryAttempter

func (o *NSError) RecoveryAttempter() objc.ID

func (*NSError) UnderlyingErrors

func (o *NSError) UnderlyingErrors() *NSArray[objc.ID]

func (*NSError) UserInfo

func (o *NSError) UserInfo() *NSDictionary[*NSString, objc.ID]

type NSException

type NSException struct {
	NSObject
}

An object that represents a special condition that interrupts the normal flow of program execution.

Apple documentation: https://developer.apple.com/documentation/foundation/nsexception

func NSExceptionExceptionWithNameReasonUserInfo

func NSExceptionExceptionWithNameReasonUserInfo(name *NSString, reason *NSString, userInfo *NSDictionary[objc.ID, objc.ID]) *NSException

Creates and returns an exception object .

func NSExceptionFromID

func NSExceptionFromID(id objc.ID) *NSException

func (*NSException) CallStackReturnAddresses

func (o *NSException) CallStackReturnAddresses() *NSArray[*NSNumber]

func (*NSException) CallStackSymbols

func (o *NSException) CallStackSymbols() *NSArray[*NSString]

func (*NSException) InitWithNameReasonUserInfo

func (o *NSException) InitWithNameReasonUserInfo(aName *NSString, aReason *NSString, aUserInfo *NSDictionary[objc.ID, objc.ID]) *NSException

Initializes and returns a newly allocated exception object.

func (*NSException) Name

func (o *NSException) Name() *NSString

func (*NSException) Raise

func (o *NSException) Raise()

Raises the receiver, causing program flow to jump to the local exception handler.

func (*NSException) Reason

func (o *NSException) Reason() *NSString

func (*NSException) UserInfo

func (o *NSException) UserInfo() *NSDictionary[objc.ID, objc.ID]

type NSExpression

type NSExpression struct {
	NSObject
}

An expression for use in a comparison predicate.

Apple documentation: https://developer.apple.com/documentation/foundation/nsexpression

func NSExpressionExpressionForAggregate

func NSExpressionExpressionForAggregate(subexpressions *NSArray[*NSExpression]) *NSExpression

Creates an aggregate expression for a specified collection.

func NSExpressionExpressionForAnyKey

func NSExpressionExpressionForAnyKey() *NSExpression

Creates an expression that represents any key for a Spotlight query.

func NSExpressionExpressionForBlockArguments

func NSExpressionExpressionForBlockArguments(block func(objc.ID, *NSArray[*NSExpression], *NSMutableDictionary[objc.ID, objc.ID]) objc.ID, arguments *NSArray[*NSExpression]) *NSExpression

Creates an expression object that uses the block for evaluating objects.

func NSExpressionExpressionForConditionalTrueExpressionFalseExpression

func NSExpressionExpressionForConditionalTrueExpressionFalseExpression(predicate *NSPredicate, trueExpression *NSExpression, falseExpression *NSExpression) *NSExpression

Creates an expression that returns a result, depending on the value of predicate.

func NSExpressionExpressionForConstantValue

func NSExpressionExpressionForConstantValue(obj objc.ID) *NSExpression

Creates an expression that represents a specified constant value.

func NSExpressionExpressionForEvaluatedObject

func NSExpressionExpressionForEvaluatedObject() *NSExpression

Creates an expression that represents the object you’re evaluating.

func NSExpressionExpressionForFunctionArguments

func NSExpressionExpressionForFunctionArguments(name *NSString, parameters *NSArray[objc.ID]) *NSExpression

Creates an expression that invokes one of the predefined functions.

func NSExpressionExpressionForFunctionSelectorNameArguments

func NSExpressionExpressionForFunctionSelectorNameArguments(target *NSExpression, name *NSString, parameters *NSArray[objc.ID]) *NSExpression

Creates an expression that returns the result of invoking a selector with a specified name using specified arguments.

func NSExpressionExpressionForIntersectSetWith

func NSExpressionExpressionForIntersectSetWith(left *NSExpression, right *NSExpression) *NSExpression

Creates an expression object that represents the intersection of a specified set and collection.

func NSExpressionExpressionForKeyPath

func NSExpressionExpressionForKeyPath(keyPath *NSString) *NSExpression

Creates an expression that invokes the value function with a specified key path.

func NSExpressionExpressionForMinusSetWith

func NSExpressionExpressionForMinusSetWith(left *NSExpression, right *NSExpression) *NSExpression

Creates an expression object that represents the subtraction of a specified collection from a specified set.

func NSExpressionExpressionForSubqueryUsingIteratorVariablePredicate

func NSExpressionExpressionForSubqueryUsingIteratorVariablePredicate(expression *NSExpression, variable *NSString, predicate *NSPredicate) *NSExpression

Creates an expression that filters a collection by storing elements in the collection in a specified variable and keeping the elements that the qualifier returns as true.

func NSExpressionExpressionForUnionSetWith

func NSExpressionExpressionForUnionSetWith(left *NSExpression, right *NSExpression) *NSExpression

Creates an expression object that represents the union of a specified set and collection.

func NSExpressionExpressionForVariable

func NSExpressionExpressionForVariable(string_ *NSString) *NSExpression

Creates an expression that extracts a value from the variable bindings dictionary for a specified key.

func NSExpressionExpressionWithFormat

func NSExpressionExpressionWithFormat(expressionFormat *NSString) *NSExpression

Creates the expression with the specified expression arguments.

func NSExpressionExpressionWithFormatArgumentArray

func NSExpressionExpressionWithFormatArgumentArray(expressionFormat *NSString, arguments *NSArray[objc.ID]) *NSExpression

Creates the expression with the specified expression format and array of arguments.

func NSExpressionExpressionWithFormatArguments

func NSExpressionExpressionWithFormatArguments(expressionFormat *NSString, argList string) *NSExpression

Creates the expression with the specified expression format and arguments list.

func NSExpressionFromID

func NSExpressionFromID(id objc.ID) *NSExpression

func (*NSExpression) AllowEvaluation

func (o *NSExpression) AllowEvaluation()

Forces a securely decoded expression to allow evaluation.

func (*NSExpression) Arguments

func (o *NSExpression) Arguments() *NSArray[*NSExpression]

func (*NSExpression) Collection

func (o *NSExpression) Collection() objc.ID

func (*NSExpression) ConstantValue

func (o *NSExpression) ConstantValue() objc.ID

func (*NSExpression) ExpressionBlock

func (o *NSExpression) ExpressionBlock() objc.Block

func (*NSExpression) ExpressionType

func (o *NSExpression) ExpressionType() NSExpressionType

func (*NSExpression) ExpressionValueWithObjectContext

func (o *NSExpression) ExpressionValueWithObjectContext(object objc.ID, context_ *NSMutableDictionary[objc.ID, objc.ID]) objc.ID

Evaluates an expression using a specified object and context.

func (*NSExpression) FalseExpression

func (o *NSExpression) FalseExpression() *NSExpression

func (*NSExpression) Function

func (o *NSExpression) Function() *NSString

func (*NSExpression) InitWithCoder

func (o *NSExpression) InitWithCoder(coder *NSCoder) *NSExpression

Creates an expression by decoding from the coder you specify.

func (*NSExpression) InitWithExpressionType

func (o *NSExpression) InitWithExpressionType(type_ NSExpressionType) *NSExpression

Creates the expression with the specified expression type.

func (*NSExpression) KeyPath

func (o *NSExpression) KeyPath() *NSString

func (*NSExpression) LeftExpression

func (o *NSExpression) LeftExpression() *NSExpression

func (*NSExpression) Operand

func (o *NSExpression) Operand() *NSExpression

func (*NSExpression) Predicate

func (o *NSExpression) Predicate() *NSPredicate

func (*NSExpression) RightExpression

func (o *NSExpression) RightExpression() *NSExpression

func (*NSExpression) TrueExpression

func (o *NSExpression) TrueExpression() *NSExpression

func (*NSExpression) Variable

func (o *NSExpression) Variable() *NSString

type NSExpressionType

type NSExpressionType uint64

Defines the possible types of an expression.

const (
	NSConstantValueExpressionType   NSExpressionType = 0
	NSEvaluatedObjectExpressionType NSExpressionType = 1
	NSVariableExpressionType        NSExpressionType = 2
	NSKeyPathExpressionType         NSExpressionType = 3
	NSFunctionExpressionType        NSExpressionType = 4
	NSUnionSetExpressionType        NSExpressionType = 5
	NSIntersectSetExpressionType    NSExpressionType = 6
	NSMinusSetExpressionType        NSExpressionType = 7
	NSSubqueryExpressionType        NSExpressionType = 13
	NSAggregateExpressionType       NSExpressionType = 14
	NSAnyKeyExpressionType          NSExpressionType = 15
	NSBlockExpressionType           NSExpressionType = 19
	NSConditionalExpressionType     NSExpressionType = 20
)

func (NSExpressionType) String

func (e NSExpressionType) String() string

type NSExtensionContext

type NSExtensionContext struct {
	NSObject
}

The host app context from which an app extension is invoked.

Apple documentation: https://developer.apple.com/documentation/foundation/nsextensioncontext

func NSExtensionContextFromID

func NSExtensionContextFromID(id objc.ID) *NSExtensionContext

func (*NSExtensionContext) CancelRequestWithError

func (o *NSExtensionContext) CancelRequestWithError(error_ unsafe.Pointer)

Tells the host app to cancel the app extension request, with a supplied error.

func (*NSExtensionContext) CompleteRequestReturningItemsCompletionHandler

func (o *NSExtensionContext) CompleteRequestReturningItemsCompletionHandler(items *NSArray[objc.ID], completionHandler func(bool))

Tells the host app to complete the app extension request with an array of result items.

func (*NSExtensionContext) InputItems

func (o *NSExtensionContext) InputItems() *NSArray[objc.ID]

func (*NSExtensionContext) OpenURLCompletionHandler

func (o *NSExtensionContext) OpenURLCompletionHandler(uRL *NSURL, completionHandler func(bool))

Asks the system to open a URL on behalf of the currently running app extension.

type NSExtensionItem

type NSExtensionItem struct {
	NSObject
}

An immutable collection of values representing different aspects of an item for an extension to act upon.

Apple documentation: https://developer.apple.com/documentation/foundation/nsextensionitem

func NSExtensionItemFromID

func NSExtensionItemFromID(id objc.ID) *NSExtensionItem

func (*NSExtensionItem) Attachments

func (o *NSExtensionItem) Attachments() *NSArray[*NSItemProvider]

func (*NSExtensionItem) AttributedContentText

func (o *NSExtensionItem) AttributedContentText() *NSAttributedString

func (*NSExtensionItem) AttributedTitle

func (o *NSExtensionItem) AttributedTitle() *NSAttributedString

func (*NSExtensionItem) SetAttachments

func (o *NSExtensionItem) SetAttachments(attachments *NSArray[*NSItemProvider])

func (*NSExtensionItem) SetAttributedContentText

func (o *NSExtensionItem) SetAttributedContentText(attributedContentText *NSAttributedString)

func (*NSExtensionItem) SetAttributedTitle

func (o *NSExtensionItem) SetAttributedTitle(attributedTitle *NSAttributedString)

func (*NSExtensionItem) SetUserInfo

func (o *NSExtensionItem) SetUserInfo(userInfo *NSDictionary[objc.ID, objc.ID])

func (*NSExtensionItem) UserInfo

func (o *NSExtensionItem) UserInfo() *NSDictionary[objc.ID, objc.ID]

type NSExtensionRequestHandling

type NSExtensionRequestHandling interface {
	BeginRequestWithExtensionContext(context_ *NSExtensionContext)
}

NSExtensionRequestHandling wraps the ObjC protocol NSExtensionRequestHandling.

type NSFastEnumeration

type NSFastEnumeration interface {
	CountByEnumeratingWithStateObjectsCount(state *NSFastEnumerationState, buffer **ObjcObject, len_ uint) uint
}

NSFastEnumeration wraps the ObjC protocol NSFastEnumeration.

type NSFastEnumerationState

type NSFastEnumerationState struct {
	State        uint
	ItemsPtr     **ObjcObject
	MutationsPtr unsafe.Pointer
	Extra        [5]uint
}

This defines the structure used as contextual information in the NSFastEnumeration protocol.

type NSFileAccessIntent

type NSFileAccessIntent struct {
	NSObject
}

The details of a coordinated-read or coordinated-write operation.

Apple documentation: https://developer.apple.com/documentation/foundation/nsfileaccessintent

func NSFileAccessIntentFromID

func NSFileAccessIntentFromID(id objc.ID) *NSFileAccessIntent

func NSFileAccessIntentReadingIntentWithURLOptions

func NSFileAccessIntentReadingIntentWithURLOptions(url *NSURL, options NSFileCoordinatorReadingOptions) *NSFileAccessIntent

Returns a file access intent object for reading the given URL with the provided options.

func NSFileAccessIntentWritingIntentWithURLOptions

func NSFileAccessIntentWritingIntentWithURLOptions(url *NSURL, options NSFileCoordinatorWritingOptions) *NSFileAccessIntent

Returns a file access intent object for writing to the given URL with the provided options.

func (*NSFileAccessIntent) URL

func (o *NSFileAccessIntent) URL() *NSURL

type NSFileCoordinator

type NSFileCoordinator struct {
	NSObject
}

An object that coordinates the reading and writing of files and directories among file presenters.

Apple documentation: https://developer.apple.com/documentation/foundation/nsfilecoordinator

func NSFileCoordinatorFromID

func NSFileCoordinatorFromID(id objc.ID) *NSFileCoordinator

func (*NSFileCoordinator) Cancel

func (o *NSFileCoordinator) Cancel()

Cancels any active file coordination calls.

func (*NSFileCoordinator) CoordinateAccessWithIntentsQueueByAccessor

func (o *NSFileCoordinator) CoordinateAccessWithIntentsQueueByAccessor(intents *NSArray[*NSFileAccessIntent], queue *NSOperationQueue, accessor func(unsafe.Pointer))

Performs a number of coordinated-read or -write operations asynchronously.

func (*NSFileCoordinator) CoordinateReadingItemAtURLOptionsErrorByAccessor

func (o *NSFileCoordinator) CoordinateReadingItemAtURLOptionsErrorByAccessor(url *NSURL, options NSFileCoordinatorReadingOptions, outError unsafe.Pointer, reader func(*NSURL))

Initiates a read operation on a single file or directory using the specified options.

func (*NSFileCoordinator) CoordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor

func (o *NSFileCoordinator) CoordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(readingURL *NSURL, readingOptions NSFileCoordinatorReadingOptions, writingURL *NSURL, writingOptions NSFileCoordinatorWritingOptions, outError unsafe.Pointer, readerWriter func(*NSURL, *NSURL))

Initiates a read operation that contains a follow-up write operation.

func (*NSFileCoordinator) CoordinateWritingItemAtURLOptionsErrorByAccessor

func (o *NSFileCoordinator) CoordinateWritingItemAtURLOptionsErrorByAccessor(url *NSURL, options NSFileCoordinatorWritingOptions, outError unsafe.Pointer, writer func(*NSURL))

Initiates a write operation on a single file or directory using the specified options.

func (*NSFileCoordinator) CoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor

func (o *NSFileCoordinator) CoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(url1 *NSURL, options1 NSFileCoordinatorWritingOptions, url2 *NSURL, options2 NSFileCoordinatorWritingOptions, outError unsafe.Pointer, writer func(*NSURL, *NSURL))

Initiates a write operation that involves a secondary write operation.

func (*NSFileCoordinator) InitWithFilePresenter

func (o *NSFileCoordinator) InitWithFilePresenter(filePresenterOrNil NSFilePresenter) *NSFileCoordinator

Initializes and returns a file coordinator object using the specified file presenter.

func (*NSFileCoordinator) ItemAtURLDidChangeUbiquityAttributes

func (o *NSFileCoordinator) ItemAtURLDidChangeUbiquityAttributes(url *NSURL, attributes *NSSet[*NSString])

Tells observing file providers that the item’s ubiquity attributes have changed.

func (*NSFileCoordinator) ItemAtURLDidMoveToURL

func (o *NSFileCoordinator) ItemAtURLDidMoveToURL(oldURL *NSURL, newURL *NSURL)

Notifies relevant file presenters that the location of a file or directory changed.

func (*NSFileCoordinator) ItemAtURLWillMoveToURL

func (o *NSFileCoordinator) ItemAtURLWillMoveToURL(oldURL *NSURL, newURL *NSURL)

Announces that your app is moving a file to a new URL.

func (*NSFileCoordinator) PrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor

func (o *NSFileCoordinator) PrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor(readingURLs *NSArray[*NSURL], readingOptions NSFileCoordinatorReadingOptions, writingURLs *NSArray[*NSURL], writingOptions NSFileCoordinatorWritingOptions, outError unsafe.Pointer, batchAccessor func(objc.Block))

Prepare to read or write from multiple files in a single batch operation.

func (*NSFileCoordinator) PurposeIdentifier

func (o *NSFileCoordinator) PurposeIdentifier() *NSString

func (*NSFileCoordinator) SetPurposeIdentifier

func (o *NSFileCoordinator) SetPurposeIdentifier(purposeIdentifier *NSString)

type NSFileCoordinatorReadingOptions

type NSFileCoordinatorReadingOptions uint64

Options to use when reading the contents or attributes of a file or directory.

const (
	NSFileCoordinatorReadingWithoutChanges                   NSFileCoordinatorReadingOptions = 1
	NSFileCoordinatorReadingResolvesSymbolicLink             NSFileCoordinatorReadingOptions = 2
	NSFileCoordinatorReadingImmediatelyAvailableMetadataOnly NSFileCoordinatorReadingOptions = 4
	NSFileCoordinatorReadingForUploading                     NSFileCoordinatorReadingOptions = 8
)

func (NSFileCoordinatorReadingOptions) String

type NSFileCoordinatorWritingOptions

type NSFileCoordinatorWritingOptions uint64

Options to use when changing the contents or attributes of a file or directory.

const (
	NSFileCoordinatorWritingForDeleting                    NSFileCoordinatorWritingOptions = 1
	NSFileCoordinatorWritingForMoving                      NSFileCoordinatorWritingOptions = 2
	NSFileCoordinatorWritingForMerging                     NSFileCoordinatorWritingOptions = 4
	NSFileCoordinatorWritingForReplacing                   NSFileCoordinatorWritingOptions = 8
	NSFileCoordinatorWritingContentIndependentMetadataOnly NSFileCoordinatorWritingOptions = 16
)

func (NSFileCoordinatorWritingOptions) String

type NSFileHandle

type NSFileHandle struct {
	NSObject
}

An object-oriented wrapper for a file descriptor.

Apple documentation: https://developer.apple.com/documentation/foundation/nsfilehandle

func NSFileHandleFileHandleForReadingAtPath

func NSFileHandleFileHandleForReadingAtPath(path *NSString) *NSFileHandle

func NSFileHandleFileHandleForReadingFromURLError

func NSFileHandleFileHandleForReadingFromURLError(url *NSURL) (*NSFileHandle, error)

func NSFileHandleFileHandleForUpdatingAtPath

func NSFileHandleFileHandleForUpdatingAtPath(path *NSString) *NSFileHandle

func NSFileHandleFileHandleForUpdatingURLError

func NSFileHandleFileHandleForUpdatingURLError(url *NSURL) (*NSFileHandle, error)

func NSFileHandleFileHandleForWritingAtPath

func NSFileHandleFileHandleForWritingAtPath(path *NSString) *NSFileHandle

func NSFileHandleFileHandleForWritingToURLError

func NSFileHandleFileHandleForWritingToURLError(url *NSURL) (*NSFileHandle, error)

func NSFileHandleFileHandleWithNullDevice

func NSFileHandleFileHandleWithNullDevice() *NSFileHandle

func NSFileHandleFileHandleWithStandardError

func NSFileHandleFileHandleWithStandardError() *NSFileHandle

func NSFileHandleFileHandleWithStandardInput

func NSFileHandleFileHandleWithStandardInput() *NSFileHandle

func NSFileHandleFileHandleWithStandardOutput

func NSFileHandleFileHandleWithStandardOutput() *NSFileHandle

func NSFileHandleFromID

func NSFileHandleFromID(id objc.ID) *NSFileHandle

func (*NSFileHandle) AcceptConnectionInBackgroundAndNotify

func (o *NSFileHandle) AcceptConnectionInBackgroundAndNotify()

func (*NSFileHandle) AcceptConnectionInBackgroundAndNotifyForModes

func (o *NSFileHandle) AcceptConnectionInBackgroundAndNotifyForModes(modes *NSArray[*NSString])

func (*NSFileHandle) AvailableData

func (o *NSFileHandle) AvailableData() *NSData

func (*NSFileHandle) CloseAndReturnError

func (o *NSFileHandle) CloseAndReturnError() (bool, error)

func (*NSFileHandle) CloseFile

func (o *NSFileHandle) CloseFile()

func (*NSFileHandle) FileDescriptor

func (o *NSFileHandle) FileDescriptor() int

func (*NSFileHandle) GetOffsetError

func (o *NSFileHandle) GetOffsetError(offsetInFile *uint64) (bool, error)

Get the current position of the file pointer within the file.

func (*NSFileHandle) InitWithCoder

func (o *NSFileHandle) InitWithCoder(coder *NSCoder) *NSFileHandle

func (*NSFileHandle) InitWithFileDescriptor

func (o *NSFileHandle) InitWithFileDescriptor(fd int) *NSFileHandle

func (*NSFileHandle) InitWithFileDescriptorCloseOnDealloc

func (o *NSFileHandle) InitWithFileDescriptorCloseOnDealloc(fd int, closeopt bool) *NSFileHandle

func (*NSFileHandle) OffsetInFile

func (o *NSFileHandle) OffsetInFile() uint64

func (*NSFileHandle) ReadDataOfLength

func (o *NSFileHandle) ReadDataOfLength(length uint) *NSData

func (*NSFileHandle) ReadDataToEndOfFile

func (o *NSFileHandle) ReadDataToEndOfFile() *NSData

func (*NSFileHandle) ReadDataToEndOfFileAndReturnError

func (o *NSFileHandle) ReadDataToEndOfFileAndReturnError() (*NSData, error)

Reads the available data synchronously up to the end of file or maximum number of bytes.

func (*NSFileHandle) ReadDataUpToLengthError

func (o *NSFileHandle) ReadDataUpToLengthError(length uint) (*NSData, error)

Reads data synchronously up to the specified number of bytes.

func (*NSFileHandle) ReadInBackgroundAndNotify

func (o *NSFileHandle) ReadInBackgroundAndNotify()

func (*NSFileHandle) ReadInBackgroundAndNotifyForModes deprecated

func (o *NSFileHandle) ReadInBackgroundAndNotifyForModes(modes *NSArray[*NSString])

Deprecated: Not supported

func (*NSFileHandle) ReadToEndOfFileInBackgroundAndNotify

func (o *NSFileHandle) ReadToEndOfFileInBackgroundAndNotify()

func (*NSFileHandle) ReadToEndOfFileInBackgroundAndNotifyForModes

func (o *NSFileHandle) ReadToEndOfFileInBackgroundAndNotifyForModes(modes *NSArray[*NSString])

func (*NSFileHandle) ReadabilityHandler

func (o *NSFileHandle) ReadabilityHandler() objc.Block

func (*NSFileHandle) SeekToEndOfFile

func (o *NSFileHandle) SeekToEndOfFile() uint64

func (*NSFileHandle) SeekToEndReturningOffsetError

func (o *NSFileHandle) SeekToEndReturningOffsetError(offsetInFile *uint64) (bool, error)

Places the file pointer at the end of the file referenced by the file handle and returns the new file offset.

func (*NSFileHandle) SeekToFileOffset

func (o *NSFileHandle) SeekToFileOffset(offset uint64)

func (*NSFileHandle) SeekToOffsetError

func (o *NSFileHandle) SeekToOffsetError(offset uint64) (bool, error)

func (*NSFileHandle) SetReadabilityHandler

func (o *NSFileHandle) SetReadabilityHandler(readabilityHandler func(*NSFileHandle))

func (*NSFileHandle) SetWriteabilityHandler

func (o *NSFileHandle) SetWriteabilityHandler(writeabilityHandler func(*NSFileHandle))

func (*NSFileHandle) SynchronizeAndReturnError

func (o *NSFileHandle) SynchronizeAndReturnError() (bool, error)

func (*NSFileHandle) SynchronizeFile

func (o *NSFileHandle) SynchronizeFile()

func (*NSFileHandle) TruncateAtOffsetError

func (o *NSFileHandle) TruncateAtOffsetError(offset uint64) (bool, error)

func (*NSFileHandle) TruncateFileAtOffset

func (o *NSFileHandle) TruncateFileAtOffset(offset uint64)

func (*NSFileHandle) WaitForDataInBackgroundAndNotify

func (o *NSFileHandle) WaitForDataInBackgroundAndNotify()

func (*NSFileHandle) WaitForDataInBackgroundAndNotifyForModes

func (o *NSFileHandle) WaitForDataInBackgroundAndNotifyForModes(modes *NSArray[*NSString])

func (*NSFileHandle) WriteData

func (o *NSFileHandle) WriteData(data *NSData)

func (*NSFileHandle) WriteDataError

func (o *NSFileHandle) WriteDataError(data *NSData) (bool, error)

Writes the specified data synchronously to the file handle.

func (*NSFileHandle) WriteabilityHandler

func (o *NSFileHandle) WriteabilityHandler() objc.Block

type NSFileManager

type NSFileManager struct {
	NSObject
}

A convenient interface to the contents of the file system, and the primary means of interacting with it.

Apple documentation: https://developer.apple.com/documentation/foundation/nsfilemanager

func NSFileManagerDefaultManager

func NSFileManagerDefaultManager() *NSFileManager

func NSFileManagerFromID

func NSFileManagerFromID(id objc.ID) *NSFileManager

func (*NSFileManager) AttributesOfFileSystemForPathError

func (o *NSFileManager) AttributesOfFileSystemForPathError(path *NSString) (*NSDictionary[*NSString, objc.ID], error)

func (*NSFileManager) AttributesOfItemAtPathError

func (o *NSFileManager) AttributesOfItemAtPathError(path *NSString) (*NSDictionary[*NSString, objc.ID], error)

func (*NSFileManager) ChangeCurrentDirectoryPath

func (o *NSFileManager) ChangeCurrentDirectoryPath(path *NSString) bool

func (*NSFileManager) ChangeFileAttributesAtPath deprecated

func (o *NSFileManager) ChangeFileAttributesAtPath(attributes *NSDictionary[objc.ID, objc.ID], path *NSString) bool

Deprecated: Use -setAttributes:ofItemAtPath:error: instead

func (*NSFileManager) ComponentsToDisplayForPath

func (o *NSFileManager) ComponentsToDisplayForPath(path *NSString) *NSArray[*NSString]

func (*NSFileManager) ContainerURLForSecurityApplicationGroupIdentifier

func (o *NSFileManager) ContainerURLForSecurityApplicationGroupIdentifier(groupIdentifier *NSString) *NSURL

func (*NSFileManager) ContentsAtPath

func (o *NSFileManager) ContentsAtPath(path *NSString) *NSData

func (*NSFileManager) ContentsEqualAtPathAndPath

func (o *NSFileManager) ContentsEqualAtPathAndPath(path1 *NSString, path2 *NSString) bool

func (*NSFileManager) ContentsOfDirectoryAtPathError

func (o *NSFileManager) ContentsOfDirectoryAtPathError(path *NSString) (*NSArray[*NSString], error)

func (*NSFileManager) ContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError

func (o *NSFileManager) ContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(url *NSURL, keys *NSArray[*NSString], mask NSDirectoryEnumerationOptions) (*NSArray[*NSURL], error)

func (*NSFileManager) CopyItemAtPathToPathError

func (o *NSFileManager) CopyItemAtPathToPathError(srcPath *NSString, dstPath *NSString) (bool, error)

func (*NSFileManager) CopyItemAtURLToURLError

func (o *NSFileManager) CopyItemAtURLToURLError(srcURL *NSURL, dstURL *NSURL) (bool, error)

func (*NSFileManager) CopyPathToPathHandler

func (o *NSFileManager) CopyPathToPathHandler(src *NSString, dest *NSString, handler objc.ID) bool

Copies the directory or file specified in a given path to a different location in the file system identified by another path. Deprecated: Not supported

func (*NSFileManager) CreateDirectoryAtPathAttributes deprecated

func (o *NSFileManager) CreateDirectoryAtPathAttributes(path *NSString, attributes *NSDictionary[objc.ID, objc.ID]) bool

Deprecated: Use -createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead

func (*NSFileManager) CreateDirectoryAtPathWithIntermediateDirectoriesAttributesError

func (o *NSFileManager) CreateDirectoryAtPathWithIntermediateDirectoriesAttributesError(path *NSString, createIntermediates bool, attributes *NSDictionary[*NSString, objc.ID]) (bool, error)

func (*NSFileManager) CreateDirectoryAtURLWithIntermediateDirectoriesAttributesError

func (o *NSFileManager) CreateDirectoryAtURLWithIntermediateDirectoriesAttributesError(url *NSURL, createIntermediates bool, attributes *NSDictionary[*NSString, objc.ID]) (bool, error)

func (*NSFileManager) CreateFileAtPathContentsAttributes

func (o *NSFileManager) CreateFileAtPathContentsAttributes(path *NSString, data *NSData, attr *NSDictionary[*NSString, objc.ID]) bool

func (*NSFileManager) CreateSymbolicLinkAtPathPathContent deprecated

func (o *NSFileManager) CreateSymbolicLinkAtPathPathContent(path *NSString, otherpath *NSString) bool

Deprecated: Use -createSymbolicLinkAtPath:error: instead

func (*NSFileManager) CreateSymbolicLinkAtPathWithDestinationPathError

func (o *NSFileManager) CreateSymbolicLinkAtPathWithDestinationPathError(path *NSString, destPath *NSString) (bool, error)

func (*NSFileManager) CreateSymbolicLinkAtURLWithDestinationURLError

func (o *NSFileManager) CreateSymbolicLinkAtURLWithDestinationURLError(url *NSURL, destURL *NSURL) (bool, error)

func (*NSFileManager) CurrentDirectoryPath

func (o *NSFileManager) CurrentDirectoryPath() *NSString

func (*NSFileManager) Delegate

func (o *NSFileManager) Delegate() NSFileManagerDelegate

func (*NSFileManager) DestinationOfSymbolicLinkAtPathError

func (o *NSFileManager) DestinationOfSymbolicLinkAtPathError(path *NSString) (*NSString, error)

func (*NSFileManager) DirectoryContentsAtPath deprecated

func (o *NSFileManager) DirectoryContentsAtPath(path *NSString) *NSArray[objc.ID]

Deprecated: Use -contentsOfDirectoryAtPath:error: instead

func (*NSFileManager) DisplayNameAtPath

func (o *NSFileManager) DisplayNameAtPath(path *NSString) *NSString

func (*NSFileManager) EnumeratorAtPath

func (o *NSFileManager) EnumeratorAtPath(path *NSString) *NSDirectoryEnumerator[*NSString]

func (*NSFileManager) EnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler

func (o *NSFileManager) EnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler(url *NSURL, keys *NSArray[*NSString], mask NSDirectoryEnumerationOptions, handler func(*NSURL, unsafe.Pointer) bool) *NSDirectoryEnumerator[*NSURL]

Returns a directory enumerator object that can be used to perform a deep enumeration of the directory at the specified URL.

func (*NSFileManager) EvictUbiquitousItemAtURLError

func (o *NSFileManager) EvictUbiquitousItemAtURLError(url *NSURL) (bool, error)

func (*NSFileManager) FetchLatestRemoteVersionOfItemAtURLCompletionHandler

func (o *NSFileManager) FetchLatestRemoteVersionOfItemAtURLCompletionHandler(url *NSURL, completionHandler func(*NSFileVersion, unsafe.Pointer))

Asynchronously fetches the latest remote version of a given item from the server. Use this method if uploading fails due to a version conflict and sync is paused. In this case, fetching the latest remote version allows you to inspect the newer item from the server, resolve the conflict, and resume uploading. The version provided by this call depends on several factors: * If there is no newer version of the file on the server, the caller receives the current version of the file. * If the server has a newer version and sync isn't paused, this call replaces the local item and provides the version of the new item. * If the server has a newer version but sync is paused, the returned version points to a side location. In this case, call “NSFileVersion/replaceItem(at:options:)“ on the provided version object to replace the local item with the newer item from the server. If the device isn't connected to the network, the call may fail with “NSFileReadUnknownError-enum.case“, with the underlying error of <doc://com.apple.documentation/documentation/FileProvider/NSFileProviderError/serverUnreachable>. - Parameters: - url: The URL of the item for which to check the version. - completionHandler: A closure or block that the framework calls when the fetch action completes. It receives parameters of types “NSFileVersion“ and “NSError“. The error is `nil` if fetching the remote version succeeded; otherwise it indicates the error that caused the call to fail. In Swift, you can omit the completion handler, catching any error in a `do`-`catch` block and receiving the version as the return value.

func (o *NSFileManager) FileAttributesAtPathTraverseLink(path *NSString, yorn bool) *NSDictionary[objc.ID, objc.ID]

Deprecated: Use -attributesOfItemAtPath:error: instead

func (*NSFileManager) FileExistsAtPath

func (o *NSFileManager) FileExistsAtPath(path *NSString) bool

func (*NSFileManager) FileExistsAtPathIsDirectory

func (o *NSFileManager) FileExistsAtPathIsDirectory(path *NSString, isDirectory *bool) bool

func (*NSFileManager) FileSystemAttributesAtPath deprecated

func (o *NSFileManager) FileSystemAttributesAtPath(path *NSString) *NSDictionary[objc.ID, objc.ID]

Deprecated: Use -attributesOfFileSystemForPath:error: instead

func (*NSFileManager) FileSystemRepresentationWithPath

func (o *NSFileManager) FileSystemRepresentationWithPath(path *NSString) string

func (*NSFileManager) GetFileProviderServicesForItemAtURLCompletionHandler

func (o *NSFileManager) GetFileProviderServicesForItemAtURLCompletionHandler(url *NSURL, completionHandler func(*NSDictionary[*NSString, *NSFileProviderService], unsafe.Pointer))

func (*NSFileManager) GetRelationshipOfDirectoryAtURLToItemAtURLError

func (o *NSFileManager) GetRelationshipOfDirectoryAtURLToItemAtURLError(outRelationship *NSURLRelationship, directoryURL *NSURL, otherURL *NSURL) (bool, error)

func (*NSFileManager) GetRelationshipOfDirectoryInDomainToItemAtURLError

func (o *NSFileManager) GetRelationshipOfDirectoryInDomainToItemAtURLError(outRelationship *NSURLRelationship, directory NSSearchPathDirectory, domainMask NSSearchPathDomainMask, url *NSURL) (bool, error)

func (*NSFileManager) HomeDirectoryForCurrentUser

func (o *NSFileManager) HomeDirectoryForCurrentUser() *NSURL

func (*NSFileManager) HomeDirectoryForUser

func (o *NSFileManager) HomeDirectoryForUser(userName *NSString) *NSURL

func (*NSFileManager) IsDeletableFileAtPath

func (o *NSFileManager) IsDeletableFileAtPath(path *NSString) bool

func (*NSFileManager) IsExecutableFileAtPath

func (o *NSFileManager) IsExecutableFileAtPath(path *NSString) bool

func (*NSFileManager) IsReadableFileAtPath

func (o *NSFileManager) IsReadableFileAtPath(path *NSString) bool

func (*NSFileManager) IsUbiquitousItemAtURL

func (o *NSFileManager) IsUbiquitousItemAtURL(url *NSURL) bool

func (*NSFileManager) IsWritableFileAtPath

func (o *NSFileManager) IsWritableFileAtPath(path *NSString) bool

func (*NSFileManager) LinkItemAtPathToPathError

func (o *NSFileManager) LinkItemAtPathToPathError(srcPath *NSString, dstPath *NSString) (bool, error)

func (*NSFileManager) LinkItemAtURLToURLError

func (o *NSFileManager) LinkItemAtURLToURLError(srcURL *NSURL, dstURL *NSURL) (bool, error)

func (*NSFileManager) LinkPathToPathHandler

func (o *NSFileManager) LinkPathToPathHandler(src *NSString, dest *NSString, handler objc.ID) bool

Creates a link from a source to a destination. Deprecated: Not supported

func (*NSFileManager) MountedVolumeURLsIncludingResourceValuesForKeysOptions

func (o *NSFileManager) MountedVolumeURLsIncludingResourceValuesForKeysOptions(propertyKeys *NSArray[*NSString], options NSVolumeEnumerationOptions) *NSArray[*NSURL]

func (*NSFileManager) MoveItemAtPathToPathError

func (o *NSFileManager) MoveItemAtPathToPathError(srcPath *NSString, dstPath *NSString) (bool, error)

func (*NSFileManager) MoveItemAtURLToURLError

func (o *NSFileManager) MoveItemAtURLToURLError(srcURL *NSURL, dstURL *NSURL) (bool, error)

func (*NSFileManager) MovePathToPathHandler

func (o *NSFileManager) MovePathToPathHandler(src *NSString, dest *NSString, handler objc.ID) bool

Moves the directory or file specified by a given path to a different location in the file system identified by another path. Deprecated: Not supported

func (*NSFileManager) PathContentOfSymbolicLinkAtPath deprecated

func (o *NSFileManager) PathContentOfSymbolicLinkAtPath(path *NSString) *NSString

Deprecated: Use -destinationOfSymbolicLinkAtPath:error:

func (*NSFileManager) PauseSyncForUbiquitousItemAtURLCompletionHandler

func (o *NSFileManager) PauseSyncForUbiquitousItemAtURLCompletionHandler(url *NSURL, completionHandler func(unsafe.Pointer))

Asynchronously pauses sync of an item at the given URL. Call this when opening an item to prevent sync from altering the contents of the URL. Once paused, the file provider will not upload local changes nor download remote changes. While paused, call “uploadLocalVersionOfUbiquitousItem(at:withConflictResolutionPolicy:completionHandler:)“ when the document is in a stable state. This action keeps the server version as up-to-date as possible. If the item is already paused, a second call to this method reports success. If the file provider is already applying changes to the item, the pause fails with an “NSFileWriteUnknownError-enum.case“, with an underlying error that has domain “NSPOSIXErrorDomain“ and code “POSIXError/EBUSY“. If the pause fails, wait for the state to stabilize before retrying. Pausing also fails with “CocoaError/featureUnsupported“ if `url` refers to a regular (non-package) directory. Pausing sync is independent of the calling app's lifecycle; sync doesn't automatically resume if the app closes or crashes and relaunches later. To resume syncing, explicitly call “resumeSyncForUbiquitousItem(at:with:completionHandler:)“. Always be sure to resume syncing before you close the item. - Parameters: - url: The URL of the item for which to pause sync. - completionHandler: A closure or block that the framework calls when the pause action completes. It receives a single “NSError“ parameter to indicate an error that prevented pausing; this value is `nil` if the pause succeeded. In Swift, you can omit the completion handler and catch the thrown error instead.

func (*NSFileManager) RemoveFileAtPathHandler

func (o *NSFileManager) RemoveFileAtPathHandler(path *NSString, handler objc.ID) bool

Deletes the file, link, or directory (including, recursively, all subdirectories, files, and links in the directory) identified by a given path. Deprecated: Not supported

func (*NSFileManager) RemoveItemAtPathError

func (o *NSFileManager) RemoveItemAtPathError(path *NSString) (bool, error)

func (*NSFileManager) RemoveItemAtURLError

func (o *NSFileManager) RemoveItemAtURLError(uRL *NSURL) (bool, error)

func (*NSFileManager) ReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError

func (o *NSFileManager) ReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError(originalItemURL *NSURL, newItemURL *NSURL, backupItemName *NSString, options NSFileManagerItemReplacementOptions, resultingURL *NSURL) (bool, error)

func (*NSFileManager) ResumeSyncForUbiquitousItemAtURLWithBehaviorCompletionHandler

func (o *NSFileManager) ResumeSyncForUbiquitousItemAtURLWithBehaviorCompletionHandler(url *NSURL, behavior NSFileManagerResumeSyncBehavior, completionHandler func(unsafe.Pointer))

Asynchronously resumes the sync on a paused item using the given resume behavior. Always call this method when your app closes an item to allow the file provider to sync local changes back to the server. In most situations, the “NSFileManagerResumeSyncBehavior/preserveLocalChanges“ behavior is the best choice to avoid any risk of data loss. The resume call fails with “CocoaError/featureUnsupported“ if `url` isn't currently paused. If the device isn't connected to the network, the call may fail with “NSFileWriteUnknownError-enum.case“, with the underlying error of <doc://com.apple.documentation/documentation/FileProvider/NSFileProviderError/serverUnreachable>. - Parameters: - url: The URL of the item for which to resume sync. - behavior: A “NSFileManagerResumeSyncBehavior“ value that tells the file manager how to handle conflicts between local and remote versions of files. - completionHandler: A closure or block that the framework calls when the resume action completes. It receives a single “NSError“ parameter to indicate an error that prevented the resume action; the value is `nil` if the resume succeeded. In Swift, you can omit the completion handler and catch the thrown error instead.

func (*NSFileManager) SetAttributesOfItemAtPathError

func (o *NSFileManager) SetAttributesOfItemAtPathError(attributes *NSDictionary[*NSString, objc.ID], path *NSString) (bool, error)

func (*NSFileManager) SetDelegate

func (o *NSFileManager) SetDelegate(delegate NSFileManagerDelegate)

func (*NSFileManager) SetUbiquitousItemAtURLDestinationURLError

func (o *NSFileManager) SetUbiquitousItemAtURLDestinationURLError(flag bool, url *NSURL, destinationURL *NSURL) (bool, error)

func (*NSFileManager) StartDownloadingUbiquitousItemAtURLError

func (o *NSFileManager) StartDownloadingUbiquitousItemAtURLError(url *NSURL) (bool, error)

func (*NSFileManager) StringWithFileSystemRepresentationLength

func (o *NSFileManager) StringWithFileSystemRepresentationLength(str string, len_ uint) *NSString

func (*NSFileManager) SubpathsAtPath

func (o *NSFileManager) SubpathsAtPath(path *NSString) *NSArray[*NSString]

func (*NSFileManager) SubpathsOfDirectoryAtPathError

func (o *NSFileManager) SubpathsOfDirectoryAtPathError(path *NSString) (*NSArray[*NSString], error)

func (*NSFileManager) TemporaryDirectory

func (o *NSFileManager) TemporaryDirectory() *NSURL

func (*NSFileManager) TrashItemAtURLResultingItemURLError

func (o *NSFileManager) TrashItemAtURLResultingItemURLError(url *NSURL, outResultingURL *NSURL) (bool, error)

func (*NSFileManager) URLForDirectoryInDomainAppropriateForURLCreateError

func (o *NSFileManager) URLForDirectoryInDomainAppropriateForURLCreateError(directory NSSearchPathDirectory, domain NSSearchPathDomainMask, url *NSURL, shouldCreate bool) (*NSURL, error)

func (*NSFileManager) URLForPublishingUbiquitousItemAtURLExpirationDateError

func (o *NSFileManager) URLForPublishingUbiquitousItemAtURLExpirationDateError(url *NSURL, outDate *NSDate) (*NSURL, error)

func (*NSFileManager) URLForUbiquityContainerIdentifier

func (o *NSFileManager) URLForUbiquityContainerIdentifier(containerIdentifier *NSString) *NSURL

func (*NSFileManager) URLsForDirectoryInDomains

func (o *NSFileManager) URLsForDirectoryInDomains(directory NSSearchPathDirectory, domainMask NSSearchPathDomainMask) *NSArray[*NSURL]

func (*NSFileManager) UbiquityIdentityToken

func (o *NSFileManager) UbiquityIdentityToken() objc.ID

func (*NSFileManager) UnmountVolumeAtURLOptionsCompletionHandler

func (o *NSFileManager) UnmountVolumeAtURLOptionsCompletionHandler(url *NSURL, mask NSFileManagerUnmountOptions, completionHandler func(unsafe.Pointer))

func (*NSFileManager) UploadLocalVersionOfUbiquitousItemAtURLWithConflictResolutionPolicyCompletionHandler

func (o *NSFileManager) UploadLocalVersionOfUbiquitousItemAtURLWithConflictResolutionPolicyCompletionHandler(url *NSURL, conflictResolutionPolicy NSFileManagerUploadLocalVersionConflictPolicy, completionHandler func(*NSFileVersion, unsafe.Pointer))

Asynchronously uploads the local version of the item using the provided conflict resolution policy. Once your app pauses a sync for an item, call this method every time your document is in a stable state. This action keeps the server version as up-to-date as possible. If the server has a newer version than the one to which the app made changes, uploading fails with “NSFileWriteUnknownError-enum.case“, with an underlying error of <doc://com.apple.documentation/documentation/FileProvider/NSFileProviderError/localVersionConflictingWithServer>. In this case, call “FileManager/fetchLatestRemoteVersionOfItem(at:completionHandler:)“, rebase local changes on top of that version, and retry the upload. If the device isn't connected to the network, the call may fail with “NSFileWriteUnknownError-enum.case“, with the underlying error of <doc://com.apple.documentation/documentation/FileProvider/NSFileProviderError/serverUnreachable>. - Parameters: - url: The URL of the item for which to check the version. - conflictResolutionPolicy: The policy the file manager applies if the local and server versions conflict. - completionHandler: A closure or block that the framework calls when the upload completes. It receives parameters of types “NSFileVersion“ and “NSError“. The error is `nil` if fetching the remote version succeeded; otherwise it indicates the error that caused the call to fail. In Swift, you can omit the completion handler, catching any error in a `do`-`catch` block and receiving the version as the return value.

type NSFileManagerDelegate

type NSFileManagerDelegate interface {
}

NSFileManagerDelegate wraps the ObjC protocol NSFileManagerDelegate.

type NSFileManagerItemReplacementOptions

type NSFileManagerItemReplacementOptions uint64

Options for specifying the behavior of file replacement operations.

const (
	NSFileManagerItemReplacementUsingNewMetadataOnly      NSFileManagerItemReplacementOptions = 1
	NSFileManagerItemReplacementWithoutDeletingBackupItem NSFileManagerItemReplacementOptions = 2
)

func (NSFileManagerItemReplacementOptions) String

type NSFileManagerResumeSyncBehavior

type NSFileManagerResumeSyncBehavior int64

The behaviors the file manager can apply to resolve conflicts when resuming a sync.

const (
	// Resumes synchronizing by uploading the local version of the file.
	NSFileManagerResumeSyncBehaviorPreserveLocalChanges NSFileManagerResumeSyncBehavior = 0
	// Resumes sync by first uploading the local version of the file, failing if the provider detects a conflict.
	NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict NSFileManagerResumeSyncBehavior = 1
	// Resumes synchronizing by overwriting any local changes with the remote version of the file.
	NSFileManagerResumeSyncBehaviorDropLocalChanges NSFileManagerResumeSyncBehavior = 2
)

func (NSFileManagerResumeSyncBehavior) String

type NSFileManagerSupportedSyncControls

type NSFileManagerSupportedSyncControls uint64

An option set of the sync controls available for an item.

const (
	// The file provider supports pausing the sync on the item.
	NSFileManagerSupportedSyncControlsPauseSync NSFileManagerSupportedSyncControls = 1
	// The file provider supports failing an upload if the local and server versions conflict.
	NSFileManagerSupportedSyncControlsFailUploadOnConflict NSFileManagerSupportedSyncControls = 2
)

func (NSFileManagerSupportedSyncControls) String

type NSFileManagerUnmountOptions

type NSFileManagerUnmountOptions uint64
const (
	NSFileManagerUnmountAllPartitionsAndEjectDisk NSFileManagerUnmountOptions = 1
	NSFileManagerUnmountWithoutUI                 NSFileManagerUnmountOptions = 2
)

func (NSFileManagerUnmountOptions) String

type NSFileManagerUploadLocalVersionConflictPolicy

type NSFileManagerUploadLocalVersionConflictPolicy int64

The policies the file manager can apply to resolve conflicts when uploading a local version of a file.

const (
	// Resolves the conflict using the policy defined by the file provider.
	NSFileManagerUploadConflictPolicyDefault NSFileManagerUploadLocalVersionConflictPolicy = 0
	// Resolves the conflict by causing the upload to fail.
	NSFileManagerUploadConflictPolicyFailOnConflict NSFileManagerUploadLocalVersionConflictPolicy = 1
)

func (NSFileManagerUploadLocalVersionConflictPolicy) String

type NSFilePresenter

type NSFilePresenter interface {
	PresentedItemURL() *NSURL
	PresentedItemOperationQueue() *NSOperationQueue
}

NSFilePresenter wraps the ObjC protocol NSFilePresenter.

type NSFileProviderService

type NSFileProviderService struct {
	NSObject
}

A service that provides a custom communication channel between your app and a File Provider extension.

Apple documentation: https://developer.apple.com/documentation/foundation/nsfileproviderservice

func NSFileProviderServiceFromID

func NSFileProviderServiceFromID(id objc.ID) *NSFileProviderService

func (*NSFileProviderService) GetFileProviderConnectionWithCompletionHandler

func (o *NSFileProviderService) GetFileProviderConnectionWithCompletionHandler(completionHandler func(*NSXPCConnection, unsafe.Pointer))

Asynchronously returns the service’s connection object.

func (*NSFileProviderService) Name

func (o *NSFileProviderService) Name() *NSString

type NSFileSecurity

type NSFileSecurity struct {
	NSObject
}

A stub class that encapsulates security information about a file.

Apple documentation: https://developer.apple.com/documentation/foundation/nsfilesecurity

func NSFileSecurityFromID

func NSFileSecurityFromID(id objc.ID) *NSFileSecurity

func (*NSFileSecurity) InitWithCoder

func (o *NSFileSecurity) InitWithCoder(coder *NSCoder) *NSFileSecurity

type NSFileVersion

type NSFileVersion struct {
	NSObject
}

A snapshot of a file at a specific point in time.

Apple documentation: https://developer.apple.com/documentation/foundation/nsfileversion

func NSFileVersionAddVersionOfItemAtURLWithContentsOfURLOptionsError

func NSFileVersionAddVersionOfItemAtURLWithContentsOfURLOptionsError(url *NSURL, contentsURL *NSURL, options NSFileVersionAddingOptions) (*NSFileVersion, error)

Creates a version of the file at the specified location.

func NSFileVersionCurrentVersionOfItemAtURL

func NSFileVersionCurrentVersionOfItemAtURL(url *NSURL) *NSFileVersion

Returns the most recent version object for the file at the specified URL.

func NSFileVersionFromID

func NSFileVersionFromID(id objc.ID) *NSFileVersion

func NSFileVersionVersionOfItemAtURLForPersistentIdentifier

func NSFileVersionVersionOfItemAtURLForPersistentIdentifier(url *NSURL, persistentIdentifier objc.ID) *NSFileVersion

Returns the version of the file that has the specified persistent ID.

func (*NSFileVersion) HasLocalContents

func (o *NSFileVersion) HasLocalContents() bool

func (*NSFileVersion) HasThumbnail

func (o *NSFileVersion) HasThumbnail() bool

func (*NSFileVersion) IsConflict

func (o *NSFileVersion) IsConflict() bool

func (*NSFileVersion) IsDiscardable

func (o *NSFileVersion) IsDiscardable() bool

func (*NSFileVersion) IsResolved

func (o *NSFileVersion) IsResolved() bool

func (*NSFileVersion) LocalizedName

func (o *NSFileVersion) LocalizedName() *NSString

func (*NSFileVersion) LocalizedNameOfSavingComputer

func (o *NSFileVersion) LocalizedNameOfSavingComputer() *NSString

func (*NSFileVersion) ModificationDate

func (o *NSFileVersion) ModificationDate() *NSDate

func (*NSFileVersion) OriginatorNameComponents

func (o *NSFileVersion) OriginatorNameComponents() *NSPersonNameComponents

func (*NSFileVersion) PersistentIdentifier

func (o *NSFileVersion) PersistentIdentifier() NSCoding

func (*NSFileVersion) RemoveAndReturnError

func (o *NSFileVersion) RemoveAndReturnError() (bool, error)

Remove this version object and its associated file from the version store.

func (*NSFileVersion) ReplaceItemAtURLOptionsError

func (o *NSFileVersion) ReplaceItemAtURLOptionsError(url *NSURL, options NSFileVersionReplacingOptions) (*NSURL, error)

Replace the contents of the specified file with the contents of the current version’s file.

func (*NSFileVersion) SetDiscardable

func (o *NSFileVersion) SetDiscardable(discardable bool)

func (*NSFileVersion) SetResolved

func (o *NSFileVersion) SetResolved(resolved bool)

func (*NSFileVersion) URL

func (o *NSFileVersion) URL() *NSURL

type NSFileVersionAddingOptions

type NSFileVersionAddingOptions uint64

Options for adding a new file version.

const (
	NSFileVersionAddingByMoving NSFileVersionAddingOptions = 1
)

func (NSFileVersionAddingOptions) String

type NSFileVersionReplacingOptions

type NSFileVersionReplacingOptions uint64

Options for replacing a file version.

const (
	NSFileVersionReplacingByMoving NSFileVersionReplacingOptions = 1
)

func (NSFileVersionReplacingOptions) String

type NSFileWrapper

type NSFileWrapper struct {
	NSObject
}

A representation of a node (a file, directory, or symbolic link) in the file system.

Apple documentation: https://developer.apple.com/documentation/foundation/nsfilewrapper

func NSFileWrapperFromID

func NSFileWrapperFromID(id objc.ID) *NSFileWrapper

func (*NSFileWrapper) AddFileWithPath deprecated

func (o *NSFileWrapper) AddFileWithPath(path *NSString) *NSString

Deprecated: Instantiate a new NSFileWrapper with -initWithURL:options:error:, send it -setPreferredFileName: if necessary, then use -addFileWrapper: instead.

func (*NSFileWrapper) AddFileWrapper

func (o *NSFileWrapper) AddFileWrapper(child *NSFileWrapper) *NSString

func (*NSFileWrapper) AddRegularFileWithContentsPreferredFilename

func (o *NSFileWrapper) AddRegularFileWithContentsPreferredFilename(data *NSData, fileName *NSString) *NSString

func (*NSFileWrapper) AddSymbolicLinkWithDestinationPreferredFilename deprecated

func (o *NSFileWrapper) AddSymbolicLinkWithDestinationPreferredFilename(path *NSString, filename *NSString) *NSString

Deprecated: Instantiate a new NSFileWrapper with -initWithSymbolicLinkDestinationURL:, send it -setPreferredFileName: if necessary, then use -addFileWrapper: instead.

func (*NSFileWrapper) FileAttributes

func (o *NSFileWrapper) FileAttributes() *NSDictionary[*NSString, objc.ID]

func (*NSFileWrapper) FileWrappers

func (o *NSFileWrapper) FileWrappers() *NSDictionary[*NSString, *NSFileWrapper]

func (*NSFileWrapper) Filename

func (o *NSFileWrapper) Filename() *NSString

func (*NSFileWrapper) InitDirectoryWithFileWrappers

func (o *NSFileWrapper) InitDirectoryWithFileWrappers(childrenByPreferredName *NSDictionary[*NSString, *NSFileWrapper]) *NSFileWrapper

func (*NSFileWrapper) InitRegularFileWithContents

func (o *NSFileWrapper) InitRegularFileWithContents(contents *NSData) *NSFileWrapper

func (*NSFileWrapper) InitSymbolicLinkWithDestination deprecated

func (o *NSFileWrapper) InitSymbolicLinkWithDestination(path *NSString) objc.ID

Deprecated: Use -initSymbolicLinkWithDestinationURL: and -setPreferredFileName:, if necessary, instead.

func (*NSFileWrapper) InitSymbolicLinkWithDestinationURL

func (o *NSFileWrapper) InitSymbolicLinkWithDestinationURL(url *NSURL) *NSFileWrapper

func (*NSFileWrapper) InitWithCoder

func (o *NSFileWrapper) InitWithCoder(inCoder *NSCoder) *NSFileWrapper

func (*NSFileWrapper) InitWithPath deprecated

func (o *NSFileWrapper) InitWithPath(path *NSString) objc.ID

Deprecated: Use -initWithURL:options:error: instead.

func (*NSFileWrapper) InitWithSerializedRepresentation

func (o *NSFileWrapper) InitWithSerializedRepresentation(serializeRepresentation *NSData) *NSFileWrapper

func (*NSFileWrapper) InitWithURLOptionsError

func (o *NSFileWrapper) InitWithURLOptionsError(url *NSURL, options NSFileWrapperReadingOptions) (*NSFileWrapper, error)

func (*NSFileWrapper) IsDirectory

func (o *NSFileWrapper) IsDirectory() bool

func (*NSFileWrapper) IsRegularFile

func (o *NSFileWrapper) IsRegularFile() bool
func (o *NSFileWrapper) IsSymbolicLink() bool

func (*NSFileWrapper) KeyForFileWrapper

func (o *NSFileWrapper) KeyForFileWrapper(child *NSFileWrapper) *NSString

func (*NSFileWrapper) MatchesContentsOfURL

func (o *NSFileWrapper) MatchesContentsOfURL(url *NSURL) bool

func (*NSFileWrapper) NeedsToBeUpdatedFromPath deprecated

func (o *NSFileWrapper) NeedsToBeUpdatedFromPath(path *NSString) bool

Deprecated: Use -matchesContentsOfURL: instead.

func (*NSFileWrapper) PreferredFilename

func (o *NSFileWrapper) PreferredFilename() *NSString

func (*NSFileWrapper) ReadFromURLOptionsError

func (o *NSFileWrapper) ReadFromURLOptionsError(url *NSURL, options NSFileWrapperReadingOptions) (bool, error)

func (*NSFileWrapper) RegularFileContents

func (o *NSFileWrapper) RegularFileContents() *NSData

func (*NSFileWrapper) RemoveFileWrapper

func (o *NSFileWrapper) RemoveFileWrapper(child *NSFileWrapper)

func (*NSFileWrapper) SerializedRepresentation

func (o *NSFileWrapper) SerializedRepresentation() *NSData

func (*NSFileWrapper) SetFileAttributes

func (o *NSFileWrapper) SetFileAttributes(fileAttributes *NSDictionary[*NSString, objc.ID])

func (*NSFileWrapper) SetFilename

func (o *NSFileWrapper) SetFilename(filename *NSString)

func (*NSFileWrapper) SetPreferredFilename

func (o *NSFileWrapper) SetPreferredFilename(preferredFilename *NSString)

func (*NSFileWrapper) SymbolicLinkDestination deprecated

func (o *NSFileWrapper) SymbolicLinkDestination() *NSString

Deprecated: Use -symbolicLinkDestinationURL instead.

func (*NSFileWrapper) SymbolicLinkDestinationURL

func (o *NSFileWrapper) SymbolicLinkDestinationURL() *NSURL

func (*NSFileWrapper) UpdateFromPath deprecated

func (o *NSFileWrapper) UpdateFromPath(path *NSString) bool

Deprecated: Use -readFromURL:options:error: instead.

func (*NSFileWrapper) WriteToFileAtomicallyUpdateFilenames deprecated

func (o *NSFileWrapper) WriteToFileAtomicallyUpdateFilenames(path *NSString, atomicFlag bool, updateFilenamesFlag bool) bool

Deprecated: Use -writeToURL:options:originalContentsURL:error: instead.

func (*NSFileWrapper) WriteToURLOptionsOriginalContentsURLError

func (o *NSFileWrapper) WriteToURLOptionsOriginalContentsURLError(url *NSURL, options NSFileWrapperWritingOptions, originalContentsURL *NSURL) (bool, error)

type NSFileWrapperReadingOptions

type NSFileWrapperReadingOptions uint64

Reading options that can be set by the initWithURL:options:error: and readFromURL:options:error: methods.

const (
	NSFileWrapperReadingImmediate      NSFileWrapperReadingOptions = 1
	NSFileWrapperReadingWithoutMapping NSFileWrapperReadingOptions = 2
)

func (NSFileWrapperReadingOptions) String

type NSFileWrapperWritingOptions

type NSFileWrapperWritingOptions uint64

Writing options that can be set by the writeToURL:options:originalContentsURL:error: method.

const (
	NSFileWrapperWritingAtomic           NSFileWrapperWritingOptions = 1
	NSFileWrapperWritingWithNameUpdating NSFileWrapperWritingOptions = 2
)

func (NSFileWrapperWritingOptions) String

type NSFormatter

type NSFormatter struct {
	NSObject
}

An abstract class that declares an interface for objects that create, interpret, and validate the textual representation of values.

Apple documentation: https://developer.apple.com/documentation/foundation/nsformatter

func NSFormatterFromID

func NSFormatterFromID(id objc.ID) *NSFormatter

func (*NSFormatter) AttributedStringForObjectValueWithDefaultAttributes

func (o *NSFormatter) AttributedStringForObjectValueWithDefaultAttributes(obj objc.ID, attrs *NSDictionary[*NSString, objc.ID]) *NSAttributedString

func (*NSFormatter) EditingStringForObjectValue

func (o *NSFormatter) EditingStringForObjectValue(obj objc.ID) *NSString

func (*NSFormatter) GetObjectValueForStringErrorDescription

func (o *NSFormatter) GetObjectValueForStringErrorDescription(obj **ObjcObject, string_ *NSString, error_ *NSString) bool

func (*NSFormatter) IsPartialStringValidNewEditingStringErrorDescription

func (o *NSFormatter) IsPartialStringValidNewEditingStringErrorDescription(partialString *NSString, newString *NSString, error_ *NSString) bool

func (*NSFormatter) IsPartialStringValidProposedSelectedRangeOriginalStringOriginalSelectedRangeErrorDescription

func (o *NSFormatter) IsPartialStringValidProposedSelectedRangeOriginalStringOriginalSelectedRangeErrorDescription(partialStringPtr *NSString, proposedSelRangePtr *NSRange, origString *NSString, origSelRange NSRange, error_ *NSString) bool

func (*NSFormatter) StringForObjectValue

func (o *NSFormatter) StringForObjectValue(obj objc.ID) *NSString

type NSFormattingContext

type NSFormattingContext int64

The formatting context for a formatter.

const (
	NSFormattingContextUnknown             NSFormattingContext = 0
	NSFormattingContextDynamic             NSFormattingContext = 1
	NSFormattingContextStandalone          NSFormattingContext = 2
	NSFormattingContextListItem            NSFormattingContext = 3
	NSFormattingContextBeginningOfSentence NSFormattingContext = 4
	NSFormattingContextMiddleOfSentence    NSFormattingContext = 5
)

func (NSFormattingContext) String

func (e NSFormattingContext) String() string

type NSFormattingUnitStyle

type NSFormattingUnitStyle int64

Specifies the width of the unit, determining the textual representation.

const (
	NSFormattingUnitStyleShort  NSFormattingUnitStyle = 1
	NSFormattingUnitStyleMedium NSFormattingUnitStyle = 2
	NSFormattingUnitStyleLong   NSFormattingUnitStyle = 3
)

func (NSFormattingUnitStyle) String

func (e NSFormattingUnitStyle) String() string

type NSGarbageCollector

type NSGarbageCollector struct {
	NSObject
}

A convenient interface to the garbage collection system.

Apple documentation: https://developer.apple.com/documentation/foundation/nsgarbagecollector Deprecated: Building Garbage Collected apps is no longer supported.

func NSGarbageCollectorFromID

func NSGarbageCollectorFromID(id objc.ID) *NSGarbageCollector

func (*NSGarbageCollector) CollectExhaustively

func (o *NSGarbageCollector) CollectExhaustively()

Tells the receiver to collect iteratively.

func (*NSGarbageCollector) CollectIfNeeded

func (o *NSGarbageCollector) CollectIfNeeded()

Tells the receiver to collect if memory consumption thresholds have been exceeded.

func (*NSGarbageCollector) Disable

func (o *NSGarbageCollector) Disable()

Temporarily disables collections. Deprecated: since macOS 10.6.

func (*NSGarbageCollector) DisableCollectorForPointer

func (o *NSGarbageCollector) DisableCollectorForPointer(ptr unsafe.Pointer)

Specifies that a given pointer will not be collected.

func (*NSGarbageCollector) Enable

func (o *NSGarbageCollector) Enable()

Enables collection after collection has been disabled. Deprecated: since macOS 10.6.

func (*NSGarbageCollector) EnableCollectorForPointer

func (o *NSGarbageCollector) EnableCollectorForPointer(ptr unsafe.Pointer)

Specifies that a given pointer may be collected.

func (*NSGarbageCollector) IsCollecting

func (o *NSGarbageCollector) IsCollecting() bool

Returns a Boolean value that indicates whether a collection is currently in progress. Deprecated: since macOS 10.6.

func (*NSGarbageCollector) IsEnabled

func (o *NSGarbageCollector) IsEnabled() bool

Returns a Boolean value that indicates whether garbage collection is currently enabled for the current process. Deprecated: since macOS 10.6.

func (*NSGarbageCollector) Zone

func (o *NSGarbageCollector) Zone() unsafe.Pointer

Returns a zone of unscanned memory.

type NSGrammaticalCase

type NSGrammaticalCase int64
const (
	NSGrammaticalCaseNotSet        NSGrammaticalCase = 0
	NSGrammaticalCaseNominative    NSGrammaticalCase = 1
	NSGrammaticalCaseAccusative    NSGrammaticalCase = 2
	NSGrammaticalCaseDative        NSGrammaticalCase = 3
	NSGrammaticalCaseGenitive      NSGrammaticalCase = 4
	NSGrammaticalCasePrepositional NSGrammaticalCase = 5
	NSGrammaticalCaseAblative      NSGrammaticalCase = 6
	NSGrammaticalCaseAdessive      NSGrammaticalCase = 7
	NSGrammaticalCaseAllative      NSGrammaticalCase = 8
	NSGrammaticalCaseElative       NSGrammaticalCase = 9
	NSGrammaticalCaseIllative      NSGrammaticalCase = 10
	NSGrammaticalCaseEssive        NSGrammaticalCase = 11
	NSGrammaticalCaseInessive      NSGrammaticalCase = 12
	NSGrammaticalCaseLocative      NSGrammaticalCase = 13
	NSGrammaticalCaseTranslative   NSGrammaticalCase = 14
)

func (NSGrammaticalCase) String

func (e NSGrammaticalCase) String() string

type NSGrammaticalDefiniteness

type NSGrammaticalDefiniteness int64
const (
	NSGrammaticalDefinitenessNotSet     NSGrammaticalDefiniteness = 0
	NSGrammaticalDefinitenessIndefinite NSGrammaticalDefiniteness = 1
	NSGrammaticalDefinitenessDefinite   NSGrammaticalDefiniteness = 2
)

func (NSGrammaticalDefiniteness) String

func (e NSGrammaticalDefiniteness) String() string

type NSGrammaticalDetermination

type NSGrammaticalDetermination int64
const (
	NSGrammaticalDeterminationNotSet      NSGrammaticalDetermination = 0
	NSGrammaticalDeterminationIndependent NSGrammaticalDetermination = 1
	NSGrammaticalDeterminationDependent   NSGrammaticalDetermination = 2
)

func (NSGrammaticalDetermination) String

type NSGrammaticalGender

type NSGrammaticalGender int64

A representation of grammatical gender, used for inflecting strings.

const (
	// A value that indicates the gender is unset.
	NSGrammaticalGenderNotSet NSGrammaticalGender = 0
	// The feminine grammatical gender.
	NSGrammaticalGenderFeminine NSGrammaticalGender = 1
	// The masculine grammatical gender.
	NSGrammaticalGenderMasculine NSGrammaticalGender = 2
	// A value to not specify gender when inflecting a string.
	NSGrammaticalGenderNeuter NSGrammaticalGender = 3
)

func (NSGrammaticalGender) String

func (e NSGrammaticalGender) String() string

type NSGrammaticalNumber

type NSGrammaticalNumber int64

A representation of grammatical number, used for inflecting strings.

const (
	// A value that indicates the number is unset.
	NSGrammaticalNumberNotSet NSGrammaticalNumber = 0
	// A single person or thing, as used for a grammatical number.
	NSGrammaticalNumberSingular NSGrammaticalNumber = 1
	// Zero persons or things, as used for a grammatical number.
	NSGrammaticalNumberZero NSGrammaticalNumber = 2
	// Multiple persons or things, as used for a grammatical number.
	NSGrammaticalNumberPlural NSGrammaticalNumber = 3
	// Two persons or things, as used for a grammatical number.
	NSGrammaticalNumberPluralTwo NSGrammaticalNumber = 4
	// A small number of persons or things, as used for a grammatical number.
	NSGrammaticalNumberPluralFew NSGrammaticalNumber = 5
	// A large number of persons or things, as used for a grammatical number.
	NSGrammaticalNumberPluralMany NSGrammaticalNumber = 6
)

func (NSGrammaticalNumber) String

func (e NSGrammaticalNumber) String() string

type NSGrammaticalPartOfSpeech

type NSGrammaticalPartOfSpeech int64

A representation of grammatical parts of speech, used for inflecting strings.

const (
	// A value that indicates the part of speech is unset.
	NSGrammaticalPartOfSpeechNotSet NSGrammaticalPartOfSpeech = 0
	// A determiner, as used as a part of speech.
	NSGrammaticalPartOfSpeechDeterminer NSGrammaticalPartOfSpeech = 1
	// A pronoun, as used as a part of speech.
	NSGrammaticalPartOfSpeechPronoun NSGrammaticalPartOfSpeech = 2
	// A letter, as used as a part of speech.
	NSGrammaticalPartOfSpeechLetter NSGrammaticalPartOfSpeech = 3
	// An adverb, as used as a part of speech.
	NSGrammaticalPartOfSpeechAdverb NSGrammaticalPartOfSpeech = 4
	// A particle, as used as a part of speech.
	NSGrammaticalPartOfSpeechParticle NSGrammaticalPartOfSpeech = 5
	// An adjective, as used as a part of speech.
	NSGrammaticalPartOfSpeechAdjective NSGrammaticalPartOfSpeech = 6
	// An adposition, as used as a part of speech.
	NSGrammaticalPartOfSpeechAdposition NSGrammaticalPartOfSpeech = 7
	// A verb, as used as a part of speech.
	NSGrammaticalPartOfSpeechVerb NSGrammaticalPartOfSpeech = 8
	// A noun, as used as a part of speech.
	NSGrammaticalPartOfSpeechNoun NSGrammaticalPartOfSpeech = 9
	// A conjunction, as used as a part of speech.
	NSGrammaticalPartOfSpeechConjunction NSGrammaticalPartOfSpeech = 10
	// A numeral, as used as a part of speech.
	NSGrammaticalPartOfSpeechNumeral NSGrammaticalPartOfSpeech = 11
	// An interjection, as used as a part of speech.
	NSGrammaticalPartOfSpeechInterjection NSGrammaticalPartOfSpeech = 12
	// A preposition, as used as a part of speech.
	NSGrammaticalPartOfSpeechPreposition NSGrammaticalPartOfSpeech = 13
	// An abbreviation, as used as a part of speech.
	NSGrammaticalPartOfSpeechAbbreviation NSGrammaticalPartOfSpeech = 14
)

func (NSGrammaticalPartOfSpeech) String

func (e NSGrammaticalPartOfSpeech) String() string

type NSGrammaticalPerson

type NSGrammaticalPerson int64
const (
	NSGrammaticalPersonNotSet NSGrammaticalPerson = 0
	NSGrammaticalPersonFirst  NSGrammaticalPerson = 1
	NSGrammaticalPersonSecond NSGrammaticalPerson = 2
	NSGrammaticalPersonThird  NSGrammaticalPerson = 3
)

func (NSGrammaticalPerson) String

func (e NSGrammaticalPerson) String() string

type NSGrammaticalPronounType

type NSGrammaticalPronounType int64
const (
	NSGrammaticalPronounTypeNotSet     NSGrammaticalPronounType = 0
	NSGrammaticalPronounTypePersonal   NSGrammaticalPronounType = 1
	NSGrammaticalPronounTypeReflexive  NSGrammaticalPronounType = 2
	NSGrammaticalPronounTypePossessive NSGrammaticalPronounType = 3
)

func (NSGrammaticalPronounType) String

func (e NSGrammaticalPronounType) String() string

type NSHTTPCookie

type NSHTTPCookie struct {
	NSObject
}

A representation of an HTTP cookie.

Apple documentation: https://developer.apple.com/documentation/foundation/nshttpcookie

func NSHTTPCookieCookieWithProperties

func NSHTTPCookieCookieWithProperties(properties *NSDictionary[*NSString, objc.ID]) *NSHTTPCookie

Creates and initializes an HTTP cookie object using the provided properties.

func NSHTTPCookieFromID

func NSHTTPCookieFromID(id objc.ID) *NSHTTPCookie

func (*NSHTTPCookie) Comment

func (o *NSHTTPCookie) Comment() *NSString

@abstract Returns the comment of the receiver. @discussion This value specifies a string which is suitable for presentation to the user explaining the contents and purpose of this cookie. It may be nil. @result The comment of the receiver, or nil if the receiver has no comment.

func (*NSHTTPCookie) CommentURL

func (o *NSHTTPCookie) CommentURL() *NSURL

@abstract Returns the comment URL of the receiver. @discussion This value specifies a URL which is suitable for presentation to the user as a link for further information about this cookie. It may be nil. @result The comment URL of the receiver, or nil if the receiver has no comment URL.

func (*NSHTTPCookie) Domain

func (o *NSHTTPCookie) Domain() *NSString

@abstract Returns the domain of the receiver. @discussion This value specifies URL domain to which the cookie should be sent. A domain with a leading dot means the cookie should be sent to subdomains as well, assuming certain other restrictions are valid. See RFC 2965 for more detail. @result The domain of the receiver.

func (*NSHTTPCookie) ExpiresDate

func (o *NSHTTPCookie) ExpiresDate() *NSDate

@abstract Returns the expires date of the receiver. @result the expires date of the receiver. @discussion The expires date is the date when the cookie should be deleted. The result will be nil if there is no specific expires date. This will be the case only for "session-only" cookies. @result The expires date of the receiver.

func (*NSHTTPCookie) InitWithProperties

func (o *NSHTTPCookie) InitWithProperties(properties *NSDictionary[*NSString, objc.ID]) *NSHTTPCookie

@method initWithProperties: @abstract Initialize a NSHTTPCookie object with a dictionary of parameters @param properties The dictionary of properties to be used to initialize this cookie. @discussion Supported dictionary keys and value types for the given dictionary are as follows. All properties can handle an NSString value, but some can also handle other types. <table border="1" cellspacing="2" cellpadding="4"> <tr> <th>Property key constant</th> <th>Type of value</th> <th>Required</th> <th>Description</th> </tr> <tr> <td>NSHTTPCookieComment</td> <td>NSString</td> <td>NO</td> <td>Comment for the cookie. Only valid for version 1 cookies and later. Default is nil.</td> </tr> <tr> <td>NSHTTPCookieCommentURL</td> <td>NSURL or NSString</td> <td>NO</td> <td>Comment URL for the cookie. Only valid for version 1 cookies and later. Default is nil.</td> </tr> <tr> <td>NSHTTPCookieDomain</td> <td>NSString</td> <td>Special, a value for either NSHTTPCookieOriginURL or NSHTTPCookieDomain must be specified.</td> <td>Domain for the cookie. Inferred from the value for NSHTTPCookieOriginURL if not provided.</td> </tr> <tr> <td>NSHTTPCookieDiscard</td> <td>NSString</td> <td>NO</td> <td>A string stating whether the cookie should be discarded at the end of the session. String value must be either "TRUE" or "FALSE". Default is "FALSE", unless this is cookie is version 1 or greater and a value for NSHTTPCookieMaximumAge is not specified, in which case it is assumed "TRUE".</td> </tr> <tr> <td>NSHTTPCookieExpires</td> <td>NSDate or NSString</td> <td>NO</td> <td>Expiration date for the cookie. Used only for version 0 cookies. Ignored for version 1 or greater.</td> </tr> <tr> <td>NSHTTPCookieMaximumAge</td> <td>NSString</td> <td>NO</td> <td>A string containing an integer value stating how long in seconds the cookie should be kept, at most. Only valid for version 1 cookies and later. Default is "0".</td> </tr> <tr> <td>NSHTTPCookieName</td> <td>NSString</td> <td>YES</td> <td>Name of the cookie</td> </tr> <tr> <td>NSHTTPCookieOriginURL</td> <td>NSURL or NSString</td> <td>Special, a value for either NSHTTPCookieOriginURL or NSHTTPCookieDomain must be specified.</td> <td>URL that set this cookie. Used as default for other fields as noted.</td> </tr> <tr> <td>NSHTTPCookiePath</td> <td>NSString</td> <td>NO</td> <td>Path for the cookie. Inferred from the value for NSHTTPCookieOriginURL if not provided. Default is "/".</td> </tr> <tr> <td>NSHTTPCookiePort</td> <td>NSString</td> <td>NO</td> <td>comma-separated integer values specifying the ports for the cookie. Only valid for version 1 cookies and later. Default is empty string ("").</td> </tr> <tr> <td>NSHTTPCookieSecure</td> <td>NSString</td> <td>NO</td> <td>A string stating whether the cookie should be transmitted only over secure channels. String value must be either "TRUE" or "FALSE". Default is "FALSE".</td> </tr> <tr> <td>NSHTTPCookieValue</td> <td>NSString</td> <td>YES</td> <td>Value of the cookie</td> </tr> <tr> <td>NSHTTPCookieVersion</td> <td>NSString</td> <td>NO</td> <td>Specifies the version of the cookie. Must be either "0" or "1". Default is "0".</td> </tr> <tr> <td>NSHTTPCookieSetByJavaScript</td> <td>NSNumber</td> <td>NO</td> <td>@YES if the cookie is set via JavaScript. @NO if the cookie is not set via JavaScript</td> </tr> </table> <p> All other keys are ignored. @result An initialized NSHTTPCookie, or nil if the set of dictionary keys is invalid, for example because a required key is missing, or a recognized key maps to an illegal value.

func (*NSHTTPCookie) IsHTTPOnly

func (o *NSHTTPCookie) IsHTTPOnly() bool

@abstract Returns whether the receiver should only be sent to HTTP servers per RFC 2965 @discussion Cookies may be marked as HTTPOnly by a server (or by a javascript). Cookies marked as such must only be sent via HTTP Headers in HTTP Requests for URL's that match both the path and domain of the respective Cookies. Specifically these cookies should not be delivered to any javascript applications to prevent cross-site scripting vulnerabilities. @result YES if this cookie should only be sent via HTTP headers, NO otherwise.

func (*NSHTTPCookie) IsSecure

func (o *NSHTTPCookie) IsSecure() bool

@abstract Returns whether the receiver should be sent only over secure channels @discussion Cookies may be marked secure by a server (or by a javascript). Cookies marked as such must only be sent via an encrypted connection to trusted servers (i.e. via SSL or TLS), and should not be delivered to any javascript applications to prevent cross-site scripting vulnerabilities. @result YES if this cookie should be sent only over secure channels, NO otherwise.

func (*NSHTTPCookie) IsSessionOnly

func (o *NSHTTPCookie) IsSessionOnly() bool

@abstract Returns whether the receiver is session-only. @result YES if this receiver should be discarded at the end of the session (regardless of expiration date), NO if receiver need not be discarded at the end of the session.

func (*NSHTTPCookie) Name

func (o *NSHTTPCookie) Name() *NSString

@abstract Returns the name of the receiver. @result the name of the receiver.

func (*NSHTTPCookie) Path

func (o *NSHTTPCookie) Path() *NSString

@abstract Returns the path of the receiver. @discussion This value specifies the URL path under the cookie's domain for which this cookie should be sent. The cookie will also be sent for children of that path, so "/" is the most general. @result The path of the receiver.

func (*NSHTTPCookie) PortList

func (o *NSHTTPCookie) PortList() *NSArray[*NSNumber]

@abstract Returns the list ports to which the receiver should be sent. @discussion This value specifies an NSArray of NSNumbers (containing integers) which specify the only ports to which this cookie should be sent. @result The list ports to which the receiver should be sent. The array may be nil, in which case this cookie can be sent to any port.

func (*NSHTTPCookie) Properties

func (o *NSHTTPCookie) Properties() *NSDictionary[*NSString, objc.ID]

@abstract Returns a dictionary representation of the receiver. @discussion This method returns a dictionary representation of the NSHTTPCookie which can be saved and passed to <tt>-initWithProperties:</tt> or <tt>+cookieWithProperties:</tt> later to reconstitute an equivalent cookie. <p>See the NSHTTPCookie <tt>-initWithProperties:</tt> method for more information on the constraints imposed on the dictionary, and for descriptions of the supported keys and values. @result The dictionary representation of the receiver.

func (*NSHTTPCookie) SameSitePolicy

func (o *NSHTTPCookie) SameSitePolicy() *NSString

@abstract Returns the value of the same site attribute on the cookie. @discussion Cookies can be marked with an attribute Strict or Lax. Cookies marked with "strict" (NSHTTPCookieSameSiteStrict) are not sent along with cross-site requests. Cookies marked with "lax" (NSHTTPCookieSameSiteLax) sent along cross-site requests provided the cross-site requests are top-level-requests (one that changes the url in the address bar). The attribute value is canonicalized and stored. Any value other than the default (strict and lax) will be ignored. @result strict or lax. The result could also be nil, in which case the cookie will be sent along with all cross-site requests.

func (*NSHTTPCookie) Value

func (o *NSHTTPCookie) Value() *NSString

@abstract Returns the value of the receiver. @result the value of the receiver.

type NSHTTPCookieAcceptPolicy

type NSHTTPCookieAcceptPolicy uint64

Cookie acceptance policies implemented by the NSHTTPCookieStorage class.

const (
	NSHTTPCookieAcceptPolicyAlways                     NSHTTPCookieAcceptPolicy = 0
	NSHTTPCookieAcceptPolicyNever                      NSHTTPCookieAcceptPolicy = 1
	NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain NSHTTPCookieAcceptPolicy = 2
)

func (NSHTTPCookieAcceptPolicy) String

func (e NSHTTPCookieAcceptPolicy) String() string

type NSHTTPCookieStorage

type NSHTTPCookieStorage struct {
	NSObject
}

A container that manages the storage of cookies.

Apple documentation: https://developer.apple.com/documentation/foundation/nshttpcookiestorage

func NSHTTPCookieStorageFromID

func NSHTTPCookieStorageFromID(id objc.ID) *NSHTTPCookieStorage

func NSHTTPCookieStorageSharedCookieStorageForGroupContainerIdentifier

func NSHTTPCookieStorageSharedCookieStorageForGroupContainerIdentifier(identifier *NSString) *NSHTTPCookieStorage

@method sharedCookieStorageForGroupContainerIdentifier: @abstract Get the cookie storage for the container associated with the specified application group identifier @param identifier The application group identifier @result A cookie storage with a persistent store in the application group container @discussion By default, applications and associated app extensions have different data containers, which means that the sharedHTTPCookieStorage singleton will refer to different persistent cookie stores in an application and any app extensions that it contains. This method allows clients to create a persistent cookie storage that can be shared among all applications and extensions with access to the same application group. Subsequent calls to this method with the same identifier will return the same cookie storage instance.

func NSHTTPCookieStorageSharedHTTPCookieStorage

func NSHTTPCookieStorageSharedHTTPCookieStorage() *NSHTTPCookieStorage

@property sharedHTTPCookieStorage @abstract Get the shared cookie storage in the default location. @result The shared cookie storage @discussion Starting in OS X 10.11, each app has its own sharedHTTPCookieStorage singleton, which will not be shared with other applications.

func (*NSHTTPCookieStorage) CookieAcceptPolicy

func (o *NSHTTPCookieStorage) CookieAcceptPolicy() NSHTTPCookieAcceptPolicy

@abstract The cookie accept policy preference of the receiver.

func (*NSHTTPCookieStorage) Cookies

func (o *NSHTTPCookieStorage) Cookies() *NSArray[*NSHTTPCookie]

@abstract Get all the cookies @result An NSArray of NSHTTPCookies

func (*NSHTTPCookieStorage) CookiesForURL

func (o *NSHTTPCookieStorage) CookiesForURL(uRL *NSURL) *NSArray[*NSHTTPCookie]

@method cookiesForURL: @abstract Returns an array of cookies to send to the given URL. @param URL The URL for which to get cookies. @result an NSArray of NSHTTPCookie objects. @discussion The cookie manager examines the cookies it stores and includes those which should be sent to the given URL. You can use <tt>+[NSCookie requestHeaderFieldsWithCookies:]</tt> to turn this array into a set of header fields to add to a request.

func (*NSHTTPCookieStorage) DeleteCookie

func (o *NSHTTPCookieStorage) DeleteCookie(cookie *NSHTTPCookie)

@method deleteCookie: @abstract Delete the specified cookie

func (*NSHTTPCookieStorage) GetCookiesForTaskCompletionHandler

func (o *NSHTTPCookieStorage) GetCookiesForTaskCompletionHandler(task *NSURLSessionTask, completionHandler func(*NSArray[*NSHTTPCookie]))

func (*NSHTTPCookieStorage) RemoveCookiesSinceDate

func (o *NSHTTPCookieStorage) RemoveCookiesSinceDate(date *NSDate)

@method removeCookiesSince: @abstract Delete all cookies from the cookie storage since the provided date.

func (*NSHTTPCookieStorage) SetCookie

func (o *NSHTTPCookieStorage) SetCookie(cookie *NSHTTPCookie)

@method setCookie: @abstract Set a cookie @discussion The cookie will override an existing cookie with the same name, domain and path, if any.

func (*NSHTTPCookieStorage) SetCookieAcceptPolicy

func (o *NSHTTPCookieStorage) SetCookieAcceptPolicy(cookieAcceptPolicy NSHTTPCookieAcceptPolicy)

func (*NSHTTPCookieStorage) SetCookiesForURLMainDocumentURL

func (o *NSHTTPCookieStorage) SetCookiesForURLMainDocumentURL(cookies *NSArray[*NSHTTPCookie], uRL *NSURL, mainDocumentURL *NSURL)

@method setCookies:forURL:mainDocumentURL: @abstract Adds an array cookies to the cookie store, following the cookie accept policy. @param cookies The cookies to set. @param URL The URL from which the cookies were sent. @param mainDocumentURL The main document URL to be used as a base for the "same domain as main document" policy. @discussion For mainDocumentURL, the caller should pass the URL for an appropriate main document, if known. For example, when loading a web page, the URL of the main html document for the top-level frame should be passed. To save cookies based on a set of response headers, you can use <tt>+[NSCookie cookiesWithResponseHeaderFields:forURL:]</tt> on a header field dictionary and then use this method to store the resulting cookies in accordance with policy settings.

func (*NSHTTPCookieStorage) SortedCookiesUsingDescriptors

func (o *NSHTTPCookieStorage) SortedCookiesUsingDescriptors(sortOrder *NSArray[*NSSortDescriptor]) *NSArray[*NSHTTPCookie]

@method sortedCookiesUsingDescriptors: @abstract Returns an array of all cookies in the store, sorted according to the key value and sorting direction of the NSSortDescriptors specified in the parameter. @param sortOrder an array of NSSortDescriptors which represent the preferred sort order of the resulting array. @discussion proper sorting of cookies may require extensive string conversion, which can be avoided by allowing the system to perform the sorting. This API is to be preferred over the more generic -[NSHTTPCookieStorage cookies] API, if sorting is going to be performed.

func (*NSHTTPCookieStorage) StoreCookiesForTask

func (o *NSHTTPCookieStorage) StoreCookiesForTask(cookies *NSArray[*NSHTTPCookie], task *NSURLSessionTask)

type NSHTTPURLResponse

type NSHTTPURLResponse struct {
	NSURLResponse
}

The metadata associated with the response to an HTTP protocol URL load request.

Apple documentation: https://developer.apple.com/documentation/foundation/nshttpurlresponse

func NSHTTPURLResponseFromID

func NSHTTPURLResponseFromID(id objc.ID) *NSHTTPURLResponse

func (*NSHTTPURLResponse) AllHeaderFields

func (o *NSHTTPURLResponse) AllHeaderFields() *NSDictionary[objc.ID, objc.ID]

@abstract Returns a dictionary containing all the HTTP header fields of the receiver. @discussion By examining this header dictionary, clients can see the "raw" header information which was reported to the protocol implementation by the HTTP server. This may be of use to sophisticated or special-purpose HTTP clients. @result A dictionary containing all the HTTP header fields of the receiver.

func (*NSHTTPURLResponse) InitWithURLStatusCodeHTTPVersionHeaderFields

func (o *NSHTTPURLResponse) InitWithURLStatusCodeHTTPVersionHeaderFields(url *NSURL, statusCode int, hTTPVersion *NSString, headerFields *NSDictionary[*NSString, *NSString]) *NSHTTPURLResponse

@method initWithURL:statusCode:HTTPVersion:headerFields: @abstract initializer for NSHTTPURLResponse objects. @param url the URL from which the response was generated. @param statusCode an HTTP status code. @param HTTPVersion The version of the HTTP response as represented by the server. This is typically represented as "HTTP/1.1". @param headerFields A dictionary representing the header keys and values of the server response. @result the instance of the object, or NULL if an error occurred during initialization. @discussion This API was introduced in Mac OS X 10.7.2 and iOS 5.0 and is not available prior to those releases.

func (*NSHTTPURLResponse) StatusCode

func (o *NSHTTPURLResponse) StatusCode() int

@abstract Returns the HTTP status code of the receiver. @result The HTTP status code of the receiver.

func (*NSHTTPURLResponse) ValueForHTTPHeaderField

func (o *NSHTTPURLResponse) ValueForHTTPHeaderField(field *NSString) *NSString

@method valueForHTTPHeaderField: @abstract Returns the value which corresponds to the given header field. Note that, in keeping with the HTTP RFC, HTTP header field names are case-insensitive. @param field the header field name to use for the lookup (case-insensitive). @result the value associated with the given header field, or nil if there is no value associated with the given header field.

type NSHashEnumerator

type NSHashEnumerator struct {
}

Allows successive elements of a hash table to be returned each time this structure is passed to NSNextHashEnumeratorItem.

func NSEnumerateHashTable

func NSEnumerateHashTable(table *NSHashTable[objc.ID]) NSHashEnumerator

type NSHashTable

type NSHashTable[ObjectType purego.AnyObject] struct {
	NSObject
}

A collection similar to a set, but with broader range of available memory semantics.

Apple documentation: https://developer.apple.com/documentation/foundation/nshashtable

func NSCopyHashTableWithZone

func NSCopyHashTableWithZone(table *NSHashTable[objc.ID], zone unsafe.Pointer) *NSHashTable[objc.ID]

func NSCreateHashTable

func NSCreateHashTable(callBacks NSHashTableCallBacks, capacity uint) *NSHashTable[objc.ID]

func NSCreateHashTableWithZone

func NSCreateHashTableWithZone(callBacks NSHashTableCallBacks, capacity uint, zone unsafe.Pointer) *NSHashTable[objc.ID]

func NSHashTableFromID

func NSHashTableFromID[ObjectType purego.AnyObject](id objc.ID) *NSHashTable[ObjectType]

func NSHashTableHashTableWithOptions

func NSHashTableHashTableWithOptions(options NSPointerFunctionsOptions) *NSHashTable[objc.ID]

Returns a hash table with given pointer functions options.

func NSHashTableWeakObjectsHashTable

func NSHashTableWeakObjectsHashTable() *NSHashTable[objc.ID]

Returns a new hash table for storing weak references to its contents.

func (*NSHashTable[ObjectType]) AddObject

func (o *NSHashTable[ObjectType]) AddObject(object ObjectType)

Adds a given object to the hash table.

func (*NSHashTable[ObjectType]) AllObjects

func (o *NSHashTable[ObjectType]) AllObjects() *NSArray[ObjectType]

func (*NSHashTable[ObjectType]) AnyObject

func (o *NSHashTable[ObjectType]) AnyObject() ObjectType

func (*NSHashTable[ObjectType]) ContainsObject

func (o *NSHashTable[ObjectType]) ContainsObject(anObject ObjectType) bool

Returns a Boolean value that indicates whether the hash table contains a given object.

func (*NSHashTable[ObjectType]) Count

func (o *NSHashTable[ObjectType]) Count() uint

func (*NSHashTable[ObjectType]) InitWithOptionsCapacity

func (o *NSHashTable[ObjectType]) InitWithOptionsCapacity(options NSPointerFunctionsOptions, initialCapacity uint) *NSHashTable[ObjectType]

Returns a hash table initialized with the given attributes.

func (*NSHashTable[ObjectType]) InitWithPointerFunctionsCapacity

func (o *NSHashTable[ObjectType]) InitWithPointerFunctionsCapacity(functions *NSPointerFunctions, initialCapacity uint) *NSHashTable[ObjectType]

Returns a hash table initialized with the given functions and capacity.

func (*NSHashTable[ObjectType]) IntersectHashTable

func (o *NSHashTable[ObjectType]) IntersectHashTable(other *NSHashTable[ObjectType])

Removes from the receiving hash table each element that isn’t a member of another given hash table.

func (*NSHashTable[ObjectType]) IntersectsHashTable

func (o *NSHashTable[ObjectType]) IntersectsHashTable(other *NSHashTable[ObjectType]) bool

Returns a Boolean value that indicates whether a given hash table intersects with the receiving hash table.

func (*NSHashTable[ObjectType]) IsEqualToHashTable

func (o *NSHashTable[ObjectType]) IsEqualToHashTable(other *NSHashTable[ObjectType]) bool

Returns a Boolean value that indicates whether a given hash table is equal to the receiving hash table.

func (*NSHashTable[ObjectType]) IsSubsetOfHashTable

func (o *NSHashTable[ObjectType]) IsSubsetOfHashTable(other *NSHashTable[ObjectType]) bool

Returns a Boolean value that indicates whether every element in the receiving hash table is also present in another given hash table.

func (*NSHashTable[ObjectType]) Member

func (o *NSHashTable[ObjectType]) Member(object ObjectType) ObjectType

Determines whether the hash table contains a given object, and returns that object if it is present

func (*NSHashTable[ObjectType]) MinusHashTable

func (o *NSHashTable[ObjectType]) MinusHashTable(other *NSHashTable[ObjectType])

Removes each element in another given hash table from the receiving hash table, if present.

func (*NSHashTable[ObjectType]) ObjectEnumerator

func (o *NSHashTable[ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]

Returns an enumerator object that lets you access each object in the hash table.

func (*NSHashTable[ObjectType]) PointerFunctions

func (o *NSHashTable[ObjectType]) PointerFunctions() *NSPointerFunctions

func (*NSHashTable[ObjectType]) RemoveAllObjects

func (o *NSHashTable[ObjectType]) RemoveAllObjects()

Removes all objects from the hash table.

func (*NSHashTable[ObjectType]) RemoveObject

func (o *NSHashTable[ObjectType]) RemoveObject(object ObjectType)

Removes a given object from the hash table.

func (*NSHashTable[ObjectType]) SetRepresentation

func (o *NSHashTable[ObjectType]) SetRepresentation() *NSSet[ObjectType]

func (*NSHashTable[ObjectType]) UnionHashTable

func (o *NSHashTable[ObjectType]) UnionHashTable(other *NSHashTable[ObjectType])

Adds each element in another given hash table to the receiving hash table, if not present.

type NSHashTableCallBacks

type NSHashTableCallBacks struct {
	Hash     unsafe.Pointer
	IsEqual  unsafe.Pointer
	Retain   unsafe.Pointer
	Release  unsafe.Pointer
	Describe unsafe.Pointer
}

Defines a structure that contains the function pointers used to configure behavior of NSHashTable with respect to elements within a hash table.

func NSIntHashCallBacks deprecated

func NSIntHashCallBacks() NSHashTableCallBacks

Deprecated: Not supported

func NSIntegerHashCallBacks

func NSIntegerHashCallBacks() NSHashTableCallBacks

func NSNonOwnedPointerHashCallBacks

func NSNonOwnedPointerHashCallBacks() NSHashTableCallBacks

func NSNonRetainedObjectHashCallBacks

func NSNonRetainedObjectHashCallBacks() NSHashTableCallBacks

func NSObjectHashCallBacks

func NSObjectHashCallBacks() NSHashTableCallBacks

func NSOwnedObjectIdentityHashCallBacks

func NSOwnedObjectIdentityHashCallBacks() NSHashTableCallBacks

func NSOwnedPointerHashCallBacks

func NSOwnedPointerHashCallBacks() NSHashTableCallBacks

func NSPointerToStructHashCallBacks

func NSPointerToStructHashCallBacks() NSHashTableCallBacks

type NSHost

type NSHost struct {
	NSObject
}

A representation of an individual host on the network.

Apple documentation: https://developer.apple.com/documentation/foundation/nshost Deprecated: Use Network framework instead, see deprecation notice in <Foundation/NSHost.h>

func NSHostCurrentHost

func NSHostCurrentHost() *NSHost

func NSHostFromID

func NSHostFromID(id objc.ID) *NSHost

func NSHostHostWithAddress

func NSHostHostWithAddress(address *NSString) *NSHost

func NSHostHostWithName

func NSHostHostWithName(name *NSString) *NSHost

func (*NSHost) Address

func (o *NSHost) Address() *NSString

func (*NSHost) Addresses

func (o *NSHost) Addresses() *NSArray[*NSString]

func (*NSHost) IsEqualToHost

func (o *NSHost) IsEqualToHost(aHost *NSHost) bool

func (*NSHost) LocalizedName

func (o *NSHost) LocalizedName() *NSString

func (*NSHost) Name

func (o *NSHost) Name() *NSString

func (*NSHost) Names

func (o *NSHost) Names() *NSArray[*NSString]

type NSISO8601DateFormatOptions

type NSISO8601DateFormatOptions uint64

Options used to generate and parse ISO 8601 date representations.

const (
	NSISO8601DateFormatWithYear                     NSISO8601DateFormatOptions = 1
	NSISO8601DateFormatWithMonth                    NSISO8601DateFormatOptions = 2
	NSISO8601DateFormatWithWeekOfYear               NSISO8601DateFormatOptions = 4
	NSISO8601DateFormatWithDay                      NSISO8601DateFormatOptions = 16
	NSISO8601DateFormatWithTime                     NSISO8601DateFormatOptions = 32
	NSISO8601DateFormatWithTimeZone                 NSISO8601DateFormatOptions = 64
	NSISO8601DateFormatWithSpaceBetweenDateAndTime  NSISO8601DateFormatOptions = 128
	NSISO8601DateFormatWithDashSeparatorInDate      NSISO8601DateFormatOptions = 256
	NSISO8601DateFormatWithColonSeparatorInTime     NSISO8601DateFormatOptions = 512
	NSISO8601DateFormatWithColonSeparatorInTimeZone NSISO8601DateFormatOptions = 1024
	NSISO8601DateFormatWithFractionalSeconds        NSISO8601DateFormatOptions = 2048
	NSISO8601DateFormatWithFullDate                 NSISO8601DateFormatOptions = 275
	NSISO8601DateFormatWithFullTime                 NSISO8601DateFormatOptions = 1632
	NSISO8601DateFormatWithInternetDateTime         NSISO8601DateFormatOptions = 1907
)

func (NSISO8601DateFormatOptions) String

type NSISO8601DateFormatter

type NSISO8601DateFormatter struct {
	NSFormatter
}

A formatter that converts between dates and their ISO 8601 string representations.

Apple documentation: https://developer.apple.com/documentation/foundation/nsiso8601dateformatter

func NSISO8601DateFormatterFromID

func NSISO8601DateFormatterFromID(id objc.ID) *NSISO8601DateFormatter

func (*NSISO8601DateFormatter) DateFromString

func (o *NSISO8601DateFormatter) DateFromString(string_ *NSString) *NSDate

func (*NSISO8601DateFormatter) FormatOptions

func (*NSISO8601DateFormatter) Init

func (*NSISO8601DateFormatter) SetFormatOptions

func (o *NSISO8601DateFormatter) SetFormatOptions(formatOptions NSISO8601DateFormatOptions)

func (*NSISO8601DateFormatter) SetTimeZone

func (o *NSISO8601DateFormatter) SetTimeZone(timeZone *NSTimeZone)

func (*NSISO8601DateFormatter) StringFromDate

func (o *NSISO8601DateFormatter) StringFromDate(date *NSDate) *NSString

func (*NSISO8601DateFormatter) TimeZone

func (o *NSISO8601DateFormatter) TimeZone() *NSTimeZone

type NSIndexPath

type NSIndexPath struct {
	NSObject
}

A list of indexes that together represent the path to a specific location in a tree of nested arrays.

Apple documentation: https://developer.apple.com/documentation/foundation/nsindexpath

func NSIndexPathFromID

func NSIndexPathFromID(id objc.ID) *NSIndexPath

func NSIndexPathIndexPathWithIndex

func NSIndexPathIndexPathWithIndex(index uint) *NSIndexPath

Creates a one-node index path.

func NSIndexPathIndexPathWithIndexesLength

func NSIndexPathIndexPathWithIndexesLength(indexes *uint, length uint) *NSIndexPath

Creates an index path with one or more nodes.

func (*NSIndexPath) Compare

func (o *NSIndexPath) Compare(otherObject *NSIndexPath) NSComparisonResult

Indicates the depth-first traversal order of the receiving index path and another index path.

func (*NSIndexPath) GetIndexes

func (o *NSIndexPath) GetIndexes(indexes *uint)

Copies the objects contained in the index path into indexes. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSIndexPath) GetIndexesRange

func (o *NSIndexPath) GetIndexesRange(indexes *uint, positionRange NSRange)

Copies the indexes stored in the index path from the positions specified by the position range into the specified indexes.

func (*NSIndexPath) IndexAtPosition

func (o *NSIndexPath) IndexAtPosition(position uint) uint

Provides the value at a particular node in the index path.

func (*NSIndexPath) IndexPathByAddingIndex

func (o *NSIndexPath) IndexPathByAddingIndex(index uint) *NSIndexPath

Returns an index path containing the nodes in the receiving index path plus another given index.

func (*NSIndexPath) IndexPathByRemovingLastIndex

func (o *NSIndexPath) IndexPathByRemovingLastIndex() *NSIndexPath

Returns an index path with the nodes in the receiving index path, excluding the last one.

func (*NSIndexPath) InitWithIndex

func (o *NSIndexPath) InitWithIndex(index uint) *NSIndexPath

Initializes an index path with a single node.

func (*NSIndexPath) InitWithIndexesLength

func (o *NSIndexPath) InitWithIndexesLength(indexes *uint, length uint) *NSIndexPath

Initializes an index path with the given nodes and length.

func (*NSIndexPath) Length

func (o *NSIndexPath) Length() uint

type NSIndexSet

type NSIndexSet struct {
	NSObject
}

An immutable collection of unique integer values that represent indexes in another collection.

Apple documentation: https://developer.apple.com/documentation/foundation/nsindexset

func NSIndexSetFromID

func NSIndexSetFromID(id objc.ID) *NSIndexSet

func NSIndexSetIndexSet

func NSIndexSetIndexSet() *NSIndexSet

Creates an empty index set.

func NSIndexSetIndexSetWithIndex

func NSIndexSetIndexSetWithIndex(value uint) *NSIndexSet

Creates an index set with an index.

func NSIndexSetIndexSetWithIndexesInRange

func NSIndexSetIndexSetWithIndexesInRange(range_ NSRange) *NSIndexSet

Creates an index set with an index range.

func (*NSIndexSet) ContainsIndex

func (o *NSIndexSet) ContainsIndex(value uint) bool

Indicates whether the index set contains a specific index.

func (*NSIndexSet) ContainsIndexes

func (o *NSIndexSet) ContainsIndexes(indexSet *NSIndexSet) bool

Indicates whether the receiving index set contains a superset of the indexes in another index set.

func (*NSIndexSet) ContainsIndexesInRange

func (o *NSIndexSet) ContainsIndexesInRange(range_ NSRange) bool

Indicates whether the index set contains the indexes represented by an index range.

func (*NSIndexSet) Count

func (o *NSIndexSet) Count() uint

func (*NSIndexSet) CountOfIndexesInRange

func (o *NSIndexSet) CountOfIndexesInRange(range_ NSRange) uint

Returns the number of indexes in the index set that are members of a given range.

func (*NSIndexSet) EnumerateIndexesInRangeOptionsUsing

func (o *NSIndexSet) EnumerateIndexesInRangeOptionsUsing(range_ NSRange, opts NSEnumerationOptions, block func(uint, *bool))

Executes a given Block using the indexes in the specified range, using the specified enumeration options.

func (*NSIndexSet) EnumerateIndexesUsing

func (o *NSIndexSet) EnumerateIndexesUsing(block func(uint, *bool))

Executes a given Block using each object in the index set.

func (*NSIndexSet) EnumerateIndexesWithOptionsUsing

func (o *NSIndexSet) EnumerateIndexesWithOptionsUsing(opts NSEnumerationOptions, block func(uint, *bool))

Executes a given Block over the index set’s indexes, using the specified enumeration options.

func (*NSIndexSet) EnumerateRangesInRangeOptionsUsing

func (o *NSIndexSet) EnumerateRangesInRangeOptionsUsing(range_ NSRange, opts NSEnumerationOptions, block objc.Block)

Enumerates over the ranges in the range of objects using the block

func (*NSIndexSet) EnumerateRangesUsing

func (o *NSIndexSet) EnumerateRangesUsing(block objc.Block)

Executes a given block using each object in the index set, in the specified ranges.

func (*NSIndexSet) EnumerateRangesWithOptionsUsing

func (o *NSIndexSet) EnumerateRangesWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)

Executes a given block using each object in the index set, in the specified ranges.

func (*NSIndexSet) FirstIndex

func (o *NSIndexSet) FirstIndex() uint

func (*NSIndexSet) GetIndexesMaxCountInIndexRange

func (o *NSIndexSet) GetIndexesMaxCountInIndexRange(indexBuffer *uint, bufferSize uint, range_ *NSRange) uint

The index set fills an index buffer with the indexes contained both in the index set and in an index range, returning the number of indexes copied.

func (*NSIndexSet) IndexGreaterThanIndex

func (o *NSIndexSet) IndexGreaterThanIndex(value uint) uint

Returns either the closest index in the index set that is greater than a specific index or the not-found indicator.

func (*NSIndexSet) IndexGreaterThanOrEqualToIndex

func (o *NSIndexSet) IndexGreaterThanOrEqualToIndex(value uint) uint

Returns either the closest index in the index set that is greater than or equal to a specific index or the not-found indicator.

func (*NSIndexSet) IndexInRangeOptionsPassingTest

func (o *NSIndexSet) IndexInRangeOptionsPassingTest(range_ NSRange, opts NSEnumerationOptions, predicate func(uint, *bool) bool) uint

Returns the index of the first object in the specified range that passes the predicate Block test.

func (*NSIndexSet) IndexLessThanIndex

func (o *NSIndexSet) IndexLessThanIndex(value uint) uint

Returns either the closest index in the index set that is less than a specific index or the not-found indicator.

func (*NSIndexSet) IndexLessThanOrEqualToIndex

func (o *NSIndexSet) IndexLessThanOrEqualToIndex(value uint) uint

Returns either the closest index in the index set that is less than or equal to a specific index or the not-found indicator.

func (*NSIndexSet) IndexPassingTest

func (o *NSIndexSet) IndexPassingTest(predicate func(uint, *bool) bool) uint

Returns the index of the first object that passes the predicate Block test.

func (*NSIndexSet) IndexWithOptionsPassingTest

func (o *NSIndexSet) IndexWithOptionsPassingTest(opts NSEnumerationOptions, predicate func(uint, *bool) bool) uint

Returns the index of the first object that passes the predicate Block test using the specified enumeration options.

func (*NSIndexSet) IndexesInRangeOptionsPassingTest

func (o *NSIndexSet) IndexesInRangeOptionsPassingTest(range_ NSRange, opts NSEnumerationOptions, predicate func(uint, *bool) bool) *NSIndexSet

Returns an NSIndexSet containing the receiving index set’s objects in the specified range that pass the Block test.

func (*NSIndexSet) IndexesPassingTest

func (o *NSIndexSet) IndexesPassingTest(predicate func(uint, *bool) bool) *NSIndexSet

Returns an NSIndexSet containing the receiving index set’s objects that pass the Block test.

func (*NSIndexSet) IndexesWithOptionsPassingTest

func (o *NSIndexSet) IndexesWithOptionsPassingTest(opts NSEnumerationOptions, predicate func(uint, *bool) bool) *NSIndexSet

Returns an NSIndexSet containing the receiving index set’s objects that pass the Block test using the specified enumeration options.

func (*NSIndexSet) InitWithIndex

func (o *NSIndexSet) InitWithIndex(value uint) *NSIndexSet

Initializes an allocated NSIndexSet object with an index.

func (*NSIndexSet) InitWithIndexSet

func (o *NSIndexSet) InitWithIndexSet(indexSet *NSIndexSet) *NSIndexSet

Initializes an allocated NSIndexSet object with an index set.

func (*NSIndexSet) InitWithIndexesInRange

func (o *NSIndexSet) InitWithIndexesInRange(range_ NSRange) *NSIndexSet

Initializes an allocated NSIndexSet object with an index range.

func (*NSIndexSet) IntersectsIndexesInRange

func (o *NSIndexSet) IntersectsIndexesInRange(range_ NSRange) bool

Indicates whether the index set contains any of the indexes in a range.

func (*NSIndexSet) IsEqualToIndexSet

func (o *NSIndexSet) IsEqualToIndexSet(indexSet *NSIndexSet) bool

Indicates whether the indexes in the receiving index set are the same indexes contained in another index set.

func (*NSIndexSet) LastIndex

func (o *NSIndexSet) LastIndex() uint

type NSIndexSpecifier

type NSIndexSpecifier struct {
	NSScriptObjectSpecifier
}

A specifier representing an object in a collection (or container) with an index number.

Apple documentation: https://developer.apple.com/documentation/foundation/nsindexspecifier

func NSIndexSpecifierFromID

func NSIndexSpecifierFromID(id objc.ID) *NSIndexSpecifier

func (*NSIndexSpecifier) Index

func (o *NSIndexSpecifier) Index() int

func (*NSIndexSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyIndex

func (o *NSIndexSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyIndex(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString, index int) *NSIndexSpecifier

Initializes an allocated NSIndexSpecifier object with a class description, container specifier, collection key, and object index.

func (*NSIndexSpecifier) SetIndex

func (o *NSIndexSpecifier) SetIndex(index int)

type NSInflectionRule

type NSInflectionRule struct {
	NSObject
}

A rule that affects how an attributed string performs automatic grammatical agreement.

Apple documentation: https://developer.apple.com/documentation/foundation/nsinflectionrule

func NSInflectionRuleAutomaticRule

func NSInflectionRuleAutomaticRule() *NSInflectionRule

func NSInflectionRuleFromID

func NSInflectionRuleFromID(id objc.ID) *NSInflectionRule

type NSInflectionRuleExplicit

type NSInflectionRuleExplicit struct {
	NSInflectionRule
}

An inflection rule that uses a morphology instance to determine how to inflect attribued strings.

Apple documentation: https://developer.apple.com/documentation/foundation/nsinflectionruleexplicit

func NSInflectionRuleExplicitFromID

func NSInflectionRuleExplicitFromID(id objc.ID) *NSInflectionRuleExplicit

func (*NSInflectionRuleExplicit) InitWithMorphology

func (o *NSInflectionRuleExplicit) InitWithMorphology(morphology *NSMorphology) *NSInflectionRuleExplicit

Creates an inflection rule with the given morphology.

func (*NSInflectionRuleExplicit) Morphology

func (o *NSInflectionRuleExplicit) Morphology() *NSMorphology

type NSInlinePresentationIntent

type NSInlinePresentationIntent uint64

A type that defines presentation intent for runs of characters for traits like emphasis, strikethrough, and code voice.

const (
	NSInlinePresentationIntentEmphasized         NSInlinePresentationIntent = 1
	NSInlinePresentationIntentStronglyEmphasized NSInlinePresentationIntent = 2
	NSInlinePresentationIntentCode               NSInlinePresentationIntent = 4
	NSInlinePresentationIntentStrikethrough      NSInlinePresentationIntent = 32
	NSInlinePresentationIntentSoftBreak          NSInlinePresentationIntent = 64
	NSInlinePresentationIntentLineBreak          NSInlinePresentationIntent = 128
	NSInlinePresentationIntentInlineHTML         NSInlinePresentationIntent = 256
	NSInlinePresentationIntentBlockHTML          NSInlinePresentationIntent = 512
)

func (NSInlinePresentationIntent) String

type NSInputStream

type NSInputStream struct {
	NSStream
}

A stream that provides read-only stream functionality.

Apple documentation: https://developer.apple.com/documentation/foundation/nsinputstream

func NSInputStreamFromID

func NSInputStreamFromID(id objc.ID) *NSInputStream

func NSInputStreamInputStreamWithData

func NSInputStreamInputStreamWithData(data *NSData) *NSInputStream

Creates and returns an initialized NSInputStream object for reading from a given NSData object.

func NSInputStreamInputStreamWithFileAtPath

func NSInputStreamInputStreamWithFileAtPath(path *NSString) *NSInputStream

Creates and returns an initialized NSInputStream object that reads data from the file at a given path.

func NSInputStreamInputStreamWithURL

func NSInputStreamInputStreamWithURL(url *NSURL) *NSInputStream

Creates and returns an initialized NSInputStream object that reads data from the file at a given URL.

func (*NSInputStream) GetBufferLength

func (o *NSInputStream) GetBufferLength(buffer *uint8, len_ *uint) bool

func (*NSInputStream) HasBytesAvailable

func (o *NSInputStream) HasBytesAvailable() bool

func (*NSInputStream) InitWithData

func (o *NSInputStream) InitWithData(data *NSData) *NSInputStream

func (*NSInputStream) InitWithFileAtPath

func (o *NSInputStream) InitWithFileAtPath(path *NSString) *NSInputStream

func (*NSInputStream) InitWithURL

func (o *NSInputStream) InitWithURL(url *NSURL) *NSInputStream

func (*NSInputStream) ReadMaxLength

func (o *NSInputStream) ReadMaxLength(buffer *uint8, len_ uint) int

type NSInsertionPosition

type NSInsertionPosition uint64

The following constants are defined by NSPositionalSpecifier to specify an insertion position.

const (
	NSPositionAfter     NSInsertionPosition = 0
	NSPositionBefore    NSInsertionPosition = 1
	NSPositionBeginning NSInsertionPosition = 2
	NSPositionEnd       NSInsertionPosition = 3
	NSPositionReplace   NSInsertionPosition = 4
)

func (NSInsertionPosition) String

func (e NSInsertionPosition) String() string

type NSInvocation

type NSInvocation struct {
	NSObject
}

An Objective-C message rendered as an object.

Apple documentation: https://developer.apple.com/documentation/foundation/nsinvocation

func NSInvocationFromID

func NSInvocationFromID(id objc.ID) *NSInvocation

func NSInvocationInvocationWithMethodSignature

func NSInvocationInvocationWithMethodSignature(sig *NSMethodSignature) *NSInvocation

Returns an NSInvocation object able to construct messages using a given method signature.

func (*NSInvocation) ArgumentsRetained

func (o *NSInvocation) ArgumentsRetained() bool

func (*NSInvocation) GetArgumentAtIndex

func (o *NSInvocation) GetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int)

Returns by indirection the receiver’s argument at a specified index.

func (*NSInvocation) GetReturnValue

func (o *NSInvocation) GetReturnValue(retLoc unsafe.Pointer)

Gets the invocation’s return value.

func (*NSInvocation) Invoke

func (o *NSInvocation) Invoke()

Sends the receiver’s message (with arguments) to its target and sets the return value.

func (*NSInvocation) InvokeUsingIMP

func (o *NSInvocation) InvokeUsingIMP(imp unsafe.Pointer)

func (*NSInvocation) InvokeWithTarget

func (o *NSInvocation) InvokeWithTarget(target objc.ID)

Sets the receiver’s target, sends the receiver’s message (with arguments) to that target, and sets the return value.

func (*NSInvocation) MethodSignature

func (o *NSInvocation) MethodSignature() *NSMethodSignature

func (*NSInvocation) RetainArguments

func (o *NSInvocation) RetainArguments()

If the receiver hasn’t already done so, retains the target and all object arguments of the receiver and copies all of its C-string arguments and blocks. If a returnvalue has been set, this is also retained or copied.

func (*NSInvocation) Selector

func (o *NSInvocation) Selector() objc.SEL

func (*NSInvocation) SetArgumentAtIndex

func (o *NSInvocation) SetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int)

Sets an argument of the receiver.

func (*NSInvocation) SetReturnValue

func (o *NSInvocation) SetReturnValue(retLoc unsafe.Pointer)

Sets the receiver’s return value.

func (*NSInvocation) SetSelector

func (o *NSInvocation) SetSelector(selector objc.SEL)

func (*NSInvocation) SetTarget

func (o *NSInvocation) SetTarget(target objc.ID)

func (*NSInvocation) Target

func (o *NSInvocation) Target() objc.ID

type NSInvocationOperation

type NSInvocationOperation struct {
	NSOperation
}

An operation that manages the execution of a single encapsulated task specified as an invocation.

Apple documentation: https://developer.apple.com/documentation/foundation/nsinvocationoperation

func NSInvocationOperationFromID

func NSInvocationOperationFromID(id objc.ID) *NSInvocationOperation

func (*NSInvocationOperation) InitWithInvocation

func (o *NSInvocationOperation) InitWithInvocation(inv *NSInvocation) *NSInvocationOperation

Returns an NSInvocationOperation object initialized with the specified invocation object.

func (*NSInvocationOperation) InitWithTargetSelectorObject

func (o *NSInvocationOperation) InitWithTargetSelectorObject(target objc.ID, sel objc.SEL, arg objc.ID) *NSInvocationOperation

Returns an NSInvocationOperation object initialized with the specified target and selector.

func (*NSInvocationOperation) Invocation

func (o *NSInvocationOperation) Invocation() *NSInvocation

func (*NSInvocationOperation) Result

func (o *NSInvocationOperation) Result() objc.ID

type NSItemProvider

type NSItemProvider struct {
	NSObject
}

An item provider for conveying data or a file between processes during drag-and-drop or copy-and-paste activities, or from a host app to an app extension.

Apple documentation: https://developer.apple.com/documentation/foundation/nsitemprovider

func NSItemProviderFromID

func NSItemProviderFromID(id objc.ID) *NSItemProvider

func (*NSItemProvider) CanLoadObjectOfClass

func (o *NSItemProvider) CanLoadObjectOfClass(aClass unsafe.Pointer) bool

Returns a Boolean value indicating whether an item provider can load objects of a specified class.

func (*NSItemProvider) HasItemConformingToTypeIdentifier

func (o *NSItemProvider) HasItemConformingToTypeIdentifier(typeIdentifier *NSString) bool

Returns a Boolean value indicating whether an item provider contains a data representation conforming to a specified universal type identifier file options parameter with a value of zero.

func (*NSItemProvider) HasRepresentationConformingToTypeIdentifierFileOptions

func (o *NSItemProvider) HasRepresentationConformingToTypeIdentifierFileOptions(typeIdentifier *NSString, fileOptions NSItemProviderFileOptions) bool

Returns a Boolean value indicating whether an item provider contains a data representation conforming to a specified universal type identifier and to specified open-in-place behavior.

func (*NSItemProvider) Init

func (o *NSItemProvider) Init() *NSItemProvider

Creates an empty item provider to which you can later register a data or file representation.

func (*NSItemProvider) InitWithContentsOfURL

func (o *NSItemProvider) InitWithContentsOfURL(fileURL *NSURL) *NSItemProvider

Provides data-backed content from an existing file.

func (*NSItemProvider) InitWithItemTypeIdentifier

func (o *NSItemProvider) InitWithItemTypeIdentifier(item NSSecureCoding, typeIdentifier *NSString) *NSItemProvider

Creates an item provider with an object, according to the item provider type coercion policy.

func (*NSItemProvider) InitWithObject

func (o *NSItemProvider) InitWithObject(object NSItemProviderWriting) *NSItemProvider

Creates a new item provider, employing a specified object’s type identifiers to specify the data representations eligible for the provider to load.

func (*NSItemProvider) LoadDataRepresentationForTypeIdentifierCompletionHandler

func (o *NSItemProvider) LoadDataRepresentationForTypeIdentifierCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSData, unsafe.Pointer)) *NSProgress

Asynchronously copies the provided, typed data into a generic data object, returning a progress object.

func (*NSItemProvider) LoadFileRepresentationForTypeIdentifierCompletionHandler

func (o *NSItemProvider) LoadFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSURL, unsafe.Pointer)) *NSProgress

Asynchronously writes a copy of the provided, typed data to a temporary file, returning a progress object.

func (*NSItemProvider) LoadInPlaceFileRepresentationForTypeIdentifierCompletionHandler

func (o *NSItemProvider) LoadInPlaceFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSURL, bool, unsafe.Pointer)) *NSProgress

Asynchronously opens a file in place, if possible, returning a progress object.

func (*NSItemProvider) LoadItemForTypeIdentifierOptionsCompletionHandler

func (o *NSItemProvider) LoadItemForTypeIdentifierOptionsCompletionHandler(typeIdentifier *NSString, options *NSDictionary[objc.ID, objc.ID], completionHandler func(objc.ID, unsafe.Pointer))

Loads the item’s data and coerces it to the specified type.

func (*NSItemProvider) LoadObjectOfClassCompletionHandler

func (o *NSItemProvider) LoadObjectOfClassCompletionHandler(aClass unsafe.Pointer, completionHandler func(objc.ID, unsafe.Pointer)) *NSProgress

Asynchronously loads an object of a specified class to an item provider, returning a progress object.

func (*NSItemProvider) LoadPreviewImageWithOptionsCompletionHandler

func (o *NSItemProvider) LoadPreviewImageWithOptionsCompletionHandler(options *NSDictionary[objc.ID, objc.ID], completionHandler func(objc.ID, unsafe.Pointer))

Loads the preview image for the item that the item provider represents.

func (*NSItemProvider) PreviewImageHandler

func (o *NSItemProvider) PreviewImageHandler() objc.Block

func (*NSItemProvider) RegisterDataRepresentationForTypeIdentifierVisibilityLoadHandler

func (o *NSItemProvider) RegisterDataRepresentationForTypeIdentifierVisibilityLoadHandler(typeIdentifier *NSString, visibility NSItemProviderRepresentationVisibility, loadHandler objc.Block)

Registers a data-backed representation for an item, specifiying item visibility and a load handler.

func (*NSItemProvider) RegisterFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler

func (o *NSItemProvider) RegisterFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler(typeIdentifier *NSString, fileOptions NSItemProviderFileOptions, visibility NSItemProviderRepresentationVisibility, loadHandler objc.Block)

Registers a file-backed representation for an item, specifying file options, item visibility, and a load handler.

func (*NSItemProvider) RegisterItemForTypeIdentifierLoadHandler

func (o *NSItemProvider) RegisterItemForTypeIdentifierLoadHandler(typeIdentifier *NSString, loadHandler func(objc.Block, objc.Class, *NSDictionary[objc.ID, objc.ID]))

Lazily registers an item, according to the item provider type coercion policy.

func (*NSItemProvider) RegisterObjectOfClassVisibilityLoadHandler

func (o *NSItemProvider) RegisterObjectOfClassVisibilityLoadHandler(aClass unsafe.Pointer, visibility NSItemProviderRepresentationVisibility, loadHandler objc.Block)

Lazily adds representations of a specified object class to an item provider, based on the object’s implementation of the item provider writing protocol, and adhering to a visibility specification.

func (*NSItemProvider) RegisterObjectVisibility

func (o *NSItemProvider) RegisterObjectVisibility(object NSItemProviderWriting, visibility NSItemProviderRepresentationVisibility)

Adds representations of a specified object to an item provider, based on the object’s implementation of the item provider writing protocol, and adhering to a visibility specification.

func (*NSItemProvider) RegisteredTypeIdentifiers

func (o *NSItemProvider) RegisteredTypeIdentifiers() *NSArray[*NSString]

func (*NSItemProvider) RegisteredTypeIdentifiersWithFileOptions

func (o *NSItemProvider) RegisteredTypeIdentifiersWithFileOptions(fileOptions NSItemProviderFileOptions) *NSArray[*NSString]

Returns an array with a subset of type identifiers for the item provider, according to the specified file options, in the same order they were registered.

func (*NSItemProvider) SetPreviewImageHandler

func (o *NSItemProvider) SetPreviewImageHandler(previewImageHandler func(objc.Block, objc.Class, *NSDictionary[objc.ID, objc.ID]))

func (*NSItemProvider) SetSuggestedName

func (o *NSItemProvider) SetSuggestedName(suggestedName *NSString)

func (*NSItemProvider) SuggestedName

func (o *NSItemProvider) SuggestedName() *NSString

type NSItemProviderErrorCode

type NSItemProviderErrorCode int64

The error codes that describe problems with consuming data from an item provider.

const (
	NSItemProviderUnknownError              NSItemProviderErrorCode = -1
	NSItemProviderItemUnavailableError      NSItemProviderErrorCode = -1000
	NSItemProviderUnexpectedValueClassError NSItemProviderErrorCode = -1100
	NSItemProviderUnavailableCoercionError  NSItemProviderErrorCode = -1200
)

func (NSItemProviderErrorCode) String

func (e NSItemProviderErrorCode) String() string

type NSItemProviderFileOptions

type NSItemProviderFileOptions int64

Data-access specifications that declare how to handle items.

const (
	// A data-access specification declaring that items should open in place, rather than being copied.
	NSItemProviderFileOptionOpenInPlace NSItemProviderFileOptions = 1
)

func (NSItemProviderFileOptions) String

func (e NSItemProviderFileOptions) String() string

type NSItemProviderReading

type NSItemProviderReading interface {
	ObjectWithItemProviderDataTypeIdentifierError(data *NSData, typeIdentifier *NSString) (unsafe.Pointer, error)
	ReadableTypeIdentifiersForItemProvider() *NSArray[*NSString]
}

NSItemProviderReading wraps the ObjC protocol NSItemProviderReading.

type NSItemProviderRepresentationVisibility

type NSItemProviderRepresentationVisibility int64

Specifications that control which categories of processes can see an item.

const (
	// A representation visibility specification conferring item visibility to all processes.
	NSItemProviderRepresentationVisibilityAll NSItemProviderRepresentationVisibility = 0
	// A representation visibility specification confining item visibility to the app’s app group.
	NSItemProviderRepresentationVisibilityGroup NSItemProviderRepresentationVisibility = 2
	// A representation visibility specification confining item visibility to the app that is the source of the item.
	NSItemProviderRepresentationVisibilityOwnProcess NSItemProviderRepresentationVisibility = 3
)

func (NSItemProviderRepresentationVisibility) String

type NSItemProviderWriting

type NSItemProviderWriting interface {
	LoadDataWithTypeIdentifierForItemProviderCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSData, unsafe.Pointer)) *NSProgress
	WritableTypeIdentifiersForItemProvider() *NSArray[*NSString]
}

NSItemProviderWriting wraps the ObjC protocol NSItemProviderWriting.

type NSJSONReadingOptions

type NSJSONReadingOptions uint64

Options used when creating Foundation objects from JSON data.

const (
	NSJSONReadingMutableContainers         NSJSONReadingOptions = 1
	NSJSONReadingMutableLeaves             NSJSONReadingOptions = 2
	NSJSONReadingFragmentsAllowed          NSJSONReadingOptions = 4
	NSJSONReadingJSON5Allowed              NSJSONReadingOptions = 8
	NSJSONReadingTopLevelDictionaryAssumed NSJSONReadingOptions = 16
	NSJSONReadingAllowFragments            NSJSONReadingOptions = 4
)

func (NSJSONReadingOptions) String

func (e NSJSONReadingOptions) String() string

type NSJSONSerialization

type NSJSONSerialization struct {
	NSObject
}

An object that converts between JSON and the equivalent Foundation objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nsjsonserialization

func NSJSONSerializationFromID

func NSJSONSerializationFromID(id objc.ID) *NSJSONSerialization

type NSJSONWritingOptions

type NSJSONWritingOptions uint64

Options for writing JSON data.

const (
	NSJSONWritingPrettyPrinted          NSJSONWritingOptions = 1
	NSJSONWritingSortedKeys             NSJSONWritingOptions = 2
	NSJSONWritingFragmentsAllowed       NSJSONWritingOptions = 4
	NSJSONWritingWithoutEscapingSlashes NSJSONWritingOptions = 8
)

func (NSJSONWritingOptions) String

func (e NSJSONWritingOptions) String() string

type NSKeyValueChange

type NSKeyValueChange uint64

The kinds of changes that can be observed.

const (
	// Indicates that the value of the observed key path was set to a new value. This change can occur when observing an attribute of an object, as well as properties that specify to-one and to-many relationships.
	NSKeyValueChangeSetting NSKeyValueChange = 1
	// Indicates that an object has been inserted into the to-many relationship that is being observed.
	NSKeyValueChangeInsertion NSKeyValueChange = 2
	// Indicates that an object has been removed from the to-many relationship that is being observed.
	NSKeyValueChangeRemoval NSKeyValueChange = 3
	// Indicates that an object has been replaced in the to-many relationship that is being observed.
	NSKeyValueChangeReplacement NSKeyValueChange = 4
)

func (NSKeyValueChange) String

func (e NSKeyValueChange) String() string

type NSKeyValueObservingOptions

type NSKeyValueObservingOptions uint64

The values that can be returned in a change dictionary.

const (
	// Indicates that the change dictionary should provide the new attribute value, if applicable.
	NSKeyValueObservingOptionNew NSKeyValueObservingOptions = 1
	// Indicates that the change dictionary should contain the old attribute value, if applicable.
	NSKeyValueObservingOptionOld NSKeyValueObservingOptions = 2
	// If specified, a notification should be sent to the observer immediately, before the observer registration method even returns.
	NSKeyValueObservingOptionInitial NSKeyValueObservingOptions = 4
	// Whether separate notifications should be sent to the observer before and after each change, instead of a single notification after the change.
	NSKeyValueObservingOptionPrior NSKeyValueObservingOptions = 8
)

func (NSKeyValueObservingOptions) String

type NSKeyValueSetMutationKind

type NSKeyValueSetMutationKind uint64
const (
	NSKeyValueUnionSetMutation     NSKeyValueSetMutationKind = 1
	NSKeyValueMinusSetMutation     NSKeyValueSetMutationKind = 2
	NSKeyValueIntersectSetMutation NSKeyValueSetMutationKind = 3
	NSKeyValueSetSetMutation       NSKeyValueSetMutationKind = 4
)

func (NSKeyValueSetMutationKind) String

func (e NSKeyValueSetMutationKind) String() string

type NSKeyValueSharedObservers

type NSKeyValueSharedObservers struct {
	NSObject
}

A collection of key-value observations which may be registered with multiple observable objects

Apple documentation: https://developer.apple.com/documentation/foundation/nskeyvaluesharedobservers

func NSKeyValueSharedObserversFromID

func NSKeyValueSharedObserversFromID(id objc.ID) *NSKeyValueSharedObservers

func (*NSKeyValueSharedObservers) AddSharedObserverForKeyOptionsContext

func (o *NSKeyValueSharedObservers) AddSharedObserverForKeyOptionsContext(observer *NSObject, key *NSString, options NSKeyValueObservingOptions, context_ unsafe.Pointer)

Add a new observer to the collection.

func (*NSKeyValueSharedObservers) InitWithObservableClass

func (o *NSKeyValueSharedObservers) InitWithObservableClass(observableClass objc.Class) objc.ID

A new collection of observables for an observable object of the given class

func (*NSKeyValueSharedObservers) Snapshot

A momentary snapshot of all observers added to the collection thus far, that can be assigned to an observable using -[NSObject setSharedObservers:]

type NSKeyValueSharedObserversSnapshot

type NSKeyValueSharedObserversSnapshot struct {
	NSObject
}

A collection of key-value observations which may be registered with multiple observable objects. Create using -[NSKeyValueSharedObservers snapshot]

Apple documentation: https://developer.apple.com/documentation/foundation/nskeyvaluesharedobserverssnapshot

func NSKeyValueSharedObserversSnapshotFromID

func NSKeyValueSharedObserversSnapshotFromID(id objc.ID) *NSKeyValueSharedObserversSnapshot

type NSKeyedArchiver

type NSKeyedArchiver struct {
	NSCoder
}

An encoder that stores an object’s data to an archive referenced by keys.

Apple documentation: https://developer.apple.com/documentation/foundation/nskeyedarchiver

func NSKeyedArchiverFromID

func NSKeyedArchiverFromID(id objc.ID) *NSKeyedArchiver

func (*NSKeyedArchiver) ClassNameForClass

func (o *NSKeyedArchiver) ClassNameForClass(cls objc.Class) *NSString

Returns the class name with which this archiver encodes instances of a given class.

func (*NSKeyedArchiver) Delegate deprecated

Deprecated: Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead

func (*NSKeyedArchiver) EncodedData

func (o *NSKeyedArchiver) EncodedData() *NSData

If encoding has not yet finished, then invoking this property will call finishEncoding and return the data. If you initialized the keyed archiver with a specific mutable data instance, then it will be returned from this property after finishEncoding is called.

func (*NSKeyedArchiver) FinishEncoding

func (o *NSKeyedArchiver) FinishEncoding()

Instructs the receiver to construct the final data stream.

func (*NSKeyedArchiver) Init

func (o *NSKeyedArchiver) Init() *NSKeyedArchiver

Initializes an archiver to encode data. Deprecated: Use -initRequiringSecureCoding: instead

func (*NSKeyedArchiver) InitForWritingWithMutableData

func (o *NSKeyedArchiver) InitForWritingWithMutableData(data *NSMutableData) *NSKeyedArchiver

Initializes an archiver to encode data into a given a mutable-data object. Deprecated: Use -initRequiringSecureCoding: instead

func (*NSKeyedArchiver) InitRequiringSecureCoding

func (o *NSKeyedArchiver) InitRequiringSecureCoding(requiresSecureCoding bool) *NSKeyedArchiver

Creates an archiver to encode data, and optionally disables secure coding.

func (*NSKeyedArchiver) OutputFormat

func (o *NSKeyedArchiver) OutputFormat() NSPropertyListFormat

func (*NSKeyedArchiver) SetClassNameForClass

func (o *NSKeyedArchiver) SetClassNameForClass(codedName *NSString, cls objc.Class)

Sets a mapping for this archiver to encode instances of a given class with the provided name, rather than their real name.

func (*NSKeyedArchiver) SetDelegate

func (o *NSKeyedArchiver) SetDelegate(delegate NSKeyedArchiverDelegate)

func (*NSKeyedArchiver) SetOutputFormat

func (o *NSKeyedArchiver) SetOutputFormat(outputFormat NSPropertyListFormat)

func (*NSKeyedArchiver) SetRequiresSecureCoding

func (o *NSKeyedArchiver) SetRequiresSecureCoding(requiresSecureCoding bool)

type NSKeyedArchiverDelegate

type NSKeyedArchiverDelegate interface {
}

NSKeyedArchiverDelegate wraps the ObjC protocol NSKeyedArchiverDelegate.

type NSKeyedUnarchiver

type NSKeyedUnarchiver struct {
	NSCoder
}

A decoder that restores data from an archive referenced by keys.

Apple documentation: https://developer.apple.com/documentation/foundation/nskeyedunarchiver

func NSKeyedUnarchiverFromID

func NSKeyedUnarchiverFromID(id objc.ID) *NSKeyedUnarchiver

func (*NSKeyedUnarchiver) ClassForClassName

func (o *NSKeyedUnarchiver) ClassForClassName(codedName *NSString) objc.Class

Returns the class from which this unarchiver instantiates an encoded object with a given class name.

func (*NSKeyedUnarchiver) Delegate deprecated

Deprecated: Use +unarchivedObjectOfClass:fromData:error: instead

func (*NSKeyedUnarchiver) FinishDecoding

func (o *NSKeyedUnarchiver) FinishDecoding()

Tells the receiver that you are finished decoding objects.

func (*NSKeyedUnarchiver) Init

Initializes an archiver to decode data. Deprecated: Use -initForReadingFromData:error: instead

func (*NSKeyedUnarchiver) InitForReadingFromDataError

func (o *NSKeyedUnarchiver) InitForReadingFromDataError(data *NSData) (*NSKeyedUnarchiver, error)

Initializes an archiver to decode data from the specified location.

func (*NSKeyedUnarchiver) InitForReadingWithData

func (o *NSKeyedUnarchiver) InitForReadingWithData(data *NSData) *NSKeyedUnarchiver

Initializes an archiver to decode data from the specified location. Deprecated: Use -initForReadingFromData:error: instead

func (*NSKeyedUnarchiver) SetClassForClassName

func (o *NSKeyedUnarchiver) SetClassForClassName(cls objc.Class, codedName *NSString)

Sets a translation mapping on this unarchiver to decode objects encoded with a given class name as instances of a given class instead.

func (*NSKeyedUnarchiver) SetDecodingFailurePolicy

func (o *NSKeyedUnarchiver) SetDecodingFailurePolicy(decodingFailurePolicy NSDecodingFailurePolicy)

func (*NSKeyedUnarchiver) SetDelegate

func (o *NSKeyedUnarchiver) SetDelegate(delegate NSKeyedUnarchiverDelegate)

func (*NSKeyedUnarchiver) SetRequiresSecureCoding

func (o *NSKeyedUnarchiver) SetRequiresSecureCoding(requiresSecureCoding bool)

type NSKeyedUnarchiverDelegate

type NSKeyedUnarchiverDelegate interface {
}

NSKeyedUnarchiverDelegate wraps the ObjC protocol NSKeyedUnarchiverDelegate.

type NSLengthFormatter

type NSLengthFormatter struct {
	NSFormatter
}

A formatter that provides localized descriptions of linear distances, such as length and height measurements.

Apple documentation: https://developer.apple.com/documentation/foundation/nslengthformatter

func NSLengthFormatterFromID

func NSLengthFormatterFromID(id objc.ID) *NSLengthFormatter

func (*NSLengthFormatter) IsForPersonHeightUse

func (o *NSLengthFormatter) IsForPersonHeightUse() bool

func (*NSLengthFormatter) NumberFormatter

func (o *NSLengthFormatter) NumberFormatter() *NSNumberFormatter

func (*NSLengthFormatter) SetForPersonHeightUse

func (o *NSLengthFormatter) SetForPersonHeightUse(forPersonHeightUse bool)

func (*NSLengthFormatter) SetNumberFormatter

func (o *NSLengthFormatter) SetNumberFormatter(numberFormatter *NSNumberFormatter)

func (*NSLengthFormatter) SetUnitStyle

func (o *NSLengthFormatter) SetUnitStyle(unitStyle NSFormattingUnitStyle)

func (*NSLengthFormatter) StringFromMeters

func (o *NSLengthFormatter) StringFromMeters(numberInMeters float64) *NSString

func (*NSLengthFormatter) StringFromValueUnit

func (o *NSLengthFormatter) StringFromValueUnit(value float64, unit NSLengthFormatterUnit) *NSString

func (*NSLengthFormatter) UnitStringFromMetersUsedUnit

func (o *NSLengthFormatter) UnitStringFromMetersUsedUnit(numberInMeters float64, unitp *NSLengthFormatterUnit) *NSString

func (*NSLengthFormatter) UnitStringFromValueUnit

func (o *NSLengthFormatter) UnitStringFromValueUnit(value float64, unit NSLengthFormatterUnit) *NSString

func (*NSLengthFormatter) UnitStyle

type NSLengthFormatterUnit

type NSLengthFormatterUnit int64

The units supported by the NSLengthFormatter class.

const (
	NSLengthFormatterUnitMillimeter NSLengthFormatterUnit = 8
	NSLengthFormatterUnitCentimeter NSLengthFormatterUnit = 9
	NSLengthFormatterUnitMeter      NSLengthFormatterUnit = 11
	NSLengthFormatterUnitKilometer  NSLengthFormatterUnit = 14
	NSLengthFormatterUnitInch       NSLengthFormatterUnit = 1281
	NSLengthFormatterUnitFoot       NSLengthFormatterUnit = 1282
	NSLengthFormatterUnitYard       NSLengthFormatterUnit = 1283
	NSLengthFormatterUnitMile       NSLengthFormatterUnit = 1284
)

func (NSLengthFormatterUnit) String

func (e NSLengthFormatterUnit) String() string

type NSLinguisticTagger

type NSLinguisticTagger struct {
	NSObject
}

Analyze natural language text to tag part of speech and lexical class, identify names, perform lemmatization, and determine the language and script.

Apple documentation: https://developer.apple.com/documentation/foundation/nslinguistictagger Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTaggerFromID

func NSLinguisticTaggerFromID(id objc.ID) *NSLinguisticTagger

func (*NSLinguisticTagger) DominantLanguage deprecated

func (o *NSLinguisticTagger) DominantLanguage() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) EnumerateTagsInRangeSchemeOptionsUsing

func (o *NSLinguisticTagger) EnumerateTagsInRangeSchemeOptionsUsing(range_ NSRange, tagScheme *NSString, opts NSLinguisticTaggerOptions, block objc.Block)

Enumerates over a given range of the string and calls the specified block for each tag. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) EnumerateTagsInRangeUnitSchemeOptionsUsing

func (o *NSLinguisticTagger) EnumerateTagsInRangeUnitSchemeOptionsUsing(range_ NSRange, unit NSLinguisticTaggerUnit, scheme *NSString, options NSLinguisticTaggerOptions, block objc.Block)

Enumerates over a given range of the string for a particular unit and calls the specified block for each tag. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) InitWithTagSchemesOptions

func (o *NSLinguisticTagger) InitWithTagSchemesOptions(tagSchemes *NSArray[*NSString], opts uint) *NSLinguisticTagger

Creates a linguistic tagger instance using the specified tag schemes and options. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) OrthographyAtIndexEffectiveRange

func (o *NSLinguisticTagger) OrthographyAtIndexEffectiveRange(charIndex uint, effectiveRange *NSRange) *NSOrthography

Returns the orthography at the index and also returns the effective range. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) PossibleTagsAtIndexSchemeTokenRangeSentenceRangeScores

func (o *NSLinguisticTagger) PossibleTagsAtIndexSchemeTokenRangeSentenceRangeScores(charIndex uint, tagScheme *NSString, tokenRange *NSRange, sentenceRange *NSRange, scores *NSArray[*NSValue]) *NSArray[*NSString]

Returns an array of possible tags for the given scheme at the specified range, supplying matching scores. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) SentenceRangeForRange

func (o *NSLinguisticTagger) SentenceRangeForRange(range_ NSRange) NSRange

Returns the range of a sentence containing the specified range. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) SetOrthographyRange

func (o *NSLinguisticTagger) SetOrthographyRange(orthography *NSOrthography, range_ NSRange)

Sets the orthography for the specified range. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) SetString deprecated

func (o *NSLinguisticTagger) SetString(string_ *NSString)

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) String deprecated

func (o *NSLinguisticTagger) String() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) StringEditedInRangeChangeInLength

func (o *NSLinguisticTagger) StringEditedInRangeChangeInLength(newRange NSRange, delta int)

Notifies the linguistic tagger that the string (if mutable) has changed as specified by the parameters. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) TagAtIndexSchemeTokenRangeSentenceRange

func (o *NSLinguisticTagger) TagAtIndexSchemeTokenRangeSentenceRange(charIndex uint, scheme *NSString, tokenRange *NSRange, sentenceRange *NSRange) *NSString

Returns a tag for a single scheme at the specified character position. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) TagAtIndexUnitSchemeTokenRange

func (o *NSLinguisticTagger) TagAtIndexUnitSchemeTokenRange(charIndex uint, unit NSLinguisticTaggerUnit, scheme *NSString, tokenRange *NSRange) *NSString

Returns a tag for a single scheme, for a given linguistic unit, at the specified character position. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) TagSchemes deprecated

func (o *NSLinguisticTagger) TagSchemes() *NSArray[*NSString]

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) TagsInRangeSchemeOptionsTokenRanges

func (o *NSLinguisticTagger) TagsInRangeSchemeOptionsTokenRanges(range_ NSRange, tagScheme *NSString, opts NSLinguisticTaggerOptions, tokenRanges *NSArray[*NSValue]) *NSArray[*NSString]

Returns an array of linguistic tags and token ranges for a given string range. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) TagsInRangeUnitSchemeOptionsTokenRanges

func (o *NSLinguisticTagger) TagsInRangeUnitSchemeOptionsTokenRanges(range_ NSRange, unit NSLinguisticTaggerUnit, scheme *NSString, options NSLinguisticTaggerOptions, tokenRanges *NSArray[*NSValue]) *NSArray[*NSString]

Returns an array of linguistic tags and token ranges for a given string range and linguistic unit. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) TokenRangeAtIndexUnit

func (o *NSLinguisticTagger) TokenRangeAtIndexUnit(charIndex uint, unit NSLinguisticTaggerUnit) NSRange

Returns the range of the linguistic unit containing the specified character index. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

type NSLinguisticTaggerOptions

type NSLinguisticTaggerOptions uint64

Constants for linguistic tagger enumeration specifying which tokens to omit and whether to join names.

const (
	NSLinguisticTaggerOmitWords       NSLinguisticTaggerOptions = 1
	NSLinguisticTaggerOmitPunctuation NSLinguisticTaggerOptions = 2
	NSLinguisticTaggerOmitWhitespace  NSLinguisticTaggerOptions = 4
	NSLinguisticTaggerOmitOther       NSLinguisticTaggerOptions = 8
	NSLinguisticTaggerJoinNames       NSLinguisticTaggerOptions = 16
)

func (NSLinguisticTaggerOptions) String

func (e NSLinguisticTaggerOptions) String() string

type NSLinguisticTaggerUnit

type NSLinguisticTaggerUnit int64

Constants representing linguistic units.

const (
	// An individual word.
	NSLinguisticTaggerUnitWord NSLinguisticTaggerUnit = 0
	// An individual sentence.
	NSLinguisticTaggerUnitSentence NSLinguisticTaggerUnit = 1
	// An individual paragraph.
	NSLinguisticTaggerUnitParagraph NSLinguisticTaggerUnit = 2
	// The document in its entirety.
	NSLinguisticTaggerUnitDocument NSLinguisticTaggerUnit = 3
)

func (NSLinguisticTaggerUnit) String

func (e NSLinguisticTaggerUnit) String() string

type NSListFormatter

type NSListFormatter struct {
	NSFormatter
}

An object that provides locale-correct formatting of a list of items using the appropriate separator and conjunction.

Apple documentation: https://developer.apple.com/documentation/foundation/nslistformatter

func NSListFormatterFromID

func NSListFormatterFromID(id objc.ID) *NSListFormatter

func (*NSListFormatter) ItemFormatter

func (o *NSListFormatter) ItemFormatter() *NSFormatter

func (*NSListFormatter) Locale

func (o *NSListFormatter) Locale() *NSLocale

func (*NSListFormatter) SetItemFormatter

func (o *NSListFormatter) SetItemFormatter(itemFormatter *NSFormatter)

func (*NSListFormatter) SetLocale

func (o *NSListFormatter) SetLocale(locale *NSLocale)

func (*NSListFormatter) StringFromItems

func (o *NSListFormatter) StringFromItems(items *NSArray[objc.ID]) *NSString

type NSLocale

type NSLocale struct {
	NSObject
}

Information about linguistic, cultural, and technological conventions for use in formatting data for presentation.

Apple documentation: https://developer.apple.com/documentation/foundation/nslocale

func NSLocaleAutoupdatingCurrentLocale

func NSLocaleAutoupdatingCurrentLocale() *NSLocale

func NSLocaleCurrentLocale

func NSLocaleCurrentLocale() *NSLocale

func NSLocaleFromID

func NSLocaleFromID(id objc.ID) *NSLocale

func NSLocaleLocaleWithLocaleIdentifier

func NSLocaleLocaleWithLocaleIdentifier(ident *NSString) *NSLocale

Returns a locale initialized using the given locale identifier.

func NSLocaleSystemLocale

func NSLocaleSystemLocale() *NSLocale

func (*NSLocale) AlternateQuotationBeginDelimiter

func (o *NSLocale) AlternateQuotationBeginDelimiter() *NSString

func (*NSLocale) AlternateQuotationEndDelimiter

func (o *NSLocale) AlternateQuotationEndDelimiter() *NSString

func (*NSLocale) CalendarIdentifier

func (o *NSLocale) CalendarIdentifier() *NSString

func (*NSLocale) CollationIdentifier

func (o *NSLocale) CollationIdentifier() *NSString

func (*NSLocale) CollatorIdentifier

func (o *NSLocale) CollatorIdentifier() *NSString

func (*NSLocale) CountryCode deprecated

func (o *NSLocale) CountryCode() *NSString

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSLocale) CurrencyCode

func (o *NSLocale) CurrencyCode() *NSString

func (*NSLocale) CurrencySymbol

func (o *NSLocale) CurrencySymbol() *NSString

func (*NSLocale) DecimalSeparator

func (o *NSLocale) DecimalSeparator() *NSString

func (*NSLocale) DisplayNameForKeyValue

func (o *NSLocale) DisplayNameForKeyValue(key *NSString, value objc.ID) *NSString

Returns the display name for the given locale component value.

func (*NSLocale) ExemplarCharacterSet

func (o *NSLocale) ExemplarCharacterSet() *NSCharacterSet

func (*NSLocale) GroupingSeparator

func (o *NSLocale) GroupingSeparator() *NSString

func (*NSLocale) InitWithCoder

func (o *NSLocale) InitWithCoder(coder *NSCoder) *NSLocale

Returns a locale initialized from data in the given unarchiver.

func (*NSLocale) InitWithLocaleIdentifier

func (o *NSLocale) InitWithLocaleIdentifier(string_ *NSString) *NSLocale

Initializes a locale using a given locale identifier.

func (*NSLocale) LanguageCode

func (o *NSLocale) LanguageCode() *NSString

func (*NSLocale) LanguageIdentifier

func (o *NSLocale) LanguageIdentifier() *NSString

Returns the identifier for the language part of the locale. For example, returns "en-US" for "en_US@rg=gbzzzz" locale.

func (*NSLocale) LocaleIdentifier

func (o *NSLocale) LocaleIdentifier() *NSString

func (*NSLocale) LocalizedStringForCalendarIdentifier

func (o *NSLocale) LocalizedStringForCalendarIdentifier(calendarIdentifier *NSString) *NSString

Returns the localized string for the specified calendar identifier.

func (*NSLocale) LocalizedStringForCollationIdentifier

func (o *NSLocale) LocalizedStringForCollationIdentifier(collationIdentifier *NSString) *NSString

Returns the localized string for the specified collation identifier.

func (*NSLocale) LocalizedStringForCollatorIdentifier

func (o *NSLocale) LocalizedStringForCollatorIdentifier(collatorIdentifier *NSString) *NSString

Returns the localized string for the specified collator identifier.

func (*NSLocale) LocalizedStringForCountryCode

func (o *NSLocale) LocalizedStringForCountryCode(countryCode *NSString) *NSString

Returns the localized string for a country or region code.

func (*NSLocale) LocalizedStringForCurrencyCode

func (o *NSLocale) LocalizedStringForCurrencyCode(currencyCode *NSString) *NSString

Returns the localized string for the specified currency code.

func (*NSLocale) LocalizedStringForLanguageCode

func (o *NSLocale) LocalizedStringForLanguageCode(languageCode *NSString) *NSString

Returns the localized string for the specified language code.

func (*NSLocale) LocalizedStringForLocaleIdentifier

func (o *NSLocale) LocalizedStringForLocaleIdentifier(localeIdentifier *NSString) *NSString

Returns the localized string for the specified locale identifier.

func (*NSLocale) LocalizedStringForScriptCode

func (o *NSLocale) LocalizedStringForScriptCode(scriptCode *NSString) *NSString

Returns the localized string for the specified script code.

func (*NSLocale) LocalizedStringForVariantCode

func (o *NSLocale) LocalizedStringForVariantCode(variantCode *NSString) *NSString

Returns the localized string for the specified variant code.

func (*NSLocale) ObjectForKey

func (o *NSLocale) ObjectForKey(key *NSString) objc.ID

Returns the value of the component corresponding to the specified key.

func (*NSLocale) QuotationBeginDelimiter

func (o *NSLocale) QuotationBeginDelimiter() *NSString

func (*NSLocale) QuotationEndDelimiter

func (o *NSLocale) QuotationEndDelimiter() *NSString

func (*NSLocale) RegionCode

func (o *NSLocale) RegionCode() *NSString

Returns the region code of the locale. If the `rg` subtag is present, the value of the subtag will be used. For example, returns "GB" for "en_US@rg=gbzzzz" locale. If the `localeIdentifier` doesn’t contain a region, returns `nil`.

func (*NSLocale) ScriptCode

func (o *NSLocale) ScriptCode() *NSString

func (*NSLocale) UsesMetricSystem

func (o *NSLocale) UsesMetricSystem() bool

func (*NSLocale) VariantCode

func (o *NSLocale) VariantCode() *NSString

type NSLocaleLanguageDirection

type NSLocaleLanguageDirection uint64

The directions that a language may take across a page of text.

const (
	NSLocaleLanguageDirectionUnknown     NSLocaleLanguageDirection = 0
	NSLocaleLanguageDirectionLeftToRight NSLocaleLanguageDirection = 1
	NSLocaleLanguageDirectionRightToLeft NSLocaleLanguageDirection = 2
	NSLocaleLanguageDirectionTopToBottom NSLocaleLanguageDirection = 3
	NSLocaleLanguageDirectionBottomToTop NSLocaleLanguageDirection = 4
)

func NSLocaleCharacterDirectionForLanguage

func NSLocaleCharacterDirectionForLanguage(isoLangCode *NSString) NSLocaleLanguageDirection

Returns the direction of the sequence of characters in a line for the specified ISO language code.

func NSLocaleLineDirectionForLanguage

func NSLocaleLineDirectionForLanguage(isoLangCode *NSString) NSLocaleLanguageDirection

Returns the direction of the sequence of lines for the specified ISO language code.

func (NSLocaleLanguageDirection) String

func (e NSLocaleLanguageDirection) String() string

type NSLocalizedNumberFormatRule

type NSLocalizedNumberFormatRule struct {
	NSObject
}

Apple documentation: https://developer.apple.com/documentation/foundation/nslocalizednumberformatrule

func NSLocalizedNumberFormatRuleAutomatic

func NSLocalizedNumberFormatRuleAutomatic() *NSLocalizedNumberFormatRule

func NSLocalizedNumberFormatRuleFromID

func NSLocalizedNumberFormatRuleFromID(id objc.ID) *NSLocalizedNumberFormatRule

type NSLock

type NSLock struct {
	NSObject
}

An object that coordinates the operation of multiple threads of execution within the same application.

Apple documentation: https://developer.apple.com/documentation/foundation/nslock

func NSLockFromID

func NSLockFromID(id objc.ID) *NSLock

func (*NSLock) LockBeforeDate

func (o *NSLock) LockBeforeDate(limit *NSDate) bool

Attempts to acquire a lock before a given time and returns a Boolean value indicating whether the attempt was successful.

func (*NSLock) Name

func (o *NSLock) Name() *NSString

func (*NSLock) SetName

func (o *NSLock) SetName(name *NSString)

func (*NSLock) TryLock

func (o *NSLock) TryLock() bool

Attempts to acquire a lock and immediately returns a Boolean value that indicates whether the attempt was successful.

type NSLocking

type NSLocking interface {
	Lock()
	Unlock()
}

NSLocking wraps the ObjC protocol NSLocking.

type NSLogicalTest

type NSLogicalTest struct {
	NSScriptWhoseTest
}

The logical combination of one or more specifier tests.

Apple documentation: https://developer.apple.com/documentation/foundation/nslogicaltest

func NSLogicalTestFromID

func NSLogicalTestFromID(id objc.ID) *NSLogicalTest

func (*NSLogicalTest) InitAndTestWithTests

func (o *NSLogicalTest) InitAndTestWithTests(subTests *NSArray[*NSSpecifierTest]) *NSLogicalTest

Returns an NSLogicalTest object initialized to perform an AND operation with the NSSpecifierTest objects in a given array.

func (*NSLogicalTest) InitNotTestWithTest

func (o *NSLogicalTest) InitNotTestWithTest(subTest *NSScriptWhoseTest) *NSLogicalTest

Returns an NSLogicalTest object initialized to perform a NOT operation on the given NSScriptWhoseTest object.

func (*NSLogicalTest) InitOrTestWithTests

func (o *NSLogicalTest) InitOrTestWithTests(subTests *NSArray[*NSSpecifierTest]) *NSLogicalTest

Returns an NSLogicalTest object initialized to perform an OR operation with the NSSpecifierTest objects in a given array.

type NSMachBootstrapServer

type NSMachBootstrapServer struct {
	NSPortNameServer
}

A port name server that takes and returns Mach port objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmachbootstrapserver Deprecated: Use NSXPCConnection instead

func NSMachBootstrapServerFromID

func NSMachBootstrapServerFromID(id objc.ID) *NSMachBootstrapServer

func (*NSMachBootstrapServer) ServicePortWithName

func (o *NSMachBootstrapServer) ServicePortWithName(name *NSString) *NSPort

Looks up and returns the port for the vended service that is registered under the specified name.

type NSMachPort

type NSMachPort struct {
	NSPort
}

A port that can be used as an endpoint for distributed object connections (or raw messaging).

Apple documentation: https://developer.apple.com/documentation/foundation/nsmachport

func NSMachPortFromID

func NSMachPortFromID(id objc.ID) *NSMachPort

func (*NSMachPort) InitWithMachPort

func (o *NSMachPort) InitWithMachPort(machPort uint32) *NSMachPort

Initializes a newly allocated NSMachPort object with a given Mach port.

func (*NSMachPort) InitWithMachPortOptions

func (o *NSMachPort) InitWithMachPortOptions(machPort uint32, f NSMachPortOptions) *NSMachPort

Initializes a newly allocated NSMachPort object with a given Mach port and the specified options.

func (*NSMachPort) MachPort

func (o *NSMachPort) MachPort() uint32

type NSMachPortDelegate

type NSMachPortDelegate interface {
	NSPortDelegate
}

NSMachPortDelegate wraps the ObjC protocol NSMachPortDelegate.

type NSMachPortOptions

type NSMachPortOptions uint64

Used to remove access rights to a mach port when the NSMachPort object is invalidated or destroyed.

const (
	// Do not remove any send or receive rights.
	NSMachPortDeallocateNone         NSMachPortOptions = 0
	NSMachPortDeallocateSendRight    NSMachPortOptions = 1
	NSMachPortDeallocateReceiveRight NSMachPortOptions = 2
)

func (NSMachPortOptions) String

func (e NSMachPortOptions) String() string

type NSMapEnumerator

type NSMapEnumerator struct {
}

Allows successive elements of a map table to be returned each time this structure is passed to NSNextMapEnumeratorPair.

func NSEnumerateMapTable

func NSEnumerateMapTable(table *NSMapTable[objc.ID, objc.ID]) NSMapEnumerator

type NSMapTable

type NSMapTable[KeyType purego.AnyObject, ObjectType purego.AnyObject] struct {
	NSObject
}

A collection similar to a dictionary, but with a broader range of available memory semantics.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmaptable

func NSMapTableFromID

func NSMapTableFromID[KeyType purego.AnyObject, ObjectType purego.AnyObject](id objc.ID) *NSMapTable[KeyType, ObjectType]

func NSMapTableMapTableWithKeyOptionsValueOptions

func NSMapTableMapTableWithKeyOptionsValueOptions(keyOptions NSPointerFunctionsOptions, valueOptions NSPointerFunctionsOptions) *NSMapTable[objc.ID, objc.ID]

Returns a new map table, initialized with the given options

func NSMapTableStrongToStrongObjectsMapTable

func NSMapTableStrongToStrongObjectsMapTable() *NSMapTable[objc.ID, objc.ID]

Returns a new map table object which has strong references to the keys and values.

func NSMapTableStrongToWeakObjectsMapTable

func NSMapTableStrongToWeakObjectsMapTable() *NSMapTable[objc.ID, objc.ID]

Returns a new map table object which has strong references to the keys and weak references to the values.

func NSMapTableWeakToStrongObjectsMapTable

func NSMapTableWeakToStrongObjectsMapTable() *NSMapTable[objc.ID, objc.ID]

Returns a new map table object which has weak references to the keys and strong references to the values.

func NSMapTableWeakToWeakObjectsMapTable

func NSMapTableWeakToWeakObjectsMapTable() *NSMapTable[objc.ID, objc.ID]

Returns a new map table object which has weak references to the keys and values.

func (*NSMapTable[KeyType, ObjectType]) Count

func (o *NSMapTable[KeyType, ObjectType]) Count() uint

func (*NSMapTable[KeyType, ObjectType]) DictionaryRepresentation

func (o *NSMapTable[KeyType, ObjectType]) DictionaryRepresentation() *NSDictionary[KeyType, ObjectType]

Returns a dictionary representation of the map table.

func (*NSMapTable[KeyType, ObjectType]) InitWithKeyOptionsValueOptionsCapacity

func (o *NSMapTable[KeyType, ObjectType]) InitWithKeyOptionsValueOptionsCapacity(keyOptions NSPointerFunctionsOptions, valueOptions NSPointerFunctionsOptions, initialCapacity uint) *NSMapTable[KeyType, ObjectType]

Returns a map table, initialized with the given options.

func (*NSMapTable[KeyType, ObjectType]) InitWithKeyPointerFunctionsValuePointerFunctionsCapacity

func (o *NSMapTable[KeyType, ObjectType]) InitWithKeyPointerFunctionsValuePointerFunctionsCapacity(keyFunctions *NSPointerFunctions, valueFunctions *NSPointerFunctions, initialCapacity uint) *NSMapTable[KeyType, ObjectType]

Returns a map table, initialized with the given functions.

func (*NSMapTable[KeyType, ObjectType]) KeyEnumerator

func (o *NSMapTable[KeyType, ObjectType]) KeyEnumerator() *NSEnumerator[KeyType]

Returns an enumerator object that lets you access each key in the map table.

func (*NSMapTable[KeyType, ObjectType]) KeyPointerFunctions

func (o *NSMapTable[KeyType, ObjectType]) KeyPointerFunctions() *NSPointerFunctions

func (*NSMapTable[KeyType, ObjectType]) ObjectEnumerator

func (o *NSMapTable[KeyType, ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]

Returns an enumerator object that lets you access each value in the map table.

func (*NSMapTable[KeyType, ObjectType]) ObjectForKey

func (o *NSMapTable[KeyType, ObjectType]) ObjectForKey(aKey KeyType) ObjectType

Returns a the value associated with a given key.

func (*NSMapTable[KeyType, ObjectType]) RemoveAllObjects

func (o *NSMapTable[KeyType, ObjectType]) RemoveAllObjects()

Empties the map table of its entries.

func (*NSMapTable[KeyType, ObjectType]) RemoveObjectForKey

func (o *NSMapTable[KeyType, ObjectType]) RemoveObjectForKey(aKey KeyType)

Removes a given key and its associated value from the map table.

func (*NSMapTable[KeyType, ObjectType]) SetObjectForKey

func (o *NSMapTable[KeyType, ObjectType]) SetObjectForKey(anObject ObjectType, aKey KeyType)

Adds a given key-value pair to the map table.

func (*NSMapTable[KeyType, ObjectType]) ValuePointerFunctions

func (o *NSMapTable[KeyType, ObjectType]) ValuePointerFunctions() *NSPointerFunctions

type NSMapTableKeyCallBacks

type NSMapTableKeyCallBacks struct {
	Hash          unsafe.Pointer
	IsEqual       unsafe.Pointer
	Retain        unsafe.Pointer
	Release       unsafe.Pointer
	Describe      unsafe.Pointer
	NotAKeyMarker unsafe.Pointer
}

The function pointers used to configure behavior of NSMapTable with respect to key elements within a map table.

func NSIntMapKeyCallBacks deprecated

func NSIntMapKeyCallBacks() NSMapTableKeyCallBacks

Deprecated: Not supported

func NSIntegerMapKeyCallBacks

func NSIntegerMapKeyCallBacks() NSMapTableKeyCallBacks

func NSNonOwnedPointerMapKeyCallBacks

func NSNonOwnedPointerMapKeyCallBacks() NSMapTableKeyCallBacks

func NSNonOwnedPointerOrNullMapKeyCallBacks

func NSNonOwnedPointerOrNullMapKeyCallBacks() NSMapTableKeyCallBacks

func NSNonRetainedObjectMapKeyCallBacks

func NSNonRetainedObjectMapKeyCallBacks() NSMapTableKeyCallBacks

func NSObjectMapKeyCallBacks

func NSObjectMapKeyCallBacks() NSMapTableKeyCallBacks

func NSOwnedPointerMapKeyCallBacks

func NSOwnedPointerMapKeyCallBacks() NSMapTableKeyCallBacks

type NSMapTableValueCallBacks

type NSMapTableValueCallBacks struct {
	Retain   unsafe.Pointer
	Release  unsafe.Pointer
	Describe unsafe.Pointer
}

The function pointers used to configure behavior of NSMapTable with respect to value elements within a map table.

func NSIntMapValueCallBacks deprecated

func NSIntMapValueCallBacks() NSMapTableValueCallBacks

Deprecated: Not supported

func NSIntegerMapValueCallBacks

func NSIntegerMapValueCallBacks() NSMapTableValueCallBacks

func NSNonOwnedPointerMapValueCallBacks

func NSNonOwnedPointerMapValueCallBacks() NSMapTableValueCallBacks

func NSNonRetainedObjectMapValueCallBacks

func NSNonRetainedObjectMapValueCallBacks() NSMapTableValueCallBacks

func NSObjectMapValueCallBacks

func NSObjectMapValueCallBacks() NSMapTableValueCallBacks

func NSOwnedPointerMapValueCallBacks

func NSOwnedPointerMapValueCallBacks() NSMapTableValueCallBacks

type NSMassFormatter

type NSMassFormatter struct {
	NSFormatter
}

A formatter that provides localized descriptions of mass and weight values.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmassformatter

func NSMassFormatterFromID

func NSMassFormatterFromID(id objc.ID) *NSMassFormatter

func (*NSMassFormatter) IsForPersonMassUse

func (o *NSMassFormatter) IsForPersonMassUse() bool

func (*NSMassFormatter) NumberFormatter

func (o *NSMassFormatter) NumberFormatter() *NSNumberFormatter

func (*NSMassFormatter) SetForPersonMassUse

func (o *NSMassFormatter) SetForPersonMassUse(forPersonMassUse bool)

func (*NSMassFormatter) SetNumberFormatter

func (o *NSMassFormatter) SetNumberFormatter(numberFormatter *NSNumberFormatter)

func (*NSMassFormatter) SetUnitStyle

func (o *NSMassFormatter) SetUnitStyle(unitStyle NSFormattingUnitStyle)

func (*NSMassFormatter) StringFromKilograms

func (o *NSMassFormatter) StringFromKilograms(numberInKilograms float64) *NSString

func (*NSMassFormatter) StringFromValueUnit

func (o *NSMassFormatter) StringFromValueUnit(value float64, unit NSMassFormatterUnit) *NSString

func (*NSMassFormatter) UnitStringFromKilogramsUsedUnit

func (o *NSMassFormatter) UnitStringFromKilogramsUsedUnit(numberInKilograms float64, unitp *NSMassFormatterUnit) *NSString

func (*NSMassFormatter) UnitStringFromValueUnit

func (o *NSMassFormatter) UnitStringFromValueUnit(value float64, unit NSMassFormatterUnit) *NSString

func (*NSMassFormatter) UnitStyle

func (o *NSMassFormatter) UnitStyle() NSFormattingUnitStyle

type NSMassFormatterUnit

type NSMassFormatterUnit int64

The units supported by the NSMassFormatter class.

const (
	NSMassFormatterUnitGram     NSMassFormatterUnit = 11
	NSMassFormatterUnitKilogram NSMassFormatterUnit = 14
	NSMassFormatterUnitOunce    NSMassFormatterUnit = 1537
	NSMassFormatterUnitPound    NSMassFormatterUnit = 1538
	NSMassFormatterUnitStone    NSMassFormatterUnit = 1539
)

func (NSMassFormatterUnit) String

func (e NSMassFormatterUnit) String() string

type NSMatchingFlags

type NSMatchingFlags uint64
const (
	NSMatchingProgress      NSMatchingFlags = 1
	NSMatchingCompleted     NSMatchingFlags = 2
	NSMatchingHitEnd        NSMatchingFlags = 4
	NSMatchingRequiredEnd   NSMatchingFlags = 8
	NSMatchingInternalError NSMatchingFlags = 16
)

func (NSMatchingFlags) String

func (e NSMatchingFlags) String() string

type NSMatchingOptions

type NSMatchingOptions uint64

The matching options constants specify the reporting, completion and matching rules to the expression matching methods. These constants are used by all methods that search for, or replace values, using a regular expression.

const (
	NSMatchingReportProgress         NSMatchingOptions = 1
	NSMatchingReportCompletion       NSMatchingOptions = 2
	NSMatchingAnchored               NSMatchingOptions = 4
	NSMatchingWithTransparentBounds  NSMatchingOptions = 8
	NSMatchingWithoutAnchoringBounds NSMatchingOptions = 16
)

func (NSMatchingOptions) String

func (e NSMatchingOptions) String() string

type NSMeasurement

type NSMeasurement[UnitType purego.AnyObject] struct {
	NSObject
}

A numeric quantity labeled with a unit of measure, with support for unit conversion and unit-aware calculations.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmeasurement

func NSMeasurementFromID

func NSMeasurementFromID[UnitType purego.AnyObject](id objc.ID) *NSMeasurement[UnitType]

func (*NSMeasurement[UnitType]) CanBeConvertedToUnit

func (o *NSMeasurement[UnitType]) CanBeConvertedToUnit(unit *NSUnit) bool

Indicates whether the measurement can be converted to the given unit.

func (*NSMeasurement[UnitType]) DoubleValue

func (o *NSMeasurement[UnitType]) DoubleValue() float64

func (*NSMeasurement[UnitType]) InitWithDoubleValueUnit

func (o *NSMeasurement[UnitType]) InitWithDoubleValueUnit(doubleValue float64, unit UnitType) *NSMeasurement[UnitType]

Initializes a new measurement with a specified double-precision floating-point value and unit.

func (*NSMeasurement[UnitType]) MeasurementByAddingMeasurement

func (o *NSMeasurement[UnitType]) MeasurementByAddingMeasurement(measurement *NSMeasurement[UnitType]) *NSMeasurement[UnitType]

Returns a new measurement by adding the receiver to the specified measurement.

func (*NSMeasurement[UnitType]) MeasurementByConvertingToUnit

func (o *NSMeasurement[UnitType]) MeasurementByConvertingToUnit(unit *NSUnit) *NSMeasurement[objc.ID]

Returns a measurement created by converting the receiver to the specified unit.

func (*NSMeasurement[UnitType]) MeasurementBySubtractingMeasurement

func (o *NSMeasurement[UnitType]) MeasurementBySubtractingMeasurement(measurement *NSMeasurement[UnitType]) *NSMeasurement[UnitType]

Returns a new measurement by subtracting the specified measurement from the receiver.

func (*NSMeasurement[UnitType]) Unit

func (o *NSMeasurement[UnitType]) Unit() UnitType

type NSMeasurementFormatter

type NSMeasurementFormatter struct {
	NSFormatter
}

A formatter that provides localized representations of units and measurements.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmeasurementformatter

func NSMeasurementFormatterFromID

func NSMeasurementFormatterFromID(id objc.ID) *NSMeasurementFormatter

func (*NSMeasurementFormatter) Locale

func (o *NSMeasurementFormatter) Locale() *NSLocale

func (*NSMeasurementFormatter) NumberFormatter

func (o *NSMeasurementFormatter) NumberFormatter() *NSNumberFormatter

func (*NSMeasurementFormatter) SetLocale

func (o *NSMeasurementFormatter) SetLocale(locale *NSLocale)

func (*NSMeasurementFormatter) SetNumberFormatter

func (o *NSMeasurementFormatter) SetNumberFormatter(numberFormatter *NSNumberFormatter)

func (*NSMeasurementFormatter) SetUnitOptions

func (o *NSMeasurementFormatter) SetUnitOptions(unitOptions NSMeasurementFormatterUnitOptions)

func (*NSMeasurementFormatter) SetUnitStyle

func (o *NSMeasurementFormatter) SetUnitStyle(unitStyle NSFormattingUnitStyle)

func (*NSMeasurementFormatter) StringFromMeasurement

func (o *NSMeasurementFormatter) StringFromMeasurement(measurement *NSMeasurement[objc.ID]) *NSString

func (*NSMeasurementFormatter) StringFromUnit

func (o *NSMeasurementFormatter) StringFromUnit(unit *NSUnit) *NSString

func (*NSMeasurementFormatter) UnitOptions

func (*NSMeasurementFormatter) UnitStyle

type NSMeasurementFormatterUnitOptions

type NSMeasurementFormatterUnitOptions uint64

Measurement formatter options.

const (
	NSMeasurementFormatterUnitOptionsProvidedUnit           NSMeasurementFormatterUnitOptions = 1
	NSMeasurementFormatterUnitOptionsNaturalScale           NSMeasurementFormatterUnitOptions = 2
	NSMeasurementFormatterUnitOptionsTemperatureWithoutUnit NSMeasurementFormatterUnitOptions = 4
)

func (NSMeasurementFormatterUnitOptions) String

type NSMessagePort

type NSMessagePort struct {
	NSPort
}

A port that can be used as an endpoint for distributed object connections (or raw messaging).

Apple documentation: https://developer.apple.com/documentation/foundation/nsmessageport

func NSMessagePortFromID

func NSMessagePortFromID(id objc.ID) *NSMessagePort

type NSMessagePortNameServer

type NSMessagePortNameServer struct {
	NSPortNameServer
}

A server takes and returns message ports.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmessageportnameserver Deprecated: Use NSXPCConnection instead

func NSMessagePortNameServerFromID

func NSMessagePortNameServerFromID(id objc.ID) *NSMessagePortNameServer

type NSMetadataItem

type NSMetadataItem struct {
	NSObject
}

The metadata associated with a file.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmetadataitem

func NSMetadataItemFromID

func NSMetadataItemFromID(id objc.ID) *NSMetadataItem

func (*NSMetadataItem) Attributes

func (o *NSMetadataItem) Attributes() *NSArray[*NSString]

func (*NSMetadataItem) InitWithURL

func (o *NSMetadataItem) InitWithURL(url *NSURL) *NSMetadataItem

Initializes a metadata item with a given URL.

func (*NSMetadataItem) ValueForAttribute

func (o *NSMetadataItem) ValueForAttribute(key *NSString) objc.ID

Returns the receiver’s metadata attribute name specified by a given key.

func (*NSMetadataItem) ValuesForAttributes

func (o *NSMetadataItem) ValuesForAttributes(keys *NSArray[*NSString]) *NSDictionary[*NSString, objc.ID]

Returns a dictionary containing the key-value pairs for the attribute names specified by a given array of keys.

type NSMetadataQuery

type NSMetadataQuery struct {
	NSObject
}

A query that you perform against Spotlight metadata.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmetadataquery

func NSMetadataQueryFromID

func NSMetadataQueryFromID(id objc.ID) *NSMetadataQuery

func (*NSMetadataQuery) Delegate

func (*NSMetadataQuery) DisableUpdates

func (o *NSMetadataQuery) DisableUpdates()

Disables updates to the query results.

func (*NSMetadataQuery) EnableUpdates

func (o *NSMetadataQuery) EnableUpdates()

Enables updates to the query results.

func (*NSMetadataQuery) EnumerateResultsUsing

func (o *NSMetadataQuery) EnumerateResultsUsing(block func(objc.ID, uint, *bool))

Enumerates the current set of results using the given block.

func (*NSMetadataQuery) EnumerateResultsWithOptionsUsing

func (o *NSMetadataQuery) EnumerateResultsWithOptionsUsing(opts NSEnumerationOptions, block func(objc.ID, uint, *bool))

Enumerates the current set of results using the given options and block.

func (*NSMetadataQuery) GroupedResults

func (o *NSMetadataQuery) GroupedResults() *NSArray[*NSMetadataQueryResultGroup]

func (*NSMetadataQuery) GroupingAttributes

func (o *NSMetadataQuery) GroupingAttributes() *NSArray[*NSString]

func (*NSMetadataQuery) IndexOfResult

func (o *NSMetadataQuery) IndexOfResult(result objc.ID) uint

Returns the index of a query result object in the receiver’s results array.

func (*NSMetadataQuery) IsGathering

func (o *NSMetadataQuery) IsGathering() bool

func (*NSMetadataQuery) IsStarted

func (o *NSMetadataQuery) IsStarted() bool

func (*NSMetadataQuery) IsStopped

func (o *NSMetadataQuery) IsStopped() bool

func (*NSMetadataQuery) NotificationBatchingInterval

func (o *NSMetadataQuery) NotificationBatchingInterval() float64

func (*NSMetadataQuery) OperationQueue

func (o *NSMetadataQuery) OperationQueue() *NSOperationQueue

func (*NSMetadataQuery) Predicate

func (o *NSMetadataQuery) Predicate() *NSPredicate

func (*NSMetadataQuery) ResultAtIndex

func (o *NSMetadataQuery) ResultAtIndex(idx uint) objc.ID

Returns the query result at a specific index.

func (*NSMetadataQuery) ResultCount

func (o *NSMetadataQuery) ResultCount() uint

func (*NSMetadataQuery) Results

func (o *NSMetadataQuery) Results() *NSArray[objc.ID]

func (*NSMetadataQuery) SearchItems

func (o *NSMetadataQuery) SearchItems() *NSArray[objc.ID]

func (*NSMetadataQuery) SearchScopes

func (o *NSMetadataQuery) SearchScopes() *NSArray[objc.ID]

func (*NSMetadataQuery) SetDelegate

func (o *NSMetadataQuery) SetDelegate(delegate NSMetadataQueryDelegate)

func (*NSMetadataQuery) SetGroupingAttributes

func (o *NSMetadataQuery) SetGroupingAttributes(groupingAttributes *NSArray[*NSString])

func (*NSMetadataQuery) SetNotificationBatchingInterval

func (o *NSMetadataQuery) SetNotificationBatchingInterval(notificationBatchingInterval float64)

func (*NSMetadataQuery) SetOperationQueue

func (o *NSMetadataQuery) SetOperationQueue(operationQueue *NSOperationQueue)

func (*NSMetadataQuery) SetPredicate

func (o *NSMetadataQuery) SetPredicate(predicate *NSPredicate)

func (*NSMetadataQuery) SetSearchItems

func (o *NSMetadataQuery) SetSearchItems(searchItems *NSArray[objc.ID])

func (*NSMetadataQuery) SetSearchScopes

func (o *NSMetadataQuery) SetSearchScopes(searchScopes *NSArray[objc.ID])

func (*NSMetadataQuery) SetSortDescriptors

func (o *NSMetadataQuery) SetSortDescriptors(sortDescriptors *NSArray[*NSSortDescriptor])

func (*NSMetadataQuery) SetValueListAttributes

func (o *NSMetadataQuery) SetValueListAttributes(valueListAttributes *NSArray[*NSString])

func (*NSMetadataQuery) SortDescriptors

func (o *NSMetadataQuery) SortDescriptors() *NSArray[*NSSortDescriptor]

func (*NSMetadataQuery) StartQuery

func (o *NSMetadataQuery) StartQuery() bool

Attempts to start the query.

func (*NSMetadataQuery) StopQuery

func (o *NSMetadataQuery) StopQuery()

Stops the receiver’s current query from gathering any further results.

func (*NSMetadataQuery) ValueListAttributes

func (o *NSMetadataQuery) ValueListAttributes() *NSArray[*NSString]

func (*NSMetadataQuery) ValueLists

func (o *NSMetadataQuery) ValueLists() *NSDictionary[*NSString, objc.ID]

func (*NSMetadataQuery) ValueOfAttributeForResultAtIndex

func (o *NSMetadataQuery) ValueOfAttributeForResultAtIndex(attrName *NSString, idx uint) objc.ID

Returns the value for the attribute name attrName at the index in the results specified by idx.

type NSMetadataQueryAttributeValueTuple

type NSMetadataQueryAttributeValueTuple struct {
	NSObject
}

The NSMetadataQueryAttributeValueTuple class represents attribute-value tuples, which are objects that contain the attribute name and value of a metadata attribute.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmetadataqueryattributevaluetuple

func NSMetadataQueryAttributeValueTupleFromID

func NSMetadataQueryAttributeValueTupleFromID(id objc.ID) *NSMetadataQueryAttributeValueTuple

func (*NSMetadataQueryAttributeValueTuple) Attribute

func (*NSMetadataQueryAttributeValueTuple) Count

func (*NSMetadataQueryAttributeValueTuple) Value

type NSMetadataQueryDelegate

type NSMetadataQueryDelegate interface {
}

NSMetadataQueryDelegate wraps the ObjC protocol NSMetadataQueryDelegate.

type NSMetadataQueryResultGroup

type NSMetadataQueryResultGroup struct {
	NSObject
}

The NSMetadataQueryResultGroup class represents a collection of grouped attribute results returned by an NSMetadataQuery object.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmetadataqueryresultgroup

func NSMetadataQueryResultGroupFromID

func NSMetadataQueryResultGroupFromID(id objc.ID) *NSMetadataQueryResultGroup

func (*NSMetadataQueryResultGroup) Attribute

func (o *NSMetadataQueryResultGroup) Attribute() *NSString

func (*NSMetadataQueryResultGroup) ResultAtIndex

func (o *NSMetadataQueryResultGroup) ResultAtIndex(idx uint) objc.ID

Returns the query result at a specific index.

func (*NSMetadataQueryResultGroup) ResultCount

func (o *NSMetadataQueryResultGroup) ResultCount() uint

func (*NSMetadataQueryResultGroup) Results

func (o *NSMetadataQueryResultGroup) Results() *NSArray[objc.ID]

func (*NSMetadataQueryResultGroup) Subgroups

func (*NSMetadataQueryResultGroup) Value

func (o *NSMetadataQueryResultGroup) Value() objc.ID

type NSMethodSignature

type NSMethodSignature struct {
	NSObject
}

A record of the type information for the return value and parameters of a method.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmethodsignature

func NSMethodSignatureFromID

func NSMethodSignatureFromID(id objc.ID) *NSMethodSignature

func NSMethodSignatureSignatureWithObjCTypes

func NSMethodSignatureSignatureWithObjCTypes(types string) *NSMethodSignature

Returns an NSMethodSignature object for the given Objective-C method type string.

func NSObjectInstanceMethodSignatureForSelector

func NSObjectInstanceMethodSignatureForSelector(aSelector objc.SEL) *NSMethodSignature

func (*NSMethodSignature) FrameLength

func (o *NSMethodSignature) FrameLength() uint

func (*NSMethodSignature) GetArgumentTypeAtIndex

func (o *NSMethodSignature) GetArgumentTypeAtIndex(idx uint) string

Returns the type encoding for the argument at a given index.

func (*NSMethodSignature) IsOneway

func (o *NSMethodSignature) IsOneway() bool

Whether the receiver is asynchronous when invoked through distributed objects.

func (*NSMethodSignature) MethodReturnLength

func (o *NSMethodSignature) MethodReturnLength() uint

func (*NSMethodSignature) MethodReturnType

func (o *NSMethodSignature) MethodReturnType() unsafe.Pointer

func (*NSMethodSignature) NumberOfArguments

func (o *NSMethodSignature) NumberOfArguments() uint

type NSMorphology

type NSMorphology struct {
	NSObject
}

A description of the grammatical properties of a string.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmorphology

func NSMorphologyFromID

func NSMorphologyFromID(id objc.ID) *NSMorphology

func NSMorphologyUserMorphology

func NSMorphologyUserMorphology() *NSMorphology

func (*NSMorphology) CustomPronounForLanguage

func (o *NSMorphology) CustomPronounForLanguage(language *NSString) *NSMorphologyCustomPronoun

Returns any custom pronoun behavior this morphology applies to the given language. Deprecated: Use NSTermOfAddress instead

func (*NSMorphology) Definiteness

func (o *NSMorphology) Definiteness() NSGrammaticalDefiniteness

func (*NSMorphology) Determination

func (o *NSMorphology) Determination() NSGrammaticalDetermination

func (*NSMorphology) GrammaticalCase

func (o *NSMorphology) GrammaticalCase() NSGrammaticalCase

func (*NSMorphology) GrammaticalGender

func (o *NSMorphology) GrammaticalGender() NSGrammaticalGender

func (*NSMorphology) GrammaticalPerson

func (o *NSMorphology) GrammaticalPerson() NSGrammaticalPerson

func (*NSMorphology) IsUnspecified

func (o *NSMorphology) IsUnspecified() bool

func (*NSMorphology) Number

func (o *NSMorphology) Number() NSGrammaticalNumber

func (*NSMorphology) PartOfSpeech

func (o *NSMorphology) PartOfSpeech() NSGrammaticalPartOfSpeech

func (*NSMorphology) PronounType

func (o *NSMorphology) PronounType() NSGrammaticalPronounType

func (*NSMorphology) SetCustomPronounForLanguageError

func (o *NSMorphology) SetCustomPronounForLanguageError(features *NSMorphologyCustomPronoun, language *NSString) (bool, error)

Sets a custom pronoun behavior for this morphology to apply to the given language. Deprecated: Use NSTermOfAddress instead

func (*NSMorphology) SetDefiniteness

func (o *NSMorphology) SetDefiniteness(definiteness NSGrammaticalDefiniteness)

func (*NSMorphology) SetDetermination

func (o *NSMorphology) SetDetermination(determination NSGrammaticalDetermination)

func (*NSMorphology) SetGrammaticalCase

func (o *NSMorphology) SetGrammaticalCase(grammaticalCase NSGrammaticalCase)

func (*NSMorphology) SetGrammaticalGender

func (o *NSMorphology) SetGrammaticalGender(grammaticalGender NSGrammaticalGender)

func (*NSMorphology) SetGrammaticalPerson

func (o *NSMorphology) SetGrammaticalPerson(grammaticalPerson NSGrammaticalPerson)

func (*NSMorphology) SetNumber

func (o *NSMorphology) SetNumber(number NSGrammaticalNumber)

func (*NSMorphology) SetPartOfSpeech

func (o *NSMorphology) SetPartOfSpeech(partOfSpeech NSGrammaticalPartOfSpeech)

func (*NSMorphology) SetPronounType

func (o *NSMorphology) SetPronounType(pronounType NSGrammaticalPronounType)

type NSMorphologyCustomPronoun

type NSMorphologyCustomPronoun struct {
	NSObject
}

A custom pronoun behavior for use in a specific langauge.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmorphologycustompronoun Deprecated: Use NSTermOfAddress instead

func NSMorphologyCustomPronounFromID

func NSMorphologyCustomPronounFromID(id objc.ID) *NSMorphologyCustomPronoun

func (*NSMorphologyCustomPronoun) ObjectForm

func (o *NSMorphologyCustomPronoun) ObjectForm() *NSString

func (*NSMorphologyCustomPronoun) PossessiveAdjectiveForm

func (o *NSMorphologyCustomPronoun) PossessiveAdjectiveForm() *NSString

func (*NSMorphologyCustomPronoun) PossessiveForm

func (o *NSMorphologyCustomPronoun) PossessiveForm() *NSString

func (*NSMorphologyCustomPronoun) ReflexiveForm

func (o *NSMorphologyCustomPronoun) ReflexiveForm() *NSString

func (*NSMorphologyCustomPronoun) SetObjectForm

func (o *NSMorphologyCustomPronoun) SetObjectForm(objectForm *NSString)

func (*NSMorphologyCustomPronoun) SetPossessiveAdjectiveForm

func (o *NSMorphologyCustomPronoun) SetPossessiveAdjectiveForm(possessiveAdjectiveForm *NSString)

func (*NSMorphologyCustomPronoun) SetPossessiveForm

func (o *NSMorphologyCustomPronoun) SetPossessiveForm(possessiveForm *NSString)

func (*NSMorphologyCustomPronoun) SetReflexiveForm

func (o *NSMorphologyCustomPronoun) SetReflexiveForm(reflexiveForm *NSString)

func (*NSMorphologyCustomPronoun) SetSubjectForm

func (o *NSMorphologyCustomPronoun) SetSubjectForm(subjectForm *NSString)

func (*NSMorphologyCustomPronoun) SubjectForm

func (o *NSMorphologyCustomPronoun) SubjectForm() *NSString

type NSMorphologyPronoun

type NSMorphologyPronoun struct {
	NSObject
}

A custom pronoun for referring to a third person.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmorphologypronoun

func NSMorphologyPronounFromID

func NSMorphologyPronounFromID(id objc.ID) *NSMorphologyPronoun

func (*NSMorphologyPronoun) DependentMorphology

func (o *NSMorphologyPronoun) DependentMorphology() *NSMorphology

func (*NSMorphologyPronoun) InitWithPronounMorphologyDependentMorphology

func (o *NSMorphologyPronoun) InitWithPronounMorphologyDependentMorphology(pronoun *NSString, morphology *NSMorphology, dependentMorphology *NSMorphology) *NSMorphologyPronoun

func (*NSMorphologyPronoun) Morphology

func (o *NSMorphologyPronoun) Morphology() *NSMorphology

func (*NSMorphologyPronoun) Pronoun

func (o *NSMorphologyPronoun) Pronoun() *NSString

type NSMoveCommand

type NSMoveCommand struct {
	NSScriptCommand
}

A command that moves one or more scriptable objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmovecommand

func NSMoveCommandFromID

func NSMoveCommandFromID(id objc.ID) *NSMoveCommand

func (*NSMoveCommand) KeySpecifier

func (o *NSMoveCommand) KeySpecifier() *NSScriptObjectSpecifier

type NSMutableArray

type NSMutableArray[ObjectType purego.AnyObject] struct {
	NSArray[ObjectType]
}

A dynamic ordered collection of objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmutablearray

func NSMutableArrayArrayWithCapacity

func NSMutableArrayArrayWithCapacity(numItems uint) *NSMutableArray[objc.ID]

Creates and returns an NSMutableArray object with enough allocated memory to initially hold a given number of objects.

func NSMutableArrayArrayWithContentsOfFile

func NSMutableArrayArrayWithContentsOfFile(path *NSString) *NSMutableArray[objc.ID]

Creates and returns a mutable array containing the contents of the file specified by the given path.

func NSMutableArrayArrayWithContentsOfURL

func NSMutableArrayArrayWithContentsOfURL(url *NSURL) *NSMutableArray[objc.ID]

Creates and returns a mutable array containing the contents specified by a given URL.

func NSMutableArrayFromID

func NSMutableArrayFromID[ObjectType purego.AnyObject](id objc.ID) *NSMutableArray[ObjectType]

func (*NSMutableArray[ObjectType]) AddObject

func (o *NSMutableArray[ObjectType]) AddObject(anObject ObjectType)

Inserts a given object at the end of the array.

func (*NSMutableArray[ObjectType]) AddObjectsFromArray

func (o *NSMutableArray[ObjectType]) AddObjectsFromArray(otherArray *NSArray[ObjectType])

Adds the objects contained in another given array to the end of the receiving array’s content.

func (*NSMutableArray[ObjectType]) ApplyDifference

func (o *NSMutableArray[ObjectType]) ApplyDifference(difference *NSOrderedCollectionDifference[ObjectType])

func (*NSMutableArray[ObjectType]) ExchangeObjectAtIndexWithObjectAtIndex

func (o *NSMutableArray[ObjectType]) ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, idx2 uint)

Exchanges the objects in the array at given indexes.

func (*NSMutableArray[ObjectType]) FilterUsingPredicate

func (o *NSMutableArray[ObjectType]) FilterUsingPredicate(predicate *NSPredicate)

Evaluates a given predicate against the array’s content and leaves only objects that match.

func (*NSMutableArray[ObjectType]) Init

func (o *NSMutableArray[ObjectType]) Init() *NSMutableArray[ObjectType]

Initializes a newly allocated array.

func (*NSMutableArray[ObjectType]) InitWithCapacity

func (o *NSMutableArray[ObjectType]) InitWithCapacity(numItems uint) *NSMutableArray[ObjectType]

Returns an array, initialized with enough memory to initially hold a given number of objects.

func (*NSMutableArray[ObjectType]) InitWithCoder

func (o *NSMutableArray[ObjectType]) InitWithCoder(coder *NSCoder) *NSMutableArray[ObjectType]

func (*NSMutableArray[ObjectType]) InitWithContentsOfFile

func (o *NSMutableArray[ObjectType]) InitWithContentsOfFile(path *NSString) *NSMutableArray[ObjectType]

Initializes a newly allocated mutable array with the contents of the file specified by a given path

func (*NSMutableArray[ObjectType]) InitWithContentsOfURL

func (o *NSMutableArray[ObjectType]) InitWithContentsOfURL(url *NSURL) *NSMutableArray[ObjectType]

Initialized a newly allocated mutable array with the contents of the location specified by a given URL.

func (*NSMutableArray[ObjectType]) InsertObjectAtIndex

func (o *NSMutableArray[ObjectType]) InsertObjectAtIndex(anObject ObjectType, index uint)

Inserts a given object into the array’s contents at a given index.

func (*NSMutableArray[ObjectType]) InsertObjectsAtIndexes

func (o *NSMutableArray[ObjectType]) InsertObjectsAtIndexes(objects *NSArray[ObjectType], indexes *NSIndexSet)

Inserts the objects in the provided array into the receiving array at the specified indexes.

func (*NSMutableArray[ObjectType]) RemoveAllObjects

func (o *NSMutableArray[ObjectType]) RemoveAllObjects()

Empties the array of all its elements.

func (*NSMutableArray[ObjectType]) RemoveLastObject

func (o *NSMutableArray[ObjectType]) RemoveLastObject()

Removes the object with the highest-valued index in the array

func (*NSMutableArray[ObjectType]) RemoveObject

func (o *NSMutableArray[ObjectType]) RemoveObject(anObject ObjectType)

Removes all occurrences in the array of a given object.

func (*NSMutableArray[ObjectType]) RemoveObjectAtIndex

func (o *NSMutableArray[ObjectType]) RemoveObjectAtIndex(index uint)

Removes the object at index .

func (*NSMutableArray[ObjectType]) RemoveObjectIdenticalTo

func (o *NSMutableArray[ObjectType]) RemoveObjectIdenticalTo(anObject ObjectType)

Removes all occurrences of a given object in the array.

func (*NSMutableArray[ObjectType]) RemoveObjectIdenticalToInRange

func (o *NSMutableArray[ObjectType]) RemoveObjectIdenticalToInRange(anObject ObjectType, range_ NSRange)

Removes all occurrences of anObject within the specified range in the array.

func (*NSMutableArray[ObjectType]) RemoveObjectInRange

func (o *NSMutableArray[ObjectType]) RemoveObjectInRange(anObject ObjectType, range_ NSRange)

Removes all occurrences within a specified range in the array of a given object.

func (*NSMutableArray[ObjectType]) RemoveObjectsAtIndexes

func (o *NSMutableArray[ObjectType]) RemoveObjectsAtIndexes(indexes *NSIndexSet)

Removes the objects at the specified indexes from the array.

func (*NSMutableArray[ObjectType]) RemoveObjectsFromIndicesNumIndices

func (o *NSMutableArray[ObjectType]) RemoveObjectsFromIndicesNumIndices(indices *uint, cnt uint)

Removes the specified number of objects from the array, beginning at the specified index. Deprecated: Not supported

func (*NSMutableArray[ObjectType]) RemoveObjectsInArray

func (o *NSMutableArray[ObjectType]) RemoveObjectsInArray(otherArray *NSArray[ObjectType])

Removes from the receiving array the objects in another given array. Deprecated: Not supported

func (*NSMutableArray[ObjectType]) RemoveObjectsInRange

func (o *NSMutableArray[ObjectType]) RemoveObjectsInRange(range_ NSRange)

Removes from the array each of the objects within a given range. Deprecated: Not supported

func (*NSMutableArray[ObjectType]) ReplaceObjectAtIndexWithObject

func (o *NSMutableArray[ObjectType]) ReplaceObjectAtIndexWithObject(index uint, anObject ObjectType)

Replaces the object at index with anObject.

func (*NSMutableArray[ObjectType]) ReplaceObjectsAtIndexesWithObjects

func (o *NSMutableArray[ObjectType]) ReplaceObjectsAtIndexesWithObjects(indexes *NSIndexSet, objects *NSArray[ObjectType])

Replaces the objects in the receiving array at locations specified with the objects from a given array.

func (*NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArray

func (o *NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArray(range_ NSRange, otherArray *NSArray[ObjectType])

Replaces the objects in the receiving array specified by a given range with all of the objects from a given array. Deprecated: Not supported

func (*NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArrayRange

func (o *NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArrayRange(range_ NSRange, otherArray *NSArray[ObjectType], otherRange NSRange)

Replaces the objects in the receiving array specified by one given range with the objects in another array specified by another range. Deprecated: Not supported

func (*NSMutableArray[ObjectType]) SetArray

func (o *NSMutableArray[ObjectType]) SetArray(otherArray *NSArray[ObjectType])

Sets the receiving array’s elements to those in another given array.

func (*NSMutableArray[ObjectType]) SetObjectAtIndexedSubscript

func (o *NSMutableArray[ObjectType]) SetObjectAtIndexedSubscript(obj ObjectType, idx uint)

Replaces the object at the index with the new object, possibly adding the object.

func (*NSMutableArray[ObjectType]) SortUsingComparator

func (o *NSMutableArray[ObjectType]) SortUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult)

Sorts the receiver in ascending order using the comparison method specified by a given NSComparator block.

func (*NSMutableArray[ObjectType]) SortUsingDescriptors

func (o *NSMutableArray[ObjectType]) SortUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor])

Sorts the receiver using a given array of sort descriptors.

func (*NSMutableArray[ObjectType]) SortUsingFunctionContext

func (o *NSMutableArray[ObjectType]) SortUsingFunctionContext(compare unsafe.Pointer, context_ unsafe.Pointer)

Sorts the receiver in ascending order as defined by the comparison function compare.

func (*NSMutableArray[ObjectType]) SortUsingSelector

func (o *NSMutableArray[ObjectType]) SortUsingSelector(comparator objc.SEL)

Sorts the receiver in ascending order, as determined by the comparison method specified by a given selector.

func (*NSMutableArray[ObjectType]) SortWithOptionsUsingComparator

func (o *NSMutableArray[ObjectType]) SortWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult)

Sorts the receiver in ascending order using the specified options and the comparison method specified by a given NSComparator block.

type NSMutableAttributedString

type NSMutableAttributedString struct {
	NSAttributedString
}

A mutable string with associated attributes (such as visual style, hyperlinks, or accessibility data) for portions of its text.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmutableattributedstring

func NSMutableAttributedStringFromID

func NSMutableAttributedStringFromID(id objc.ID) *NSMutableAttributedString

func (*NSMutableAttributedString) AddAttributeValueRange

func (o *NSMutableAttributedString) AddAttributeValueRange(name *NSString, value objc.ID, range_ NSRange)

Adds an attribute with the given name and value to the characters in the specified range.

func (*NSMutableAttributedString) AddAttributesRange

func (o *NSMutableAttributedString) AddAttributesRange(attrs *NSDictionary[*NSString, objc.ID], range_ NSRange)

Adds the given collection of attributes to the characters in the specified range.

func (*NSMutableAttributedString) AppendAttributedString

func (o *NSMutableAttributedString) AppendAttributedString(attrString *NSAttributedString)

Adds the characters and attributes of a given attributed string to the end of the receiver.

func (*NSMutableAttributedString) AppendLocalizedFormat

func (o *NSMutableAttributedString) AppendLocalizedFormat(format *NSAttributedString)

Formats the specified string and arguments with the current locale, then appends the result to the receiver.

func (*NSMutableAttributedString) BeginEditing

func (o *NSMutableAttributedString) BeginEditing()

Begins the buffering of changes to the string’s characters and attributes.

func (*NSMutableAttributedString) DeleteCharactersInRange

func (o *NSMutableAttributedString) DeleteCharactersInRange(range_ NSRange)

Deletes the characters in the given range along with their associated attributes.

func (*NSMutableAttributedString) EndEditing

func (o *NSMutableAttributedString) EndEditing()

Ends the buffering of changes to the string’s characters and attributes.

func (*NSMutableAttributedString) InsertAttributedStringAtIndex

func (o *NSMutableAttributedString) InsertAttributedStringAtIndex(attrString *NSAttributedString, loc uint)

Inserts the characters and attributes of the given attributed string into the receiver at the given index.

func (*NSMutableAttributedString) MutableString

func (o *NSMutableAttributedString) MutableString() *NSMutableString

func (*NSMutableAttributedString) RemoveAttributeRange

func (o *NSMutableAttributedString) RemoveAttributeRange(name *NSString, range_ NSRange)

Removes the named attribute from the characters in the specified range.

func (*NSMutableAttributedString) ReplaceCharactersInRangeWithAttributedString

func (o *NSMutableAttributedString) ReplaceCharactersInRangeWithAttributedString(range_ NSRange, attrString *NSAttributedString)

Replaces the characters and attributes in a given range with the characters and attributes of the given attributed string.

func (*NSMutableAttributedString) ReplaceCharactersInRangeWithString

func (o *NSMutableAttributedString) ReplaceCharactersInRangeWithString(range_ NSRange, str *NSString)

Replaces the characters in the given range with the characters of the given string.

func (*NSMutableAttributedString) SetAttributedString

func (o *NSMutableAttributedString) SetAttributedString(attrString *NSAttributedString)

Replaces the receiver’s entire contents with the characters and attributes of the given attributed string.

func (*NSMutableAttributedString) SetAttributesRange

func (o *NSMutableAttributedString) SetAttributesRange(attrs *NSDictionary[*NSString, objc.ID], range_ NSRange)

Sets the attributes for the characters in the specified range to the specified attributes.

type NSMutableCharacterSet

type NSMutableCharacterSet struct {
	NSCharacterSet
}

An object representing a mutable set of Unicode character values for use in search operations.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmutablecharacterset

func NSMutableCharacterSetAlphanumericCharacterSet

func NSMutableCharacterSetAlphanumericCharacterSet() *NSMutableCharacterSet

Returns a character set containing the characters in Unicode General Categories L*, M*, and N*.

func NSMutableCharacterSetCapitalizedLetterCharacterSet

func NSMutableCharacterSetCapitalizedLetterCharacterSet() *NSMutableCharacterSet

Returns a character set containing the characters in Unicode General Category Lt.

func NSMutableCharacterSetCharacterSetWithBitmapRepresentation

func NSMutableCharacterSetCharacterSetWithBitmapRepresentation(data *NSData) *NSMutableCharacterSet

Returns a character set containing characters determined by a given bitmap representation.

func NSMutableCharacterSetCharacterSetWithCharactersInString

func NSMutableCharacterSetCharacterSetWithCharactersInString(aString *NSString) *NSMutableCharacterSet

Returns a character set containing the characters in a given string.

func NSMutableCharacterSetCharacterSetWithContentsOfFile

func NSMutableCharacterSetCharacterSetWithContentsOfFile(fName *NSString) *NSMutableCharacterSet

Returns a character set read from the bitmap representation stored in the file a given path.

func NSMutableCharacterSetCharacterSetWithRange

func NSMutableCharacterSetCharacterSetWithRange(aRange NSRange) *NSMutableCharacterSet

Returns a character set containing characters with Unicode values in a given range.

func NSMutableCharacterSetControlCharacterSet

func NSMutableCharacterSetControlCharacterSet() *NSMutableCharacterSet

Returns a character set containing the characters in Unicode General Category Cc and Cf.

func NSMutableCharacterSetDecimalDigitCharacterSet

func NSMutableCharacterSetDecimalDigitCharacterSet() *NSMutableCharacterSet

Returns a character set containing the characters in the category of decimal numbers.

func NSMutableCharacterSetDecomposableCharacterSet

func NSMutableCharacterSetDecomposableCharacterSet() *NSMutableCharacterSet

Returns a character set containing individual Unicode characters that can also be represented as composed character sequences (such as for letters with accents), by the definition of “standard decomposition” in version 3.2 of the Unicode character encoding standard.

func NSMutableCharacterSetFromID

func NSMutableCharacterSetFromID(id objc.ID) *NSMutableCharacterSet

func NSMutableCharacterSetIllegalCharacterSet

func NSMutableCharacterSetIllegalCharacterSet() *NSMutableCharacterSet

Returns a character set containing values in the category of Non-Characters or that have not yet been defined in version 3.2 of the Unicode standard.

func NSMutableCharacterSetLetterCharacterSet

func NSMutableCharacterSetLetterCharacterSet() *NSMutableCharacterSet

Returns a character set containing the characters in Unicode General Category L* & M*.

func NSMutableCharacterSetLowercaseLetterCharacterSet

func NSMutableCharacterSetLowercaseLetterCharacterSet() *NSMutableCharacterSet

Returns a character set containing the characters in Unicode General Category Ll.

func NSMutableCharacterSetNewlineCharacterSet

func NSMutableCharacterSetNewlineCharacterSet() *NSMutableCharacterSet

Returns a character set containing the newline characters (U+000A ~ U+000D, U+0085, U+2028, and U+2029).

func NSMutableCharacterSetNonBaseCharacterSet

func NSMutableCharacterSetNonBaseCharacterSet() *NSMutableCharacterSet

Returns a character set containing the characters in Unicode General Category M*.

func NSMutableCharacterSetPunctuationCharacterSet

func NSMutableCharacterSetPunctuationCharacterSet() *NSMutableCharacterSet

Returns a character set containing the characters in Unicode General Category P*.

func NSMutableCharacterSetSymbolCharacterSet

func NSMutableCharacterSetSymbolCharacterSet() *NSMutableCharacterSet

Returns a character set containing the characters in Unicode General Category S*.

func NSMutableCharacterSetUppercaseLetterCharacterSet

func NSMutableCharacterSetUppercaseLetterCharacterSet() *NSMutableCharacterSet

Returns a character set containing the characters in Unicode General Category Lu and Lt.

func NSMutableCharacterSetWhitespaceAndNewlineCharacterSet

func NSMutableCharacterSetWhitespaceAndNewlineCharacterSet() *NSMutableCharacterSet

Returns a character set containing characters in Unicode General Category Z*, U+000A ~ U+000D, and U+0085.

func NSMutableCharacterSetWhitespaceCharacterSet

func NSMutableCharacterSetWhitespaceCharacterSet() *NSMutableCharacterSet

Returns a character set containing the characters in Unicode General Category Zs and CHARACTER TABULATION (U+0009).

func (*NSMutableCharacterSet) AddCharactersInRange

func (o *NSMutableCharacterSet) AddCharactersInRange(aRange NSRange)

Adds to the receiver the characters whose Unicode values are in a given range.

func (*NSMutableCharacterSet) AddCharactersInString

func (o *NSMutableCharacterSet) AddCharactersInString(aString *NSString)

Adds to the receiver the characters in a given string.

func (*NSMutableCharacterSet) FormIntersectionWithCharacterSet

func (o *NSMutableCharacterSet) FormIntersectionWithCharacterSet(otherSet *NSCharacterSet)

Modifies the receiver so it contains only characters that exist in both the receiver and another set.

func (*NSMutableCharacterSet) FormUnionWithCharacterSet

func (o *NSMutableCharacterSet) FormUnionWithCharacterSet(otherSet *NSCharacterSet)

Modifies the receiver so it contains all characters that exist in either the receiver or another set.

func (*NSMutableCharacterSet) Invert

func (o *NSMutableCharacterSet) Invert()

Replaces all the characters in the receiver with all the characters it didn’t previously contain.

func (*NSMutableCharacterSet) RemoveCharactersInRange

func (o *NSMutableCharacterSet) RemoveCharactersInRange(aRange NSRange)

Removes from the receiver the characters whose Unicode values are in a given range.

func (*NSMutableCharacterSet) RemoveCharactersInString

func (o *NSMutableCharacterSet) RemoveCharactersInString(aString *NSString)

Removes from the receiver the characters in a given string.

type NSMutableCopying

type NSMutableCopying interface {
	MutableCopyWithZone(zone unsafe.Pointer) objc.ID
}

NSMutableCopying wraps the ObjC protocol NSMutableCopying.

type NSMutableData

type NSMutableData struct {
	NSData
}

An object representing a dynamic byte buffer in memory.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmutabledata

func NSMutableDataDataWithCapacity

func NSMutableDataDataWithCapacity(aNumItems uint) *NSMutableData

Creates and returns a mutable data object capable of holding the specified number of bytes.

func NSMutableDataDataWithLength

func NSMutableDataDataWithLength(length uint) *NSMutableData

Creates and returns an mutable data object containing a given number of zeroed bytes.

func NSMutableDataFromID

func NSMutableDataFromID(id objc.ID) *NSMutableData

func (*NSMutableData) AppendBytesLength

func (o *NSMutableData) AppendBytesLength(bytes_ unsafe.Pointer, length uint)

Appends to the receiver a given number of bytes from a given buffer.

func (*NSMutableData) AppendData

func (o *NSMutableData) AppendData(other *NSData)

Appends the content of another data object to the receiver.

func (*NSMutableData) CompressUsingAlgorithmError

func (o *NSMutableData) CompressUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (bool, error)

Compresses the data object’s bytes using an algorithm that you specify.

func (*NSMutableData) DecompressUsingAlgorithmError

func (o *NSMutableData) DecompressUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (bool, error)

Decompresses the data object’s bytes.

func (*NSMutableData) IncreaseLengthBy

func (o *NSMutableData) IncreaseLengthBy(extraLength uint)

Increases the length of the receiver by a given number of bytes.

func (*NSMutableData) InitWithCapacity

func (o *NSMutableData) InitWithCapacity(capacity uint) *NSMutableData

Returns an initialized mutable data object capable of holding the specified number of bytes.

func (*NSMutableData) InitWithLength

func (o *NSMutableData) InitWithLength(length uint) *NSMutableData

Initializes and returns a mutable data object containing a given number of zeroed bytes.

func (*NSMutableData) MutableBytes

func (o *NSMutableData) MutableBytes() unsafe.Pointer

func (*NSMutableData) ReplaceBytesInRangeWithBytes

func (o *NSMutableData) ReplaceBytesInRangeWithBytes(range_ NSRange, bytes_ unsafe.Pointer)

Replaces with a given set of bytes a given range within the contents of the receiver.

func (*NSMutableData) ReplaceBytesInRangeWithBytesLength

func (o *NSMutableData) ReplaceBytesInRangeWithBytesLength(range_ NSRange, replacementBytes unsafe.Pointer, replacementLength uint)

Replaces with a given set of bytes a given range within the contents of the receiver.

func (*NSMutableData) ResetBytesInRange

func (o *NSMutableData) ResetBytesInRange(range_ NSRange)

Replaces with zeroes the contents of the receiver in a given range.

func (*NSMutableData) SetData

func (o *NSMutableData) SetData(data *NSData)

Replaces the entire contents of the receiver with the contents of another data object.

func (*NSMutableData) SetLength

func (o *NSMutableData) SetLength(length uint)

type NSMutableDictionary

type NSMutableDictionary[KeyType purego.AnyObject, ObjectType purego.AnyObject] struct {
	NSDictionary[KeyType, ObjectType]
}

A dynamic collection of objects associated with unique keys.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmutabledictionary

func NSMutableDictionaryDictionaryWithCapacity

func NSMutableDictionaryDictionaryWithCapacity(numItems uint) *NSMutableDictionary[objc.ID, objc.ID]

Creates and returns a mutable dictionary, initially giving it enough allocated memory to hold a given number of entries.

func NSMutableDictionaryDictionaryWithContentsOfFile

func NSMutableDictionaryDictionaryWithContentsOfFile(path *NSString) *NSMutableDictionary[objc.ID, objc.ID]

func NSMutableDictionaryDictionaryWithContentsOfURL

func NSMutableDictionaryDictionaryWithContentsOfURL(url *NSURL) *NSMutableDictionary[objc.ID, objc.ID]

func NSMutableDictionaryDictionaryWithSharedKeySet

func NSMutableDictionaryDictionaryWithSharedKeySet(keyset objc.ID) *NSMutableDictionary[objc.ID, objc.ID]

Creates a mutable dictionary which is optimized for dealing with a known set of keys.

func NSMutableDictionaryFromID

func NSMutableDictionaryFromID[KeyType purego.AnyObject, ObjectType purego.AnyObject](id objc.ID) *NSMutableDictionary[KeyType, ObjectType]

func (*NSMutableDictionary[KeyType, ObjectType]) AddEntriesFromDictionary

func (o *NSMutableDictionary[KeyType, ObjectType]) AddEntriesFromDictionary(otherDictionary *NSDictionary[KeyType, ObjectType])

Adds to the receiving dictionary the entries from another dictionary.

func (*NSMutableDictionary[KeyType, ObjectType]) Init

func (o *NSMutableDictionary[KeyType, ObjectType]) Init() *NSMutableDictionary[KeyType, ObjectType]

Initializes a newly allocated mutable dictionary.

func (*NSMutableDictionary[KeyType, ObjectType]) InitWithCapacity

func (o *NSMutableDictionary[KeyType, ObjectType]) InitWithCapacity(numItems uint) *NSMutableDictionary[KeyType, ObjectType]

Initializes a newly allocated mutable dictionary, allocating enough memory to hold numItems entries.

func (*NSMutableDictionary[KeyType, ObjectType]) InitWithCoder

func (o *NSMutableDictionary[KeyType, ObjectType]) InitWithCoder(coder *NSCoder) *NSMutableDictionary[KeyType, ObjectType]

func (*NSMutableDictionary[KeyType, ObjectType]) InitWithContentsOfFile

func (o *NSMutableDictionary[KeyType, ObjectType]) InitWithContentsOfFile(path *NSString) *NSMutableDictionary[KeyType, ObjectType]

func (*NSMutableDictionary[KeyType, ObjectType]) InitWithContentsOfURL

func (o *NSMutableDictionary[KeyType, ObjectType]) InitWithContentsOfURL(url *NSURL) *NSMutableDictionary[KeyType, ObjectType]

func (*NSMutableDictionary[KeyType, ObjectType]) RemoveAllObjects

func (o *NSMutableDictionary[KeyType, ObjectType]) RemoveAllObjects()

Empties the dictionary of its entries.

func (*NSMutableDictionary[KeyType, ObjectType]) RemoveObjectForKey

func (o *NSMutableDictionary[KeyType, ObjectType]) RemoveObjectForKey(aKey KeyType)

Removes a given key and its associated value from the dictionary.

func (*NSMutableDictionary[KeyType, ObjectType]) RemoveObjectsForKeys

func (o *NSMutableDictionary[KeyType, ObjectType]) RemoveObjectsForKeys(keyArray *NSArray[KeyType])

Removes from the dictionary entries specified by elements in a given array.

func (*NSMutableDictionary[KeyType, ObjectType]) SetDictionary

func (o *NSMutableDictionary[KeyType, ObjectType]) SetDictionary(otherDictionary *NSDictionary[KeyType, ObjectType])

Sets the contents of the receiving dictionary to entries in a given dictionary.

func (*NSMutableDictionary[KeyType, ObjectType]) SetObjectForKey

func (o *NSMutableDictionary[KeyType, ObjectType]) SetObjectForKey(anObject ObjectType, aKey NSCopying)

Adds a given key-value pair to the dictionary.

func (*NSMutableDictionary[KeyType, ObjectType]) SetObjectForKeyedSubscript

func (o *NSMutableDictionary[KeyType, ObjectType]) SetObjectForKeyedSubscript(obj ObjectType, key NSCopying)

Adds a given key-value pair to the dictionary.

type NSMutableIndexSet

type NSMutableIndexSet struct {
	NSIndexSet
}

A mutable collection of unique integer values that represent indexes in another collection.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmutableindexset

func NSMutableIndexSetFromID

func NSMutableIndexSetFromID(id objc.ID) *NSMutableIndexSet

func (*NSMutableIndexSet) AddIndex

func (o *NSMutableIndexSet) AddIndex(value uint)

Adds an index to the receiver.

func (*NSMutableIndexSet) AddIndexes

func (o *NSMutableIndexSet) AddIndexes(indexSet *NSIndexSet)

Adds the indexes in an index set to the receiver.

func (*NSMutableIndexSet) AddIndexesInRange

func (o *NSMutableIndexSet) AddIndexesInRange(range_ NSRange)

Adds the indexes in an index range to the receiver.

func (*NSMutableIndexSet) RemoveAllIndexes

func (o *NSMutableIndexSet) RemoveAllIndexes()

Removes the receiver’s indexes.

func (*NSMutableIndexSet) RemoveIndex

func (o *NSMutableIndexSet) RemoveIndex(value uint)

Removes an index from the receiver.

func (*NSMutableIndexSet) RemoveIndexes

func (o *NSMutableIndexSet) RemoveIndexes(indexSet *NSIndexSet)

Removes the indexes in an index set from the receiver.

func (*NSMutableIndexSet) RemoveIndexesInRange

func (o *NSMutableIndexSet) RemoveIndexesInRange(range_ NSRange)

Removes the indexes in an index range from the receiver.

func (*NSMutableIndexSet) ShiftIndexesStartingAtIndexBy

func (o *NSMutableIndexSet) ShiftIndexesStartingAtIndexBy(index uint, delta int)

Shifts a group of indexes to the left or the right within the receiver.

type NSMutableOrderedSet

type NSMutableOrderedSet[ObjectType purego.AnyObject] struct {
	NSOrderedSet[ObjectType]
}

A dynamic, ordered collection of unique objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmutableorderedset

func NSMutableOrderedSetFromID

func NSMutableOrderedSetFromID[ObjectType purego.AnyObject](id objc.ID) *NSMutableOrderedSet[ObjectType]

func NSMutableOrderedSetOrderedSetWithCapacity

func NSMutableOrderedSetOrderedSetWithCapacity(numItems uint) *NSMutableOrderedSet[objc.ID]

Creates and returns an mutable ordered set with a given initial capacity.

func (*NSMutableOrderedSet[ObjectType]) AddObject

func (o *NSMutableOrderedSet[ObjectType]) AddObject(object ObjectType)

Appends a given object to the end of the mutable ordered set, if it is not already a member.

func (*NSMutableOrderedSet[ObjectType]) AddObjectsCount

func (o *NSMutableOrderedSet[ObjectType]) AddObjectsCount(objects unsafe.Pointer, count uint)

Appends the given number of objects from a given C array to the end of the mutable ordered set.

func (*NSMutableOrderedSet[ObjectType]) AddObjectsFromArray

func (o *NSMutableOrderedSet[ObjectType]) AddObjectsFromArray(array *NSArray[ObjectType])

Appends to the end of the mutable ordered set each object contained in a given array that is not already a member.

func (*NSMutableOrderedSet[ObjectType]) ApplyDifference

func (o *NSMutableOrderedSet[ObjectType]) ApplyDifference(difference *NSOrderedCollectionDifference[ObjectType])

func (*NSMutableOrderedSet[ObjectType]) ExchangeObjectAtIndexWithObjectAtIndex

func (o *NSMutableOrderedSet[ObjectType]) ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, idx2 uint)

Exchanges the object at the specified index with the object at the other index.

func (*NSMutableOrderedSet[ObjectType]) FilterUsingPredicate

func (o *NSMutableOrderedSet[ObjectType]) FilterUsingPredicate(p *NSPredicate)

Evaluates a given predicate against the mutable ordered set’s content and leaves only objects that match.

func (*NSMutableOrderedSet[ObjectType]) Init

func (o *NSMutableOrderedSet[ObjectType]) Init() *NSMutableOrderedSet[ObjectType]

Initializes a newly allocated mutable ordered set.

func (*NSMutableOrderedSet[ObjectType]) InitWithCapacity

func (o *NSMutableOrderedSet[ObjectType]) InitWithCapacity(numItems uint) *NSMutableOrderedSet[ObjectType]

Returns an initialized mutable ordered set with a given initial capacity.

func (*NSMutableOrderedSet[ObjectType]) InitWithCoder

func (o *NSMutableOrderedSet[ObjectType]) InitWithCoder(coder *NSCoder) *NSMutableOrderedSet[ObjectType]

func (*NSMutableOrderedSet[ObjectType]) InsertObjectAtIndex

func (o *NSMutableOrderedSet[ObjectType]) InsertObjectAtIndex(object ObjectType, idx uint)

Inserts the given object at the specified index of the mutable ordered set, if it is not already a member.

func (*NSMutableOrderedSet[ObjectType]) InsertObjectsAtIndexes

func (o *NSMutableOrderedSet[ObjectType]) InsertObjectsAtIndexes(objects *NSArray[ObjectType], indexes *NSIndexSet)

Inserts the objects in the array at the specified indexes.

func (*NSMutableOrderedSet[ObjectType]) IntersectOrderedSet

func (o *NSMutableOrderedSet[ObjectType]) IntersectOrderedSet(other *NSOrderedSet[ObjectType])

Removes from the receiving ordered set each object that isn’t a member of another ordered set.

func (*NSMutableOrderedSet[ObjectType]) IntersectSet

func (o *NSMutableOrderedSet[ObjectType]) IntersectSet(other *NSSet[ObjectType])

Removes from the receiving ordered set each object that isn’t a member of another set.

func (*NSMutableOrderedSet[ObjectType]) MinusOrderedSet

func (o *NSMutableOrderedSet[ObjectType]) MinusOrderedSet(other *NSOrderedSet[ObjectType])

Removes each object in another given ordered set from the receiving mutable ordered set, if present.

func (*NSMutableOrderedSet[ObjectType]) MinusSet

func (o *NSMutableOrderedSet[ObjectType]) MinusSet(other *NSSet[ObjectType])

Removes each object in another given set from the receiving mutable ordered set, if present.

func (*NSMutableOrderedSet[ObjectType]) MoveObjectsAtIndexesToIndex

func (o *NSMutableOrderedSet[ObjectType]) MoveObjectsAtIndexesToIndex(indexes *NSIndexSet, idx uint)

Moves the objects at the specified indexes to the new location.

func (*NSMutableOrderedSet[ObjectType]) RemoveAllObjects

func (o *NSMutableOrderedSet[ObjectType]) RemoveAllObjects()

Removes all the objects from the mutable ordered set.

func (*NSMutableOrderedSet[ObjectType]) RemoveObject

func (o *NSMutableOrderedSet[ObjectType]) RemoveObject(object ObjectType)

Removes a given object from the mutable ordered set.

func (*NSMutableOrderedSet[ObjectType]) RemoveObjectAtIndex

func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectAtIndex(idx uint)

Removes a the object at the specified index from the mutable ordered set.

func (*NSMutableOrderedSet[ObjectType]) RemoveObjectsAtIndexes

func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectsAtIndexes(indexes *NSIndexSet)

Removes the objects at the specified indexes from the mutable ordered set.

func (*NSMutableOrderedSet[ObjectType]) RemoveObjectsInArray

func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectsInArray(array *NSArray[ObjectType])

Removes the objects in the array from the mutable ordered set.

func (*NSMutableOrderedSet[ObjectType]) RemoveObjectsInRange

func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectsInRange(range_ NSRange)

Removes from the mutable ordered set each of the objects within a given range.

func (*NSMutableOrderedSet[ObjectType]) ReplaceObjectAtIndexWithObject

func (o *NSMutableOrderedSet[ObjectType]) ReplaceObjectAtIndexWithObject(idx uint, object ObjectType)

Replaces the object at the specified index with the new object.

func (*NSMutableOrderedSet[ObjectType]) ReplaceObjectsAtIndexesWithObjects

func (o *NSMutableOrderedSet[ObjectType]) ReplaceObjectsAtIndexesWithObjects(indexes *NSIndexSet, objects *NSArray[ObjectType])

Replaces the objects at the specified indexes with the new objects.

func (*NSMutableOrderedSet[ObjectType]) ReplaceObjectsInRangeWithObjectsCount

func (o *NSMutableOrderedSet[ObjectType]) ReplaceObjectsInRangeWithObjectsCount(range_ NSRange, objects unsafe.Pointer, count uint)

Replaces the objects in the receiving mutable ordered set at the range with the specified number of objects from a given C array.

func (*NSMutableOrderedSet[ObjectType]) SetObjectAtIndex

func (o *NSMutableOrderedSet[ObjectType]) SetObjectAtIndex(obj ObjectType, idx uint)

Appends or replaces the object at the specified index.

func (*NSMutableOrderedSet[ObjectType]) SetObjectAtIndexedSubscript

func (o *NSMutableOrderedSet[ObjectType]) SetObjectAtIndexedSubscript(obj ObjectType, idx uint)

Replaces the given object at the specified index of the mutable ordered set.

func (*NSMutableOrderedSet[ObjectType]) SortRangeOptionsUsingComparator

func (o *NSMutableOrderedSet[ObjectType]) SortRangeOptionsUsingComparator(range_ NSRange, opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult)

Sorts the specified range of the mutable ordered set using the specified options and the comparison method specified by a given comparator block.

func (*NSMutableOrderedSet[ObjectType]) SortUsingComparator

func (o *NSMutableOrderedSet[ObjectType]) SortUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult)

Sorts the mutable ordered set using the comparison method specified by the comparator block.

func (*NSMutableOrderedSet[ObjectType]) SortUsingDescriptors

func (o *NSMutableOrderedSet[ObjectType]) SortUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor])

Sorts the receiving ordered set using a given array of sort descriptors.

func (*NSMutableOrderedSet[ObjectType]) SortWithOptionsUsingComparator

func (o *NSMutableOrderedSet[ObjectType]) SortWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult)

Sorts the mutable ordered set using the specified options and the comparison method specified by a given comparator block.

func (*NSMutableOrderedSet[ObjectType]) UnionOrderedSet

func (o *NSMutableOrderedSet[ObjectType]) UnionOrderedSet(other *NSOrderedSet[ObjectType])

Adds each object in another given ordered set to the receiving mutable ordered set, if not present.

func (*NSMutableOrderedSet[ObjectType]) UnionSet

func (o *NSMutableOrderedSet[ObjectType]) UnionSet(other *NSSet[ObjectType])

Adds each object in another given set to the receiving mutable ordered set, if not present.

type NSMutableSet

type NSMutableSet[ObjectType purego.AnyObject] struct {
	NSSet[ObjectType]
}

A dynamic unordered collection of unique objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmutableset

func NSMutableSetFromID

func NSMutableSetFromID[ObjectType purego.AnyObject](id objc.ID) *NSMutableSet[ObjectType]

func NSMutableSetSetWithCapacity

func NSMutableSetSetWithCapacity(numItems uint) *NSMutableSet[objc.ID]

Creates and returns a mutable set with a given initial capacity.

func (*NSMutableSet[ObjectType]) AddObject

func (o *NSMutableSet[ObjectType]) AddObject(object ObjectType)

Adds a given object to the set, if it is not already a member.

func (*NSMutableSet[ObjectType]) AddObjectsFromArray

func (o *NSMutableSet[ObjectType]) AddObjectsFromArray(array *NSArray[ObjectType])

Adds to the set each object contained in a given array that is not already a member.

func (*NSMutableSet[ObjectType]) FilterUsingPredicate

func (o *NSMutableSet[ObjectType]) FilterUsingPredicate(predicate *NSPredicate)

Evaluates a given predicate against the set’s content and removes from the set those objects for which the predicate returns false.

func (*NSMutableSet[ObjectType]) Init

func (o *NSMutableSet[ObjectType]) Init() *NSMutableSet[ObjectType]

Initializes a newly allocated set.

func (*NSMutableSet[ObjectType]) InitWithCapacity

func (o *NSMutableSet[ObjectType]) InitWithCapacity(numItems uint) *NSMutableSet[ObjectType]

Returns an initialized mutable set with a given initial capacity.

func (*NSMutableSet[ObjectType]) InitWithCoder

func (o *NSMutableSet[ObjectType]) InitWithCoder(coder *NSCoder) *NSMutableSet[ObjectType]

func (*NSMutableSet[ObjectType]) IntersectSet

func (o *NSMutableSet[ObjectType]) IntersectSet(otherSet *NSSet[ObjectType])

Removes from the receiving set each object that isn’t a member of another given set.

func (*NSMutableSet[ObjectType]) MinusSet

func (o *NSMutableSet[ObjectType]) MinusSet(otherSet *NSSet[ObjectType])

Removes each object in another given set from the receiving set, if present.

func (*NSMutableSet[ObjectType]) RemoveAllObjects

func (o *NSMutableSet[ObjectType]) RemoveAllObjects()

Empties the set of all of its members.

func (*NSMutableSet[ObjectType]) RemoveObject

func (o *NSMutableSet[ObjectType]) RemoveObject(object ObjectType)

Removes a given object from the set.

func (*NSMutableSet[ObjectType]) SetSet

func (o *NSMutableSet[ObjectType]) SetSet(otherSet *NSSet[ObjectType])

Empties the receiving set, then adds each object contained in another given set.

func (*NSMutableSet[ObjectType]) UnionSet

func (o *NSMutableSet[ObjectType]) UnionSet(otherSet *NSSet[ObjectType])

Adds each object in another given set to the receiving set, if not present.

type NSMutableString

type NSMutableString struct {
	NSString
}

A dynamic plain-text Unicode string object.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmutablestring

func NSMutableStringFromID

func NSMutableStringFromID(id objc.ID) *NSMutableString

func NSMutableStringStringWithCapacity

func NSMutableStringStringWithCapacity(capacity uint) *NSMutableString

Returns an empty NSMutableString object with initial storage for a given number of characters.

func (*NSMutableString) AppendFormat

func (o *NSMutableString) AppendFormat(format *NSString)

Adds a constructed string to the receiver.

func (*NSMutableString) AppendString

func (o *NSMutableString) AppendString(aString *NSString)

Adds to the end of the receiver the characters of a given string.

func (*NSMutableString) ApplyTransformReverseRangeUpdatedRange

func (o *NSMutableString) ApplyTransformReverseRangeUpdatedRange(transform *NSString, reverse bool, range_ NSRange, resultingRange *NSRange) bool

Transliterates the receiver by applying a specified ICU string transform.

func (*NSMutableString) DeleteCharactersInRange

func (o *NSMutableString) DeleteCharactersInRange(range_ NSRange)

Removes from the receiver the characters in a given range.

func (*NSMutableString) InitWithCapacity

func (o *NSMutableString) InitWithCapacity(capacity uint) *NSMutableString

Returns an NSMutableString object initialized with initial storage for a given number of characters,

func (*NSMutableString) InsertStringAtIndex

func (o *NSMutableString) InsertStringAtIndex(aString *NSString, loc uint)

Inserts into the receiver the characters of a given string at a given location.

func (*NSMutableString) ReplaceCharactersInRangeWithString

func (o *NSMutableString) ReplaceCharactersInRangeWithString(range_ NSRange, aString *NSString)

Replaces the characters from range with those in aString.

func (*NSMutableString) ReplaceOccurrencesOfStringWithStringOptionsRange

func (o *NSMutableString) ReplaceOccurrencesOfStringWithStringOptionsRange(target *NSString, replacement *NSString, options NSStringCompareOptions, searchRange NSRange) uint

Replaces all occurrences of a given string in a given range with another given string, returning the number of replacements.

func (*NSMutableString) SetString

func (o *NSMutableString) SetString(aString *NSString)

Replaces the characters of the receiver with those in a given string.

type NSMutableURLRequest

type NSMutableURLRequest struct {
	NSURLRequest
}

A mutable URL load request that is independent of protocol or URL scheme.

Apple documentation: https://developer.apple.com/documentation/foundation/nsmutableurlrequest

func NSMutableURLRequestFromID

func NSMutableURLRequestFromID(id objc.ID) *NSMutableURLRequest

func (*NSMutableURLRequest) AddValueForHTTPHeaderField

func (o *NSMutableURLRequest) AddValueForHTTPHeaderField(value *NSString, field *NSString)

Adds a value to the header field.

func (*NSMutableURLRequest) SetAllHTTPHeaderFields

func (o *NSMutableURLRequest) SetAllHTTPHeaderFields(allHTTPHeaderFields *NSDictionary[*NSString, *NSString])

func (*NSMutableURLRequest) SetAllowsCellularAccess

func (o *NSMutableURLRequest) SetAllowsCellularAccess(allowsCellularAccess bool)

func (*NSMutableURLRequest) SetAllowsConstrainedNetworkAccess

func (o *NSMutableURLRequest) SetAllowsConstrainedNetworkAccess(allowsConstrainedNetworkAccess bool)

func (*NSMutableURLRequest) SetAllowsExpensiveNetworkAccess

func (o *NSMutableURLRequest) SetAllowsExpensiveNetworkAccess(allowsExpensiveNetworkAccess bool)

func (*NSMutableURLRequest) SetAllowsPersistentDNS

func (o *NSMutableURLRequest) SetAllowsPersistentDNS(allowsPersistentDNS bool)

func (*NSMutableURLRequest) SetAllowsUltraConstrainedNetworkAccess

func (o *NSMutableURLRequest) SetAllowsUltraConstrainedNetworkAccess(allowsUltraConstrainedNetworkAccess bool)

func (*NSMutableURLRequest) SetAssumesHTTP3Capable

func (o *NSMutableURLRequest) SetAssumesHTTP3Capable(assumesHTTP3Capable bool)

func (*NSMutableURLRequest) SetAttribution

func (o *NSMutableURLRequest) SetAttribution(attribution NSURLRequestAttribution)

func (*NSMutableURLRequest) SetCachePolicy

func (o *NSMutableURLRequest) SetCachePolicy(cachePolicy NSURLRequestCachePolicy)

func (*NSMutableURLRequest) SetCookiePartitionIdentifier

func (o *NSMutableURLRequest) SetCookiePartitionIdentifier(cookiePartitionIdentifier *NSString)

func (*NSMutableURLRequest) SetHTTPBody

func (o *NSMutableURLRequest) SetHTTPBody(hTTPBody *NSData)

func (*NSMutableURLRequest) SetHTTPBodyStream

func (o *NSMutableURLRequest) SetHTTPBodyStream(hTTPBodyStream *NSInputStream)

func (*NSMutableURLRequest) SetHTTPMethod

func (o *NSMutableURLRequest) SetHTTPMethod(hTTPMethod *NSString)

func (*NSMutableURLRequest) SetHTTPShouldHandleCookies

func (o *NSMutableURLRequest) SetHTTPShouldHandleCookies(hTTPShouldHandleCookies bool)

func (*NSMutableURLRequest) SetHTTPShouldUsePipelining deprecated

func (o *NSMutableURLRequest) SetHTTPShouldUsePipelining(hTTPShouldUsePipelining bool)

Deprecated: Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead

func (*NSMutableURLRequest) SetMainDocumentURL

func (o *NSMutableURLRequest) SetMainDocumentURL(mainDocumentURL *NSURL)

func (*NSMutableURLRequest) SetNetworkServiceType

func (o *NSMutableURLRequest) SetNetworkServiceType(networkServiceType NSURLRequestNetworkServiceType)

func (*NSMutableURLRequest) SetRequiresDNSSECValidation

func (o *NSMutableURLRequest) SetRequiresDNSSECValidation(requiresDNSSECValidation bool)

func (*NSMutableURLRequest) SetTimeoutInterval

func (o *NSMutableURLRequest) SetTimeoutInterval(timeoutInterval float64)

func (*NSMutableURLRequest) SetURL

func (o *NSMutableURLRequest) SetURL(uRL *NSURL)

func (*NSMutableURLRequest) SetValueForHTTPHeaderField

func (o *NSMutableURLRequest) SetValueForHTTPHeaderField(value *NSString, field *NSString)

Sets a value for the header field.

type NSNameSpecifier

type NSNameSpecifier struct {
	NSScriptObjectSpecifier
}

A specifier for an object in a collection (or container) by name.

Apple documentation: https://developer.apple.com/documentation/foundation/nsnamespecifier

func NSNameSpecifierFromID

func NSNameSpecifierFromID(id objc.ID) *NSNameSpecifier

func (*NSNameSpecifier) InitWithCoder

func (o *NSNameSpecifier) InitWithCoder(inCoder *NSCoder) *NSNameSpecifier

func (*NSNameSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyName

func (o *NSNameSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyName(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString, name *NSString) *NSNameSpecifier

Invokes the super class’s initWithContainerClassDescription:containerSpecifier:key: method and then sets the name instance variable to name.

func (*NSNameSpecifier) Name

func (o *NSNameSpecifier) Name() *NSString

func (*NSNameSpecifier) SetName

func (o *NSNameSpecifier) SetName(name *NSString)

type NSNetService

type NSNetService struct {
	NSObject
}

A network service that broadcasts its availability using multicast DNS.

Apple documentation: https://developer.apple.com/documentation/foundation/nsnetservice Deprecated: Use nw_connection_t or nw_listener_t in Network framework instead

func NSNetServiceFromID

func NSNetServiceFromID(id objc.ID) *NSNetService

func (*NSNetService) Addresses

func (o *NSNetService) Addresses() *NSArray[*NSData]

func (*NSNetService) Delegate

func (o *NSNetService) Delegate() NSNetServiceDelegate

func (*NSNetService) Domain

func (o *NSNetService) Domain() *NSString

func (*NSNetService) GetInputStreamOutputStream

func (o *NSNetService) GetInputStreamOutputStream(inputStream *NSInputStream, outputStream *NSOutputStream) bool

func (*NSNetService) HostName

func (o *NSNetService) HostName() *NSString

func (*NSNetService) IncludesPeerToPeer

func (o *NSNetService) IncludesPeerToPeer() bool

func (*NSNetService) InitWithDomainTypeName

func (o *NSNetService) InitWithDomainTypeName(domain *NSString, type_ *NSString, name *NSString) *NSNetService

func (*NSNetService) InitWithDomainTypeNamePort

func (o *NSNetService) InitWithDomainTypeNamePort(domain *NSString, type_ *NSString, name *NSString, port int) *NSNetService

func (*NSNetService) Name

func (o *NSNetService) Name() *NSString

func (*NSNetService) Port

func (o *NSNetService) Port() int

func (*NSNetService) Publish

func (o *NSNetService) Publish()

func (*NSNetService) PublishWithOptions

func (o *NSNetService) PublishWithOptions(options NSNetServiceOptions)

func (*NSNetService) RemoveFromRunLoopForMode

func (o *NSNetService) RemoveFromRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)

func (*NSNetService) Resolve deprecated

func (o *NSNetService) Resolve()

Deprecated: Not supported

func (*NSNetService) ResolveWithTimeout

func (o *NSNetService) ResolveWithTimeout(timeout float64)

func (*NSNetService) ScheduleInRunLoopForMode

func (o *NSNetService) ScheduleInRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)

func (*NSNetService) SetDelegate

func (o *NSNetService) SetDelegate(delegate NSNetServiceDelegate)

func (*NSNetService) SetIncludesPeerToPeer

func (o *NSNetService) SetIncludesPeerToPeer(includesPeerToPeer bool)

func (*NSNetService) SetTXTRecordData

func (o *NSNetService) SetTXTRecordData(recordData *NSData) bool

func (*NSNetService) StartMonitoring

func (o *NSNetService) StartMonitoring()

func (*NSNetService) Stop deprecated

func (o *NSNetService) Stop()

Deprecated: Not supported

func (*NSNetService) StopMonitoring

func (o *NSNetService) StopMonitoring()

func (*NSNetService) TXTRecordData

func (o *NSNetService) TXTRecordData() *NSData

func (*NSNetService) Type

func (o *NSNetService) Type() *NSString

type NSNetServiceBrowser

type NSNetServiceBrowser struct {
	NSObject
}

A network service browser that finds published services on a network using multicast DNS.

Apple documentation: https://developer.apple.com/documentation/foundation/nsnetservicebrowser Deprecated: Use nw_browser_t in Network framework instead

func NSNetServiceBrowserFromID

func NSNetServiceBrowserFromID(id objc.ID) *NSNetServiceBrowser

func (*NSNetServiceBrowser) Delegate

func (*NSNetServiceBrowser) IncludesPeerToPeer

func (o *NSNetServiceBrowser) IncludesPeerToPeer() bool

func (*NSNetServiceBrowser) Init

func (*NSNetServiceBrowser) RemoveFromRunLoopForMode

func (o *NSNetServiceBrowser) RemoveFromRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)

func (*NSNetServiceBrowser) ScheduleInRunLoopForMode

func (o *NSNetServiceBrowser) ScheduleInRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)

func (*NSNetServiceBrowser) SearchForBrowsableDomains

func (o *NSNetServiceBrowser) SearchForBrowsableDomains()

func (*NSNetServiceBrowser) SearchForRegistrationDomains

func (o *NSNetServiceBrowser) SearchForRegistrationDomains()

func (*NSNetServiceBrowser) SearchForServicesOfTypeInDomain

func (o *NSNetServiceBrowser) SearchForServicesOfTypeInDomain(type_ *NSString, domainString *NSString)

func (*NSNetServiceBrowser) SetDelegate

func (o *NSNetServiceBrowser) SetDelegate(delegate NSNetServiceBrowserDelegate)

func (*NSNetServiceBrowser) SetIncludesPeerToPeer

func (o *NSNetServiceBrowser) SetIncludesPeerToPeer(includesPeerToPeer bool)

func (*NSNetServiceBrowser) Stop

func (o *NSNetServiceBrowser) Stop()

type NSNetServiceBrowserDelegate

type NSNetServiceBrowserDelegate interface {
}

NSNetServiceBrowserDelegate wraps the ObjC protocol NSNetServiceBrowserDelegate.

type NSNetServiceDelegate

type NSNetServiceDelegate interface {
}

NSNetServiceDelegate wraps the ObjC protocol NSNetServiceDelegate.

type NSNetServiceOptions

type NSNetServiceOptions uint64

These constants specify options for a network service.

const (
	NSNetServiceNoAutoRename         NSNetServiceOptions = 1
	NSNetServiceListenForConnections NSNetServiceOptions = 2
)

func (NSNetServiceOptions) String

func (e NSNetServiceOptions) String() string

type NSNetServicesError

type NSNetServicesError int64

These constants identify errors that can occur when accessing net services.

const (
	NSNetServicesUnknownError                      NSNetServicesError = -72000
	NSNetServicesCollisionError                    NSNetServicesError = -72001
	NSNetServicesNotFoundError                     NSNetServicesError = -72002
	NSNetServicesActivityInProgress                NSNetServicesError = -72003
	NSNetServicesBadArgumentError                  NSNetServicesError = -72004
	NSNetServicesCancelledError                    NSNetServicesError = -72005
	NSNetServicesInvalidError                      NSNetServicesError = -72006
	NSNetServicesTimeoutError                      NSNetServicesError = -72007
	NSNetServicesMissingRequiredConfigurationError NSNetServicesError = -72008
)

func (NSNetServicesError) String

func (e NSNetServicesError) String() string

type NSNotification

type NSNotification struct {
	NSObject
}

A container for information broadcast through a notification center to all registered observers.

Apple documentation: https://developer.apple.com/documentation/foundation/nsnotification

func NSNotificationFromID

func NSNotificationFromID(id objc.ID) *NSNotification

func NSNotificationNotificationWithNameObject

func NSNotificationNotificationWithNameObject(aName *NSString, anObject objc.ID) *NSNotification

Returns a new notification object with a specified name and object.

func NSNotificationNotificationWithNameObjectUserInfo

func NSNotificationNotificationWithNameObjectUserInfo(aName *NSString, anObject objc.ID, aUserInfo *NSDictionary[objc.ID, objc.ID]) *NSNotification

Returns a notification object with a specified name, object, and user information.

func (*NSNotification) InitWithCoder

func (o *NSNotification) InitWithCoder(coder *NSCoder) *NSNotification

Initializes a notification with the data from an unarchiver.

func (*NSNotification) InitWithNameObjectUserInfo

func (o *NSNotification) InitWithNameObjectUserInfo(name *NSString, object objc.ID, userInfo *NSDictionary[objc.ID, objc.ID]) *NSNotification

Initializes a notification with a specified name, object, and user information.

func (*NSNotification) Name

func (o *NSNotification) Name() *NSString

func (*NSNotification) Object

func (o *NSNotification) Object() objc.ID

func (*NSNotification) UserInfo

func (o *NSNotification) UserInfo() *NSDictionary[objc.ID, objc.ID]

type NSNotificationCenter

type NSNotificationCenter struct {
	NSObject
}

A notification dispatch mechanism that enables the broadcast of information to registered observers.

Apple documentation: https://developer.apple.com/documentation/foundation/nsnotificationcenter

func NSNotificationCenterDefaultCenter

func NSNotificationCenterDefaultCenter() *NSNotificationCenter

func NSNotificationCenterFromID

func NSNotificationCenterFromID(id objc.ID) *NSNotificationCenter

func (*NSNotificationCenter) AddObserverForNameObjectQueueUsing

func (o *NSNotificationCenter) AddObserverForNameObjectQueueUsing(name *NSString, obj objc.ID, queue *NSOperationQueue, block func(*NSNotification)) NSObjectProtocol

func (*NSNotificationCenter) AddObserverSelectorNameObject

func (o *NSNotificationCenter) AddObserverSelectorNameObject(observer objc.ID, aSelector objc.SEL, aName *NSString, anObject objc.ID)

func (*NSNotificationCenter) PostNotification

func (o *NSNotificationCenter) PostNotification(notification *NSNotification)

func (*NSNotificationCenter) PostNotificationNameObject

func (o *NSNotificationCenter) PostNotificationNameObject(aName *NSString, anObject objc.ID)

func (*NSNotificationCenter) PostNotificationNameObjectUserInfo

func (o *NSNotificationCenter) PostNotificationNameObjectUserInfo(aName *NSString, anObject objc.ID, aUserInfo *NSDictionary[objc.ID, objc.ID])

func (*NSNotificationCenter) RemoveObserver

func (o *NSNotificationCenter) RemoveObserver(observer objc.ID)

func (*NSNotificationCenter) RemoveObserverNameObject

func (o *NSNotificationCenter) RemoveObserverNameObject(observer objc.ID, aName *NSString, anObject objc.ID)

type NSNotificationCoalescing

type NSNotificationCoalescing uint64

The constants that specify how notifications are coalesced.

const (
	NSNotificationNoCoalescing       NSNotificationCoalescing = 0
	NSNotificationCoalescingOnName   NSNotificationCoalescing = 1
	NSNotificationCoalescingOnSender NSNotificationCoalescing = 2
)

func (NSNotificationCoalescing) String

func (e NSNotificationCoalescing) String() string

type NSNotificationQueue

type NSNotificationQueue struct {
	NSObject
}

A notification center buffer.

Apple documentation: https://developer.apple.com/documentation/foundation/nsnotificationqueue

func NSNotificationQueueDefaultQueue

func NSNotificationQueueDefaultQueue() *NSNotificationQueue

func NSNotificationQueueFromID

func NSNotificationQueueFromID(id objc.ID) *NSNotificationQueue

func (*NSNotificationQueue) DequeueNotificationsMatchingCoalesceMask

func (o *NSNotificationQueue) DequeueNotificationsMatchingCoalesceMask(notification *NSNotification, coalesceMask uint)

func (*NSNotificationQueue) EnqueueNotificationPostingStyle

func (o *NSNotificationQueue) EnqueueNotificationPostingStyle(notification *NSNotification, postingStyle NSPostingStyle)

func (*NSNotificationQueue) EnqueueNotificationPostingStyleCoalesceMaskForModes

func (o *NSNotificationQueue) EnqueueNotificationPostingStyleCoalesceMaskForModes(notification *NSNotification, postingStyle NSPostingStyle, coalesceMask NSNotificationCoalescing, modes *NSArray[*NSString])

func (*NSNotificationQueue) InitWithNotificationCenter

func (o *NSNotificationQueue) InitWithNotificationCenter(notificationCenter *NSNotificationCenter) *NSNotificationQueue

type NSNotificationSuspensionBehavior

type NSNotificationSuspensionBehavior uint64

These constants specify the types of notification delivery suspension behaviors.

const (
	NSNotificationSuspensionBehaviorDrop               NSNotificationSuspensionBehavior = 1
	NSNotificationSuspensionBehaviorCoalesce           NSNotificationSuspensionBehavior = 2
	NSNotificationSuspensionBehaviorHold               NSNotificationSuspensionBehavior = 3
	NSNotificationSuspensionBehaviorDeliverImmediately NSNotificationSuspensionBehavior = 4
)

func (NSNotificationSuspensionBehavior) String

type NSNull

type NSNull struct {
	NSObject
}

A singleton object used to represent null values in collection objects that don’t allow nil values.

Apple documentation: https://developer.apple.com/documentation/foundation/nsnull

func NSNullFromID

func NSNullFromID(id objc.ID) *NSNull

func NSNullNull

func NSNullNull() *NSNull

Returns the singleton instance of NSNull.

type NSNumber

type NSNumber struct {
	NSValue
}

An object wrapper for primitive scalar numeric values.

Apple documentation: https://developer.apple.com/documentation/foundation/nsnumber

func NSNumberFromID

func NSNumberFromID(id objc.ID) *NSNumber

func NSNumberNumberWithBool

func NSNumberNumberWithBool(value bool) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as a BOOL.

func NSNumberNumberWithChar

func NSNumberNumberWithChar(value int8) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as a signed char.

func NSNumberNumberWithDouble

func NSNumberNumberWithDouble(value float64) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as a double.

func NSNumberNumberWithFloat

func NSNumberNumberWithFloat(value float32) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as a float.

func NSNumberNumberWithInt

func NSNumberNumberWithInt(value int) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as a signed int.

func NSNumberNumberWithInteger

func NSNumberNumberWithInteger(value int) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as an NSInteger.

func NSNumberNumberWithLong

func NSNumberNumberWithLong(value int) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as a signed long.

func NSNumberNumberWithLongLong

func NSNumberNumberWithLongLong(value int64) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as a signed long long.

func NSNumberNumberWithShort

func NSNumberNumberWithShort(value int16) *NSNumber

Creates and returns an NSNumber object containing value, treating it as a signed short.

func NSNumberNumberWithUnsignedChar

func NSNumberNumberWithUnsignedChar(value uint8) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as an unsigned char.

func NSNumberNumberWithUnsignedInt

func NSNumberNumberWithUnsignedInt(value uint) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as an unsigned int.

func NSNumberNumberWithUnsignedInteger

func NSNumberNumberWithUnsignedInteger(value uint) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as an NSUInteger.

func NSNumberNumberWithUnsignedLong

func NSNumberNumberWithUnsignedLong(value uint) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as an unsigned long.

func NSNumberNumberWithUnsignedLongLong

func NSNumberNumberWithUnsignedLongLong(value uint64) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as an unsigned long long.

func NSNumberNumberWithUnsignedShort

func NSNumberNumberWithUnsignedShort(value uint16) *NSNumber

Creates and returns an NSNumber object containing a given value, treating it as an unsigned short.

func (*NSNumber) BoolValue

func (o *NSNumber) BoolValue() bool

func (*NSNumber) CharValue

func (o *NSNumber) CharValue() int8

func (*NSNumber) Compare

func (o *NSNumber) Compare(otherNumber *NSNumber) NSComparisonResult

Returns an NSComparisonResult value that indicates whether the number object’s value is greater than, equal to, or less than a given number.

func (*NSNumber) DecimalValue

func (o *NSNumber) DecimalValue() NSDecimal

func (*NSNumber) DescriptionWithLocale

func (o *NSNumber) DescriptionWithLocale(locale objc.ID) *NSString

Returns a string that represents the contents of the number object for a given locale.

func (*NSNumber) DoubleValue

func (o *NSNumber) DoubleValue() float64

func (*NSNumber) FloatValue

func (o *NSNumber) FloatValue() float32

func (*NSNumber) InitWithBool

func (o *NSNumber) InitWithBool(value bool) *NSNumber

Returns an NSNumber object initialized to contain a given value, treated as a BOOL.

func (*NSNumber) InitWithChar

func (o *NSNumber) InitWithChar(value int8) *NSNumber

Returns an NSNumber object initialized to contain a given value, treated as a signed char.

func (*NSNumber) InitWithCoder

func (o *NSNumber) InitWithCoder(coder *NSCoder) *NSNumber

func (*NSNumber) InitWithDouble

func (o *NSNumber) InitWithDouble(value float64) *NSNumber

Returns an NSNumber object initialized to contain value, treated as a double.

func (*NSNumber) InitWithFloat

func (o *NSNumber) InitWithFloat(value float32) *NSNumber

Returns an NSNumber object initialized to contain a given value, treated as a float.

func (*NSNumber) InitWithInt

func (o *NSNumber) InitWithInt(value int) *NSNumber

Returns an NSNumber object initialized to contain a given value, treated as a signed int.

func (*NSNumber) InitWithInteger

func (o *NSNumber) InitWithInteger(value int) *NSNumber

Returns an NSNumber object initialized to contain a given value, treated as an NSInteger.

func (*NSNumber) InitWithLong

func (o *NSNumber) InitWithLong(value int) *NSNumber

Returns an NSNumber object initialized to contain a given value, treated as a signed long.

func (*NSNumber) InitWithLongLong

func (o *NSNumber) InitWithLongLong(value int64) *NSNumber

Returns an NSNumber object initialized to contain value, treated as a signed long long.

func (*NSNumber) InitWithShort

func (o *NSNumber) InitWithShort(value int16) *NSNumber

Returns an NSNumber object initialized to contain a given value, treated as a signed short.

func (*NSNumber) InitWithUnsignedChar

func (o *NSNumber) InitWithUnsignedChar(value uint8) *NSNumber

Returns an NSNumber object initialized to contain a given value, treated as an unsigned char.

func (*NSNumber) InitWithUnsignedInt

func (o *NSNumber) InitWithUnsignedInt(value uint) *NSNumber

Returns an NSNumber object initialized to contain a given value, treated as an unsigned int.

func (*NSNumber) InitWithUnsignedInteger

func (o *NSNumber) InitWithUnsignedInteger(value uint) *NSNumber

Returns an NSNumber object initialized to contain a given value, treated as an NSUInteger.

func (*NSNumber) InitWithUnsignedLong

func (o *NSNumber) InitWithUnsignedLong(value uint) *NSNumber

Returns an NSNumber object initialized to contain a given value, treated as an unsigned long.

func (*NSNumber) InitWithUnsignedLongLong

func (o *NSNumber) InitWithUnsignedLongLong(value uint64) *NSNumber

Returns an NSNumber object initialized to contain a given value, treated as an unsigned long long.

func (*NSNumber) InitWithUnsignedShort

func (o *NSNumber) InitWithUnsignedShort(value uint16) *NSNumber

Returns an NSNumber object initialized to contain a given value, treated as an unsigned short.

func (*NSNumber) IntValue

func (o *NSNumber) IntValue() int

func (*NSNumber) IntegerValue

func (o *NSNumber) IntegerValue() int

func (*NSNumber) IsEqualToNumber

func (o *NSNumber) IsEqualToNumber(number *NSNumber) bool

Returns a Boolean value that indicates whether the number object’s value and a given number are equal.

func (*NSNumber) LongLongValue

func (o *NSNumber) LongLongValue() int64

func (*NSNumber) LongValue

func (o *NSNumber) LongValue() int

func (*NSNumber) ShortValue

func (o *NSNumber) ShortValue() int16

func (*NSNumber) StringValue

func (o *NSNumber) StringValue() *NSString

func (*NSNumber) UnsignedCharValue

func (o *NSNumber) UnsignedCharValue() uint8

func (*NSNumber) UnsignedIntValue

func (o *NSNumber) UnsignedIntValue() uint

func (*NSNumber) UnsignedIntegerValue

func (o *NSNumber) UnsignedIntegerValue() uint

func (*NSNumber) UnsignedLongLongValue

func (o *NSNumber) UnsignedLongLongValue() uint64

func (*NSNumber) UnsignedLongValue

func (o *NSNumber) UnsignedLongValue() uint

func (*NSNumber) UnsignedShortValue

func (o *NSNumber) UnsignedShortValue() uint16

type NSNumberFormatter

type NSNumberFormatter struct {
	NSFormatter
}

A formatter that converts between numeric values and their textual representations.

Apple documentation: https://developer.apple.com/documentation/foundation/nsnumberformatter

func NSNumberFormatterFromID

func NSNumberFormatterFromID(id objc.ID) *NSNumberFormatter

func (*NSNumberFormatter) AllowsFloats

func (o *NSNumberFormatter) AllowsFloats() bool

func (*NSNumberFormatter) AlwaysShowsDecimalSeparator

func (o *NSNumberFormatter) AlwaysShowsDecimalSeparator() bool

func (*NSNumberFormatter) AttributedStringForNil

func (o *NSNumberFormatter) AttributedStringForNil() *NSAttributedString

func (*NSNumberFormatter) AttributedStringForNotANumber

func (o *NSNumberFormatter) AttributedStringForNotANumber() *NSAttributedString

func (*NSNumberFormatter) AttributedStringForZero

func (o *NSNumberFormatter) AttributedStringForZero() *NSAttributedString

func (*NSNumberFormatter) CurrencyCode

func (o *NSNumberFormatter) CurrencyCode() *NSString

func (*NSNumberFormatter) CurrencyDecimalSeparator

func (o *NSNumberFormatter) CurrencyDecimalSeparator() *NSString

func (*NSNumberFormatter) CurrencyGroupingSeparator

func (o *NSNumberFormatter) CurrencyGroupingSeparator() *NSString

func (*NSNumberFormatter) CurrencySymbol

func (o *NSNumberFormatter) CurrencySymbol() *NSString

func (*NSNumberFormatter) DecimalSeparator

func (o *NSNumberFormatter) DecimalSeparator() *NSString

func (*NSNumberFormatter) ExponentSymbol

func (o *NSNumberFormatter) ExponentSymbol() *NSString

func (*NSNumberFormatter) Format

func (o *NSNumberFormatter) Format() *NSString

func (*NSNumberFormatter) FormatWidth

func (o *NSNumberFormatter) FormatWidth() uint

func (*NSNumberFormatter) FormatterBehavior

func (o *NSNumberFormatter) FormatterBehavior() NSNumberFormatterBehavior

func (*NSNumberFormatter) FormattingContext

func (o *NSNumberFormatter) FormattingContext() NSFormattingContext

func (*NSNumberFormatter) GeneratesDecimalNumbers

func (o *NSNumberFormatter) GeneratesDecimalNumbers() bool

func (*NSNumberFormatter) GetObjectValueForStringRangeError

func (o *NSNumberFormatter) GetObjectValueForStringRangeError(obj **ObjcObject, string_ *NSString, rangep *NSRange) (bool, error)

func (*NSNumberFormatter) GroupingSeparator

func (o *NSNumberFormatter) GroupingSeparator() *NSString

func (*NSNumberFormatter) GroupingSize

func (o *NSNumberFormatter) GroupingSize() uint

func (*NSNumberFormatter) HasThousandSeparators

func (o *NSNumberFormatter) HasThousandSeparators() bool

func (*NSNumberFormatter) InternationalCurrencySymbol

func (o *NSNumberFormatter) InternationalCurrencySymbol() *NSString

func (*NSNumberFormatter) IsLenient

func (o *NSNumberFormatter) IsLenient() bool

func (*NSNumberFormatter) IsPartialStringValidationEnabled

func (o *NSNumberFormatter) IsPartialStringValidationEnabled() bool

func (*NSNumberFormatter) Locale

func (o *NSNumberFormatter) Locale() *NSLocale

func (*NSNumberFormatter) LocalizesFormat

func (o *NSNumberFormatter) LocalizesFormat() bool

func (*NSNumberFormatter) Maximum

func (o *NSNumberFormatter) Maximum() *NSNumber

func (*NSNumberFormatter) MaximumFractionDigits

func (o *NSNumberFormatter) MaximumFractionDigits() uint

func (*NSNumberFormatter) MaximumIntegerDigits

func (o *NSNumberFormatter) MaximumIntegerDigits() uint

func (*NSNumberFormatter) MaximumSignificantDigits

func (o *NSNumberFormatter) MaximumSignificantDigits() uint

func (*NSNumberFormatter) Minimum

func (o *NSNumberFormatter) Minimum() *NSNumber

func (*NSNumberFormatter) MinimumFractionDigits

func (o *NSNumberFormatter) MinimumFractionDigits() uint

func (*NSNumberFormatter) MinimumGroupingDigits

func (o *NSNumberFormatter) MinimumGroupingDigits() int

func (*NSNumberFormatter) MinimumIntegerDigits

func (o *NSNumberFormatter) MinimumIntegerDigits() uint

func (*NSNumberFormatter) MinimumSignificantDigits

func (o *NSNumberFormatter) MinimumSignificantDigits() uint

func (*NSNumberFormatter) MinusSign

func (o *NSNumberFormatter) MinusSign() *NSString

func (*NSNumberFormatter) Multiplier

func (o *NSNumberFormatter) Multiplier() *NSNumber

func (*NSNumberFormatter) NegativeFormat

func (o *NSNumberFormatter) NegativeFormat() *NSString

func (*NSNumberFormatter) NegativeInfinitySymbol

func (o *NSNumberFormatter) NegativeInfinitySymbol() *NSString

func (*NSNumberFormatter) NegativePrefix

func (o *NSNumberFormatter) NegativePrefix() *NSString

func (*NSNumberFormatter) NegativeSuffix

func (o *NSNumberFormatter) NegativeSuffix() *NSString

func (*NSNumberFormatter) NilSymbol

func (o *NSNumberFormatter) NilSymbol() *NSString

func (*NSNumberFormatter) NotANumberSymbol

func (o *NSNumberFormatter) NotANumberSymbol() *NSString

func (*NSNumberFormatter) NumberFromString

func (o *NSNumberFormatter) NumberFromString(string_ *NSString) *NSNumber

func (*NSNumberFormatter) NumberStyle

func (o *NSNumberFormatter) NumberStyle() NSNumberFormatterStyle

func (*NSNumberFormatter) PaddingCharacter

func (o *NSNumberFormatter) PaddingCharacter() *NSString

func (*NSNumberFormatter) PaddingPosition

func (o *NSNumberFormatter) PaddingPosition() NSNumberFormatterPadPosition

func (*NSNumberFormatter) PerMillSymbol

func (o *NSNumberFormatter) PerMillSymbol() *NSString

func (*NSNumberFormatter) PercentSymbol

func (o *NSNumberFormatter) PercentSymbol() *NSString

func (*NSNumberFormatter) PlusSign

func (o *NSNumberFormatter) PlusSign() *NSString

func (*NSNumberFormatter) PositiveFormat

func (o *NSNumberFormatter) PositiveFormat() *NSString

func (*NSNumberFormatter) PositiveInfinitySymbol

func (o *NSNumberFormatter) PositiveInfinitySymbol() *NSString

func (*NSNumberFormatter) PositivePrefix

func (o *NSNumberFormatter) PositivePrefix() *NSString

func (*NSNumberFormatter) PositiveSuffix

func (o *NSNumberFormatter) PositiveSuffix() *NSString

func (*NSNumberFormatter) RoundingBehavior

func (o *NSNumberFormatter) RoundingBehavior() *NSDecimalNumberHandler

func (*NSNumberFormatter) RoundingIncrement

func (o *NSNumberFormatter) RoundingIncrement() *NSNumber

func (*NSNumberFormatter) RoundingMode

func (*NSNumberFormatter) SecondaryGroupingSize

func (o *NSNumberFormatter) SecondaryGroupingSize() uint

func (*NSNumberFormatter) SetAllowsFloats

func (o *NSNumberFormatter) SetAllowsFloats(allowsFloats bool)

func (*NSNumberFormatter) SetAlwaysShowsDecimalSeparator

func (o *NSNumberFormatter) SetAlwaysShowsDecimalSeparator(alwaysShowsDecimalSeparator bool)

func (*NSNumberFormatter) SetAttributedStringForNil

func (o *NSNumberFormatter) SetAttributedStringForNil(attributedStringForNil *NSAttributedString)

func (*NSNumberFormatter) SetAttributedStringForNotANumber

func (o *NSNumberFormatter) SetAttributedStringForNotANumber(attributedStringForNotANumber *NSAttributedString)

func (*NSNumberFormatter) SetAttributedStringForZero

func (o *NSNumberFormatter) SetAttributedStringForZero(attributedStringForZero *NSAttributedString)

func (*NSNumberFormatter) SetCurrencyCode

func (o *NSNumberFormatter) SetCurrencyCode(currencyCode *NSString)

func (*NSNumberFormatter) SetCurrencyDecimalSeparator

func (o *NSNumberFormatter) SetCurrencyDecimalSeparator(currencyDecimalSeparator *NSString)

func (*NSNumberFormatter) SetCurrencyGroupingSeparator

func (o *NSNumberFormatter) SetCurrencyGroupingSeparator(currencyGroupingSeparator *NSString)

func (*NSNumberFormatter) SetCurrencySymbol

func (o *NSNumberFormatter) SetCurrencySymbol(currencySymbol *NSString)

func (*NSNumberFormatter) SetDecimalSeparator

func (o *NSNumberFormatter) SetDecimalSeparator(decimalSeparator *NSString)

func (*NSNumberFormatter) SetExponentSymbol

func (o *NSNumberFormatter) SetExponentSymbol(exponentSymbol *NSString)

func (*NSNumberFormatter) SetFormat

func (o *NSNumberFormatter) SetFormat(format *NSString)

func (*NSNumberFormatter) SetFormatWidth

func (o *NSNumberFormatter) SetFormatWidth(formatWidth uint)

func (*NSNumberFormatter) SetFormatterBehavior

func (o *NSNumberFormatter) SetFormatterBehavior(formatterBehavior NSNumberFormatterBehavior)

func (*NSNumberFormatter) SetFormattingContext

func (o *NSNumberFormatter) SetFormattingContext(formattingContext NSFormattingContext)

func (*NSNumberFormatter) SetGeneratesDecimalNumbers

func (o *NSNumberFormatter) SetGeneratesDecimalNumbers(generatesDecimalNumbers bool)

func (*NSNumberFormatter) SetGroupingSeparator

func (o *NSNumberFormatter) SetGroupingSeparator(groupingSeparator *NSString)

func (*NSNumberFormatter) SetGroupingSize

func (o *NSNumberFormatter) SetGroupingSize(groupingSize uint)

func (*NSNumberFormatter) SetHasThousandSeparators

func (o *NSNumberFormatter) SetHasThousandSeparators(hasThousandSeparators bool)

func (*NSNumberFormatter) SetInternationalCurrencySymbol

func (o *NSNumberFormatter) SetInternationalCurrencySymbol(internationalCurrencySymbol *NSString)

func (*NSNumberFormatter) SetLenient

func (o *NSNumberFormatter) SetLenient(lenient bool)

func (*NSNumberFormatter) SetLocale

func (o *NSNumberFormatter) SetLocale(locale *NSLocale)

func (*NSNumberFormatter) SetLocalizesFormat

func (o *NSNumberFormatter) SetLocalizesFormat(localizesFormat bool)

func (*NSNumberFormatter) SetMaximum

func (o *NSNumberFormatter) SetMaximum(maximum *NSNumber)

func (*NSNumberFormatter) SetMaximumFractionDigits

func (o *NSNumberFormatter) SetMaximumFractionDigits(maximumFractionDigits uint)

func (*NSNumberFormatter) SetMaximumIntegerDigits

func (o *NSNumberFormatter) SetMaximumIntegerDigits(maximumIntegerDigits uint)

func (*NSNumberFormatter) SetMaximumSignificantDigits

func (o *NSNumberFormatter) SetMaximumSignificantDigits(maximumSignificantDigits uint)

func (*NSNumberFormatter) SetMinimum

func (o *NSNumberFormatter) SetMinimum(minimum *NSNumber)

func (*NSNumberFormatter) SetMinimumFractionDigits

func (o *NSNumberFormatter) SetMinimumFractionDigits(minimumFractionDigits uint)

func (*NSNumberFormatter) SetMinimumGroupingDigits

func (o *NSNumberFormatter) SetMinimumGroupingDigits(minimumGroupingDigits int)

func (*NSNumberFormatter) SetMinimumIntegerDigits

func (o *NSNumberFormatter) SetMinimumIntegerDigits(minimumIntegerDigits uint)

func (*NSNumberFormatter) SetMinimumSignificantDigits

func (o *NSNumberFormatter) SetMinimumSignificantDigits(minimumSignificantDigits uint)

func (*NSNumberFormatter) SetMinusSign

func (o *NSNumberFormatter) SetMinusSign(minusSign *NSString)

func (*NSNumberFormatter) SetMultiplier

func (o *NSNumberFormatter) SetMultiplier(multiplier *NSNumber)

func (*NSNumberFormatter) SetNegativeFormat

func (o *NSNumberFormatter) SetNegativeFormat(negativeFormat *NSString)

func (*NSNumberFormatter) SetNegativeInfinitySymbol

func (o *NSNumberFormatter) SetNegativeInfinitySymbol(negativeInfinitySymbol *NSString)

func (*NSNumberFormatter) SetNegativePrefix

func (o *NSNumberFormatter) SetNegativePrefix(negativePrefix *NSString)

func (*NSNumberFormatter) SetNegativeSuffix

func (o *NSNumberFormatter) SetNegativeSuffix(negativeSuffix *NSString)

func (*NSNumberFormatter) SetNilSymbol

func (o *NSNumberFormatter) SetNilSymbol(nilSymbol *NSString)

func (*NSNumberFormatter) SetNotANumberSymbol

func (o *NSNumberFormatter) SetNotANumberSymbol(notANumberSymbol *NSString)

func (*NSNumberFormatter) SetNumberStyle

func (o *NSNumberFormatter) SetNumberStyle(numberStyle NSNumberFormatterStyle)

func (*NSNumberFormatter) SetPaddingCharacter

func (o *NSNumberFormatter) SetPaddingCharacter(paddingCharacter *NSString)

func (*NSNumberFormatter) SetPaddingPosition

func (o *NSNumberFormatter) SetPaddingPosition(paddingPosition NSNumberFormatterPadPosition)

func (*NSNumberFormatter) SetPartialStringValidationEnabled

func (o *NSNumberFormatter) SetPartialStringValidationEnabled(partialStringValidationEnabled bool)

func (*NSNumberFormatter) SetPerMillSymbol

func (o *NSNumberFormatter) SetPerMillSymbol(perMillSymbol *NSString)

func (*NSNumberFormatter) SetPercentSymbol

func (o *NSNumberFormatter) SetPercentSymbol(percentSymbol *NSString)

func (*NSNumberFormatter) SetPlusSign

func (o *NSNumberFormatter) SetPlusSign(plusSign *NSString)

func (*NSNumberFormatter) SetPositiveFormat

func (o *NSNumberFormatter) SetPositiveFormat(positiveFormat *NSString)

func (*NSNumberFormatter) SetPositiveInfinitySymbol

func (o *NSNumberFormatter) SetPositiveInfinitySymbol(positiveInfinitySymbol *NSString)

func (*NSNumberFormatter) SetPositivePrefix

func (o *NSNumberFormatter) SetPositivePrefix(positivePrefix *NSString)

func (*NSNumberFormatter) SetPositiveSuffix

func (o *NSNumberFormatter) SetPositiveSuffix(positiveSuffix *NSString)

func (*NSNumberFormatter) SetRoundingBehavior

func (o *NSNumberFormatter) SetRoundingBehavior(roundingBehavior *NSDecimalNumberHandler)

func (*NSNumberFormatter) SetRoundingIncrement

func (o *NSNumberFormatter) SetRoundingIncrement(roundingIncrement *NSNumber)

func (*NSNumberFormatter) SetRoundingMode

func (o *NSNumberFormatter) SetRoundingMode(roundingMode NSNumberFormatterRoundingMode)

func (*NSNumberFormatter) SetSecondaryGroupingSize

func (o *NSNumberFormatter) SetSecondaryGroupingSize(secondaryGroupingSize uint)

func (*NSNumberFormatter) SetTextAttributesForNegativeInfinity

func (o *NSNumberFormatter) SetTextAttributesForNegativeInfinity(textAttributesForNegativeInfinity *NSDictionary[*NSString, objc.ID])

func (*NSNumberFormatter) SetTextAttributesForNegativeValues

func (o *NSNumberFormatter) SetTextAttributesForNegativeValues(textAttributesForNegativeValues *NSDictionary[*NSString, objc.ID])

func (*NSNumberFormatter) SetTextAttributesForNil

func (o *NSNumberFormatter) SetTextAttributesForNil(textAttributesForNil *NSDictionary[*NSString, objc.ID])

func (*NSNumberFormatter) SetTextAttributesForNotANumber

func (o *NSNumberFormatter) SetTextAttributesForNotANumber(textAttributesForNotANumber *NSDictionary[*NSString, objc.ID])

func (*NSNumberFormatter) SetTextAttributesForPositiveInfinity

func (o *NSNumberFormatter) SetTextAttributesForPositiveInfinity(textAttributesForPositiveInfinity *NSDictionary[*NSString, objc.ID])

func (*NSNumberFormatter) SetTextAttributesForPositiveValues

func (o *NSNumberFormatter) SetTextAttributesForPositiveValues(textAttributesForPositiveValues *NSDictionary[*NSString, objc.ID])

func (*NSNumberFormatter) SetTextAttributesForZero

func (o *NSNumberFormatter) SetTextAttributesForZero(textAttributesForZero *NSDictionary[*NSString, objc.ID])

func (*NSNumberFormatter) SetThousandSeparator

func (o *NSNumberFormatter) SetThousandSeparator(thousandSeparator *NSString)

func (*NSNumberFormatter) SetUsesGroupingSeparator

func (o *NSNumberFormatter) SetUsesGroupingSeparator(usesGroupingSeparator bool)

func (*NSNumberFormatter) SetUsesSignificantDigits

func (o *NSNumberFormatter) SetUsesSignificantDigits(usesSignificantDigits bool)

func (*NSNumberFormatter) SetZeroSymbol

func (o *NSNumberFormatter) SetZeroSymbol(zeroSymbol *NSString)

func (*NSNumberFormatter) StringFromNumber

func (o *NSNumberFormatter) StringFromNumber(number *NSNumber) *NSString

func (*NSNumberFormatter) TextAttributesForNegativeInfinity

func (o *NSNumberFormatter) TextAttributesForNegativeInfinity() *NSDictionary[*NSString, objc.ID]

func (*NSNumberFormatter) TextAttributesForNegativeValues

func (o *NSNumberFormatter) TextAttributesForNegativeValues() *NSDictionary[*NSString, objc.ID]

func (*NSNumberFormatter) TextAttributesForNil

func (o *NSNumberFormatter) TextAttributesForNil() *NSDictionary[*NSString, objc.ID]

func (*NSNumberFormatter) TextAttributesForNotANumber

func (o *NSNumberFormatter) TextAttributesForNotANumber() *NSDictionary[*NSString, objc.ID]

func (*NSNumberFormatter) TextAttributesForPositiveInfinity

func (o *NSNumberFormatter) TextAttributesForPositiveInfinity() *NSDictionary[*NSString, objc.ID]

func (*NSNumberFormatter) TextAttributesForPositiveValues

func (o *NSNumberFormatter) TextAttributesForPositiveValues() *NSDictionary[*NSString, objc.ID]

func (*NSNumberFormatter) TextAttributesForZero

func (o *NSNumberFormatter) TextAttributesForZero() *NSDictionary[*NSString, objc.ID]

func (*NSNumberFormatter) ThousandSeparator

func (o *NSNumberFormatter) ThousandSeparator() *NSString

func (*NSNumberFormatter) UsesGroupingSeparator

func (o *NSNumberFormatter) UsesGroupingSeparator() bool

func (*NSNumberFormatter) UsesSignificantDigits

func (o *NSNumberFormatter) UsesSignificantDigits() bool

func (*NSNumberFormatter) ZeroSymbol

func (o *NSNumberFormatter) ZeroSymbol() *NSString

type NSNumberFormatterBehavior

type NSNumberFormatterBehavior uint64

These constants specify the behavior of a number formatter. These constants are returned by the defaultFormatterBehavior class method and the formatterBehavior property.

const (
	NSNumberFormatterBehaviorDefault NSNumberFormatterBehavior = 0
	NSNumberFormatterBehavior10_0    NSNumberFormatterBehavior = 1000
	NSNumberFormatterBehavior10_4    NSNumberFormatterBehavior = 1040
)

func NSNumberFormatterDefaultFormatterBehavior

func NSNumberFormatterDefaultFormatterBehavior() NSNumberFormatterBehavior

func (NSNumberFormatterBehavior) String

func (e NSNumberFormatterBehavior) String() string

type NSNumberFormatterPadPosition

type NSNumberFormatterPadPosition uint64

These constants are used to specify how numbers should be padded. These constants are used by the paddingPosition property.

const (
	NSNumberFormatterPadBeforePrefix NSNumberFormatterPadPosition = 0
	NSNumberFormatterPadAfterPrefix  NSNumberFormatterPadPosition = 1
	NSNumberFormatterPadBeforeSuffix NSNumberFormatterPadPosition = 2
	NSNumberFormatterPadAfterSuffix  NSNumberFormatterPadPosition = 3
)

func (NSNumberFormatterPadPosition) String

type NSNumberFormatterRoundingMode

type NSNumberFormatterRoundingMode uint64

These constants are used to specify how numbers should be rounded. These constants are used by the roundingMode property.

const (
	NSNumberFormatterRoundCeiling  NSNumberFormatterRoundingMode = 0
	NSNumberFormatterRoundFloor    NSNumberFormatterRoundingMode = 1
	NSNumberFormatterRoundDown     NSNumberFormatterRoundingMode = 2
	NSNumberFormatterRoundUp       NSNumberFormatterRoundingMode = 3
	NSNumberFormatterRoundHalfEven NSNumberFormatterRoundingMode = 4
	NSNumberFormatterRoundHalfDown NSNumberFormatterRoundingMode = 5
	NSNumberFormatterRoundHalfUp   NSNumberFormatterRoundingMode = 6
)

func (NSNumberFormatterRoundingMode) String

type NSNumberFormatterStyle

type NSNumberFormatterStyle uint64

The predefined number format styles used by the numberStyle property.

const (
	NSNumberFormatterNoStyle                 NSNumberFormatterStyle = 0
	NSNumberFormatterDecimalStyle            NSNumberFormatterStyle = 1
	NSNumberFormatterCurrencyStyle           NSNumberFormatterStyle = 2
	NSNumberFormatterPercentStyle            NSNumberFormatterStyle = 3
	NSNumberFormatterScientificStyle         NSNumberFormatterStyle = 4
	NSNumberFormatterSpellOutStyle           NSNumberFormatterStyle = 5
	NSNumberFormatterOrdinalStyle            NSNumberFormatterStyle = 6
	NSNumberFormatterCurrencyISOCodeStyle    NSNumberFormatterStyle = 8
	NSNumberFormatterCurrencyPluralStyle     NSNumberFormatterStyle = 9
	NSNumberFormatterCurrencyAccountingStyle NSNumberFormatterStyle = 10
)

func (NSNumberFormatterStyle) String

func (e NSNumberFormatterStyle) String() string

type NSObject

type NSObject struct {
	// contains filtered or unexported fields
}

Apple documentation: https://developer.apple.com/documentation/foundation/nsobject

func NSObjectAlloc

func NSObjectAlloc() *NSObject

func NSObjectAllocWithZone

func NSObjectAllocWithZone(zone unsafe.Pointer) *NSObject

func NSObjectFromID

func NSObjectFromID(id objc.ID) *NSObject

func NSObjectNew

func NSObjectNew() *NSObject

func NXReadNSObjectFromCoder deprecated

func NXReadNSObjectFromCoder(decoder *NSCoder) *NSObject

Deprecated: Not supported

func (*NSObject) AddObserverForKeyPathOptionsContext

func (o *NSObject) AddObserverForKeyPathOptionsContext(observer *NSObject, keyPath *NSString, options NSKeyValueObservingOptions, context_ unsafe.Pointer)

func (*NSObject) AttemptRecoveryFromErrorOptionIndex

func (o *NSObject) AttemptRecoveryFromErrorOptionIndex(error_ unsafe.Pointer, recoveryOptionIndex uint) bool

func (*NSObject) AttemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo

func (o *NSObject) AttemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo(error_ unsafe.Pointer, recoveryOptionIndex uint, delegate objc.ID, didRecoverSelector objc.SEL, contextInfo unsafe.Pointer)

func (*NSObject) AttributeKeys

func (o *NSObject) AttributeKeys() *NSArray[*NSString]

func (*NSObject) AutoContentAccessingProxy

func (o *NSObject) AutoContentAccessingProxy() objc.ID

func (*NSObject) AwakeAfterUsingCoder

func (o *NSObject) AwakeAfterUsingCoder(coder *NSCoder) objc.ID

func (*NSObject) ClassCode

func (o *NSObject) ClassCode() uint

func (*NSObject) ClassDescription

func (o *NSObject) ClassDescription() *NSClassDescription

func (*NSObject) ClassForArchiver

func (o *NSObject) ClassForArchiver() objc.Class

func (*NSObject) ClassForCoder

func (o *NSObject) ClassForCoder() objc.Class

func (*NSObject) ClassForKeyedArchiver

func (o *NSObject) ClassForKeyedArchiver() objc.Class

func (*NSObject) ClassForPortCoder deprecated

func (o *NSObject) ClassForPortCoder() objc.Class

Deprecated: Use NSXPCConnection instead

func (*NSObject) ClassName

func (o *NSObject) ClassName() *NSString

func (*NSObject) CoerceValueForKey

func (o *NSObject) CoerceValueForKey(value objc.ID, key *NSString) objc.ID

func (*NSObject) Copy

func (o *NSObject) Copy() objc.ID

func (*NSObject) CopyScriptingValueForKeyWithProperties

func (o *NSObject) CopyScriptingValueForKeyWithProperties(value objc.ID, key *NSString, properties *NSDictionary[*NSString, objc.ID]) objc.ID

func (*NSObject) Dealloc

func (o *NSObject) Dealloc()

func (*NSObject) DictionaryWithValuesForKeys

func (o *NSObject) DictionaryWithValuesForKeys(keys *NSArray[*NSString]) *NSDictionary[*NSString, objc.ID]

func (*NSObject) DidChangeValueForKey

func (o *NSObject) DidChangeValueForKey(key *NSString)

func (*NSObject) DidChangeValueForKeyWithSetMutationUsingObjects

func (o *NSObject) DidChangeValueForKeyWithSetMutationUsingObjects(key *NSString, mutationKind NSKeyValueSetMutationKind, objects *NSSet[objc.ID])

func (*NSObject) DidChangeValuesAtIndexesForKey

func (o *NSObject) DidChangeValuesAtIndexesForKey(changeKind NSKeyValueChange, indexes *NSIndexSet, key *NSString)

func (*NSObject) DoesContain

func (o *NSObject) DoesContain(object objc.ID) bool

func (*NSObject) DoesNotRecognizeSelector

func (o *NSObject) DoesNotRecognizeSelector(aSelector objc.SEL)

func (*NSObject) FileManagerShouldProceedAfterError deprecated

func (o *NSObject) FileManagerShouldProceedAfterError(fm *NSFileManager, errorInfo *NSDictionary[objc.ID, objc.ID]) bool

Deprecated: Handler API no longer supported

func (*NSObject) FileManagerWillProcessPath deprecated

func (o *NSObject) FileManagerWillProcessPath(fm *NSFileManager, path *NSString)

Deprecated: Handler API no longer supported

func (*NSObject) Finalize

func (o *NSObject) Finalize()

func (*NSObject) ForwardInvocation

func (o *NSObject) ForwardInvocation(anInvocation *NSInvocation)

func (*NSObject) ForwardingTargetForSelector

func (o *NSObject) ForwardingTargetForSelector(aSelector objc.SEL) objc.ID

func (*NSObject) HandleQueryWithUnboundKey deprecated

func (o *NSObject) HandleQueryWithUnboundKey(key *NSString) objc.ID

Deprecated: Legacy KVC API

func (*NSObject) HandleTakeValueForUnboundKey deprecated

func (o *NSObject) HandleTakeValueForUnboundKey(value objc.ID, key *NSString)

Deprecated: Legacy KVC API

func (*NSObject) IndicesOfObjectsByEvaluatingObjectSpecifier

func (o *NSObject) IndicesOfObjectsByEvaluatingObjectSpecifier(specifier *NSScriptObjectSpecifier) *NSArray[*NSNumber]

func (*NSObject) Init

func (o *NSObject) Init() *NSObject

func (*NSObject) InitPtr

func (o *NSObject) InitPtr(id objc.ID)

func (*NSObject) InsertValueAtIndexInPropertyWithKey

func (o *NSObject) InsertValueAtIndexInPropertyWithKey(value objc.ID, index uint, key *NSString)

func (*NSObject) InsertValueInPropertyWithKey

func (o *NSObject) InsertValueInPropertyWithKey(value objc.ID, key *NSString)

func (*NSObject) InverseForRelationshipKey

func (o *NSObject) InverseForRelationshipKey(relationshipKey *NSString) *NSString

func (*NSObject) IsCaseInsensitiveLike

func (o *NSObject) IsCaseInsensitiveLike(object *NSString) bool

func (*NSObject) IsEqualTo

func (o *NSObject) IsEqualTo(object objc.ID) bool

func (*NSObject) IsGreaterThan

func (o *NSObject) IsGreaterThan(object objc.ID) bool

func (*NSObject) IsGreaterThanOrEqualTo

func (o *NSObject) IsGreaterThanOrEqualTo(object objc.ID) bool

func (*NSObject) IsLessThan

func (o *NSObject) IsLessThan(object objc.ID) bool

func (*NSObject) IsLessThanOrEqualTo

func (o *NSObject) IsLessThanOrEqualTo(object objc.ID) bool

func (*NSObject) IsLike

func (o *NSObject) IsLike(object *NSString) bool

func (*NSObject) IsNotEqualTo

func (o *NSObject) IsNotEqualTo(object objc.ID) bool

func (*NSObject) MethodForSelector

func (o *NSObject) MethodForSelector(aSelector objc.SEL) unsafe.Pointer

func (*NSObject) MethodSignatureForSelector

func (o *NSObject) MethodSignatureForSelector(aSelector objc.SEL) *NSMethodSignature

func (*NSObject) MutableArrayValueForKey

func (o *NSObject) MutableArrayValueForKey(key *NSString) *NSMutableArray[objc.ID]

func (*NSObject) MutableArrayValueForKeyPath

func (o *NSObject) MutableArrayValueForKeyPath(keyPath *NSString) *NSMutableArray[objc.ID]

func (*NSObject) MutableCopy

func (o *NSObject) MutableCopy() objc.ID

func (*NSObject) MutableOrderedSetValueForKey

func (o *NSObject) MutableOrderedSetValueForKey(key *NSString) *NSMutableOrderedSet[objc.ID]

func (*NSObject) MutableOrderedSetValueForKeyPath

func (o *NSObject) MutableOrderedSetValueForKeyPath(keyPath *NSString) *NSMutableOrderedSet[objc.ID]

func (*NSObject) MutableSetValueForKey

func (o *NSObject) MutableSetValueForKey(key *NSString) *NSMutableSet[objc.ID]

func (*NSObject) MutableSetValueForKeyPath

func (o *NSObject) MutableSetValueForKeyPath(keyPath *NSString) *NSMutableSet[objc.ID]

func (*NSObject) NewScriptingObjectOfClassForValueForKeyWithContentsValueProperties

func (o *NSObject) NewScriptingObjectOfClassForValueForKeyWithContentsValueProperties(objectClass objc.Class, key *NSString, contentsValue objc.ID, properties *NSDictionary[*NSString, objc.ID]) objc.ID

func (*NSObject) ObjectSpecifier

func (o *NSObject) ObjectSpecifier() *NSScriptObjectSpecifier

func (*NSObject) ObservationInfo

func (o *NSObject) ObservationInfo() unsafe.Pointer

func (*NSObject) ObserveValueForKeyPathOfObjectChangeContext

func (o *NSObject) ObserveValueForKeyPathOfObjectChangeContext(keyPath *NSString, object objc.ID, change *NSDictionary[*NSString, objc.ID], context_ unsafe.Pointer)

func (*NSObject) PerformSelectorInBackgroundWithObject

func (o *NSObject) PerformSelectorInBackgroundWithObject(aSelector objc.SEL, arg objc.ID)

func (*NSObject) PerformSelectorOnMainThreadWithObjectWaitUntilDone

func (o *NSObject) PerformSelectorOnMainThreadWithObjectWaitUntilDone(aSelector objc.SEL, arg objc.ID, wait bool)

func (*NSObject) PerformSelectorOnMainThreadWithObjectWaitUntilDoneModes deprecated

func (o *NSObject) PerformSelectorOnMainThreadWithObjectWaitUntilDoneModes(aSelector objc.SEL, arg objc.ID, wait bool, array *NSArray[*NSString])

Deprecated: This notification does not protect against data races

func (*NSObject) PerformSelectorOnThreadWithObjectWaitUntilDone

func (o *NSObject) PerformSelectorOnThreadWithObjectWaitUntilDone(aSelector objc.SEL, thr *NSThread, arg objc.ID, wait bool)

func (*NSObject) PerformSelectorOnThreadWithObjectWaitUntilDoneModes

func (o *NSObject) PerformSelectorOnThreadWithObjectWaitUntilDoneModes(aSelector objc.SEL, thr *NSThread, arg objc.ID, wait bool, array *NSArray[*NSString])

func (*NSObject) PerformSelectorWithObjectAfterDelay

func (o *NSObject) PerformSelectorWithObjectAfterDelay(aSelector objc.SEL, anArgument objc.ID, delay float64)

func (*NSObject) PerformSelectorWithObjectAfterDelayInModes

func (o *NSObject) PerformSelectorWithObjectAfterDelayInModes(aSelector objc.SEL, anArgument objc.ID, delay float64, modes *NSArray[*NSString])

func (*NSObject) Ptr

func (o *NSObject) Ptr() objc.ID

func (*NSObject) RemoveObserverForKeyPath

func (o *NSObject) RemoveObserverForKeyPath(observer *NSObject, keyPath *NSString)

func (*NSObject) RemoveObserverForKeyPathContext

func (o *NSObject) RemoveObserverForKeyPathContext(observer *NSObject, keyPath *NSString, context_ unsafe.Pointer)

func (*NSObject) RemoveValueAtIndexFromPropertyWithKey

func (o *NSObject) RemoveValueAtIndexFromPropertyWithKey(index uint, key *NSString)

func (*NSObject) ReplaceValueAtIndexInPropertyWithKeyWithValue

func (o *NSObject) ReplaceValueAtIndexInPropertyWithKeyWithValue(index uint, key *NSString, value objc.ID)

func (*NSObject) ReplacementObjectForArchiver deprecated

func (o *NSObject) ReplacementObjectForArchiver(archiver *NSArchiver) objc.ID

Deprecated: since macOS 10.13.

func (*NSObject) ReplacementObjectForCoder

func (o *NSObject) ReplacementObjectForCoder(coder *NSCoder) objc.ID

func (*NSObject) ReplacementObjectForKeyedArchiver

func (o *NSObject) ReplacementObjectForKeyedArchiver(archiver *NSKeyedArchiver) objc.ID

func (*NSObject) ReplacementObjectForPortCoder deprecated

func (o *NSObject) ReplacementObjectForPortCoder(coder *NSPortCoder) objc.ID

Deprecated: Use NSXPCConnection instead

func (*NSObject) ScriptingBeginsWith

func (o *NSObject) ScriptingBeginsWith(object objc.ID) bool

func (*NSObject) ScriptingContains

func (o *NSObject) ScriptingContains(object objc.ID) bool

func (*NSObject) ScriptingEndsWith

func (o *NSObject) ScriptingEndsWith(object objc.ID) bool

func (*NSObject) ScriptingIsEqualTo

func (o *NSObject) ScriptingIsEqualTo(object objc.ID) bool

func (*NSObject) ScriptingIsGreaterThan

func (o *NSObject) ScriptingIsGreaterThan(object objc.ID) bool

func (*NSObject) ScriptingIsGreaterThanOrEqualTo

func (o *NSObject) ScriptingIsGreaterThanOrEqualTo(object objc.ID) bool

func (*NSObject) ScriptingIsLessThan

func (o *NSObject) ScriptingIsLessThan(object objc.ID) bool

func (*NSObject) ScriptingIsLessThanOrEqualTo

func (o *NSObject) ScriptingIsLessThanOrEqualTo(object objc.ID) bool

func (*NSObject) ScriptingProperties

func (o *NSObject) ScriptingProperties() *NSDictionary[*NSString, objc.ID]

func (*NSObject) ScriptingValueForSpecifier

func (o *NSObject) ScriptingValueForSpecifier(objectSpecifier *NSScriptObjectSpecifier) objc.ID

func (*NSObject) SetNilValueForKey

func (o *NSObject) SetNilValueForKey(key *NSString)

func (*NSObject) SetObservationInfo

func (o *NSObject) SetObservationInfo(observationInfo unsafe.Pointer)

func (*NSObject) SetScriptingProperties

func (o *NSObject) SetScriptingProperties(scriptingProperties *NSDictionary[*NSString, objc.ID])

func (*NSObject) SetSharedObservers

func (o *NSObject) SetSharedObservers(sharedObservers *NSKeyValueSharedObserversSnapshot)

Register shared observations. A shared observation collection might be shared between multiple observables to minimise registration work. Shared observers remain registered throughout the object's lifetime and do not need to be removed using `removeObserver:`. An observable may only have one set of shared observations. Subsequent calls to this method will replace existing shared observations. - Parameter sharedObservers: shared observer collection that was initialized with the class of this object - Invariant: `sharedObserers` was initialized with the class of this object - Throws: Exception if the class of the receiving observable object does not match the class with which `sharedObserers` was initialized.

func (*NSObject) SetValueForKey

func (o *NSObject) SetValueForKey(value objc.ID, key *NSString)

func (*NSObject) SetValueForKeyPath

func (o *NSObject) SetValueForKeyPath(value objc.ID, keyPath *NSString)

func (*NSObject) SetValueForUndefinedKey

func (o *NSObject) SetValueForUndefinedKey(value objc.ID, key *NSString)

func (*NSObject) SetValuesForKeysWithDictionary

func (o *NSObject) SetValuesForKeysWithDictionary(keyedValues *NSDictionary[*NSString, objc.ID])

func (*NSObject) StoredValueForKey deprecated

func (o *NSObject) StoredValueForKey(key *NSString) objc.ID

Deprecated: Legacy KVC API

func (*NSObject) TakeStoredValueForKey deprecated

func (o *NSObject) TakeStoredValueForKey(value objc.ID, key *NSString)

Deprecated: Legacy KVC API

func (*NSObject) TakeValueForKey deprecated

func (o *NSObject) TakeValueForKey(value objc.ID, key *NSString)

Deprecated: Legacy KVC API

func (*NSObject) TakeValueForKeyPath deprecated

func (o *NSObject) TakeValueForKeyPath(value objc.ID, keyPath *NSString)

Deprecated: Legacy KVC API

func (*NSObject) TakeValuesFromDictionary deprecated

func (o *NSObject) TakeValuesFromDictionary(properties *NSDictionary[objc.ID, objc.ID])

Deprecated: Legacy KVC API

func (*NSObject) ToManyRelationshipKeys

func (o *NSObject) ToManyRelationshipKeys() *NSArray[*NSString]

func (*NSObject) ToOneRelationshipKeys

func (o *NSObject) ToOneRelationshipKeys() *NSArray[*NSString]

func (*NSObject) URLResourceDataDidBecomeAvailable deprecated

func (o *NSObject) URLResourceDataDidBecomeAvailable(sender *NSURL, newBytes *NSData)

Deprecated: Use NSURLConnection instead

func (*NSObject) URLResourceDidCancelLoading deprecated

func (o *NSObject) URLResourceDidCancelLoading(sender *NSURL)

Deprecated: Use NSURLConnection instead

func (*NSObject) URLResourceDidFailLoadingWithReason deprecated

func (o *NSObject) URLResourceDidFailLoadingWithReason(sender *NSURL, reason *NSString)

Deprecated: Use NSURLConnection instead

func (*NSObject) URLResourceDidFinishLoading deprecated

func (o *NSObject) URLResourceDidFinishLoading(sender *NSURL)

Deprecated: Use NSURLConnection instead

func (*NSObject) UnableToSetNilForKey deprecated

func (o *NSObject) UnableToSetNilForKey(key *NSString)

Deprecated: Legacy KVC API

func (*NSObject) ValidateValueForKeyError

func (o *NSObject) ValidateValueForKeyError(ioValue **ObjcObject, inKey *NSString) (bool, error)

func (*NSObject) ValidateValueForKeyPathError

func (o *NSObject) ValidateValueForKeyPathError(ioValue **ObjcObject, inKeyPath *NSString) (bool, error)

func (*NSObject) ValueAtIndexInPropertyWithKey

func (o *NSObject) ValueAtIndexInPropertyWithKey(index uint, key *NSString) objc.ID

func (*NSObject) ValueForKey

func (o *NSObject) ValueForKey(key *NSString) objc.ID

func (*NSObject) ValueForKeyPath

func (o *NSObject) ValueForKeyPath(keyPath *NSString) objc.ID

func (*NSObject) ValueForUndefinedKey

func (o *NSObject) ValueForUndefinedKey(key *NSString) objc.ID

func (*NSObject) ValueWithNameInPropertyWithKey

func (o *NSObject) ValueWithNameInPropertyWithKey(name *NSString, key *NSString) objc.ID

func (*NSObject) ValueWithUniqueIDInPropertyWithKey

func (o *NSObject) ValueWithUniqueIDInPropertyWithKey(uniqueID objc.ID, key *NSString) objc.ID

func (*NSObject) ValuesForKeys deprecated

func (o *NSObject) ValuesForKeys(keys *NSArray[objc.ID]) *NSDictionary[objc.ID, objc.ID]

Deprecated: Legacy KVC API

func (*NSObject) WillChangeValueForKey

func (o *NSObject) WillChangeValueForKey(key *NSString)

func (*NSObject) WillChangeValueForKeyWithSetMutationUsingObjects

func (o *NSObject) WillChangeValueForKeyWithSetMutationUsingObjects(key *NSString, mutationKind NSKeyValueSetMutationKind, objects *NSSet[objc.ID])

func (*NSObject) WillChangeValuesAtIndexesForKey

func (o *NSObject) WillChangeValuesAtIndexesForKey(changeKind NSKeyValueChange, indexes *NSIndexSet, key *NSString)

type NSObjectProtocol

type NSObjectProtocol interface {
	IsEqual(object objc.ID) bool
	Class() objc.Class
	Self() unsafe.Pointer
	PerformSelector(aSelector objc.SEL) objc.ID
	PerformSelectorWithObject(aSelector objc.SEL, object objc.ID) objc.ID
	PerformSelectorWithObjectWithObject(aSelector objc.SEL, object1 objc.ID, object2 objc.ID) objc.ID
	IsProxy() bool
	IsKindOfClass(aClass objc.Class) bool
	IsMemberOfClass(aClass objc.Class) bool
	ConformsToProtocol(aProtocol unsafe.Pointer) bool
	RespondsToSelector(aSelector objc.SEL) bool
	Retain() unsafe.Pointer
	Release()
	Autorelease() unsafe.Pointer
	RetainCount() uint
	Zone() unsafe.Pointer
	Hash() uint
	Superclass() objc.Class
	Description() *NSString
}

NSObjectProtocol wraps the ObjC protocol NSObject.

type NSOperatingSystemVersion

type NSOperatingSystemVersion struct {
	MajorVersion int
	MinorVersion int
	PatchVersion int
}

A structure that contains version information about the currently executing operating system, including major, minor, and patch version numbers. Deprecated: Not supported

type NSOperation

type NSOperation struct {
	NSObject
}

An abstract class that represents the code and data associated with a single task.

Apple documentation: https://developer.apple.com/documentation/foundation/nsoperation

func NSOperationFromID

func NSOperationFromID(id objc.ID) *NSOperation

func (*NSOperation) AddDependency

func (o *NSOperation) AddDependency(op *NSOperation)

func (*NSOperation) Cancel

func (o *NSOperation) Cancel()

func (*NSOperation) CompletionBlock

func (o *NSOperation) CompletionBlock() objc.Block

func (*NSOperation) Dependencies

func (o *NSOperation) Dependencies() *NSArray[*NSOperation]

func (*NSOperation) IsAsynchronous

func (o *NSOperation) IsAsynchronous() bool

func (*NSOperation) IsCancelled

func (o *NSOperation) IsCancelled() bool

func (*NSOperation) IsConcurrent

func (o *NSOperation) IsConcurrent() bool

func (*NSOperation) IsExecuting

func (o *NSOperation) IsExecuting() bool

func (*NSOperation) IsFinished

func (o *NSOperation) IsFinished() bool

func (*NSOperation) IsReady

func (o *NSOperation) IsReady() bool

func (*NSOperation) Main

func (o *NSOperation) Main()

func (*NSOperation) Name

func (o *NSOperation) Name() *NSString

func (*NSOperation) QualityOfService

func (o *NSOperation) QualityOfService() NSQualityOfService

func (*NSOperation) QueuePriority

func (o *NSOperation) QueuePriority() NSOperationQueuePriority

func (*NSOperation) RemoveDependency

func (o *NSOperation) RemoveDependency(op *NSOperation)

func (*NSOperation) SetCompletionBlock

func (o *NSOperation) SetCompletionBlock(completionBlock func())

func (*NSOperation) SetName

func (o *NSOperation) SetName(name *NSString)

func (*NSOperation) SetQualityOfService

func (o *NSOperation) SetQualityOfService(qualityOfService NSQualityOfService)

func (*NSOperation) SetQueuePriority

func (o *NSOperation) SetQueuePriority(queuePriority NSOperationQueuePriority)

func (*NSOperation) SetThreadPriority deprecated

func (o *NSOperation) SetThreadPriority(threadPriority float64)

Deprecated: Not supported

func (*NSOperation) Start

func (o *NSOperation) Start()

func (*NSOperation) ThreadPriority deprecated

func (o *NSOperation) ThreadPriority() float64

Deprecated: Not supported

func (*NSOperation) WaitUntilFinished

func (o *NSOperation) WaitUntilFinished()

type NSOperationQueue

type NSOperationQueue struct {
	NSObject
}

A queue that regulates the execution of operations.

Apple documentation: https://developer.apple.com/documentation/foundation/nsoperationqueue

func NSOperationQueueCurrentQueue

func NSOperationQueueCurrentQueue() *NSOperationQueue

func NSOperationQueueFromID

func NSOperationQueueFromID(id objc.ID) *NSOperationQueue

func NSOperationQueueMainQueue

func NSOperationQueueMainQueue() *NSOperationQueue

func (*NSOperationQueue) AddBarrierBlock

func (o *NSOperationQueue) AddBarrierBlock(barrier func())

@method addBarrierBlock: @param barrier A block to execute @discussion The `addBarrierBlock:` method executes the block when the NSOperationQueue has finished all enqueued operations and prevents any subsequent operations to be executed until the barrier has been completed. This acts similarly to the `dispatch_barrier_async` function.

func (*NSOperationQueue) AddOperation

func (o *NSOperationQueue) AddOperation(op *NSOperation)

func (*NSOperationQueue) AddOperationWith

func (o *NSOperationQueue) AddOperationWith(block func())

func (*NSOperationQueue) AddOperationsWaitUntilFinished

func (o *NSOperationQueue) AddOperationsWaitUntilFinished(ops *NSArray[*NSOperation], wait bool)

func (*NSOperationQueue) CancelAllOperations

func (o *NSOperationQueue) CancelAllOperations()

func (*NSOperationQueue) IsSuspended

func (o *NSOperationQueue) IsSuspended() bool

func (*NSOperationQueue) MaxConcurrentOperationCount

func (o *NSOperationQueue) MaxConcurrentOperationCount() int

func (*NSOperationQueue) Name

func (o *NSOperationQueue) Name() *NSString

func (*NSOperationQueue) OperationCount deprecated

func (o *NSOperationQueue) OperationCount() uint

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSOperationQueue) Operations deprecated

func (o *NSOperationQueue) Operations() *NSArray[*NSOperation]

Deprecated: access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead

func (*NSOperationQueue) Progress

func (o *NSOperationQueue) Progress() *NSProgress

@property progress @discussion The `progress` property represents a total progress of the operations executed in the queue. By default NSOperationQueue does not report progress until the `totalUnitCount` of the progress is set. When the `totalUnitCount` property of the progress is set the queue then opts into participating in progress reporting. When enabled, each operation will contribute 1 unit of completion to the overall progress of the queue for operations that are finished by the end of main (operations that override start and do not invoke super will not contribute to progress). Special attention to race conditions should be made when updating the `totalUnitCount` of the progress as well as care should be taken to avoid 'backwards progress'. For example; when a NSOperationQueue's progress is 5/10, representing 50% completed, and there are 90 more operations about to be added and the `totalUnitCount` that would then make the progress report as 5/100 which represents 5%. In this example it would mean that any progress bar would jump from displaying 50% back to 5%, which might not be desirable. In the cases where the `totalUnitCount` needs to be adjusted it is suggested to do this for thread-safety in a barrier by using the `addBarrierBlock:` API. This ensures that no un-expected execution state occurs adjusting into a potentially backwards moving progress scenario. @example NSOperationQueue *queue = [[NSOperationQueue alloc] init]; queue.progress.totalUnitCount = 10;

func (*NSOperationQueue) QualityOfService

func (o *NSOperationQueue) QualityOfService() NSQualityOfService

func (*NSOperationQueue) SetMaxConcurrentOperationCount

func (o *NSOperationQueue) SetMaxConcurrentOperationCount(maxConcurrentOperationCount int)

func (*NSOperationQueue) SetName

func (o *NSOperationQueue) SetName(name *NSString)

func (*NSOperationQueue) SetQualityOfService

func (o *NSOperationQueue) SetQualityOfService(qualityOfService NSQualityOfService)

func (*NSOperationQueue) SetSuspended

func (o *NSOperationQueue) SetSuspended(suspended bool)

func (*NSOperationQueue) SetUnderlyingQueue

func (o *NSOperationQueue) SetUnderlyingQueue(underlyingQueue *NSObject)

func (*NSOperationQueue) UnderlyingQueue

func (o *NSOperationQueue) UnderlyingQueue() *NSObject

func (*NSOperationQueue) WaitUntilAllOperationsAreFinished

func (o *NSOperationQueue) WaitUntilAllOperationsAreFinished()

type NSOperationQueuePriority

type NSOperationQueuePriority int64

These constants let you prioritize the order in which operations execute.

const (
	NSOperationQueuePriorityVeryLow  NSOperationQueuePriority = -8
	NSOperationQueuePriorityLow      NSOperationQueuePriority = -4
	NSOperationQueuePriorityNormal   NSOperationQueuePriority = 0
	NSOperationQueuePriorityHigh     NSOperationQueuePriority = 4
	NSOperationQueuePriorityVeryHigh NSOperationQueuePriority = 8
)

func (NSOperationQueuePriority) String

func (e NSOperationQueuePriority) String() string

type NSOrderedCollectionChange

type NSOrderedCollectionChange[ObjectType purego.AnyObject] struct {
	NSObject
}

An object that represents an indexed change within an ordered collection.

Apple documentation: https://developer.apple.com/documentation/foundation/nsorderedcollectionchange

func NSOrderedCollectionChangeChangeWithObjectTypeIndex

func NSOrderedCollectionChangeChangeWithObjectTypeIndex(anObject objc.ID, type_ NSCollectionChangeType, index uint) *NSOrderedCollectionChange[objc.ID]

Creates an change object that represents inserting or removing an object from an ordered collection at a specific index.

func NSOrderedCollectionChangeChangeWithObjectTypeIndexAssociatedIndex

func NSOrderedCollectionChangeChangeWithObjectTypeIndexAssociatedIndex(anObject objc.ID, type_ NSCollectionChangeType, index uint, associatedIndex uint) *NSOrderedCollectionChange[objc.ID]

Creates an change object that represents inserting or removing an object from an ordered collection at a specific index, matched with an associated location that infers a move within the collection.

func NSOrderedCollectionChangeFromID

func NSOrderedCollectionChangeFromID[ObjectType purego.AnyObject](id objc.ID) *NSOrderedCollectionChange[ObjectType]

func (*NSOrderedCollectionChange[ObjectType]) AssociatedIndex

func (o *NSOrderedCollectionChange[ObjectType]) AssociatedIndex() uint

func (*NSOrderedCollectionChange[ObjectType]) ChangeType

func (o *NSOrderedCollectionChange[ObjectType]) ChangeType() NSCollectionChangeType

func (*NSOrderedCollectionChange[ObjectType]) Index

func (o *NSOrderedCollectionChange[ObjectType]) Index() uint

func (*NSOrderedCollectionChange[ObjectType]) InitWithObjectTypeIndex

func (o *NSOrderedCollectionChange[ObjectType]) InitWithObjectTypeIndex(anObject ObjectType, type_ NSCollectionChangeType, index uint) *NSOrderedCollectionChange[ObjectType]

Creates a change object that represents inserting or removing an object from an ordered collection at a specific index.

func (*NSOrderedCollectionChange[ObjectType]) InitWithObjectTypeIndexAssociatedIndex

func (o *NSOrderedCollectionChange[ObjectType]) InitWithObjectTypeIndexAssociatedIndex(anObject ObjectType, type_ NSCollectionChangeType, index uint, associatedIndex uint) *NSOrderedCollectionChange[ObjectType]

Creates a change object that represents inserting, removing, or moving an object from an ordered collection at a specific index.

func (*NSOrderedCollectionChange[ObjectType]) Object

func (o *NSOrderedCollectionChange[ObjectType]) Object() ObjectType

type NSOrderedCollectionDifference

type NSOrderedCollectionDifference[ObjectType purego.AnyObject] struct {
	NSObject
}

An object representing the difference between two ordered collections.

Apple documentation: https://developer.apple.com/documentation/foundation/nsorderedcollectiondifference

func NSOrderedCollectionDifferenceFromID

func NSOrderedCollectionDifferenceFromID[ObjectType purego.AnyObject](id objc.ID) *NSOrderedCollectionDifference[ObjectType]

func (*NSOrderedCollectionDifference[ObjectType]) DifferenceByTransformingChangesWith

func (o *NSOrderedCollectionDifference[ObjectType]) DifferenceByTransformingChangesWith(block objc.Block) *NSOrderedCollectionDifference[objc.ID]

Create a new ordered collection difference by mapping over this difference’s members, processing the change objects with the block provided.

func (*NSOrderedCollectionDifference[ObjectType]) HasChanges

func (o *NSOrderedCollectionDifference[ObjectType]) HasChanges() bool

func (*NSOrderedCollectionDifference[ObjectType]) InitWithChanges

func (o *NSOrderedCollectionDifference[ObjectType]) InitWithChanges(changes *NSArray[objc.ID]) *NSOrderedCollectionDifference[ObjectType]

Creates an ordered collection difference using an array of ordered collection changes.

func (*NSOrderedCollectionDifference[ObjectType]) InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjects

func (o *NSOrderedCollectionDifference[ObjectType]) InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjects(inserts *NSIndexSet, insertedObjects *NSArray[ObjectType], removes *NSIndexSet, removedObjects *NSArray[ObjectType]) *NSOrderedCollectionDifference[ObjectType]

Creates an ordered collection difference from arrays of inserted and removed objects with corresponding sets of indices.

func (*NSOrderedCollectionDifference[ObjectType]) InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjectsAdditionalChanges

func (o *NSOrderedCollectionDifference[ObjectType]) InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjectsAdditionalChanges(inserts *NSIndexSet, insertedObjects *NSArray[ObjectType], removes *NSIndexSet, removedObjects *NSArray[ObjectType], changes *NSArray[objc.ID]) *NSOrderedCollectionDifference[ObjectType]

Creates an ordered collection difference from arrays of inserted and removed objects with corresponding sets of indices, in addition to an array of ordered collection changes.

func (*NSOrderedCollectionDifference[ObjectType]) Insertions

func (o *NSOrderedCollectionDifference[ObjectType]) Insertions() *NSArray[objc.ID]

func (*NSOrderedCollectionDifference[ObjectType]) InverseDifference

func (o *NSOrderedCollectionDifference[ObjectType]) InverseDifference() *NSOrderedCollectionDifference[ObjectType]

Calculate the difference between two objects in the reverse direction of comparison.

func (*NSOrderedCollectionDifference[ObjectType]) Removals

func (o *NSOrderedCollectionDifference[ObjectType]) Removals() *NSArray[objc.ID]

type NSOrderedCollectionDifferenceCalculationOptions

type NSOrderedCollectionDifferenceCalculationOptions uint64

Constants that specify the options to use when creating an ordered collection difference.

const (
	// An option that indicates that the difference should omit references to the insertions.
	NSOrderedCollectionDifferenceCalculationOmitInsertedObjects NSOrderedCollectionDifferenceCalculationOptions = 1
	// An option that indicates that the difference should omit references to the removals.
	NSOrderedCollectionDifferenceCalculationOmitRemovedObjects NSOrderedCollectionDifferenceCalculationOptions = 2
	// An option that identifies insertions or removals as moves.
	NSOrderedCollectionDifferenceCalculationInferMoves NSOrderedCollectionDifferenceCalculationOptions = 4
)

func (NSOrderedCollectionDifferenceCalculationOptions) String

type NSOrderedSet

type NSOrderedSet[ObjectType purego.AnyObject] struct {
	NSObject
}

A static, ordered collection of unique objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nsorderedset

func NSOrderedSetFromID

func NSOrderedSetFromID[ObjectType purego.AnyObject](id objc.ID) *NSOrderedSet[ObjectType]

func NSOrderedSetOrderedSet

func NSOrderedSetOrderedSet() *NSOrderedSet[objc.ID]

Creates and returns an empty ordered set

func NSOrderedSetOrderedSetWithArray

func NSOrderedSetOrderedSetWithArray(array *NSArray[objc.ID]) *NSOrderedSet[objc.ID]

Creates and returns a set containing a uniqued collection of the objects contained in a given array.

func NSOrderedSetOrderedSetWithArrayRangeCopyItems

func NSOrderedSetOrderedSetWithArrayRangeCopyItems(array *NSArray[objc.ID], range_ NSRange, flag bool) *NSOrderedSet[objc.ID]

Creates and returns a new ordered set for a specified range of objects in an array.

func NSOrderedSetOrderedSetWithObject

func NSOrderedSetOrderedSetWithObject(object objc.ID) *NSOrderedSet[objc.ID]

Creates and returns a ordered set that contains a single given object.

func NSOrderedSetOrderedSetWithObjectsCount

func NSOrderedSetOrderedSetWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSOrderedSet[objc.ID]

Creates and returns a set containing a specified number of objects from a given C array of objects.

func NSOrderedSetOrderedSetWithOrderedSet

func NSOrderedSetOrderedSetWithOrderedSet(set *NSOrderedSet[objc.ID]) *NSOrderedSet[objc.ID]

Creates and returns an ordered set containing the objects from another ordered set.

func NSOrderedSetOrderedSetWithOrderedSetRangeCopyItems

func NSOrderedSetOrderedSetWithOrderedSetRangeCopyItems(set *NSOrderedSet[objc.ID], range_ NSRange, flag bool) *NSOrderedSet[objc.ID]

Creates and returns a new ordered set for a specified range of objects in an ordered set.

func NSOrderedSetOrderedSetWithSet

func NSOrderedSetOrderedSetWithSet(set *NSSet[objc.ID]) *NSOrderedSet[objc.ID]

Creates and returns an ordered set with the contents of a set.

func NSOrderedSetOrderedSetWithSetCopyItems

func NSOrderedSetOrderedSetWithSetCopyItems(set *NSSet[objc.ID], flag bool) *NSOrderedSet[objc.ID]

Creates and returns an ordered set with the contents of a set, optionally copying the items.

func (*NSOrderedSet[ObjectType]) Array

func (o *NSOrderedSet[ObjectType]) Array() *NSArray[ObjectType]

func (*NSOrderedSet[ObjectType]) ContainsObject

func (o *NSOrderedSet[ObjectType]) ContainsObject(object ObjectType) bool

Returns a Boolean value that indicates whether a given object is present in the ordered set.

func (*NSOrderedSet[ObjectType]) Count

func (o *NSOrderedSet[ObjectType]) Count() uint

func (*NSOrderedSet[ObjectType]) DescriptionWithLocale

func (o *NSOrderedSet[ObjectType]) DescriptionWithLocale(locale objc.ID) *NSString

Returns a string that represents the contents of the ordered set, formatted as a property list.

func (*NSOrderedSet[ObjectType]) DescriptionWithLocaleIndent

func (o *NSOrderedSet[ObjectType]) DescriptionWithLocaleIndent(locale objc.ID, level uint) *NSString

Returns a string that represents the contents of the ordered set, formatted as a property list.

func (*NSOrderedSet[ObjectType]) DifferenceFromOrderedSet

func (o *NSOrderedSet[ObjectType]) DifferenceFromOrderedSet(other *NSOrderedSet[ObjectType]) *NSOrderedCollectionDifference[ObjectType]

Compares two ordered sets to create a difference object that represents the changes between them.

func (*NSOrderedSet[ObjectType]) DifferenceFromOrderedSetWithOptions

func (o *NSOrderedSet[ObjectType]) DifferenceFromOrderedSetWithOptions(other *NSOrderedSet[ObjectType], options NSOrderedCollectionDifferenceCalculationOptions) *NSOrderedCollectionDifference[ObjectType]

Compares two ordered sets, with options, to create a difference object that represents the changes between them.

func (*NSOrderedSet[ObjectType]) DifferenceFromOrderedSetWithOptionsUsingEquivalenceTest

func (o *NSOrderedSet[ObjectType]) DifferenceFromOrderedSetWithOptionsUsingEquivalenceTest(other *NSOrderedSet[ObjectType], options NSOrderedCollectionDifferenceCalculationOptions, block objc.Block) *NSOrderedCollectionDifference[ObjectType]

Compares two ordered sets, using the provided block and with options, to create a difference object that represents the changes between them.

func (*NSOrderedSet[ObjectType]) EnumerateObjectsAtIndexesOptionsUsing

func (o *NSOrderedSet[ObjectType]) EnumerateObjectsAtIndexesOptionsUsing(s *NSIndexSet, opts NSEnumerationOptions, block objc.Block)

Executes a given block using the objects in the ordered set at the specified indexes.

func (*NSOrderedSet[ObjectType]) EnumerateObjectsUsing

func (o *NSOrderedSet[ObjectType]) EnumerateObjectsUsing(block objc.Block)

Executes a given block using each object in the ordered set.

func (*NSOrderedSet[ObjectType]) EnumerateObjectsWithOptionsUsing

func (o *NSOrderedSet[ObjectType]) EnumerateObjectsWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)

Executes a given block using each object in the set, using the specified enumeration options.

func (*NSOrderedSet[ObjectType]) FilteredOrderedSetUsingPredicate

func (o *NSOrderedSet[ObjectType]) FilteredOrderedSetUsingPredicate(p *NSPredicate) *NSOrderedSet[ObjectType]

Evaluates a given predicate against each object in the receiving ordered set and returns a new ordered set containing the objects for which the predicate returns true.

func (*NSOrderedSet[ObjectType]) FirstObject

func (o *NSOrderedSet[ObjectType]) FirstObject() ObjectType

func (*NSOrderedSet[ObjectType]) GetObjectsRange

func (o *NSOrderedSet[ObjectType]) GetObjectsRange(objects unsafe.Pointer, range_ NSRange)

Copies the objects contained in the ordered set that fall within the specified range to objects.

func (*NSOrderedSet[ObjectType]) IndexOfObject

func (o *NSOrderedSet[ObjectType]) IndexOfObject(object ObjectType) uint

Returns the index of the specified object.

func (*NSOrderedSet[ObjectType]) IndexOfObjectAtIndexesOptionsPassingTest

func (o *NSOrderedSet[ObjectType]) IndexOfObjectAtIndexesOptionsPassingTest(s *NSIndexSet, opts NSEnumerationOptions, predicate objc.Block) uint

Returns the index, from a given set of indexes, of the object in the ordered set that passes a test in a given block for a given set of enumeration options.

func (*NSOrderedSet[ObjectType]) IndexOfObjectInSortedRangeOptionsUsingComparator

func (o *NSOrderedSet[ObjectType]) IndexOfObjectInSortedRangeOptionsUsingComparator(object ObjectType, range_ NSRange, opts NSBinarySearchingOptions, cmp func(objc.ID, objc.ID) NSComparisonResult) uint

Returns the index, within a specified range, of an object compared with elements in the ordered set using a given NSComparator block.

func (*NSOrderedSet[ObjectType]) IndexOfObjectPassingTest

func (o *NSOrderedSet[ObjectType]) IndexOfObjectPassingTest(predicate objc.Block) uint

Returns the index of the object in the ordered set that passes a test in a given block.

func (*NSOrderedSet[ObjectType]) IndexOfObjectWithOptionsPassingTest

func (o *NSOrderedSet[ObjectType]) IndexOfObjectWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) uint

Returns the index of an object in the ordered set that passes a test in a given block for a given set of enumeration options.

func (*NSOrderedSet[ObjectType]) IndexesOfObjectsAtIndexesOptionsPassingTest

func (o *NSOrderedSet[ObjectType]) IndexesOfObjectsAtIndexesOptionsPassingTest(s *NSIndexSet, opts NSEnumerationOptions, predicate objc.Block) *NSIndexSet

Returns the index, from a given set of indexes, of the object in the ordered set that passes a test in a given block for a given set of enumeration options.

func (*NSOrderedSet[ObjectType]) IndexesOfObjectsPassingTest

func (o *NSOrderedSet[ObjectType]) IndexesOfObjectsPassingTest(predicate objc.Block) *NSIndexSet

Returns the index of the object in the ordered set that passes a test in a given block.

func (*NSOrderedSet[ObjectType]) IndexesOfObjectsWithOptionsPassingTest

func (o *NSOrderedSet[ObjectType]) IndexesOfObjectsWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSIndexSet

Returns the index of an object in the ordered set that passes a test in a given block for a given set of enumeration options.

func (*NSOrderedSet[ObjectType]) Init

func (o *NSOrderedSet[ObjectType]) Init() *NSOrderedSet[ObjectType]

Initializes a newly allocated ordered set.

func (*NSOrderedSet[ObjectType]) InitWithArray

func (o *NSOrderedSet[ObjectType]) InitWithArray(array *NSArray[ObjectType]) *NSOrderedSet[ObjectType]

Initializes a newly allocated set with the objects that are contained in a given array.

func (*NSOrderedSet[ObjectType]) InitWithArrayCopyItems

func (o *NSOrderedSet[ObjectType]) InitWithArrayCopyItems(set *NSArray[ObjectType], flag bool) *NSOrderedSet[ObjectType]

Initializes a newly allocated set with the objects that are contained in a given array, optionally copying the items.

func (*NSOrderedSet[ObjectType]) InitWithArrayRangeCopyItems

func (o *NSOrderedSet[ObjectType]) InitWithArrayRangeCopyItems(set *NSArray[ObjectType], range_ NSRange, flag bool) *NSOrderedSet[ObjectType]

Initializes a newly allocated set with the objects that are contained in the specified range of an array, optionally copying the items.

func (*NSOrderedSet[ObjectType]) InitWithCoder

func (o *NSOrderedSet[ObjectType]) InitWithCoder(coder *NSCoder) *NSOrderedSet[ObjectType]

func (*NSOrderedSet[ObjectType]) InitWithObject

func (o *NSOrderedSet[ObjectType]) InitWithObject(object ObjectType) *NSOrderedSet[ObjectType]

Initializes a new ordered set with the object.

func (*NSOrderedSet[ObjectType]) InitWithObjectsCount

func (o *NSOrderedSet[ObjectType]) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSOrderedSet[ObjectType]

Initializes a newly allocated set with a specified number of objects from a given C array of objects.

func (*NSOrderedSet[ObjectType]) InitWithOrderedSet

func (o *NSOrderedSet[ObjectType]) InitWithOrderedSet(set *NSOrderedSet[ObjectType]) *NSOrderedSet[ObjectType]

Initializes a new ordered set with the contents of a set.

func (*NSOrderedSet[ObjectType]) InitWithOrderedSetCopyItems

func (o *NSOrderedSet[ObjectType]) InitWithOrderedSetCopyItems(set *NSOrderedSet[ObjectType], flag bool) *NSOrderedSet[ObjectType]

Initializes a new ordered set with the contents of a set, optionally copying the items.

func (*NSOrderedSet[ObjectType]) InitWithOrderedSetRangeCopyItems

func (o *NSOrderedSet[ObjectType]) InitWithOrderedSetRangeCopyItems(set *NSOrderedSet[ObjectType], range_ NSRange, flag bool) *NSOrderedSet[ObjectType]

Initializes a new ordered set with the contents of an ordered set, optionally copying the items.

func (*NSOrderedSet[ObjectType]) InitWithSet

func (o *NSOrderedSet[ObjectType]) InitWithSet(set *NSSet[ObjectType]) *NSOrderedSet[ObjectType]

Initializes a new ordered set with the contents of a set.

func (*NSOrderedSet[ObjectType]) InitWithSetCopyItems

func (o *NSOrderedSet[ObjectType]) InitWithSetCopyItems(set *NSSet[ObjectType], flag bool) *NSOrderedSet[ObjectType]

Initializes a new ordered set with the contents of a set, optionally copying the objects in the set.

func (*NSOrderedSet[ObjectType]) IntersectsOrderedSet

func (o *NSOrderedSet[ObjectType]) IntersectsOrderedSet(other *NSOrderedSet[ObjectType]) bool

Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given ordered set.

func (*NSOrderedSet[ObjectType]) IntersectsSet

func (o *NSOrderedSet[ObjectType]) IntersectsSet(set *NSSet[ObjectType]) bool

Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given set.

func (*NSOrderedSet[ObjectType]) IsEqualToOrderedSet

func (o *NSOrderedSet[ObjectType]) IsEqualToOrderedSet(other *NSOrderedSet[ObjectType]) bool

Compares the receiving ordered set to another ordered set.

func (*NSOrderedSet[ObjectType]) IsSubsetOfOrderedSet

func (o *NSOrderedSet[ObjectType]) IsSubsetOfOrderedSet(other *NSOrderedSet[ObjectType]) bool

Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given ordered set.

func (*NSOrderedSet[ObjectType]) IsSubsetOfSet

func (o *NSOrderedSet[ObjectType]) IsSubsetOfSet(set *NSSet[ObjectType]) bool

Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given set.

func (*NSOrderedSet[ObjectType]) LastObject

func (o *NSOrderedSet[ObjectType]) LastObject() ObjectType

func (*NSOrderedSet[ObjectType]) ObjectAtIndex

func (o *NSOrderedSet[ObjectType]) ObjectAtIndex(idx uint) ObjectType

Returns the object at the specified index of the set.

func (*NSOrderedSet[ObjectType]) ObjectAtIndexedSubscript

func (o *NSOrderedSet[ObjectType]) ObjectAtIndexedSubscript(idx uint) ObjectType

Returns the object at the specified index of the set.

func (*NSOrderedSet[ObjectType]) ObjectEnumerator

func (o *NSOrderedSet[ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]

Returns an enumerator object that lets you access each object in the ordered set.

func (*NSOrderedSet[ObjectType]) ObjectsAtIndexes

func (o *NSOrderedSet[ObjectType]) ObjectsAtIndexes(indexes *NSIndexSet) *NSArray[ObjectType]

Returns the objects in the ordered set at the specified indexes.

func (*NSOrderedSet[ObjectType]) OrderedSetByApplyingDifference

func (o *NSOrderedSet[ObjectType]) OrderedSetByApplyingDifference(difference *NSOrderedCollectionDifference[ObjectType]) *NSOrderedSet[ObjectType]

Creates a new ordered set by applying a difference object to an existing ordered set.

func (*NSOrderedSet[ObjectType]) ReverseObjectEnumerator

func (o *NSOrderedSet[ObjectType]) ReverseObjectEnumerator() *NSEnumerator[ObjectType]

Returns an enumerator object that lets you access each object in the ordered set.

func (*NSOrderedSet[ObjectType]) ReversedOrderedSet

func (o *NSOrderedSet[ObjectType]) ReversedOrderedSet() *NSOrderedSet[ObjectType]

func (*NSOrderedSet[ObjectType]) Set

func (o *NSOrderedSet[ObjectType]) Set() *NSSet[ObjectType]

func (*NSOrderedSet[ObjectType]) SortedArrayUsingComparator

func (o *NSOrderedSet[ObjectType]) SortedArrayUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[ObjectType]

Returns an array that lists the receiving ordered set’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block

func (*NSOrderedSet[ObjectType]) SortedArrayUsingDescriptors

func (o *NSOrderedSet[ObjectType]) SortedArrayUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor]) *NSArray[ObjectType]

Returns an array of the ordered set’s elements sorted as specified by a given array of sort descriptors.

func (*NSOrderedSet[ObjectType]) SortedArrayWithOptionsUsingComparator

func (o *NSOrderedSet[ObjectType]) SortedArrayWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[ObjectType]

Returns an array that lists the receiving ordered set’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block.

type NSOrthography

type NSOrthography struct {
	NSObject
}

A description of the linguistic content of natural language text, typically used for spelling and grammar checking.

Apple documentation: https://developer.apple.com/documentation/foundation/nsorthography

func NSOrthographyDefaultOrthographyForLanguage

func NSOrthographyDefaultOrthographyForLanguage(language *NSString) *NSOrthography

Creates and returns an orthography object with the default language map for the specified language.

func NSOrthographyFromID

func NSOrthographyFromID(id objc.ID) *NSOrthography

func NSOrthographyOrthographyWithDominantScriptLanguageMap

func NSOrthographyOrthographyWithDominantScriptLanguageMap(script *NSString, map_ *NSDictionary[*NSString, objc.ID]) *NSOrthography

Creates and returns an orthography object with the specified dominant script and language map.

func (*NSOrthography) AllLanguages

func (o *NSOrthography) AllLanguages() *NSArray[*NSString]

func (*NSOrthography) AllScripts

func (o *NSOrthography) AllScripts() *NSArray[*NSString]

func (*NSOrthography) DominantLanguage

func (o *NSOrthography) DominantLanguage() *NSString

func (*NSOrthography) DominantLanguageForScript

func (o *NSOrthography) DominantLanguageForScript(script *NSString) *NSString

Returns the dominant language for the specified script.

func (*NSOrthography) DominantScript

func (o *NSOrthography) DominantScript() *NSString

func (*NSOrthography) InitWithCoder

func (o *NSOrthography) InitWithCoder(coder *NSCoder) *NSOrthography

func (*NSOrthography) InitWithDominantScriptLanguageMap

func (o *NSOrthography) InitWithDominantScriptLanguageMap(script *NSString, map_ *NSDictionary[*NSString, objc.ID]) *NSOrthography

Creates an orthography object with the specified dominant script and language map.

func (*NSOrthography) LanguageMap

func (o *NSOrthography) LanguageMap() *NSDictionary[*NSString, objc.ID]

func (*NSOrthography) LanguagesForScript

func (o *NSOrthography) LanguagesForScript(script *NSString) *NSArray[*NSString]

Returns the list of languages for the specified script.

type NSOutputStream

type NSOutputStream struct {
	NSStream
}

A stream that provides write-only stream functionality.

Apple documentation: https://developer.apple.com/documentation/foundation/nsoutputstream

func NSOutputStreamFromID

func NSOutputStreamFromID(id objc.ID) *NSOutputStream

func NSOutputStreamOutputStreamToBufferCapacity

func NSOutputStreamOutputStreamToBufferCapacity(buffer *uint8, capacity uint) *NSOutputStream

Creates and returns an initialized output stream that can write to a provided buffer.

func NSOutputStreamOutputStreamToFileAtPathAppend

func NSOutputStreamOutputStreamToFileAtPathAppend(path *NSString, shouldAppend bool) *NSOutputStream

Creates and returns an initialized output stream for writing to a specified file.

func NSOutputStreamOutputStreamToMemory

func NSOutputStreamOutputStreamToMemory() *NSOutputStream

func NSOutputStreamOutputStreamWithURLAppend

func NSOutputStreamOutputStreamWithURLAppend(url *NSURL, shouldAppend bool) *NSOutputStream

Creates and returns an initialized output stream for writing to a specified URL.

func (*NSOutputStream) HasSpaceAvailable

func (o *NSOutputStream) HasSpaceAvailable() bool

func (*NSOutputStream) InitToBufferCapacity

func (o *NSOutputStream) InitToBufferCapacity(buffer *uint8, capacity uint) *NSOutputStream

func (*NSOutputStream) InitToFileAtPathAppend

func (o *NSOutputStream) InitToFileAtPathAppend(path *NSString, shouldAppend bool) *NSOutputStream

func (*NSOutputStream) InitToMemory

func (o *NSOutputStream) InitToMemory() *NSOutputStream

func (*NSOutputStream) InitWithURLAppend

func (o *NSOutputStream) InitWithURLAppend(url *NSURL, shouldAppend bool) *NSOutputStream

func (*NSOutputStream) WriteMaxLength

func (o *NSOutputStream) WriteMaxLength(buffer *uint8, len_ uint) int

type NSPersonNameComponents

type NSPersonNameComponents struct {
	NSObject
}

An object that manages the separate parts of a person’s name to allow locale-aware formatting.

Apple documentation: https://developer.apple.com/documentation/foundation/nspersonnamecomponents

func NSPersonNameComponentsFromID

func NSPersonNameComponentsFromID(id objc.ID) *NSPersonNameComponents

func (*NSPersonNameComponents) FamilyName

func (o *NSPersonNameComponents) FamilyName() *NSString

func (*NSPersonNameComponents) GivenName

func (o *NSPersonNameComponents) GivenName() *NSString

func (*NSPersonNameComponents) MiddleName

func (o *NSPersonNameComponents) MiddleName() *NSString

func (*NSPersonNameComponents) NamePrefix

func (o *NSPersonNameComponents) NamePrefix() *NSString

func (*NSPersonNameComponents) NameSuffix

func (o *NSPersonNameComponents) NameSuffix() *NSString

func (*NSPersonNameComponents) Nickname

func (o *NSPersonNameComponents) Nickname() *NSString

func (*NSPersonNameComponents) PhoneticRepresentation

func (o *NSPersonNameComponents) PhoneticRepresentation() *NSPersonNameComponents

func (*NSPersonNameComponents) SetFamilyName

func (o *NSPersonNameComponents) SetFamilyName(familyName *NSString)

func (*NSPersonNameComponents) SetGivenName

func (o *NSPersonNameComponents) SetGivenName(givenName *NSString)

func (*NSPersonNameComponents) SetMiddleName

func (o *NSPersonNameComponents) SetMiddleName(middleName *NSString)

func (*NSPersonNameComponents) SetNamePrefix

func (o *NSPersonNameComponents) SetNamePrefix(namePrefix *NSString)

func (*NSPersonNameComponents) SetNameSuffix

func (o *NSPersonNameComponents) SetNameSuffix(nameSuffix *NSString)

func (*NSPersonNameComponents) SetNickname

func (o *NSPersonNameComponents) SetNickname(nickname *NSString)

func (*NSPersonNameComponents) SetPhoneticRepresentation

func (o *NSPersonNameComponents) SetPhoneticRepresentation(phoneticRepresentation *NSPersonNameComponents)

type NSPersonNameComponentsFormatter

type NSPersonNameComponentsFormatter struct {
	NSFormatter
}

A formatter that provides localized representations of the components of a person’s name.

Apple documentation: https://developer.apple.com/documentation/foundation/nspersonnamecomponentsformatter

func NSPersonNameComponentsFormatterFromID

func NSPersonNameComponentsFormatterFromID(id objc.ID) *NSPersonNameComponentsFormatter

func (*NSPersonNameComponentsFormatter) AnnotatedStringFromPersonNameComponents

func (o *NSPersonNameComponentsFormatter) AnnotatedStringFromPersonNameComponents(components *NSPersonNameComponents) *NSAttributedString

func (*NSPersonNameComponentsFormatter) IsPhonetic

func (o *NSPersonNameComponentsFormatter) IsPhonetic() bool

func (*NSPersonNameComponentsFormatter) Locale

func (*NSPersonNameComponentsFormatter) PersonNameComponentsFromString

func (o *NSPersonNameComponentsFormatter) PersonNameComponentsFromString(string_ *NSString) *NSPersonNameComponents

func (*NSPersonNameComponentsFormatter) SetLocale

func (o *NSPersonNameComponentsFormatter) SetLocale(locale *NSLocale)

func (*NSPersonNameComponentsFormatter) SetPhonetic

func (o *NSPersonNameComponentsFormatter) SetPhonetic(phonetic bool)

func (*NSPersonNameComponentsFormatter) SetStyle

func (*NSPersonNameComponentsFormatter) StringFromPersonNameComponents

func (o *NSPersonNameComponentsFormatter) StringFromPersonNameComponents(components *NSPersonNameComponents) *NSString

func (*NSPersonNameComponentsFormatter) Style

type NSPersonNameComponentsFormatterOptions

type NSPersonNameComponentsFormatterOptions uint64

Options for formatting person name components.

const (
	NSPersonNameComponentsFormatterPhonetic NSPersonNameComponentsFormatterOptions = 2
)

func (NSPersonNameComponentsFormatterOptions) String

type NSPersonNameComponentsFormatterStyle

type NSPersonNameComponentsFormatterStyle int64

The formatting styles for person name components.

const (
	NSPersonNameComponentsFormatterStyleDefault     NSPersonNameComponentsFormatterStyle = 0
	NSPersonNameComponentsFormatterStyleShort       NSPersonNameComponentsFormatterStyle = 1
	NSPersonNameComponentsFormatterStyleMedium      NSPersonNameComponentsFormatterStyle = 2
	NSPersonNameComponentsFormatterStyleLong        NSPersonNameComponentsFormatterStyle = 3
	NSPersonNameComponentsFormatterStyleAbbreviated NSPersonNameComponentsFormatterStyle = 4
)

func (NSPersonNameComponentsFormatterStyle) String

type NSPipe

type NSPipe struct {
	NSObject
}

A one-way communications channel between related processes.

Apple documentation: https://developer.apple.com/documentation/foundation/nspipe

func NSPipeFromID

func NSPipeFromID(id objc.ID) *NSPipe

func NSPipePipe

func NSPipePipe() *NSPipe

Returns an NSPipe object.

func (*NSPipe) FileHandleForReading

func (o *NSPipe) FileHandleForReading() *NSFileHandle

func (*NSPipe) FileHandleForWriting

func (o *NSPipe) FileHandleForWriting() *NSFileHandle

type NSPointerArray

type NSPointerArray struct {
	NSObject
}

A collection similar to an array, but with a broader range of available memory semantics.

Apple documentation: https://developer.apple.com/documentation/foundation/nspointerarray

func NSPointerArrayFromID

func NSPointerArrayFromID(id objc.ID) *NSPointerArray

func NSPointerArrayPointerArrayWithOptions

func NSPointerArrayPointerArrayWithOptions(options NSPointerFunctionsOptions) *NSPointerArray

Returns a new pointer array initialized to use the given options.

func NSPointerArrayPointerArrayWithPointerFunctions

func NSPointerArrayPointerArrayWithPointerFunctions(functions *NSPointerFunctions) *NSPointerArray

A new pointer array initialized to use the given functions.

func NSPointerArrayStrongObjectsPointerArray

func NSPointerArrayStrongObjectsPointerArray() *NSPointerArray

Returns a new pointer array that maintains strong references to its elements.

func NSPointerArrayWeakObjectsPointerArray

func NSPointerArrayWeakObjectsPointerArray() *NSPointerArray

Returns a new pointer array that maintains weak references to its elements.

func (*NSPointerArray) AddPointer

func (o *NSPointerArray) AddPointer(pointer unsafe.Pointer)

Adds a given pointer to the receiver.

func (*NSPointerArray) AllObjects

func (o *NSPointerArray) AllObjects() *NSArray[objc.ID]

func (*NSPointerArray) Compact

func (o *NSPointerArray) Compact()

Removes NULL values from the receiver.

func (*NSPointerArray) Count

func (o *NSPointerArray) Count() uint

func (*NSPointerArray) InitWithOptions

func (o *NSPointerArray) InitWithOptions(options NSPointerFunctionsOptions) *NSPointerArray

Initializes the receiver to use the given options.

func (*NSPointerArray) InitWithPointerFunctions

func (o *NSPointerArray) InitWithPointerFunctions(functions *NSPointerFunctions) *NSPointerArray

Initializes the receiver to use the given functions.

func (*NSPointerArray) InsertPointerAtIndex

func (o *NSPointerArray) InsertPointerAtIndex(item unsafe.Pointer, index uint)

Inserts a pointer at a given index.

func (*NSPointerArray) PointerAtIndex

func (o *NSPointerArray) PointerAtIndex(index uint) unsafe.Pointer

Returns the pointer at a given index.

func (*NSPointerArray) PointerFunctions

func (o *NSPointerArray) PointerFunctions() *NSPointerFunctions

func (*NSPointerArray) RemovePointerAtIndex

func (o *NSPointerArray) RemovePointerAtIndex(index uint)

Removes the pointer at a given index.

func (*NSPointerArray) ReplacePointerAtIndexWithPointer

func (o *NSPointerArray) ReplacePointerAtIndexWithPointer(index uint, item unsafe.Pointer)

Replaces the pointer at a given index.

func (*NSPointerArray) SetCount

func (o *NSPointerArray) SetCount(count uint)

type NSPointerFunctions

type NSPointerFunctions struct {
	NSObject
}

An instance of NSPointerFunctions defines callout functions appropriate for managing a pointer reference held somewhere else.

Apple documentation: https://developer.apple.com/documentation/foundation/nspointerfunctions

func NSPointerFunctionsFromID

func NSPointerFunctionsFromID(id objc.ID) *NSPointerFunctions

func NSPointerFunctionsPointerFunctionsWithOptions

func NSPointerFunctionsPointerFunctionsWithOptions(options NSPointerFunctionsOptions) *NSPointerFunctions

Returns a new NSPointerFunctions object initialized with the given options.

func (*NSPointerFunctions) AcquireFunction

func (o *NSPointerFunctions) AcquireFunction() unsafe.Pointer

func (*NSPointerFunctions) DescriptionFunction

func (o *NSPointerFunctions) DescriptionFunction() unsafe.Pointer

func (*NSPointerFunctions) HashFunction

func (o *NSPointerFunctions) HashFunction() unsafe.Pointer

func (*NSPointerFunctions) InitWithOptions

Returns an NSPointerFunctions object initialized with the given options.

func (*NSPointerFunctions) IsEqualFunction

func (o *NSPointerFunctions) IsEqualFunction() unsafe.Pointer

func (*NSPointerFunctions) RelinquishFunction

func (o *NSPointerFunctions) RelinquishFunction() unsafe.Pointer

func (*NSPointerFunctions) SetAcquireFunction

func (o *NSPointerFunctions) SetAcquireFunction(acquireFunction unsafe.Pointer)

func (*NSPointerFunctions) SetDescriptionFunction

func (o *NSPointerFunctions) SetDescriptionFunction(descriptionFunction unsafe.Pointer)

func (*NSPointerFunctions) SetHashFunction

func (o *NSPointerFunctions) SetHashFunction(hashFunction unsafe.Pointer)

func (*NSPointerFunctions) SetIsEqualFunction

func (o *NSPointerFunctions) SetIsEqualFunction(isEqualFunction unsafe.Pointer)

func (*NSPointerFunctions) SetRelinquishFunction

func (o *NSPointerFunctions) SetRelinquishFunction(relinquishFunction unsafe.Pointer)

func (*NSPointerFunctions) SetSizeFunction

func (o *NSPointerFunctions) SetSizeFunction(sizeFunction unsafe.Pointer)

func (*NSPointerFunctions) SetUsesStrongWriteBarrier deprecated

func (o *NSPointerFunctions) SetUsesStrongWriteBarrier(usesStrongWriteBarrier bool)

Deprecated: Garbage collection no longer supported

func (*NSPointerFunctions) SetUsesWeakReadAndWriteBarriers deprecated

func (o *NSPointerFunctions) SetUsesWeakReadAndWriteBarriers(usesWeakReadAndWriteBarriers bool)

Deprecated: Garbage collection no longer supported

func (*NSPointerFunctions) SizeFunction

func (o *NSPointerFunctions) SizeFunction() unsafe.Pointer

func (*NSPointerFunctions) UsesStrongWriteBarrier deprecated

func (o *NSPointerFunctions) UsesStrongWriteBarrier() bool

Deprecated: Garbage collection no longer supported

func (*NSPointerFunctions) UsesWeakReadAndWriteBarriers deprecated

func (o *NSPointerFunctions) UsesWeakReadAndWriteBarriers() bool

Deprecated: Garbage collection no longer supported

type NSPointerFunctionsOptions

type NSPointerFunctionsOptions uint64

Defines the memory and personality options for an NSPointerFunctions object.

const (
	NSPointerFunctionsStrongMemory NSPointerFunctionsOptions = 0
	// Use weak read and write barriers; use garbage-collected memory on copyIn.
	NSPointerFunctionsZeroingWeakMemory        NSPointerFunctionsOptions = 1
	NSPointerFunctionsOpaqueMemory             NSPointerFunctionsOptions = 2
	NSPointerFunctionsMallocMemory             NSPointerFunctionsOptions = 3
	NSPointerFunctionsMachVirtualMemory        NSPointerFunctionsOptions = 4
	NSPointerFunctionsWeakMemory               NSPointerFunctionsOptions = 5
	NSPointerFunctionsObjectPersonality        NSPointerFunctionsOptions = 0
	NSPointerFunctionsOpaquePersonality        NSPointerFunctionsOptions = 256
	NSPointerFunctionsObjectPointerPersonality NSPointerFunctionsOptions = 512
	NSPointerFunctionsCStringPersonality       NSPointerFunctionsOptions = 768
	NSPointerFunctionsStructPersonality        NSPointerFunctionsOptions = 1024
	NSPointerFunctionsIntegerPersonality       NSPointerFunctionsOptions = 1280
	NSPointerFunctionsCopyIn                   NSPointerFunctionsOptions = 65536
)

func (NSPointerFunctionsOptions) String

func (e NSPointerFunctionsOptions) String() string

type NSPort

type NSPort struct {
	NSObject
}

An abstract class that represents a communication channel.

Apple documentation: https://developer.apple.com/documentation/foundation/nsport

func NSMachPortPortWithMachPort

func NSMachPortPortWithMachPort(machPort uint32) *NSPort

Creates and returns a port object configured with the given Mach port.

func NSMachPortPortWithMachPortOptions

func NSMachPortPortWithMachPortOptions(machPort uint32, f NSMachPortOptions) *NSPort

Creates and returns a port object configured with the specified options and the given Mach port.

func NSPortFromID

func NSPortFromID(id objc.ID) *NSPort

func NSPortPort

func NSPortPort() *NSPort

Creates and returns a new NSPort object capable of both sending and receiving messages.

func (*NSPort) AddConnectionToRunLoopForMode

func (o *NSPort) AddConnectionToRunLoopForMode(conn *NSConnection, runLoop *NSRunLoop, mode *NSString)

Adds the receiver to the list of ports monitored by a given run loop for the given input mode. Deprecated: Use NSXPCConnection instead

func (*NSPort) Delegate

func (o *NSPort) Delegate() NSPortDelegate

func (*NSPort) Invalidate

func (o *NSPort) Invalidate()

func (*NSPort) IsValid

func (o *NSPort) IsValid() bool

func (*NSPort) RemoveConnectionFromRunLoopForMode

func (o *NSPort) RemoveConnectionFromRunLoopForMode(conn *NSConnection, runLoop *NSRunLoop, mode *NSString)

Removes the receiver from the list of ports monitored by runLoop in the given input mode, mode. Deprecated: Use NSXPCConnection instead

func (*NSPort) RemoveFromRunLoopForMode

func (o *NSPort) RemoveFromRunLoopForMode(runLoop *NSRunLoop, mode *NSString)

func (*NSPort) ReservedSpaceLength

func (o *NSPort) ReservedSpaceLength() uint

func (*NSPort) ScheduleInRunLoopForMode

func (o *NSPort) ScheduleInRunLoopForMode(runLoop *NSRunLoop, mode *NSString)

func (*NSPort) SendBeforeDateComponentsFromReserved

func (o *NSPort) SendBeforeDateComponentsFromReserved(limitDate *NSDate, components *NSMutableArray[objc.ID], receivePort *NSPort, headerSpaceReserved uint) bool

func (*NSPort) SendBeforeDateMsgidComponentsFromReserved

func (o *NSPort) SendBeforeDateMsgidComponentsFromReserved(limitDate *NSDate, msgID uint, components *NSMutableArray[objc.ID], receivePort *NSPort, headerSpaceReserved uint) bool

func (*NSPort) SetDelegate

func (o *NSPort) SetDelegate(anObject NSPortDelegate)

type NSPortCoder

type NSPortCoder struct {
	NSCoder
}

A coder used to transmit object proxies (and sometimes objects themselves) between connections.

Apple documentation: https://developer.apple.com/documentation/foundation/nsportcoder Deprecated: Use NSXPCConnection instead

func NSPortCoderFromID

func NSPortCoderFromID(id objc.ID) *NSPortCoder

func (*NSPortCoder) Connection

func (o *NSPortCoder) Connection() *NSConnection

Returns the NSConnection object that uses the receiver. Deprecated: since macOS 10.7.

func (*NSPortCoder) DecodePortObject

func (o *NSPortCoder) DecodePortObject() *NSPort

Decodes and returns an NSPort object that was previously encoded with any of the general encode...Object: messages.

func (*NSPortCoder) Dispatch

func (o *NSPortCoder) Dispatch()

Processes and acts upon the distributed object message with which the receiver was initialized. Deprecated: since macOS 10.7.

func (*NSPortCoder) EncodePortObject

func (o *NSPortCoder) EncodePortObject(aport *NSPort)

Encodes a given port so it can be properly reconstituted in the receiving process or thread.

func (*NSPortCoder) InitWithReceivePortSendPortComponents

func (o *NSPortCoder) InitWithReceivePortSendPortComponents(rcvPort *NSPort, sndPort *NSPort, comps *NSArray[objc.ID]) objc.ID

Initializes and returns an NSPortCoder object. Deprecated: since macOS 10.7.

func (*NSPortCoder) IsBycopy

func (o *NSPortCoder) IsBycopy() bool

Returns a Boolean value that indicates whether the receiver is encoding an object by copying it. Deprecated: Use NSXPCConnection instead

func (*NSPortCoder) IsByref

func (o *NSPortCoder) IsByref() bool

Returns a Boolean value that indicates whether the receiver is encoding an object by reference.

type NSPortDelegate

type NSPortDelegate interface {
}

NSPortDelegate wraps the ObjC protocol NSPortDelegate.

type NSPortMessage

type NSPortMessage struct {
	NSObject
}

A low-level, operating system-independent type for inter-application (and inter-thread) messages.

Apple documentation: https://developer.apple.com/documentation/foundation/nsportmessage

func NSPortMessageFromID

func NSPortMessageFromID(id objc.ID) *NSPortMessage

func (*NSPortMessage) Components

func (o *NSPortMessage) Components() *NSArray[objc.ID]

func (*NSPortMessage) InitWithSendPortReceivePortComponents

func (o *NSPortMessage) InitWithSendPortReceivePortComponents(sendPort *NSPort, replyPort *NSPort, components *NSArray[objc.ID]) *NSPortMessage

func (*NSPortMessage) Msgid

func (o *NSPortMessage) Msgid() uint32

func (*NSPortMessage) ReceivePort

func (o *NSPortMessage) ReceivePort() *NSPort

func (*NSPortMessage) SendBeforeDate

func (o *NSPortMessage) SendBeforeDate(date *NSDate) bool

func (*NSPortMessage) SendPort

func (o *NSPortMessage) SendPort() *NSPort

func (*NSPortMessage) SetMsgid

func (o *NSPortMessage) SetMsgid(msgid uint32)

type NSPortNameServer

type NSPortNameServer struct {
	NSObject
}

An object-oriented interface to the port registration service used by the distributed objects system.

Apple documentation: https://developer.apple.com/documentation/foundation/nsportnameserver Deprecated: Use NSXPCConnection instead

func NSPortNameServerFromID

func NSPortNameServerFromID(id objc.ID) *NSPortNameServer

func NSPortNameServerSystemDefaultPortNameServer

func NSPortNameServerSystemDefaultPortNameServer() *NSPortNameServer

Returns the single instance of NSPortNameServer for the application. Deprecated: Use NSXPCConnection instead

func (*NSPortNameServer) PortForName

func (o *NSPortNameServer) PortForName(name *NSString) *NSPort

Looks up and returns the port registered under the specified name on the local host.

func (*NSPortNameServer) PortForNameHost

func (o *NSPortNameServer) PortForNameHost(name *NSString, host *NSString) *NSPort

Looks up and returns the port registered under the specified name on a specified host.

func (*NSPortNameServer) RegisterPortName

func (o *NSPortNameServer) RegisterPortName(port *NSPort, name *NSString) bool

Makes a given port available on the network under a specified name.

func (*NSPortNameServer) RemovePortForName

func (o *NSPortNameServer) RemovePortForName(name *NSString) bool

Unregisters the port for a given name on the local host.

type NSPositionalSpecifier

type NSPositionalSpecifier struct {
	NSObject
}

A specifier for an insertion point in a container relative to another object in the container.

Apple documentation: https://developer.apple.com/documentation/foundation/nspositionalspecifier

func NSPositionalSpecifierFromID

func NSPositionalSpecifierFromID(id objc.ID) *NSPositionalSpecifier

func (*NSPositionalSpecifier) Evaluate

func (o *NSPositionalSpecifier) Evaluate()

Causes the receiver to evaluate its position.

func (*NSPositionalSpecifier) InitWithPositionObjectSpecifier

func (o *NSPositionalSpecifier) InitWithPositionObjectSpecifier(position NSInsertionPosition, specifier *NSScriptObjectSpecifier) *NSPositionalSpecifier

Initializes a positional specifier with a given position relative to another given specifier.

func (*NSPositionalSpecifier) InsertionContainer

func (o *NSPositionalSpecifier) InsertionContainer() objc.ID

func (*NSPositionalSpecifier) InsertionIndex

func (o *NSPositionalSpecifier) InsertionIndex() int

func (*NSPositionalSpecifier) InsertionKey

func (o *NSPositionalSpecifier) InsertionKey() *NSString

func (*NSPositionalSpecifier) InsertionReplaces

func (o *NSPositionalSpecifier) InsertionReplaces() bool

func (*NSPositionalSpecifier) Position

func (*NSPositionalSpecifier) SetInsertionClassDescription

func (o *NSPositionalSpecifier) SetInsertionClassDescription(classDescription *NSScriptClassDescription)

Sets the class description for the object or objects to be inserted.

type NSPostingStyle

type NSPostingStyle uint64

The constants that specify when notifications are posted.

const (
	NSPostWhenIdle NSPostingStyle = 1
	NSPostASAP     NSPostingStyle = 2
	NSPostNow      NSPostingStyle = 3
)

func (NSPostingStyle) String

func (e NSPostingStyle) String() string

type NSPredicate

type NSPredicate struct {
	NSObject
}

A definition of logical conditions for constraining a search for a fetch or for in-memory filtering.

Apple documentation: https://developer.apple.com/documentation/foundation/nspredicate

func NSPredicateFromID

func NSPredicateFromID(id objc.ID) *NSPredicate

func NSPredicatePredicateFromMetadataQueryString

func NSPredicatePredicateFromMetadataQueryString(queryString *NSString) *NSPredicate

Creates a predicate with a metadata query string.

func NSPredicatePredicateWith

func NSPredicatePredicateWith(block func(objc.ID, *NSDictionary[*NSString, objc.ID]) bool) *NSPredicate

Creates a predicate that evaluates using a specified block object and bindings dictionary.

func NSPredicatePredicateWithFormat

func NSPredicatePredicateWithFormat(predicateFormat *NSString) *NSPredicate

Creates and returns a new predicate formed by creating a new string with a specified format and parsing the result.

func NSPredicatePredicateWithFormatArgumentArray

func NSPredicatePredicateWithFormatArgumentArray(predicateFormat *NSString, arguments *NSArray[objc.ID]) *NSPredicate

Creates a predicate by substituting the values in a specified array into a format string and parsing the result.

func NSPredicatePredicateWithFormatArguments

func NSPredicatePredicateWithFormatArguments(predicateFormat *NSString, argList string) *NSPredicate

Creates a predicate by substituting the values in an argument list into a format string and parsing the result.

func NSPredicatePredicateWithValue

func NSPredicatePredicateWithValue(value bool) *NSPredicate

Creates and returns a predicate that always evaluates to a specified Boolean value.

func (*NSPredicate) AllowEvaluation

func (o *NSPredicate) AllowEvaluation()

Forces a securely decoded predicate to allow evaluation.

func (*NSPredicate) AllowEvaluationWithValidatorError

func (o *NSPredicate) AllowEvaluationWithValidatorError(validator NSPredicateValidating) (bool, error)

func (*NSPredicate) EvaluateWithObject

func (o *NSPredicate) EvaluateWithObject(object objc.ID) bool

Returns a Boolean value that indicates whether the specified object matches the conditions that the predicate specifies.

func (*NSPredicate) EvaluateWithObjectSubstitutionVariables

func (o *NSPredicate) EvaluateWithObjectSubstitutionVariables(object objc.ID, bindings *NSDictionary[*NSString, objc.ID]) bool

Returns a Boolean value that indicates whether the specified object matches the conditions that the predicate specifies after substituting in the values from a specified variables dictionary.

func (*NSPredicate) PredicateFormat

func (o *NSPredicate) PredicateFormat() *NSString

func (*NSPredicate) PredicateWithSubstitutionVariables

func (o *NSPredicate) PredicateWithSubstitutionVariables(variables *NSDictionary[*NSString, objc.ID]) *NSPredicate

Returns a copy of the predicate and substitutes the predicates variables with specified values from a specified substitution variables dictionary.

type NSPredicateOperatorType

type NSPredicateOperatorType uint64

Defines the type of comparison for a comparison predicate.

const (
	NSLessThanPredicateOperatorType             NSPredicateOperatorType = 0
	NSLessThanOrEqualToPredicateOperatorType    NSPredicateOperatorType = 1
	NSGreaterThanPredicateOperatorType          NSPredicateOperatorType = 2
	NSGreaterThanOrEqualToPredicateOperatorType NSPredicateOperatorType = 3
	NSEqualToPredicateOperatorType              NSPredicateOperatorType = 4
	NSNotEqualToPredicateOperatorType           NSPredicateOperatorType = 5
	NSMatchesPredicateOperatorType              NSPredicateOperatorType = 6
	NSLikePredicateOperatorType                 NSPredicateOperatorType = 7
	NSBeginsWithPredicateOperatorType           NSPredicateOperatorType = 8
	NSEndsWithPredicateOperatorType             NSPredicateOperatorType = 9
	NSInPredicateOperatorType                   NSPredicateOperatorType = 10
	NSCustomSelectorPredicateOperatorType       NSPredicateOperatorType = 11
	NSContainsPredicateOperatorType             NSPredicateOperatorType = 99
	NSBetweenPredicateOperatorType              NSPredicateOperatorType = 100
)

func (NSPredicateOperatorType) String

func (e NSPredicateOperatorType) String() string

type NSPredicateValidating

type NSPredicateValidating interface {
}

NSPredicateValidating wraps the ObjC protocol NSPredicateValidating.

type NSPresentationIntent

type NSPresentationIntent struct {
	NSObject
}

A type that contains the Markdown formatting for blocks of text, like paragraphs, lists, code blocks, and parts of tables.

Apple documentation: https://developer.apple.com/documentation/foundation/nspresentationintent

func NSPresentationIntentBlockQuoteIntentWithIdentityNestedInsideIntent

func NSPresentationIntentBlockQuoteIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent

Creates a block-quote intent with the provided information.

func NSPresentationIntentCodeBlockIntentWithIdentityLanguageHintNestedInsideIntent

func NSPresentationIntentCodeBlockIntentWithIdentityLanguageHintNestedInsideIntent(identity int, languageHint *NSString, parent *NSPresentationIntent) *NSPresentationIntent

Creates an code-block intent with the provided information.

func NSPresentationIntentFromID

func NSPresentationIntentFromID(id objc.ID) *NSPresentationIntent

func NSPresentationIntentHeaderIntentWithIdentityLevelNestedInsideIntent

func NSPresentationIntentHeaderIntentWithIdentityLevelNestedInsideIntent(identity int, level int, parent *NSPresentationIntent) *NSPresentationIntent

Creates a header intent with the provided information.

func NSPresentationIntentListItemIntentWithIdentityOrdinalNestedInsideIntent

func NSPresentationIntentListItemIntentWithIdentityOrdinalNestedInsideIntent(identity int, ordinal int, parent *NSPresentationIntent) *NSPresentationIntent

Creates an item for an ordered list with the provided information.

func NSPresentationIntentOrderedListIntentWithIdentityNestedInsideIntent

func NSPresentationIntentOrderedListIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent

Creates an ordered-list intent with the provided information.

func NSPresentationIntentParagraphIntentWithIdentityNestedInsideIntent

func NSPresentationIntentParagraphIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent

Creates a paragraph intent with the provided information.

func NSPresentationIntentTableCellIntentWithIdentityColumnNestedInsideIntent

func NSPresentationIntentTableCellIntentWithIdentityColumnNestedInsideIntent(identity int, column int, parent *NSPresentationIntent) *NSPresentationIntent

Creates a table cell intent with the provided information.

func NSPresentationIntentTableHeaderRowIntentWithIdentityNestedInsideIntent

func NSPresentationIntentTableHeaderRowIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent

Creates a table header intent with the provided information.

func NSPresentationIntentTableIntentWithIdentityColumnCountAlignmentsNestedInsideIntent

func NSPresentationIntentTableIntentWithIdentityColumnCountAlignmentsNestedInsideIntent(identity int, columnCount int, alignments *NSArray[*NSNumber], parent *NSPresentationIntent) *NSPresentationIntent

Creates a table intent with the provided information.

func NSPresentationIntentTableRowIntentWithIdentityRowNestedInsideIntent

func NSPresentationIntentTableRowIntentWithIdentityRowNestedInsideIntent(identity int, row int, parent *NSPresentationIntent) *NSPresentationIntent

Creates a table row intent with the provided information.

func NSPresentationIntentThematicBreakIntentWithIdentityNestedInsideIntent

func NSPresentationIntentThematicBreakIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent

Creates a thematic break intent with the provided information.

func NSPresentationIntentUnorderedListIntentWithIdentityNestedInsideIntent

func NSPresentationIntentUnorderedListIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent

Creates an unordered-list intent with the provided information.

func (*NSPresentationIntent) Column

func (o *NSPresentationIntent) Column() int

The column to which this cell belongs (0-based). If the intent is not a cell, this value is 0.

func (*NSPresentationIntent) ColumnAlignments

func (o *NSPresentationIntent) ColumnAlignments() *NSArray[*NSNumber]

If the intent is not a table, this value is `nil`.

func (*NSPresentationIntent) ColumnCount

func (o *NSPresentationIntent) ColumnCount() int

If the intent is not a table, this value is 0.

func (*NSPresentationIntent) HeaderLevel

func (o *NSPresentationIntent) HeaderLevel() int

If the intent is not a header, this value is 0.

func (*NSPresentationIntent) Identity

func (o *NSPresentationIntent) Identity() int

An integer value which uniquely identifies this intent in the document. Identity disambiguates attributes which apply to contiguous text -- for example, two headers in a row with the same level. It can also be used to track the location in an attributed string of a particular part of a document, even after mutation.

func (*NSPresentationIntent) IndentationLevel

func (o *NSPresentationIntent) IndentationLevel() int

The indentation level of this intent. Each nested list increases the indentation level by one; all elements within the same list (and not then nested into a child list intent) have the same indentation level. Text outside list intents has an indentation level of 0.

func (*NSPresentationIntent) IntentKind

func (*NSPresentationIntent) IsEquivalentToPresentationIntent

func (o *NSPresentationIntent) IsEquivalentToPresentationIntent(other *NSPresentationIntent) bool

Returns a Boolean value that indicates whether the current intent is equivalent to the specified intent.

func (*NSPresentationIntent) LanguageHint

func (o *NSPresentationIntent) LanguageHint() *NSString

If the intent is not a code block, this value is `nil`.

func (*NSPresentationIntent) Ordinal

func (o *NSPresentationIntent) Ordinal() int

If the intent is not a list, this value is 0.

func (*NSPresentationIntent) ParentIntent

func (o *NSPresentationIntent) ParentIntent() *NSPresentationIntent

func (*NSPresentationIntent) Row

func (o *NSPresentationIntent) Row() int

The row to which this cell belongs (0-based). If the intent is not a row, this value is 0. Header rows are always row 0. If the table has more rows, those start at row 1.

type NSPresentationIntentKind

type NSPresentationIntentKind int64

An enumeration of intended display styles for blocks of text like paragraphs, lists, and code blocks.

const (
	// A presentation style for a paragraph of text.
	NSPresentationIntentKindParagraph NSPresentationIntentKind = 0
	// A presentation style for a section header.
	NSPresentationIntentKindHeader NSPresentationIntentKind = 1
	// A presentation style for an ordered list of items.
	NSPresentationIntentKindOrderedList NSPresentationIntentKind = 2
	// A presentation style for an unordered list of items.
	NSPresentationIntentKindUnorderedList NSPresentationIntentKind = 3
	// A presentation style for a list of items.
	NSPresentationIntentKindListItem NSPresentationIntentKind = 4
	// A presentation style for a block of code.
	NSPresentationIntentKindCodeBlock NSPresentationIntentKind = 5
	// A presentation style for a block quote.
	NSPresentationIntentKindBlockQuote NSPresentationIntentKind = 6
	// A presentation style for a horizontal rule.
	NSPresentationIntentKindThematicBreak NSPresentationIntentKind = 7
	// A presentation style for a table.
	NSPresentationIntentKindTable NSPresentationIntentKind = 8
	// A presentation style for the header row of a table.
	NSPresentationIntentKindTableHeaderRow NSPresentationIntentKind = 9
	// A presentation style for a row of a table.
	NSPresentationIntentKindTableRow NSPresentationIntentKind = 10
	// A presentation style for a single cell of a table.
	NSPresentationIntentKindTableCell NSPresentationIntentKind = 11
)

func (NSPresentationIntentKind) String

func (e NSPresentationIntentKind) String() string

type NSPresentationIntentTableColumnAlignment

type NSPresentationIntentTableColumnAlignment int64

An enumeration of values for aligning the contents of table columns.

const (
	// A presentation style for columns with left-aligned text.
	NSPresentationIntentTableColumnAlignmentLeft NSPresentationIntentTableColumnAlignment = 0
	// A presentation style for columns with center-aligned text.
	NSPresentationIntentTableColumnAlignmentCenter NSPresentationIntentTableColumnAlignment = 1
	// A presentation style for columns with right-aligned text.
	NSPresentationIntentTableColumnAlignmentRight NSPresentationIntentTableColumnAlignment = 2
)

func (NSPresentationIntentTableColumnAlignment) String

type NSProcessInfo

type NSProcessInfo struct {
	NSObject
}

A collection of information about the current process.

Apple documentation: https://developer.apple.com/documentation/foundation/nsprocessinfo

func NSProcessInfoFromID

func NSProcessInfoFromID(id objc.ID) *NSProcessInfo

func NSProcessInfoProcessInfo

func NSProcessInfoProcessInfo() *NSProcessInfo

func (*NSProcessInfo) ActiveProcessorCount

func (o *NSProcessInfo) ActiveProcessorCount() uint

func (*NSProcessInfo) Arguments

func (o *NSProcessInfo) Arguments() *NSArray[*NSString]

func (*NSProcessInfo) AutomaticTerminationSupportEnabled

func (o *NSProcessInfo) AutomaticTerminationSupportEnabled() bool

func (*NSProcessInfo) BeginActivityWithOptionsReason

func (o *NSProcessInfo) BeginActivityWithOptionsReason(options NSActivityOptions, reason *NSString) NSObjectProtocol

func (*NSProcessInfo) DisableAutomaticTermination

func (o *NSProcessInfo) DisableAutomaticTermination(reason *NSString)

func (*NSProcessInfo) DisableSuddenTermination

func (o *NSProcessInfo) DisableSuddenTermination()

func (*NSProcessInfo) EnableAutomaticTermination

func (o *NSProcessInfo) EnableAutomaticTermination(reason *NSString)

func (*NSProcessInfo) EnableSuddenTermination

func (o *NSProcessInfo) EnableSuddenTermination()

func (*NSProcessInfo) EndActivity

func (o *NSProcessInfo) EndActivity(activity NSObjectProtocol)

func (*NSProcessInfo) Environment

func (o *NSProcessInfo) Environment() *NSDictionary[*NSString, *NSString]

func (*NSProcessInfo) FullUserName

func (o *NSProcessInfo) FullUserName() *NSString

func (*NSProcessInfo) GloballyUniqueString

func (o *NSProcessInfo) GloballyUniqueString() *NSString

func (*NSProcessInfo) HostName

func (o *NSProcessInfo) HostName() *NSString

func (*NSProcessInfo) IsLowPowerModeEnabled

func (o *NSProcessInfo) IsLowPowerModeEnabled() bool

func (*NSProcessInfo) IsMacCatalystApp

func (o *NSProcessInfo) IsMacCatalystApp() bool

func (*NSProcessInfo) IsOperatingSystemAtLeastVersion

func (o *NSProcessInfo) IsOperatingSystemAtLeastVersion(version NSOperatingSystemVersion) bool

func (*NSProcessInfo) IsiOSAppOnMac

func (o *NSProcessInfo) IsiOSAppOnMac() bool

func (*NSProcessInfo) IsiOSAppOnVision

func (o *NSProcessInfo) IsiOSAppOnVision() bool

func (*NSProcessInfo) OperatingSystem deprecated

func (o *NSProcessInfo) OperatingSystem() uint

Deprecated: -operatingSystem always returns NSMACHOperatingSystem, use -operatingSystemVersion or -isOperatingSystemAtLeastVersion: instead

func (*NSProcessInfo) OperatingSystemName deprecated

func (o *NSProcessInfo) OperatingSystemName() *NSString

Deprecated: -operatingSystemName always returns NSMACHOperatingSystem, use -operatingSystemVersionString instead

func (*NSProcessInfo) OperatingSystemVersion

func (o *NSProcessInfo) OperatingSystemVersion() NSOperatingSystemVersion

func (*NSProcessInfo) OperatingSystemVersionString deprecated

func (o *NSProcessInfo) OperatingSystemVersionString() *NSString

Deprecated: -operatingSystemName always returns NSMACHOperatingSystem, use -operatingSystemVersionString instead

func (*NSProcessInfo) PerformActivityWithOptionsReasonUsing

func (o *NSProcessInfo) PerformActivityWithOptionsReasonUsing(options NSActivityOptions, reason *NSString, block func())

func (*NSProcessInfo) PhysicalMemory

func (o *NSProcessInfo) PhysicalMemory() uint64

func (*NSProcessInfo) ProcessIdentifier

func (o *NSProcessInfo) ProcessIdentifier() int

func (*NSProcessInfo) ProcessName

func (o *NSProcessInfo) ProcessName() *NSString

func (*NSProcessInfo) ProcessorCount

func (o *NSProcessInfo) ProcessorCount() uint

func (*NSProcessInfo) SetAutomaticTerminationSupportEnabled

func (o *NSProcessInfo) SetAutomaticTerminationSupportEnabled(automaticTerminationSupportEnabled bool)

func (*NSProcessInfo) SetProcessName

func (o *NSProcessInfo) SetProcessName(processName *NSString)

func (*NSProcessInfo) SystemUptime

func (o *NSProcessInfo) SystemUptime() float64

func (*NSProcessInfo) ThermalState

func (o *NSProcessInfo) ThermalState() NSProcessInfoThermalState

func (*NSProcessInfo) UserName

func (o *NSProcessInfo) UserName() *NSString

type NSProcessInfoThermalState

type NSProcessInfoThermalState int64

Values used to indicate the system’s thermal state.

const (
	NSProcessInfoThermalStateNominal  NSProcessInfoThermalState = 0
	NSProcessInfoThermalStateFair     NSProcessInfoThermalState = 1
	NSProcessInfoThermalStateSerious  NSProcessInfoThermalState = 2
	NSProcessInfoThermalStateCritical NSProcessInfoThermalState = 3
)

func (NSProcessInfoThermalState) String

func (e NSProcessInfoThermalState) String() string

type NSProgress

type NSProgress struct {
	NSObject
}

An object that conveys ongoing progress to the user for a specified task.

Apple documentation: https://developer.apple.com/documentation/foundation/nsprogress

func NSProgressCurrentProgress

func NSProgressCurrentProgress() *NSProgress

func NSProgressDiscreteProgressWithTotalUnitCount

func NSProgressDiscreteProgressWithTotalUnitCount(unitCount int64) *NSProgress

func NSProgressFromID

func NSProgressFromID(id objc.ID) *NSProgress

func NSProgressProgressWithTotalUnitCount

func NSProgressProgressWithTotalUnitCount(unitCount int64) *NSProgress

func NSProgressProgressWithTotalUnitCountParentPendingUnitCount

func NSProgressProgressWithTotalUnitCountParentPendingUnitCount(unitCount int64, parent *NSProgress, portionOfParentTotalUnitCount int64) *NSProgress

func (*NSProgress) AddChildWithPendingUnitCount

func (o *NSProgress) AddChildWithPendingUnitCount(child *NSProgress, inUnitCount int64)

func (*NSProgress) BecomeCurrentWithPendingUnitCount

func (o *NSProgress) BecomeCurrentWithPendingUnitCount(unitCount int64)

func (*NSProgress) Cancel

func (o *NSProgress) Cancel()

func (*NSProgress) CancellationHandler

func (o *NSProgress) CancellationHandler() objc.Block

func (*NSProgress) CompletedUnitCount

func (o *NSProgress) CompletedUnitCount() int64

func (*NSProgress) EstimatedTimeRemaining

func (o *NSProgress) EstimatedTimeRemaining() *NSNumber

func (*NSProgress) FileCompletedCount

func (o *NSProgress) FileCompletedCount() *NSNumber

func (*NSProgress) FileOperationKind

func (o *NSProgress) FileOperationKind() *NSString

func (*NSProgress) FileTotalCount

func (o *NSProgress) FileTotalCount() *NSNumber

func (*NSProgress) FileURL

func (o *NSProgress) FileURL() *NSURL

func (*NSProgress) FractionCompleted

func (o *NSProgress) FractionCompleted() float64

func (*NSProgress) InitWithParentUserInfo

func (o *NSProgress) InitWithParentUserInfo(parentProgressOrNil *NSProgress, userInfoOrNil *NSDictionary[*NSString, objc.ID]) *NSProgress

func (*NSProgress) IsCancellable

func (o *NSProgress) IsCancellable() bool

func (*NSProgress) IsCancelled

func (o *NSProgress) IsCancelled() bool

func (*NSProgress) IsFinished

func (o *NSProgress) IsFinished() bool

func (*NSProgress) IsIndeterminate

func (o *NSProgress) IsIndeterminate() bool

func (*NSProgress) IsOld

func (o *NSProgress) IsOld() bool

func (*NSProgress) IsPausable

func (o *NSProgress) IsPausable() bool

func (*NSProgress) IsPaused

func (o *NSProgress) IsPaused() bool

func (*NSProgress) Kind

func (o *NSProgress) Kind() *NSString

func (*NSProgress) LocalizedAdditionalDescription

func (o *NSProgress) LocalizedAdditionalDescription() *NSString

func (*NSProgress) LocalizedDescription

func (o *NSProgress) LocalizedDescription() *NSString

func (*NSProgress) Pause

func (o *NSProgress) Pause()

func (*NSProgress) PausingHandler

func (o *NSProgress) PausingHandler() objc.Block

func (*NSProgress) PerformAsCurrentWithPendingUnitCountUsing

func (o *NSProgress) PerformAsCurrentWithPendingUnitCountUsing(unitCount int64, work func())

Retrieves the current thread’s progress object, executes the specified block, and increments the progress object by the specified units of work.

func (*NSProgress) Publish

func (o *NSProgress) Publish()

func (*NSProgress) ResignCurrent

func (o *NSProgress) ResignCurrent()

func (*NSProgress) Resume

func (o *NSProgress) Resume()

func (*NSProgress) ResumingHandler

func (o *NSProgress) ResumingHandler() objc.Block

func (*NSProgress) SetCancellable

func (o *NSProgress) SetCancellable(cancellable bool)

func (*NSProgress) SetCancellationHandler

func (o *NSProgress) SetCancellationHandler(cancellationHandler func())

func (*NSProgress) SetCompletedUnitCount

func (o *NSProgress) SetCompletedUnitCount(completedUnitCount int64)

func (*NSProgress) SetEstimatedTimeRemaining

func (o *NSProgress) SetEstimatedTimeRemaining(estimatedTimeRemaining *NSNumber)

func (*NSProgress) SetFileCompletedCount

func (o *NSProgress) SetFileCompletedCount(fileCompletedCount *NSNumber)

func (*NSProgress) SetFileOperationKind

func (o *NSProgress) SetFileOperationKind(fileOperationKind *NSString)

func (*NSProgress) SetFileTotalCount

func (o *NSProgress) SetFileTotalCount(fileTotalCount *NSNumber)

func (*NSProgress) SetFileURL

func (o *NSProgress) SetFileURL(fileURL *NSURL)

func (*NSProgress) SetKind

func (o *NSProgress) SetKind(kind *NSString)

func (*NSProgress) SetLocalizedAdditionalDescription

func (o *NSProgress) SetLocalizedAdditionalDescription(localizedAdditionalDescription *NSString)

func (*NSProgress) SetLocalizedDescription

func (o *NSProgress) SetLocalizedDescription(localizedDescription *NSString)

func (*NSProgress) SetPausable

func (o *NSProgress) SetPausable(pausable bool)

func (*NSProgress) SetPausingHandler

func (o *NSProgress) SetPausingHandler(pausingHandler func())

func (*NSProgress) SetResumingHandler

func (o *NSProgress) SetResumingHandler(resumingHandler func())

func (*NSProgress) SetThroughput

func (o *NSProgress) SetThroughput(throughput *NSNumber)

func (*NSProgress) SetTotalUnitCount

func (o *NSProgress) SetTotalUnitCount(totalUnitCount int64)

func (*NSProgress) SetUserInfoObjectForKey

func (o *NSProgress) SetUserInfoObjectForKey(objectOrNil objc.ID, key *NSString)

func (*NSProgress) Throughput

func (o *NSProgress) Throughput() *NSNumber

func (*NSProgress) TotalUnitCount

func (o *NSProgress) TotalUnitCount() int64

func (*NSProgress) Unpublish

func (o *NSProgress) Unpublish()

func (*NSProgress) UserInfo

func (o *NSProgress) UserInfo() *NSDictionary[*NSString, objc.ID]

type NSProgressReporting

type NSProgressReporting interface {
	Progress() *NSProgress
}

NSProgressReporting wraps the ObjC protocol NSProgressReporting.

type NSPropertyListFormat

type NSPropertyListFormat uint64

These constants are used to specify a property list serialization format.

const (
	NSPropertyListOpenStepFormat    NSPropertyListFormat = 1
	NSPropertyListXMLFormat_v1_0    NSPropertyListFormat = 100
	NSPropertyListBinaryFormat_v1_0 NSPropertyListFormat = 200
)

func (NSPropertyListFormat) String

func (e NSPropertyListFormat) String() string

type NSPropertyListMutabilityOptions

type NSPropertyListMutabilityOptions uint64

These constants specify mutability options in property lists.

const (
	// Causes the returned property list to contain immutable objects.
	NSPropertyListImmutable                  NSPropertyListMutabilityOptions = 0
	NSPropertyListMutableContainers          NSPropertyListMutabilityOptions = 1
	NSPropertyListMutableContainersAndLeaves NSPropertyListMutabilityOptions = 2
)

func (NSPropertyListMutabilityOptions) String

type NSPropertyListSerialization

type NSPropertyListSerialization struct {
	NSObject
}

An object that converts between a property list and one of several serialized representations.

Apple documentation: https://developer.apple.com/documentation/foundation/nspropertylistserialization

func NSPropertyListSerializationFromID

func NSPropertyListSerializationFromID(id objc.ID) *NSPropertyListSerialization

type NSProtocolChecker

type NSProtocolChecker struct {
	NSProxy
}

An object that restricts the messages that can be sent to another object (referred to as the checker’s delegate).

Apple documentation: https://developer.apple.com/documentation/foundation/nsprotocolchecker

func NSProtocolCheckerFromID

func NSProtocolCheckerFromID(id objc.ID) *NSProtocolChecker

func NSProtocolCheckerProtocolCheckerWithTargetProtocol

func NSProtocolCheckerProtocolCheckerWithTargetProtocol(anObject *NSObject, aProtocol unsafe.Pointer) *NSProtocolChecker

Allocates and initializes an NSProtocolChecker instance that will forward any messages in aProtocol to anObject, the protocol checker’s target.

func (*NSProtocolChecker) InitWithTargetProtocol

func (o *NSProtocolChecker) InitWithTargetProtocol(anObject *NSObject, aProtocol unsafe.Pointer) *NSProtocolChecker

Initializes a newly allocated NSProtocolChecker instance that will forward any messages in aProtocol to anObject, the protocol checker’s target.

func (*NSProtocolChecker) Protocol

func (o *NSProtocolChecker) Protocol() unsafe.Pointer

func (*NSProtocolChecker) Target

func (o *NSProtocolChecker) Target() *NSObject

type NSProxy

type NSProxy struct {
	// contains filtered or unexported fields
}

An abstract superclass defining an API for objects that act as stand-ins for other objects or for objects that don’t exist yet.

Apple documentation: https://developer.apple.com/documentation/foundation/nsproxy

func NSProxyFromID

func NSProxyFromID(id objc.ID) *NSProxy

func (*NSProxy) Dealloc

func (o *NSProxy) Dealloc()

Deallocates the memory occupied by the receiver.

func (*NSProxy) DebugDescription

func (o *NSProxy) DebugDescription() *NSString

func (*NSProxy) Description

func (o *NSProxy) Description() *NSString

func (*NSProxy) Finalize

func (o *NSProxy) Finalize()

The garbage collector invokes this method on the receiver before disposing of the memory it uses.

func (*NSProxy) ForwardInvocation

func (o *NSProxy) ForwardInvocation(invocation *NSInvocation)

Passes a given invocation to the real object the proxy represents.

func (*NSProxy) InitPtr

func (o *NSProxy) InitPtr(id objc.ID)

func (*NSProxy) MethodSignatureForSelector

func (o *NSProxy) MethodSignatureForSelector(sel objc.SEL) *NSMethodSignature

Raises NSInvalidArgumentException. Override this method in your concrete subclass to return a proper NSMethodSignature object for the given selector and the class your proxy objects stand in for.

func (*NSProxy) Ptr

func (o *NSProxy) Ptr() objc.ID

type NSPurgeableData

type NSPurgeableData struct {
	NSMutableData
}

A mutable data object containing bytes that can be discarded when they’re no longer needed.

Apple documentation: https://developer.apple.com/documentation/foundation/nspurgeabledata

func NSPurgeableDataFromID

func NSPurgeableDataFromID(id objc.ID) *NSPurgeableData

type NSQualityOfService

type NSQualityOfService int64

Constants that indicate the nature and importance of work to the system.

const (
	NSQualityOfServiceUserInteractive NSQualityOfService = 33
	NSQualityOfServiceUserInitiated   NSQualityOfService = 25
	NSQualityOfServiceUtility         NSQualityOfService = 17
	NSQualityOfServiceBackground      NSQualityOfService = 9
	NSQualityOfServiceDefault         NSQualityOfService = -1
)

func (NSQualityOfService) String

func (e NSQualityOfService) String() string

type NSQuitCommand

type NSQuitCommand struct {
	NSScriptCommand
}

A command that quits the specified app.

Apple documentation: https://developer.apple.com/documentation/foundation/nsquitcommand

func NSQuitCommandFromID

func NSQuitCommandFromID(id objc.ID) *NSQuitCommand

func (*NSQuitCommand) SaveOptions

func (o *NSQuitCommand) SaveOptions() NSSaveOptions

type NSRange

type NSRange struct {
	Location uint
	Length   uint
}

C struct: _NSRange

func NSIntersectionRange

func NSIntersectionRange(range1 NSRange, range2 NSRange) NSRange

func NSMakeRange

func NSMakeRange(loc uint, len_ uint) NSRange

func NSRangeFromString

func NSRangeFromString(aString *NSString) NSRange

func NSUnionRange

func NSUnionRange(range1 NSRange, range2 NSRange) NSRange

type NSRangeSpecifier

type NSRangeSpecifier struct {
	NSScriptObjectSpecifier
}

A specifier for a range of objects in a container.

Apple documentation: https://developer.apple.com/documentation/foundation/nsrangespecifier

func NSRangeSpecifierFromID

func NSRangeSpecifierFromID(id objc.ID) *NSRangeSpecifier

func (*NSRangeSpecifier) EndSpecifier

func (o *NSRangeSpecifier) EndSpecifier() *NSScriptObjectSpecifier

func (*NSRangeSpecifier) InitWithCoder

func (o *NSRangeSpecifier) InitWithCoder(inCoder *NSCoder) *NSRangeSpecifier

func (*NSRangeSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyStartSpecifierEndSpecifier

func (o *NSRangeSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyStartSpecifierEndSpecifier(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString, startSpec *NSScriptObjectSpecifier, endSpec *NSScriptObjectSpecifier) *NSRangeSpecifier

Returns a range specifier initialized with the given properties.

func (*NSRangeSpecifier) SetEndSpecifier

func (o *NSRangeSpecifier) SetEndSpecifier(endSpecifier *NSScriptObjectSpecifier)

func (*NSRangeSpecifier) SetStartSpecifier

func (o *NSRangeSpecifier) SetStartSpecifier(startSpecifier *NSScriptObjectSpecifier)

func (*NSRangeSpecifier) StartSpecifier

func (o *NSRangeSpecifier) StartSpecifier() *NSScriptObjectSpecifier

type NSRectEdge

type NSRectEdge uint64
const (
	// The minimum X edge.
	NSRectEdgeMinX NSRectEdge = 0
	// The minimum Y edge.
	NSRectEdgeMinY NSRectEdge = 1
	// The maximum X edge.
	NSRectEdgeMaxX NSRectEdge = 2
	// The maximum Y edge.
	NSRectEdgeMaxY NSRectEdge = 3
	// The minimum X edge.
	NSMinXEdge NSRectEdge = 0
	// The minimum Y edge.
	NSMinYEdge NSRectEdge = 1
	// The maximum X edge.
	NSMaxXEdge NSRectEdge = 2
	// The maximum Y edge.
	NSMaxYEdge NSRectEdge = 3
)

func (NSRectEdge) String

func (e NSRectEdge) String() string

type NSRecursiveLock

type NSRecursiveLock struct {
	NSObject
}

A lock that may be acquired multiple times by the same thread without causing a deadlock.

Apple documentation: https://developer.apple.com/documentation/foundation/nsrecursivelock

func NSRecursiveLockFromID

func NSRecursiveLockFromID(id objc.ID) *NSRecursiveLock

func (*NSRecursiveLock) LockBeforeDate

func (o *NSRecursiveLock) LockBeforeDate(limit *NSDate) bool

Attempts to acquire a lock before a given date.

func (*NSRecursiveLock) Name

func (o *NSRecursiveLock) Name() *NSString

func (*NSRecursiveLock) SetName

func (o *NSRecursiveLock) SetName(name *NSString)

func (*NSRecursiveLock) TryLock

func (o *NSRecursiveLock) TryLock() bool

Attempts to acquire a lock, and immediately returns a Boolean value that indicates whether the attempt was successful.

type NSRegularExpression

type NSRegularExpression struct {
	NSObject
}

An immutable representation of a compiled regular expression that you apply to Unicode strings.

Apple documentation: https://developer.apple.com/documentation/foundation/nsregularexpression

func NSRegularExpressionFromID

func NSRegularExpressionFromID(id objc.ID) *NSRegularExpression

func NSRegularExpressionRegularExpressionWithPatternOptionsError

func NSRegularExpressionRegularExpressionWithPatternOptionsError(pattern *NSString, options NSRegularExpressionOptions) (*NSRegularExpression, error)

Creates an NSRegularExpression instance with the specified regular expression pattern and options.

func (*NSRegularExpression) EnumerateMatchesInStringOptionsRangeUsing

func (o *NSRegularExpression) EnumerateMatchesInStringOptionsRangeUsing(string_ *NSString, options NSMatchingOptions, range_ NSRange, block func(*NSTextCheckingResult, NSMatchingFlags, *bool))

Enumerates the string allowing the Block to handle each regular expression match.

func (*NSRegularExpression) FirstMatchInStringOptionsRange

func (o *NSRegularExpression) FirstMatchInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) *NSTextCheckingResult

Returns the first match of the regular expression within the specified range of the string.

func (*NSRegularExpression) InitWithPatternOptionsError

func (o *NSRegularExpression) InitWithPatternOptionsError(pattern *NSString, options NSRegularExpressionOptions) (*NSRegularExpression, error)

Returns an initialized NSRegularExpression instance with the specified regular expression pattern and options.

func (*NSRegularExpression) MatchesInStringOptionsRange

func (o *NSRegularExpression) MatchesInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) *NSArray[*NSTextCheckingResult]

Returns an array containing all the matches of the regular expression in the string.

func (*NSRegularExpression) NumberOfCaptureGroups

func (o *NSRegularExpression) NumberOfCaptureGroups() uint

func (*NSRegularExpression) NumberOfMatchesInStringOptionsRange

func (o *NSRegularExpression) NumberOfMatchesInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) uint

Returns the number of matches of the regular expression within the specified range of the string.

func (*NSRegularExpression) Options

func (*NSRegularExpression) Pattern

func (o *NSRegularExpression) Pattern() *NSString

func (*NSRegularExpression) RangeOfFirstMatchInStringOptionsRange

func (o *NSRegularExpression) RangeOfFirstMatchInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) NSRange

Returns the range of the first match of the regular expression within the specified range of the string.

func (*NSRegularExpression) ReplaceMatchesInStringOptionsRangeWithTemplate

func (o *NSRegularExpression) ReplaceMatchesInStringOptionsRangeWithTemplate(string_ *NSMutableString, options NSMatchingOptions, range_ NSRange, templ *NSString) uint

Replaces regular expression matches within the mutable string using the template string.

func (*NSRegularExpression) ReplacementStringForResultInStringOffsetTemplate

func (o *NSRegularExpression) ReplacementStringForResultInStringOffsetTemplate(result *NSTextCheckingResult, string_ *NSString, offset int, templ *NSString) *NSString

Used to perform template substitution for a single result for clients implementing their own replace functionality.

func (*NSRegularExpression) StringByReplacingMatchesInStringOptionsRangeWithTemplate

func (o *NSRegularExpression) StringByReplacingMatchesInStringOptionsRangeWithTemplate(string_ *NSString, options NSMatchingOptions, range_ NSRange, templ *NSString) *NSString

Returns a new string containing matching regular expressions replaced with the template string.

type NSRegularExpressionOptions

type NSRegularExpressionOptions uint64
const (
	NSRegularExpressionCaseInsensitive            NSRegularExpressionOptions = 1
	NSRegularExpressionAllowCommentsAndWhitespace NSRegularExpressionOptions = 2
	NSRegularExpressionIgnoreMetacharacters       NSRegularExpressionOptions = 4
	NSRegularExpressionDotMatchesLineSeparators   NSRegularExpressionOptions = 8
	NSRegularExpressionAnchorsMatchLines          NSRegularExpressionOptions = 16
	NSRegularExpressionUseUnixLineSeparators      NSRegularExpressionOptions = 32
	NSRegularExpressionUseUnicodeWordBoundaries   NSRegularExpressionOptions = 64
)

func (NSRegularExpressionOptions) String

type NSRelativeDateTimeFormatter

type NSRelativeDateTimeFormatter struct {
	NSFormatter
}

A formatter that creates locale-aware string representations of a relative date or time.

Apple documentation: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter

func NSRelativeDateTimeFormatterFromID

func NSRelativeDateTimeFormatterFromID(id objc.ID) *NSRelativeDateTimeFormatter

func (*NSRelativeDateTimeFormatter) Calendar

func (o *NSRelativeDateTimeFormatter) Calendar() *NSCalendar

func (*NSRelativeDateTimeFormatter) DateTimeStyle

func (*NSRelativeDateTimeFormatter) FormattingContext

func (o *NSRelativeDateTimeFormatter) FormattingContext() NSFormattingContext

func (*NSRelativeDateTimeFormatter) Locale

func (*NSRelativeDateTimeFormatter) LocalizedStringForDateRelativeToDate

func (o *NSRelativeDateTimeFormatter) LocalizedStringForDateRelativeToDate(date *NSDate, referenceDate *NSDate) *NSString

func (*NSRelativeDateTimeFormatter) LocalizedStringFromDateComponents

func (o *NSRelativeDateTimeFormatter) LocalizedStringFromDateComponents(dateComponents *NSDateComponents) *NSString

func (*NSRelativeDateTimeFormatter) LocalizedStringFromTimeInterval

func (o *NSRelativeDateTimeFormatter) LocalizedStringFromTimeInterval(timeInterval float64) *NSString

func (*NSRelativeDateTimeFormatter) SetCalendar

func (o *NSRelativeDateTimeFormatter) SetCalendar(calendar *NSCalendar)

func (*NSRelativeDateTimeFormatter) SetDateTimeStyle

func (o *NSRelativeDateTimeFormatter) SetDateTimeStyle(dateTimeStyle NSRelativeDateTimeFormatterStyle)

func (*NSRelativeDateTimeFormatter) SetFormattingContext

func (o *NSRelativeDateTimeFormatter) SetFormattingContext(formattingContext NSFormattingContext)

func (*NSRelativeDateTimeFormatter) SetLocale

func (o *NSRelativeDateTimeFormatter) SetLocale(locale *NSLocale)

func (*NSRelativeDateTimeFormatter) SetUnitsStyle

func (*NSRelativeDateTimeFormatter) UnitsStyle

type NSRelativeDateTimeFormatterStyle

type NSRelativeDateTimeFormatterStyle int64

A type that represents the style to use when formatting relative dates, such as “1 week ago” or “last week”.

const (
	NSRelativeDateTimeFormatterStyleNumeric NSRelativeDateTimeFormatterStyle = 0
	NSRelativeDateTimeFormatterStyleNamed   NSRelativeDateTimeFormatterStyle = 1
)

func (NSRelativeDateTimeFormatterStyle) String

type NSRelativeDateTimeFormatterUnitsStyle

type NSRelativeDateTimeFormatterUnitsStyle int64

A type that represents the style to use when formatting the units of relative dates.

const (
	NSRelativeDateTimeFormatterUnitsStyleFull        NSRelativeDateTimeFormatterUnitsStyle = 0
	NSRelativeDateTimeFormatterUnitsStyleSpellOut    NSRelativeDateTimeFormatterUnitsStyle = 1
	NSRelativeDateTimeFormatterUnitsStyleShort       NSRelativeDateTimeFormatterUnitsStyle = 2
	NSRelativeDateTimeFormatterUnitsStyleAbbreviated NSRelativeDateTimeFormatterUnitsStyle = 3
)

func (NSRelativeDateTimeFormatterUnitsStyle) String

type NSRelativePosition

type NSRelativePosition uint64

These constants are used by relativePosition and relativePosition.

const (
	NSRelativeAfter  NSRelativePosition = 0
	NSRelativeBefore NSRelativePosition = 1
)

func (NSRelativePosition) String

func (e NSRelativePosition) String() string

type NSRelativeSpecifier

type NSRelativeSpecifier struct {
	NSScriptObjectSpecifier
}

A specifier that indicates an object in a collection by its position relative to another object.

Apple documentation: https://developer.apple.com/documentation/foundation/nsrelativespecifier

func NSRelativeSpecifierFromID

func NSRelativeSpecifierFromID(id objc.ID) *NSRelativeSpecifier

func (*NSRelativeSpecifier) BaseSpecifier

func (o *NSRelativeSpecifier) BaseSpecifier() *NSScriptObjectSpecifier

func (*NSRelativeSpecifier) InitWithCoder

func (o *NSRelativeSpecifier) InitWithCoder(inCoder *NSCoder) *NSRelativeSpecifier

func (*NSRelativeSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyRelativePositionBaseSpecifier

func (o *NSRelativeSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyRelativePositionBaseSpecifier(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString, relPos NSRelativePosition, baseSpecifier *NSScriptObjectSpecifier) *NSRelativeSpecifier

Invokes the super class’s initWithContainerClassDescription:containerSpecifier:key: method and initializes the relative position and base specifier to relPos and baseSpecifier.

func (*NSRelativeSpecifier) RelativePosition

func (o *NSRelativeSpecifier) RelativePosition() NSRelativePosition

func (*NSRelativeSpecifier) SetBaseSpecifier

func (o *NSRelativeSpecifier) SetBaseSpecifier(baseSpecifier *NSScriptObjectSpecifier)

func (*NSRelativeSpecifier) SetRelativePosition

func (o *NSRelativeSpecifier) SetRelativePosition(relativePosition NSRelativePosition)

type NSRoundingMode

type NSRoundingMode uint64

These constants specify rounding behaviors.

const (
	NSRoundPlain   NSRoundingMode = 0
	NSRoundDown    NSRoundingMode = 1
	NSRoundUp      NSRoundingMode = 2
	NSRoundBankers NSRoundingMode = 3
)

func (NSRoundingMode) String

func (e NSRoundingMode) String() string

type NSRunLoop

type NSRunLoop struct {
	NSObject
}

The programmatic interface to objects that manage input sources.

Apple documentation: https://developer.apple.com/documentation/foundation/nsrunloop

func NSRunLoopCurrentRunLoop

func NSRunLoopCurrentRunLoop() *NSRunLoop

func NSRunLoopFromID

func NSRunLoopFromID(id objc.ID) *NSRunLoop

func NSRunLoopMainRunLoop

func NSRunLoopMainRunLoop() *NSRunLoop

func (*NSRunLoop) AcceptInputForModeBeforeDate

func (o *NSRunLoop) AcceptInputForModeBeforeDate(mode *NSString, limitDate *NSDate)

func (*NSRunLoop) AddPortForMode

func (o *NSRunLoop) AddPortForMode(aPort *NSPort, mode *NSString)

func (*NSRunLoop) AddTimerForMode

func (o *NSRunLoop) AddTimerForMode(timer *NSTimer, mode *NSString)

func (*NSRunLoop) CancelPerformSelectorTargetArgument

func (o *NSRunLoop) CancelPerformSelectorTargetArgument(aSelector objc.SEL, target objc.ID, arg objc.ID)

func (*NSRunLoop) CancelPerformSelectorsWithTarget

func (o *NSRunLoop) CancelPerformSelectorsWithTarget(target objc.ID)

func (*NSRunLoop) ConfigureAsServer

func (o *NSRunLoop) ConfigureAsServer()

Deprecated. Does nothing. Deprecated: Not supported

func (*NSRunLoop) CurrentMode

func (o *NSRunLoop) CurrentMode() *NSString

func (*NSRunLoop) GetCFRunLoop

func (o *NSRunLoop) GetCFRunLoop() unsafe.Pointer

func (*NSRunLoop) LimitDateForMode

func (o *NSRunLoop) LimitDateForMode(mode *NSString) *NSDate

func (*NSRunLoop) PerformBlock

func (o *NSRunLoop) PerformBlock(block func())

Schedules the execution of a block on the target run loop. - parameter: block The block to execute

func (*NSRunLoop) PerformInModesBlock

func (o *NSRunLoop) PerformInModesBlock(modes *NSArray[*NSString], block func())

Schedules the execution of a block on the target run loop in given modes. - parameter: modes An array of input modes for which the block may be executed. - parameter: block The block to execute

func (*NSRunLoop) PerformSelectorTargetArgumentOrderModes

func (o *NSRunLoop) PerformSelectorTargetArgumentOrderModes(aSelector objc.SEL, target objc.ID, arg objc.ID, order uint, modes *NSArray[*NSString])

func (*NSRunLoop) RemovePortForMode

func (o *NSRunLoop) RemovePortForMode(aPort *NSPort, mode *NSString)

func (*NSRunLoop) Run

func (o *NSRunLoop) Run()

func (*NSRunLoop) RunModeBeforeDate

func (o *NSRunLoop) RunModeBeforeDate(mode *NSString, limitDate *NSDate) bool

func (*NSRunLoop) RunUntilDate

func (o *NSRunLoop) RunUntilDate(limitDate *NSDate)

type NSSaveOptions

type NSSaveOptions uint64

The saveOptions method returns one of the following constants to indicate how to deal with saving any modified documents:

const (
	// Indicates a modified document should be saved on closing without asking the user.
	NSSaveOptionsYes NSSaveOptions = 0
	// Indicates a modified document should not be saved on closing.
	NSSaveOptionsNo NSSaveOptions = 1
	// Indicates the user should be asked before saving any modified documents on closing. When no option is specified, this is the default.
	NSSaveOptionsAsk NSSaveOptions = 2
)

func (NSSaveOptions) String

func (e NSSaveOptions) String() string

type NSScanner

type NSScanner struct {
	NSObject
}

A string parser that scans for substrings or characters in a character set, and for numeric values from decimal, hexadecimal, and floating-point representations.

Apple documentation: https://developer.apple.com/documentation/foundation/nsscanner

func NSScannerFromID

func NSScannerFromID(id objc.ID) *NSScanner

func NSScannerScannerWithString

func NSScannerScannerWithString(string_ *NSString) *NSScanner

Returns an NSScanner object that scans a given string.

func (*NSScanner) CaseSensitive

func (o *NSScanner) CaseSensitive() bool

func (*NSScanner) CharactersToBeSkipped

func (o *NSScanner) CharactersToBeSkipped() *NSCharacterSet

func (*NSScanner) InitWithString

func (o *NSScanner) InitWithString(string_ *NSString) *NSScanner

func (*NSScanner) IsAtEnd

func (o *NSScanner) IsAtEnd() bool

func (*NSScanner) Locale

func (o *NSScanner) Locale() objc.ID

func (*NSScanner) ScanCharactersFromSetIntoString

func (o *NSScanner) ScanCharactersFromSetIntoString(set *NSCharacterSet, result *NSString) bool

func (*NSScanner) ScanDecimal

func (o *NSScanner) ScanDecimal(dcm *NSDecimal) bool

func (*NSScanner) ScanDouble

func (o *NSScanner) ScanDouble(result *float64) bool

func (*NSScanner) ScanFloat

func (o *NSScanner) ScanFloat(result *float32) bool

func (*NSScanner) ScanHexDouble

func (o *NSScanner) ScanHexDouble(result *float64) bool

func (*NSScanner) ScanHexFloat

func (o *NSScanner) ScanHexFloat(result *float32) bool

func (*NSScanner) ScanHexInt

func (o *NSScanner) ScanHexInt(result *uint32) bool

func (*NSScanner) ScanHexLongLong

func (o *NSScanner) ScanHexLongLong(result *uint64) bool

func (*NSScanner) ScanInt

func (o *NSScanner) ScanInt(result *int32) bool

func (*NSScanner) ScanInteger

func (o *NSScanner) ScanInteger(result *int64) bool

func (*NSScanner) ScanLocation

func (o *NSScanner) ScanLocation() uint

func (*NSScanner) ScanLongLong

func (o *NSScanner) ScanLongLong(result *int64) bool

func (*NSScanner) ScanStringIntoString

func (o *NSScanner) ScanStringIntoString(string_ *NSString, result *NSString) bool

func (*NSScanner) ScanUnsignedLongLong

func (o *NSScanner) ScanUnsignedLongLong(result *uint64) bool

func (*NSScanner) ScanUpToCharactersFromSetIntoString

func (o *NSScanner) ScanUpToCharactersFromSetIntoString(set *NSCharacterSet, result *NSString) bool

func (*NSScanner) ScanUpToStringIntoString

func (o *NSScanner) ScanUpToStringIntoString(string_ *NSString, result *NSString) bool

func (*NSScanner) SetCaseSensitive

func (o *NSScanner) SetCaseSensitive(caseSensitive bool)

func (*NSScanner) SetCharactersToBeSkipped

func (o *NSScanner) SetCharactersToBeSkipped(charactersToBeSkipped *NSCharacterSet)

func (*NSScanner) SetLocale

func (o *NSScanner) SetLocale(locale objc.ID)

func (*NSScanner) SetScanLocation

func (o *NSScanner) SetScanLocation(scanLocation uint)

func (*NSScanner) String

func (o *NSScanner) String() *NSString

type NSScriptClassDescription

type NSScriptClassDescription struct {
	NSClassDescription
}

A scriptable class that a macOS app supports.

Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptclassdescription

func NSScriptClassDescriptionClassDescriptionForClass

func NSScriptClassDescriptionClassDescriptionForClass(aClass objc.Class) *NSScriptClassDescription

Returns the class description for the specified class or, if it is not scriptable, for the first superclass that is.

func NSScriptClassDescriptionFromID

func NSScriptClassDescriptionFromID(id objc.ID) *NSScriptClassDescription

func (*NSScriptClassDescription) AppleEventCode

func (o *NSScriptClassDescription) AppleEventCode() uint

func (*NSScriptClassDescription) AppleEventCodeForKey

func (o *NSScriptClassDescription) AppleEventCodeForKey(key *NSString) uint

Returns the Apple event code for the specified attribute or relationship in the receiver.

func (*NSScriptClassDescription) ClassDescriptionForKey

func (o *NSScriptClassDescription) ClassDescriptionForKey(key *NSString) *NSScriptClassDescription

Returns the class description instance for the class type of the specified attribute or relationship.

func (*NSScriptClassDescription) DefaultSubcontainerAttributeKey

func (o *NSScriptClassDescription) DefaultSubcontainerAttributeKey() *NSString

func (*NSScriptClassDescription) HasOrderedToManyRelationshipForKey

func (o *NSScriptClassDescription) HasOrderedToManyRelationshipForKey(key *NSString) bool

Returns a Boolean value indicating whether the described class has an ordered to-many relationship identified by the specified key.

func (*NSScriptClassDescription) HasPropertyForKey

func (o *NSScriptClassDescription) HasPropertyForKey(key *NSString) bool

Returns a Boolean value indicating whether the described class has a property identified by the specified key.

func (*NSScriptClassDescription) HasReadablePropertyForKey

func (o *NSScriptClassDescription) HasReadablePropertyForKey(key *NSString) bool

Returns a Boolean value indicating whether the described class has a readable property identified by the specified key.

func (*NSScriptClassDescription) HasWritablePropertyForKey

func (o *NSScriptClassDescription) HasWritablePropertyForKey(key *NSString) bool

Returns a Boolean value indicating whether the described class has a writable property identified by the specified key.

func (*NSScriptClassDescription) ImplementationClassName

func (o *NSScriptClassDescription) ImplementationClassName() *NSString

func (*NSScriptClassDescription) InitWithSuiteNameClassNameDictionary

func (o *NSScriptClassDescription) InitWithSuiteNameClassNameDictionary(suiteName *NSString, className *NSString, classDeclaration *NSDictionary[objc.ID, objc.ID]) *NSScriptClassDescription

Initializes and returns a newly allocated instance of NSScriptClassDescription.

func (*NSScriptClassDescription) IsLocationRequiredToCreateForKey

func (o *NSScriptClassDescription) IsLocationRequiredToCreateForKey(toManyRelationshipKey *NSString) bool

Returns a Boolean value indicating whether an insertion location must be specified when creating a new object in the specified to-many relationship of the receiver.

func (*NSScriptClassDescription) IsReadOnlyKey

func (o *NSScriptClassDescription) IsReadOnlyKey(key *NSString) bool

Returns a Boolean value indicating whether a specified property in the receiver is read-only. Deprecated: since macOS 10.5.

func (*NSScriptClassDescription) KeyWithAppleEventCode

func (o *NSScriptClassDescription) KeyWithAppleEventCode(appleEventCode uint) *NSString

Given an Apple event code that identifies a property or element class, returns the key for the corresponding attribute, one-to-one relationship, or one-to-many relationship.

func (*NSScriptClassDescription) MatchesAppleEventCode

func (o *NSScriptClassDescription) MatchesAppleEventCode(appleEventCode uint) bool

Returns a Boolean value indicating whether a primary or secondary Apple event code in the receiver matches the passed code.

func (*NSScriptClassDescription) SelectorForCommand

func (o *NSScriptClassDescription) SelectorForCommand(commandDescription *NSScriptCommandDescription) objc.SEL

Returns the selector associated with the receiver for the specified command description.

func (*NSScriptClassDescription) SuiteName

func (o *NSScriptClassDescription) SuiteName() *NSString

func (*NSScriptClassDescription) SuperclassDescription

func (o *NSScriptClassDescription) SuperclassDescription() *NSScriptClassDescription

func (*NSScriptClassDescription) SupportsCommand

func (o *NSScriptClassDescription) SupportsCommand(commandDescription *NSScriptCommandDescription) bool

Returns a Boolean value indicating whether the receiver or any superclass supports the specified command.

func (*NSScriptClassDescription) TypeForKey

func (o *NSScriptClassDescription) TypeForKey(key *NSString) *NSString

Returns the name of the declared type of the attribute or relationship identified by the passed key.

type NSScriptCoercionHandler

type NSScriptCoercionHandler struct {
	NSObject
}

A mechanism for converting one kind of scripting data to another.

Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptcoercionhandler

func NSScriptCoercionHandlerFromID

func NSScriptCoercionHandlerFromID(id objc.ID) *NSScriptCoercionHandler

func NSScriptCoercionHandlerSharedCoercionHandler

func NSScriptCoercionHandlerSharedCoercionHandler() *NSScriptCoercionHandler

Returns the shared NSScriptCoercionHandler for the application.

func (*NSScriptCoercionHandler) CoerceValueToClass

func (o *NSScriptCoercionHandler) CoerceValueToClass(value objc.ID, toClass objc.Class) objc.ID

Returns an object of a given class representing a given value.

func (*NSScriptCoercionHandler) RegisterCoercerSelectorToConvertFromClassToClass

func (o *NSScriptCoercionHandler) RegisterCoercerSelectorToConvertFromClassToClass(coercer objc.ID, selector objc.SEL, fromClass objc.Class, toClass objc.Class)

Registers a given object (typically a class) to handle coercions (conversions) from one given class to another.

type NSScriptCommand

type NSScriptCommand struct {
	NSObject
}

A self-contained scripting statement.

Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptcommand

func NSScriptCommandCurrentCommand

func NSScriptCommandCurrentCommand() *NSScriptCommand

If a command is being executed in the current thread by Cocoa scripting’s built-in Apple event handling, return the command.

func NSScriptCommandFromID

func NSScriptCommandFromID(id objc.ID) *NSScriptCommand

func (*NSScriptCommand) AppleEvent

func (o *NSScriptCommand) AppleEvent() *NSAppleEventDescriptor

func (*NSScriptCommand) Arguments

func (o *NSScriptCommand) Arguments() *NSDictionary[*NSString, objc.ID]

func (*NSScriptCommand) CommandDescription

func (o *NSScriptCommand) CommandDescription() *NSScriptCommandDescription

func (*NSScriptCommand) DirectParameter

func (o *NSScriptCommand) DirectParameter() objc.ID

func (*NSScriptCommand) EvaluatedArguments

func (o *NSScriptCommand) EvaluatedArguments() *NSDictionary[*NSString, objc.ID]

func (*NSScriptCommand) EvaluatedReceivers

func (o *NSScriptCommand) EvaluatedReceivers() objc.ID

func (*NSScriptCommand) ExecuteCommand

func (o *NSScriptCommand) ExecuteCommand() objc.ID

Executes the command if it is valid and returns the result, if any.

func (*NSScriptCommand) InitWithCoder

func (o *NSScriptCommand) InitWithCoder(inCoder *NSCoder) *NSScriptCommand

func (*NSScriptCommand) InitWithCommandDescription

func (o *NSScriptCommand) InitWithCommandDescription(commandDef *NSScriptCommandDescription) *NSScriptCommand

Returns an a script command object initialized from the passed command description.

func (*NSScriptCommand) IsWellFormed

func (o *NSScriptCommand) IsWellFormed() bool

func (*NSScriptCommand) PerformDefaultImplementation

func (o *NSScriptCommand) PerformDefaultImplementation() objc.ID

Overridden by subclasses to provide a default implementation for the command represented by the receiver.

func (*NSScriptCommand) ReceiversSpecifier

func (o *NSScriptCommand) ReceiversSpecifier() *NSScriptObjectSpecifier

func (*NSScriptCommand) ResumeExecutionWithResult

func (o *NSScriptCommand) ResumeExecutionWithResult(result objc.ID)

If a successful, unmatched, invocation of suspendExecution has been made, resume the execution of the command.

func (*NSScriptCommand) ScriptErrorExpectedTypeDescriptor

func (o *NSScriptCommand) ScriptErrorExpectedTypeDescriptor() *NSAppleEventDescriptor

func (*NSScriptCommand) ScriptErrorNumber

func (o *NSScriptCommand) ScriptErrorNumber() int

func (*NSScriptCommand) ScriptErrorOffendingObjectDescriptor

func (o *NSScriptCommand) ScriptErrorOffendingObjectDescriptor() *NSAppleEventDescriptor

func (*NSScriptCommand) ScriptErrorString

func (o *NSScriptCommand) ScriptErrorString() *NSString

func (*NSScriptCommand) SetArguments

func (o *NSScriptCommand) SetArguments(arguments *NSDictionary[*NSString, objc.ID])

func (*NSScriptCommand) SetDirectParameter

func (o *NSScriptCommand) SetDirectParameter(directParameter objc.ID)

func (*NSScriptCommand) SetReceiversSpecifier

func (o *NSScriptCommand) SetReceiversSpecifier(receiversSpecifier *NSScriptObjectSpecifier)

func (*NSScriptCommand) SetScriptErrorExpectedTypeDescriptor

func (o *NSScriptCommand) SetScriptErrorExpectedTypeDescriptor(scriptErrorExpectedTypeDescriptor *NSAppleEventDescriptor)

func (*NSScriptCommand) SetScriptErrorNumber

func (o *NSScriptCommand) SetScriptErrorNumber(scriptErrorNumber int)

func (*NSScriptCommand) SetScriptErrorOffendingObjectDescriptor

func (o *NSScriptCommand) SetScriptErrorOffendingObjectDescriptor(scriptErrorOffendingObjectDescriptor *NSAppleEventDescriptor)

func (*NSScriptCommand) SetScriptErrorString

func (o *NSScriptCommand) SetScriptErrorString(scriptErrorString *NSString)

func (*NSScriptCommand) SuspendExecution

func (o *NSScriptCommand) SuspendExecution()

Suspends the execution of the receiver.

type NSScriptCommandDescription

type NSScriptCommandDescription struct {
	NSObject
}

A script command that a macOS app supports.

Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription

func NSScriptCommandDescriptionFromID

func NSScriptCommandDescriptionFromID(id objc.ID) *NSScriptCommandDescription

func (*NSScriptCommandDescription) AppleEventClassCode

func (o *NSScriptCommandDescription) AppleEventClassCode() uint

func (*NSScriptCommandDescription) AppleEventCode

func (o *NSScriptCommandDescription) AppleEventCode() uint

func (*NSScriptCommandDescription) AppleEventCodeForArgumentWithName

func (o *NSScriptCommandDescription) AppleEventCodeForArgumentWithName(argumentName *NSString) uint

Returns the Apple event code for the specified command argument of the receiver.

func (*NSScriptCommandDescription) AppleEventCodeForReturnType

func (o *NSScriptCommandDescription) AppleEventCodeForReturnType() uint

func (*NSScriptCommandDescription) ArgumentNames

func (o *NSScriptCommandDescription) ArgumentNames() *NSArray[*NSString]

func (*NSScriptCommandDescription) CommandClassName

func (o *NSScriptCommandDescription) CommandClassName() *NSString

func (*NSScriptCommandDescription) CommandName

func (o *NSScriptCommandDescription) CommandName() *NSString

func (*NSScriptCommandDescription) CreateCommandInstance

func (o *NSScriptCommandDescription) CreateCommandInstance() *NSScriptCommand

Creates and returns an instance of the command object described by the receiver.

func (*NSScriptCommandDescription) CreateCommandInstanceWithZone

func (o *NSScriptCommandDescription) CreateCommandInstanceWithZone(zone unsafe.Pointer) *NSScriptCommand

Creates and returns an instance of the command object described by the receiver in the specified memory zone.

func (*NSScriptCommandDescription) InitWithCoder

func (*NSScriptCommandDescription) InitWithSuiteNameCommandNameDictionary

func (o *NSScriptCommandDescription) InitWithSuiteNameCommandNameDictionary(suiteName *NSString, commandName *NSString, commandDeclaration *NSDictionary[objc.ID, objc.ID]) *NSScriptCommandDescription

Initializes and returns a newly allocated instance of NSScriptCommandDescription.

func (*NSScriptCommandDescription) IsOptionalArgumentWithName

func (o *NSScriptCommandDescription) IsOptionalArgumentWithName(argumentName *NSString) bool

Returns a Boolean value that indicates whether the command argument identified by the specified argument key is an optional argument.

func (*NSScriptCommandDescription) ReturnType

func (o *NSScriptCommandDescription) ReturnType() *NSString

func (*NSScriptCommandDescription) SuiteName

func (o *NSScriptCommandDescription) SuiteName() *NSString

func (*NSScriptCommandDescription) TypeForArgumentWithName

func (o *NSScriptCommandDescription) TypeForArgumentWithName(argumentName *NSString) *NSString

Returns the type of the command argument identified by the specified key.

type NSScriptExecutionContext

type NSScriptExecutionContext struct {
	NSObject
}

The context in which the current script command is executed.

Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptexecutioncontext

func NSScriptExecutionContextFromID

func NSScriptExecutionContextFromID(id objc.ID) *NSScriptExecutionContext

func NSScriptExecutionContextSharedScriptExecutionContext

func NSScriptExecutionContextSharedScriptExecutionContext() *NSScriptExecutionContext

Returns the shared NSScriptExecutionContext instance.

func (*NSScriptExecutionContext) ObjectBeingTested

func (o *NSScriptExecutionContext) ObjectBeingTested() objc.ID

func (*NSScriptExecutionContext) RangeContainerObject

func (o *NSScriptExecutionContext) RangeContainerObject() objc.ID

func (*NSScriptExecutionContext) SetObjectBeingTested

func (o *NSScriptExecutionContext) SetObjectBeingTested(objectBeingTested objc.ID)

func (*NSScriptExecutionContext) SetRangeContainerObject

func (o *NSScriptExecutionContext) SetRangeContainerObject(rangeContainerObject objc.ID)

func (*NSScriptExecutionContext) SetTopLevelObject

func (o *NSScriptExecutionContext) SetTopLevelObject(topLevelObject objc.ID)

func (*NSScriptExecutionContext) TopLevelObject

func (o *NSScriptExecutionContext) TopLevelObject() objc.ID

type NSScriptObjectSpecifier

type NSScriptObjectSpecifier struct {
	NSObject
}

An abstract class used to represent natural language expressions.

Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier

func NSScriptObjectSpecifierFromID

func NSScriptObjectSpecifierFromID(id objc.ID) *NSScriptObjectSpecifier

func NSScriptObjectSpecifierObjectSpecifierWithDescriptor

func NSScriptObjectSpecifierObjectSpecifierWithDescriptor(descriptor *NSAppleEventDescriptor) *NSScriptObjectSpecifier

Returns a new object specifier for an Apple event descriptor.

func (*NSScriptObjectSpecifier) ChildSpecifier

func (o *NSScriptObjectSpecifier) ChildSpecifier() *NSScriptObjectSpecifier

func (*NSScriptObjectSpecifier) ContainerClassDescription

func (o *NSScriptObjectSpecifier) ContainerClassDescription() *NSScriptClassDescription

func (*NSScriptObjectSpecifier) ContainerIsObjectBeingTested

func (o *NSScriptObjectSpecifier) ContainerIsObjectBeingTested() bool

func (*NSScriptObjectSpecifier) ContainerIsRangeContainerObject

func (o *NSScriptObjectSpecifier) ContainerIsRangeContainerObject() bool

func (*NSScriptObjectSpecifier) ContainerSpecifier

func (o *NSScriptObjectSpecifier) ContainerSpecifier() *NSScriptObjectSpecifier

func (*NSScriptObjectSpecifier) Descriptor

func (*NSScriptObjectSpecifier) EvaluationErrorNumber

func (o *NSScriptObjectSpecifier) EvaluationErrorNumber() int

func (*NSScriptObjectSpecifier) EvaluationErrorSpecifier

func (o *NSScriptObjectSpecifier) EvaluationErrorSpecifier() *NSScriptObjectSpecifier

func (*NSScriptObjectSpecifier) IndicesOfObjectsByEvaluatingWithContainerCount

func (o *NSScriptObjectSpecifier) IndicesOfObjectsByEvaluatingWithContainerCount(container objc.ID, count *int64) *int64

This primitive method must be overridden by subclasses to return a pointer to an array of indices identifying objects in the key of a given container that are identified by the receiver of the message.

func (*NSScriptObjectSpecifier) InitWithCoder

func (o *NSScriptObjectSpecifier) InitWithCoder(inCoder *NSCoder) *NSScriptObjectSpecifier

func (*NSScriptObjectSpecifier) InitWithContainerClassDescriptionContainerSpecifierKey

func (o *NSScriptObjectSpecifier) InitWithContainerClassDescriptionContainerSpecifierKey(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString) *NSScriptObjectSpecifier

Returns an NSScriptObjectSpecifier object initialized with the given attributes.

func (*NSScriptObjectSpecifier) InitWithContainerSpecifierKey

func (o *NSScriptObjectSpecifier) InitWithContainerSpecifierKey(container *NSScriptObjectSpecifier, property *NSString) *NSScriptObjectSpecifier

Returns an NSScriptObjectSpecifier object initialized with a given container specifier and key.

func (*NSScriptObjectSpecifier) Key

func (*NSScriptObjectSpecifier) KeyClassDescription

func (o *NSScriptObjectSpecifier) KeyClassDescription() *NSScriptClassDescription

func (*NSScriptObjectSpecifier) ObjectsByEvaluatingSpecifier

func (o *NSScriptObjectSpecifier) ObjectsByEvaluatingSpecifier() objc.ID

func (*NSScriptObjectSpecifier) ObjectsByEvaluatingWithContainers

func (o *NSScriptObjectSpecifier) ObjectsByEvaluatingWithContainers(containers objc.ID) objc.ID

Returns the actual object or objects specified by the receiver as evaluated in the context of given container object.

func (*NSScriptObjectSpecifier) SetChildSpecifier

func (o *NSScriptObjectSpecifier) SetChildSpecifier(childSpecifier *NSScriptObjectSpecifier)

func (*NSScriptObjectSpecifier) SetContainerClassDescription

func (o *NSScriptObjectSpecifier) SetContainerClassDescription(containerClassDescription *NSScriptClassDescription)

func (*NSScriptObjectSpecifier) SetContainerIsObjectBeingTested

func (o *NSScriptObjectSpecifier) SetContainerIsObjectBeingTested(containerIsObjectBeingTested bool)

func (*NSScriptObjectSpecifier) SetContainerIsRangeContainerObject

func (o *NSScriptObjectSpecifier) SetContainerIsRangeContainerObject(containerIsRangeContainerObject bool)

func (*NSScriptObjectSpecifier) SetContainerSpecifier

func (o *NSScriptObjectSpecifier) SetContainerSpecifier(containerSpecifier *NSScriptObjectSpecifier)

func (*NSScriptObjectSpecifier) SetEvaluationErrorNumber

func (o *NSScriptObjectSpecifier) SetEvaluationErrorNumber(evaluationErrorNumber int)

func (*NSScriptObjectSpecifier) SetKey

func (o *NSScriptObjectSpecifier) SetKey(key *NSString)

type NSScriptSuiteRegistry

type NSScriptSuiteRegistry struct {
	NSObject
}

The top-level repository of scriptability information for an app at runtime.

Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry

func NSScriptSuiteRegistryFromID

func NSScriptSuiteRegistryFromID(id objc.ID) *NSScriptSuiteRegistry

func NSScriptSuiteRegistrySharedScriptSuiteRegistry

func NSScriptSuiteRegistrySharedScriptSuiteRegistry() *NSScriptSuiteRegistry

Returns the single, shared instance of NSScriptSuiteRegistry, creating it first if it doesn’t exist.

func (*NSScriptSuiteRegistry) AeteResource

func (o *NSScriptSuiteRegistry) AeteResource(languageName *NSString) *NSData

Returns an NSData object that contains data in 'aete' resource format describing the scriptability information currently known to the application.

func (*NSScriptSuiteRegistry) AppleEventCodeForSuite

func (o *NSScriptSuiteRegistry) AppleEventCodeForSuite(suiteName *NSString) uint

Returns the Apple event code associated with the suite named suiteName, such as ‘core’ for the Core suite.

func (*NSScriptSuiteRegistry) BundleForSuite

func (o *NSScriptSuiteRegistry) BundleForSuite(suiteName *NSString) *NSBundle

Returns the bundle containing the suite-definition property list (extension .scriptSuite) identified by suiteName.

func (*NSScriptSuiteRegistry) ClassDescriptionWithAppleEventCode

func (o *NSScriptSuiteRegistry) ClassDescriptionWithAppleEventCode(appleEventCode uint) *NSScriptClassDescription

Returns the class description associated with the given four-character Apple event code, code.

func (*NSScriptSuiteRegistry) ClassDescriptionsInSuite

func (o *NSScriptSuiteRegistry) ClassDescriptionsInSuite(suiteName *NSString) *NSDictionary[*NSString, *NSScriptClassDescription]

Returns the class descriptions contained in the suite identified by suiteName.

func (*NSScriptSuiteRegistry) CommandDescriptionWithAppleEventClassAndAppleEventCode

func (o *NSScriptSuiteRegistry) CommandDescriptionWithAppleEventClassAndAppleEventCode(appleEventClassCode uint, appleEventIDCode uint) *NSScriptCommandDescription

Returns the command description identified by a suite’s four-character Apple event code of the class (eventClass) and the four-character Apple event code of the command (commandCode).

func (*NSScriptSuiteRegistry) CommandDescriptionsInSuite

func (o *NSScriptSuiteRegistry) CommandDescriptionsInSuite(suiteName *NSString) *NSDictionary[*NSString, *NSScriptCommandDescription]

Returns the command descriptions contained in the suite identified by suiteName.

func (*NSScriptSuiteRegistry) LoadSuiteWithDictionaryFromBundle

func (o *NSScriptSuiteRegistry) LoadSuiteWithDictionaryFromBundle(suiteDeclaration *NSDictionary[objc.ID, objc.ID], bundle *NSBundle)

Loads the suite definition encapsulated in dictionary; previously, this suite definition was parsed from a .scriptSuite property list contained in a framework or in bundle.

func (*NSScriptSuiteRegistry) LoadSuitesFromBundle

func (o *NSScriptSuiteRegistry) LoadSuitesFromBundle(bundle *NSBundle)

Loads the suite definitions in bundle aBundle, invoking loadSuiteWithDictionary:fromBundle: for each suite found.

func (*NSScriptSuiteRegistry) RegisterClassDescription

func (o *NSScriptSuiteRegistry) RegisterClassDescription(classDescription *NSScriptClassDescription)

Registers class description classDescription for use by Cocoa’s built-in scripting support by storing it in a per-suite internal dictionary under the class name.

func (*NSScriptSuiteRegistry) RegisterCommandDescription

func (o *NSScriptSuiteRegistry) RegisterCommandDescription(commandDescription *NSScriptCommandDescription)

Registers command description commandDesc for use by Cocoa’s built-in scripting support by storing it in a per-suite internal dictionary under the command name.

func (*NSScriptSuiteRegistry) SuiteForAppleEventCode

func (o *NSScriptSuiteRegistry) SuiteForAppleEventCode(appleEventCode uint) *NSString

Returns the name of the suite definition associated with the given four-character Apple event code, code.

func (*NSScriptSuiteRegistry) SuiteNames

func (o *NSScriptSuiteRegistry) SuiteNames() *NSArray[*NSString]

type NSScriptWhoseTest

type NSScriptWhoseTest struct {
	NSObject
}

An abstract class that provides the basis for testing specifiers one at a time or in groups.

Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptwhosetest

func NSScriptWhoseTestFromID

func NSScriptWhoseTestFromID(id objc.ID) *NSScriptWhoseTest

func (*NSScriptWhoseTest) Init

func (*NSScriptWhoseTest) InitWithCoder

func (o *NSScriptWhoseTest) InitWithCoder(inCoder *NSCoder) *NSScriptWhoseTest

func (*NSScriptWhoseTest) IsTrue

func (o *NSScriptWhoseTest) IsTrue() bool

Returns a Boolean value that indicates whether the test represented by the receiver evaluates to true.

type NSSearchPathDirectory

type NSSearchPathDirectory uint64

The location of significant directories.

const (
	NSApplicationDirectory          NSSearchPathDirectory = 1
	NSDemoApplicationDirectory      NSSearchPathDirectory = 2
	NSDeveloperApplicationDirectory NSSearchPathDirectory = 3
	NSAdminApplicationDirectory     NSSearchPathDirectory = 4
	NSLibraryDirectory              NSSearchPathDirectory = 5
	NSDeveloperDirectory            NSSearchPathDirectory = 6
	NSUserDirectory                 NSSearchPathDirectory = 7
	NSDocumentationDirectory        NSSearchPathDirectory = 8
	NSDocumentDirectory             NSSearchPathDirectory = 9
	NSCoreServiceDirectory          NSSearchPathDirectory = 10
	NSAutosavedInformationDirectory NSSearchPathDirectory = 11
	NSDesktopDirectory              NSSearchPathDirectory = 12
	NSCachesDirectory               NSSearchPathDirectory = 13
	NSApplicationSupportDirectory   NSSearchPathDirectory = 14
	NSDownloadsDirectory            NSSearchPathDirectory = 15
	NSInputMethodsDirectory         NSSearchPathDirectory = 16
	NSMoviesDirectory               NSSearchPathDirectory = 17
	NSMusicDirectory                NSSearchPathDirectory = 18
	NSPicturesDirectory             NSSearchPathDirectory = 19
	NSPrinterDescriptionDirectory   NSSearchPathDirectory = 20
	NSSharedPublicDirectory         NSSearchPathDirectory = 21
	NSPreferencePanesDirectory      NSSearchPathDirectory = 22
	NSApplicationScriptsDirectory   NSSearchPathDirectory = 23
	NSItemReplacementDirectory      NSSearchPathDirectory = 99
	NSAllApplicationsDirectory      NSSearchPathDirectory = 100
	NSAllLibrariesDirectory         NSSearchPathDirectory = 101
	NSTrashDirectory                NSSearchPathDirectory = 102
)

func (NSSearchPathDirectory) String

func (e NSSearchPathDirectory) String() string

type NSSearchPathDomainMask

type NSSearchPathDomainMask uint64

Domain constants specifying base locations to use when you search for significant directories.

const (
	NSUserDomainMask    NSSearchPathDomainMask = 1
	NSLocalDomainMask   NSSearchPathDomainMask = 2
	NSNetworkDomainMask NSSearchPathDomainMask = 4
	NSSystemDomainMask  NSSearchPathDomainMask = 8
	NSAllDomainsMask    NSSearchPathDomainMask = 65535
)

func (NSSearchPathDomainMask) String

func (e NSSearchPathDomainMask) String() string

type NSSecureCoding

type NSSecureCoding interface {
	NSCoding
	SupportsSecureCoding() bool
}

NSSecureCoding wraps the ObjC protocol NSSecureCoding.

type NSSecureUnarchiveFromDataTransformer

type NSSecureUnarchiveFromDataTransformer struct {
	NSValueTransformer
}

A value transformer that converts data to and from classes that support secure coding.

Apple documentation: https://developer.apple.com/documentation/foundation/nssecureunarchivefromdatatransformer

func NSSecureUnarchiveFromDataTransformerFromID

func NSSecureUnarchiveFromDataTransformerFromID(id objc.ID) *NSSecureUnarchiveFromDataTransformer

type NSSet

type NSSet[ObjectType purego.AnyObject] struct {
	NSObject
}

A static, unordered collection of unique objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nsset

func NSObjectKeyPathsForValuesAffectingValueForKey

func NSObjectKeyPathsForValuesAffectingValueForKey(key *NSString) *NSSet[*NSString]

func NSSetFromID

func NSSetFromID[ObjectType purego.AnyObject](id objc.ID) *NSSet[ObjectType]

func NSSetSet

func NSSetSet() *NSSet[objc.ID]

Creates and returns an empty set.

func NSSetSetWithArray

func NSSetSetWithArray(array *NSArray[objc.ID]) *NSSet[objc.ID]

Creates and returns a set containing a uniqued collection of the objects contained in a given array.

func NSSetSetWithObject

func NSSetSetWithObject(object objc.ID) *NSSet[objc.ID]

Creates and returns a set that contains a single given object.

func NSSetSetWithObjectsCount

func NSSetSetWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSSet[objc.ID]

Creates and returns a set containing a specified number of objects from a given C array of objects.

func NSSetSetWithSet

func NSSetSetWithSet(set *NSSet[objc.ID]) *NSSet[objc.ID]

Creates and returns a set containing the objects from another set.

func (*NSSet[ObjectType]) AllObjects

func (o *NSSet[ObjectType]) AllObjects() *NSArray[ObjectType]

func (*NSSet[ObjectType]) AnyObject

func (o *NSSet[ObjectType]) AnyObject() ObjectType

Returns one of the objects in the set, or nil if the set contains no objects.

func (*NSSet[ObjectType]) ContainsObject

func (o *NSSet[ObjectType]) ContainsObject(anObject ObjectType) bool

Returns a Boolean value that indicates whether a given object is present in the set.

func (*NSSet[ObjectType]) Count

func (o *NSSet[ObjectType]) Count() uint

func (*NSSet[ObjectType]) DescriptionWithLocale

func (o *NSSet[ObjectType]) DescriptionWithLocale(locale objc.ID) *NSString

Returns a string that represents the contents of the set, formatted as a property list.

func (*NSSet[ObjectType]) EnumerateObjectsUsing

func (o *NSSet[ObjectType]) EnumerateObjectsUsing(block objc.Block)

Executes a given block using each object in the set.

func (*NSSet[ObjectType]) EnumerateObjectsWithOptionsUsing

func (o *NSSet[ObjectType]) EnumerateObjectsWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)

Executes a given block using each object in the set, using the specified enumeration options.

func (*NSSet[ObjectType]) FilteredSetUsingPredicate

func (o *NSSet[ObjectType]) FilteredSetUsingPredicate(predicate *NSPredicate) *NSSet[ObjectType]

Evaluates a given predicate against each object in the receiving set and returns a new set containing the objects for which the predicate returns true.

func (*NSSet[ObjectType]) Init

func (o *NSSet[ObjectType]) Init() *NSSet[ObjectType]

Initializes a newly allocated set.

func (*NSSet[ObjectType]) InitWithArray

func (o *NSSet[ObjectType]) InitWithArray(array *NSArray[ObjectType]) *NSSet[ObjectType]

Initializes a newly allocated set with the objects that are contained in a given array.

func (*NSSet[ObjectType]) InitWithCoder

func (o *NSSet[ObjectType]) InitWithCoder(coder *NSCoder) *NSSet[ObjectType]

func (*NSSet[ObjectType]) InitWithObjectsCount

func (o *NSSet[ObjectType]) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSSet[ObjectType]

Initializes a newly allocated set with a specified number of objects from a given C array of objects.

func (*NSSet[ObjectType]) InitWithSet

func (o *NSSet[ObjectType]) InitWithSet(set *NSSet[ObjectType]) *NSSet[ObjectType]

Initializes a newly allocated set and adds to it objects from another given set.

func (*NSSet[ObjectType]) InitWithSetCopyItems

func (o *NSSet[ObjectType]) InitWithSetCopyItems(set *NSSet[ObjectType], flag bool) *NSSet[ObjectType]

Initializes a newly allocated set and adds to it members of another given set.

func (*NSSet[ObjectType]) IntersectsSet

func (o *NSSet[ObjectType]) IntersectsSet(otherSet *NSSet[ObjectType]) bool

Returns a Boolean value that indicates whether at least one object in the receiving set is also present in another given set.

func (*NSSet[ObjectType]) IsEqualToSet

func (o *NSSet[ObjectType]) IsEqualToSet(otherSet *NSSet[ObjectType]) bool

Compares the receiving set to another set.

func (*NSSet[ObjectType]) IsSubsetOfSet

func (o *NSSet[ObjectType]) IsSubsetOfSet(otherSet *NSSet[ObjectType]) bool

Returns a Boolean value that indicates whether every object in the receiving set is also present in another given set.

func (*NSSet[ObjectType]) MakeObjectsPerformSelector

func (o *NSSet[ObjectType]) MakeObjectsPerformSelector(aSelector objc.SEL)

Sends a message specified by a given selector to each object in the set.

func (*NSSet[ObjectType]) MakeObjectsPerformSelectorWithObject

func (o *NSSet[ObjectType]) MakeObjectsPerformSelectorWithObject(aSelector objc.SEL, argument objc.ID)

Sends a message specified by a given selector to each object in the set.

func (*NSSet[ObjectType]) Member

func (o *NSSet[ObjectType]) Member(object ObjectType) ObjectType

Determines whether a given object is present in the set, and returns that object if it is.

func (*NSSet[ObjectType]) ObjectEnumerator

func (o *NSSet[ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]

Returns an enumerator object that lets you access each object in the set.

func (*NSSet[ObjectType]) ObjectsPassingTest

func (o *NSSet[ObjectType]) ObjectsPassingTest(predicate objc.Block) *NSSet[ObjectType]

Returns a set of objects that pass a test in a given block.

func (*NSSet[ObjectType]) ObjectsWithOptionsPassingTest

func (o *NSSet[ObjectType]) ObjectsWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSSet[ObjectType]

Returns a set of objects that pass a test in a given block, using the specified enumeration options.

func (*NSSet[ObjectType]) SetByAddingObject

func (o *NSSet[ObjectType]) SetByAddingObject(anObject ObjectType) *NSSet[ObjectType]

Returns a new set formed by adding a given object to the receiving set.

func (*NSSet[ObjectType]) SetByAddingObjectsFromArray

func (o *NSSet[ObjectType]) SetByAddingObjectsFromArray(other *NSArray[ObjectType]) *NSSet[ObjectType]

Returns a new set formed by adding the objects in a given array to the receiving set.

func (*NSSet[ObjectType]) SetByAddingObjectsFromSet

func (o *NSSet[ObjectType]) SetByAddingObjectsFromSet(other *NSSet[ObjectType]) *NSSet[ObjectType]

Returns a new set formed by adding the objects in a given set to the receiving set.

func (*NSSet[ObjectType]) SortedArrayUsingDescriptors

func (o *NSSet[ObjectType]) SortedArrayUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor]) *NSArray[ObjectType]

Returns an array of the set’s content sorted as specified by a given array of sort descriptors.

type NSSetCommand

type NSSetCommand struct {
	NSScriptCommand
}

A command that sets one or more attributes or relationships to one or more values.

Apple documentation: https://developer.apple.com/documentation/foundation/nssetcommand

func NSSetCommandFromID

func NSSetCommandFromID(id objc.ID) *NSSetCommand

func (*NSSetCommand) KeySpecifier

func (o *NSSetCommand) KeySpecifier() *NSScriptObjectSpecifier

type NSSimpleCString

type NSSimpleCString struct {
	NSString
}

Apple documentation: https://developer.apple.com/documentation/foundation/nssimplecstring

func NSSimpleCStringFromID

func NSSimpleCStringFromID(id objc.ID) *NSSimpleCString

type NSSocketPort

type NSSocketPort struct {
	NSPort
}

A port that represents a BSD socket.

Apple documentation: https://developer.apple.com/documentation/foundation/nssocketport

func NSSocketPortFromID

func NSSocketPortFromID(id objc.ID) *NSSocketPort

func (*NSSocketPort) Address

func (o *NSSocketPort) Address() *NSData

func (*NSSocketPort) Init

func (o *NSSocketPort) Init() *NSSocketPort

func (*NSSocketPort) InitRemoteWithProtocolFamilySocketTypeProtocolAddress

func (o *NSSocketPort) InitRemoteWithProtocolFamilySocketTypeProtocolAddress(family int, type_ int, protocol int, address *NSData) *NSSocketPort

func (*NSSocketPort) InitRemoteWithTCPPortHost

func (o *NSSocketPort) InitRemoteWithTCPPortHost(port uint16, hostName *NSString) *NSSocketPort

func (*NSSocketPort) InitWithProtocolFamilySocketTypeProtocolAddress

func (o *NSSocketPort) InitWithProtocolFamilySocketTypeProtocolAddress(family int, type_ int, protocol int, address *NSData) *NSSocketPort

func (*NSSocketPort) InitWithProtocolFamilySocketTypeProtocolSocket

func (o *NSSocketPort) InitWithProtocolFamilySocketTypeProtocolSocket(family int, type_ int, protocol int, sock int) *NSSocketPort

func (*NSSocketPort) InitWithTCPPort

func (o *NSSocketPort) InitWithTCPPort(port uint16) *NSSocketPort

func (*NSSocketPort) Protocol

func (o *NSSocketPort) Protocol() int

func (*NSSocketPort) ProtocolFamily

func (o *NSSocketPort) ProtocolFamily() int

func (*NSSocketPort) Socket

func (o *NSSocketPort) Socket() int

func (*NSSocketPort) SocketType

func (o *NSSocketPort) SocketType() int

type NSSocketPortNameServer

type NSSocketPortNameServer struct {
	NSPortNameServer
}

A port name server that takes and returns socket ports.

Apple documentation: https://developer.apple.com/documentation/foundation/nssocketportnameserver Deprecated: Use NSXPCConnection instead

func NSSocketPortNameServerFromID

func NSSocketPortNameServerFromID(id objc.ID) *NSSocketPortNameServer

func (*NSSocketPortNameServer) DefaultNameServerPortNumber

func (o *NSSocketPortNameServer) DefaultNameServerPortNumber() uint16

func (*NSSocketPortNameServer) PortForNameHostNameServerPortNumber

func (o *NSSocketPortNameServer) PortForNameHostNameServerPortNumber(name *NSString, host *NSString, portNumber uint16) *NSPort

Looks up and returns the port registered under the specified name on a specified host.

func (*NSSocketPortNameServer) RegisterPortNameNameServerPortNumber

func (o *NSSocketPortNameServer) RegisterPortNameNameServerPortNumber(port *NSPort, name *NSString, portNumber uint16) bool

Registers a given port as a network service with the specified name in the local domain.

func (*NSSocketPortNameServer) SetDefaultNameServerPortNumber

func (o *NSSocketPortNameServer) SetDefaultNameServerPortNumber(defaultNameServerPortNumber uint16)

type NSSortDescriptor

type NSSortDescriptor struct {
	NSObject
}

An immutable description of how to order a collection of objects according to a property common to all the objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nssortdescriptor

func NSSortDescriptorFromID

func NSSortDescriptorFromID(id objc.ID) *NSSortDescriptor

func NSSortDescriptorSortDescriptorWithKeyAscending

func NSSortDescriptorSortDescriptorWithKeyAscending(key *NSString, ascending bool) *NSSortDescriptor

Creates and returns a sort descriptor with the specified key path and ordering.

func NSSortDescriptorSortDescriptorWithKeyAscendingComparator

func NSSortDescriptorSortDescriptorWithKeyAscendingComparator(key *NSString, ascending bool, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSSortDescriptor

Creates and returns a sort descriptor initialized with the specified key path and ordering, and a comparator block.

func NSSortDescriptorSortDescriptorWithKeyAscendingSelector

func NSSortDescriptorSortDescriptorWithKeyAscendingSelector(key *NSString, ascending bool, selector objc.SEL) *NSSortDescriptor

Creates a sort descriptor with the specified key path, ordering, and comparison selector.

func (*NSSortDescriptor) AllowEvaluation

func (o *NSSortDescriptor) AllowEvaluation()

Forces a securely decoded sort descriptor to allow evaluation.

func (*NSSortDescriptor) Ascending

func (o *NSSortDescriptor) Ascending() bool

func (*NSSortDescriptor) Comparator

func (o *NSSortDescriptor) Comparator() objc.Block

func (*NSSortDescriptor) CompareObjectToObject

func (o *NSSortDescriptor) CompareObjectToObject(object1 objc.ID, object2 objc.ID) NSComparisonResult

Returns a comparison result value that indicates the sort order of two objects.

func (*NSSortDescriptor) InitWithCoder

func (o *NSSortDescriptor) InitWithCoder(coder *NSCoder) *NSSortDescriptor

Creates a sort descriptor by decoding from the coder you specify.

func (*NSSortDescriptor) InitWithKeyAscending

func (o *NSSortDescriptor) InitWithKeyAscending(key *NSString, ascending bool) *NSSortDescriptor

Creates a sort descriptor with a specified string key path and sort order.

func (*NSSortDescriptor) InitWithKeyAscendingComparator

func (o *NSSortDescriptor) InitWithKeyAscendingComparator(key *NSString, ascending bool, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSSortDescriptor

Creates a sort descriptor with a specified string key path and ordering, and a comparator block.

func (*NSSortDescriptor) InitWithKeyAscendingSelector

func (o *NSSortDescriptor) InitWithKeyAscendingSelector(key *NSString, ascending bool, selector objc.SEL) *NSSortDescriptor

Creates a sort descriptor with a specified string key path, ordering, and comparison selector.

func (*NSSortDescriptor) Key

func (o *NSSortDescriptor) Key() *NSString

func (*NSSortDescriptor) ReversedSortDescriptor

func (o *NSSortDescriptor) ReversedSortDescriptor() objc.ID

func (*NSSortDescriptor) Selector

func (o *NSSortDescriptor) Selector() objc.SEL

type NSSortOptions

type NSSortOptions uint64

Options for block sorting operations.

const (
	// Specifies that the Block sort operation should be concurrent.
	NSSortConcurrent NSSortOptions = 1
	// Specifies that the sorted results should return compared items having equal value in the order they occurred originally.
	NSSortStable NSSortOptions = 16
)

func (NSSortOptions) String

func (e NSSortOptions) String() string

type NSSpecifierTest

type NSSpecifierTest struct {
	NSScriptWhoseTest
}

A comparison between an object specifier and a test object.

Apple documentation: https://developer.apple.com/documentation/foundation/nsspecifiertest

func NSSpecifierTestFromID

func NSSpecifierTestFromID(id objc.ID) *NSSpecifierTest

func (*NSSpecifierTest) InitWithCoder

func (o *NSSpecifierTest) InitWithCoder(inCoder *NSCoder) *NSSpecifierTest

func (*NSSpecifierTest) InitWithObjectSpecifierComparisonOperatorTestObject

func (o *NSSpecifierTest) InitWithObjectSpecifierComparisonOperatorTestObject(obj1 *NSScriptObjectSpecifier, compOp NSTestComparisonOperation, obj2 objc.ID) *NSSpecifierTest

Returns a specifier test initialized to evaluate a test object against an object specified by an object specifier using a given comparison operation.

type NSSpellServer

type NSSpellServer struct {
	NSObject
}

A server that your app uses to provide a spell checker service to other apps running in the system.

Apple documentation: https://developer.apple.com/documentation/foundation/nsspellserver

func NSSpellServerFromID

func NSSpellServerFromID(id objc.ID) *NSSpellServer

func (*NSSpellServer) Delegate

func (o *NSSpellServer) Delegate() NSSpellServerDelegate

func (*NSSpellServer) IsWordInUserDictionariesCaseSensitive

func (o *NSSpellServer) IsWordInUserDictionariesCaseSensitive(word *NSString, flag bool) bool

Indicates whether a given word is in the user’s list of learned words or the document’s list of words to ignore.

func (*NSSpellServer) RegisterLanguageByVendor

func (o *NSSpellServer) RegisterLanguageByVendor(language *NSString, vendor *NSString) bool

Notifies the receiver of a language your spelling checker can check.

func (*NSSpellServer) Run

func (o *NSSpellServer) Run()

Causes the receiver to start listening for spell-checking requests.

func (*NSSpellServer) SetDelegate

func (o *NSSpellServer) SetDelegate(delegate NSSpellServerDelegate)

type NSSpellServerDelegate

type NSSpellServerDelegate interface {
}

NSSpellServerDelegate wraps the ObjC protocol NSSpellServerDelegate.

type NSStream

type NSStream struct {
	NSObject
}

An abstract class representing a stream.

Apple documentation: https://developer.apple.com/documentation/foundation/nsstream

func NSStreamFromID

func NSStreamFromID(id objc.ID) *NSStream

func (*NSStream) Close

func (o *NSStream) Close()

func (*NSStream) Delegate

func (o *NSStream) Delegate() NSStreamDelegate

func (*NSStream) Open

func (o *NSStream) Open()

func (*NSStream) PropertyForKey

func (o *NSStream) PropertyForKey(key *NSString) objc.ID

func (*NSStream) RemoveFromRunLoopForMode

func (o *NSStream) RemoveFromRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)

func (*NSStream) ScheduleInRunLoopForMode

func (o *NSStream) ScheduleInRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)

func (*NSStream) SetDelegate

func (o *NSStream) SetDelegate(delegate NSStreamDelegate)

func (*NSStream) SetPropertyForKey

func (o *NSStream) SetPropertyForKey(property objc.ID, key *NSString) bool

func (*NSStream) StreamError

func (o *NSStream) StreamError() unsafe.Pointer

func (*NSStream) StreamStatus

func (o *NSStream) StreamStatus() NSStreamStatus

type NSStreamDelegate

type NSStreamDelegate interface {
}

NSStreamDelegate wraps the ObjC protocol NSStreamDelegate.

type NSStreamEvent

type NSStreamEvent uint64
const (
	NSStreamEventNone              NSStreamEvent = 0
	NSStreamEventOpenCompleted     NSStreamEvent = 1
	NSStreamEventHasBytesAvailable NSStreamEvent = 2
	NSStreamEventHasSpaceAvailable NSStreamEvent = 4
	NSStreamEventErrorOccurred     NSStreamEvent = 8
	NSStreamEventEndEncountered    NSStreamEvent = 16
)

func (NSStreamEvent) String

func (e NSStreamEvent) String() string

type NSStreamStatus

type NSStreamStatus uint64

The type declared for the constants listed in doc:stream/stream_status_constants.

const (
	NSStreamStatusNotOpen NSStreamStatus = 0
	NSStreamStatusOpening NSStreamStatus = 1
	NSStreamStatusOpen    NSStreamStatus = 2
	NSStreamStatusReading NSStreamStatus = 3
	NSStreamStatusWriting NSStreamStatus = 4
	NSStreamStatusAtEnd   NSStreamStatus = 5
	NSStreamStatusClosed  NSStreamStatus = 6
	NSStreamStatusError   NSStreamStatus = 7
)

func (NSStreamStatus) String

func (e NSStreamStatus) String() string

type NSString

type NSString struct {
	NSObject
}

A static, plain-text Unicode string object.

Apple documentation: https://developer.apple.com/documentation/foundation/nsstring

func NSAppleEventManagerWillProcessFirstEventNotification

func NSAppleEventManagerWillProcessFirstEventNotification() *NSString

func NSAverageKeyValueOperator

func NSAverageKeyValueOperator() *NSString

func NSBundleDidLoadNotification

func NSBundleDidLoadNotification() *NSString

func NSBundlePathForResourceOfTypeInDirectory

func NSBundlePathForResourceOfTypeInDirectory(name *NSString, ext *NSString, bundlePath *NSString) *NSString

func NSByteCountFormatterStringFromByteCountCountStyle

func NSByteCountFormatterStringFromByteCountCountStyle(byteCount int64, countStyle NSByteCountFormatterCountStyle) *NSString

func NSByteCountFormatterStringFromMeasurementCountStyle

func NSByteCountFormatterStringFromMeasurementCountStyle(measurement *NSMeasurement[*NSUnitInformationStorage], countStyle NSByteCountFormatterCountStyle) *NSString

func NSCalendarDayChangedNotification

func NSCalendarDayChangedNotification() *NSString

func NSCalendarIdentifierBangla

func NSCalendarIdentifierBangla() *NSString

func NSCalendarIdentifierBuddhist

func NSCalendarIdentifierBuddhist() *NSString

func NSCalendarIdentifierChinese

func NSCalendarIdentifierChinese() *NSString

func NSCalendarIdentifierCoptic

func NSCalendarIdentifierCoptic() *NSString

func NSCalendarIdentifierDangi

func NSCalendarIdentifierDangi() *NSString

func NSCalendarIdentifierEthiopicAmeteAlem

func NSCalendarIdentifierEthiopicAmeteAlem() *NSString

func NSCalendarIdentifierEthiopicAmeteMihret

func NSCalendarIdentifierEthiopicAmeteMihret() *NSString

func NSCalendarIdentifierGregorian

func NSCalendarIdentifierGregorian() *NSString

func NSCalendarIdentifierGujarati

func NSCalendarIdentifierGujarati() *NSString

func NSCalendarIdentifierHebrew

func NSCalendarIdentifierHebrew() *NSString

func NSCalendarIdentifierISO8601

func NSCalendarIdentifierISO8601() *NSString

func NSCalendarIdentifierIndian

func NSCalendarIdentifierIndian() *NSString

func NSCalendarIdentifierIslamic

func NSCalendarIdentifierIslamic() *NSString

func NSCalendarIdentifierIslamicCivil

func NSCalendarIdentifierIslamicCivil() *NSString

func NSCalendarIdentifierIslamicTabular

func NSCalendarIdentifierIslamicTabular() *NSString

func NSCalendarIdentifierIslamicUmmAlQura

func NSCalendarIdentifierIslamicUmmAlQura() *NSString

func NSCalendarIdentifierJapanese

func NSCalendarIdentifierJapanese() *NSString

func NSCalendarIdentifierKannada

func NSCalendarIdentifierKannada() *NSString

func NSCalendarIdentifierMalayalam

func NSCalendarIdentifierMalayalam() *NSString

func NSCalendarIdentifierMarathi

func NSCalendarIdentifierMarathi() *NSString

func NSCalendarIdentifierOdia

func NSCalendarIdentifierOdia() *NSString

func NSCalendarIdentifierPersian

func NSCalendarIdentifierPersian() *NSString

func NSCalendarIdentifierRepublicOfChina

func NSCalendarIdentifierRepublicOfChina() *NSString

func NSCalendarIdentifierTamil

func NSCalendarIdentifierTamil() *NSString

func NSCalendarIdentifierTelugu

func NSCalendarIdentifierTelugu() *NSString

func NSCalendarIdentifierVietnamese

func NSCalendarIdentifierVietnamese() *NSString

func NSCalendarIdentifierVikram

func NSCalendarIdentifierVikram() *NSString

func NSCharacterConversionException

func NSCharacterConversionException() *NSString

func NSClassDescriptionNeededForClassNotification

func NSClassDescriptionNeededForClassNotification() *NSString

func NSCocoaErrorDomain

func NSCocoaErrorDomain() *NSString

func NSCountKeyValueOperator

func NSCountKeyValueOperator() *NSString

func NSCurrentLocaleDidChangeNotification

func NSCurrentLocaleDidChangeNotification() *NSString

func NSDateComponentsFormatterLocalizedStringFromDateComponentsUnitsStyle

func NSDateComponentsFormatterLocalizedStringFromDateComponentsUnitsStyle(components *NSDateComponents, unitsStyle NSDateComponentsFormatterUnitsStyle) *NSString

func NSDateFormatterDateFormatFromTemplateOptionsLocale

func NSDateFormatterDateFormatFromTemplateOptionsLocale(tmplate *NSString, opts uint, locale *NSLocale) *NSString

func NSDateFormatterLocalizedStringFromDateDateStyleTimeStyle

func NSDateFormatterLocalizedStringFromDateDateStyleTimeStyle(date *NSDate, dstyle NSDateFormatterStyle, tstyle NSDateFormatterStyle) *NSString

func NSDebugDescriptionErrorKey

func NSDebugDescriptionErrorKey() *NSString

func NSDecimalNumberDivideByZeroException

func NSDecimalNumberDivideByZeroException() *NSString

func NSDecimalNumberExactnessException

func NSDecimalNumberExactnessException() *NSString

func NSDecimalNumberOverflowException

func NSDecimalNumberOverflowException() *NSString

func NSDecimalNumberUnderflowException

func NSDecimalNumberUnderflowException() *NSString

func NSDecimalString

func NSDecimalString(dcm *NSDecimal, locale objc.ID) *NSString

func NSDefaultRunLoopMode

func NSDefaultRunLoopMode() *NSString

func NSDestinationInvalidException

func NSDestinationInvalidException() *NSString

func NSDidBecomeSingleThreadedNotification deprecated

func NSDidBecomeSingleThreadedNotification() *NSString

Deprecated: Programs no longer transition to single-threaded mode from threaded environments

func NSDistinctUnionOfArraysKeyValueOperator

func NSDistinctUnionOfArraysKeyValueOperator() *NSString

func NSDistinctUnionOfObjectsKeyValueOperator

func NSDistinctUnionOfObjectsKeyValueOperator() *NSString

func NSDistinctUnionOfSetsKeyValueOperator

func NSDistinctUnionOfSetsKeyValueOperator() *NSString

func NSFileAppendOnly

func NSFileAppendOnly() *NSString

func NSFileBusy

func NSFileBusy() *NSString

func NSFileCreationDate

func NSFileCreationDate() *NSString

func NSFileDeviceIdentifier

func NSFileDeviceIdentifier() *NSString

func NSFileExtensionHidden

func NSFileExtensionHidden() *NSString

func NSFileGroupOwnerAccountID

func NSFileGroupOwnerAccountID() *NSString

func NSFileGroupOwnerAccountName

func NSFileGroupOwnerAccountName() *NSString

func NSFileHFSCreatorCode

func NSFileHFSCreatorCode() *NSString

func NSFileHFSTypeCode

func NSFileHFSTypeCode() *NSString

func NSFileHandleConnectionAcceptedNotification

func NSFileHandleConnectionAcceptedNotification() *NSString

func NSFileHandleDataAvailableNotification

func NSFileHandleDataAvailableNotification() *NSString

func NSFileHandleOperationException

func NSFileHandleOperationException() *NSString

func NSFileHandleReadCompletionNotification

func NSFileHandleReadCompletionNotification() *NSString

func NSFileHandleReadToEndOfFileCompletionNotification

func NSFileHandleReadToEndOfFileCompletionNotification() *NSString

func NSFileImmutable

func NSFileImmutable() *NSString

func NSFileModificationDate

func NSFileModificationDate() *NSString

func NSFileOwnerAccountID

func NSFileOwnerAccountID() *NSString

func NSFileOwnerAccountName

func NSFileOwnerAccountName() *NSString

func NSFilePathErrorKey

func NSFilePathErrorKey() *NSString

func NSFilePosixPermissions

func NSFilePosixPermissions() *NSString

func NSFileProtectionComplete

func NSFileProtectionComplete() *NSString

func NSFileProtectionCompleteUnlessOpen

func NSFileProtectionCompleteUnlessOpen() *NSString

func NSFileProtectionCompleteUntilFirstUserAuthentication

func NSFileProtectionCompleteUntilFirstUserAuthentication() *NSString

func NSFileProtectionKey

func NSFileProtectionKey() *NSString

func NSFileProtectionNone

func NSFileProtectionNone() *NSString

func NSFileReferenceCount

func NSFileReferenceCount() *NSString

func NSFileSize

func NSFileSize() *NSString

func NSFileSystemFileNumber

func NSFileSystemFileNumber() *NSString

func NSFileSystemFreeNodes

func NSFileSystemFreeNodes() *NSString

func NSFileSystemNumber

func NSFileSystemNumber() *NSString

func NSFileType

func NSFileType() *NSString

func NSFileTypeBlockSpecial

func NSFileTypeBlockSpecial() *NSString

func NSFileTypeCharacterSpecial

func NSFileTypeCharacterSpecial() *NSString

func NSFileTypeDirectory

func NSFileTypeDirectory() *NSString

func NSFileTypeForHFSTypeCode

func NSFileTypeForHFSTypeCode(hfsFileTypeCode uint) *NSString

func NSFileTypeRegular

func NSFileTypeRegular() *NSString

func NSFileTypeSocket

func NSFileTypeSocket() *NSString
func NSFileTypeSymbolicLink() *NSString

func NSFileTypeUnknown

func NSFileTypeUnknown() *NSString

func NSFullUserName

func NSFullUserName() *NSString

func NSGenericException

func NSGenericException() *NSString

func NSHFSTypeOfFile

func NSHFSTypeOfFile(fullFilePath *NSString) *NSString

func NSHTTPCookieComment

func NSHTTPCookieComment() *NSString

@const NSHTTPCookieComment @discussion Key for cookie comment text

func NSHTTPCookieCommentURL

func NSHTTPCookieCommentURL() *NSString

@const NSHTTPCookieCommentURL @discussion Key for cookie comment URL

func NSHTTPCookieDiscard

func NSHTTPCookieDiscard() *NSString

@const NSHTTPCookieDiscard @discussion Key for cookie discard (session-only) flag

func NSHTTPCookieDomain

func NSHTTPCookieDomain() *NSString

@const NSHTTPCookieDomain @discussion Key for cookie domain

func NSHTTPCookieExpires

func NSHTTPCookieExpires() *NSString

@const NSHTTPCookieExpires @discussion Key for cookie expiration date

func NSHTTPCookieManagerAcceptPolicyChangedNotification

func NSHTTPCookieManagerAcceptPolicyChangedNotification() *NSString

@const NSHTTPCookieManagerAcceptPolicyChangedNotification @discussion Name of notification that should be posted to the distributed notification center whenever the accept cookies preference is changed Deprecated: Notification is never posted

func NSHTTPCookieManagerCookiesChangedNotification

func NSHTTPCookieManagerCookiesChangedNotification() *NSString

@const NSHTTPCookieManagerCookiesChangedNotification @abstract Notification sent when the set of cookies changes

func NSHTTPCookieMaximumAge

func NSHTTPCookieMaximumAge() *NSString

@const NSHTTPCookieMaximumAge @discussion Key for cookie maximum age (an alternate way of specifying the expiration)

func NSHTTPCookieName

func NSHTTPCookieName() *NSString

@const NSHTTPCookieName @discussion Key for cookie name

func NSHTTPCookieOriginURL

func NSHTTPCookieOriginURL() *NSString

@const NSHTTPCookieOriginURL @discussion Key for cookie origin URL

func NSHTTPCookiePath

func NSHTTPCookiePath() *NSString

@const NSHTTPCookiePath @discussion Key for cookie path

func NSHTTPCookiePort

func NSHTTPCookiePort() *NSString

@const NSHTTPCookiePort @discussion Key for cookie ports

func NSHTTPCookieSameSiteLax

func NSHTTPCookieSameSiteLax() *NSString

@const NSHTTPCookieSameSiteLax @discussion String constant "lax" to be used as a value for the property key NSHTTPCookieSameSite

func NSHTTPCookieSameSitePolicy

func NSHTTPCookieSameSitePolicy() *NSString

@const NSHTTPCookieSameSitePolicy @discussion Key for cookie same site

func NSHTTPCookieSameSiteStrict

func NSHTTPCookieSameSiteStrict() *NSString

@const NSHTTPCookieSameSiteStrict @discussion String constant "strict" to be used as a value for the property key NSHTTPCookieSameSite

func NSHTTPCookieSecure

func NSHTTPCookieSecure() *NSString

@const NSHTTPCookieSecure @discussion Key for cookie secure flag

func NSHTTPCookieSetByJavaScript

func NSHTTPCookieSetByJavaScript() *NSString

@const NSHTTPCookieSetByJavaScript @discussion An NSString object indicating that the cookie is set via JavaScript.

func NSHTTPCookieValue

func NSHTTPCookieValue() *NSString

@const NSHTTPCookieValue @discussion Key for cookie value

func NSHTTPCookieVersion

func NSHTTPCookieVersion() *NSString

@const NSHTTPCookieVersion @discussion Key for cookie version

func NSHTTPURLResponseLocalizedStringForStatusCode

func NSHTTPURLResponseLocalizedStringForStatusCode(statusCode int) *NSString

@method localizedStringForStatusCode: @abstract Convenience method which returns a localized string corresponding to the status code for this response. @param statusCode the status code to use to produce a localized string. @result A localized string corresponding to the given status code.

func NSHelpAnchorErrorKey

func NSHelpAnchorErrorKey() *NSString

func NSHomeDirectory

func NSHomeDirectory() *NSString

func NSHomeDirectoryForUser

func NSHomeDirectoryForUser(userName *NSString) *NSString

func NSISO8601DateFormatterStringFromDateTimeZoneFormatOptions

func NSISO8601DateFormatterStringFromDateTimeZoneFormatOptions(date *NSDate, timeZone *NSTimeZone, formatOptions NSISO8601DateFormatOptions) *NSString

func NSInconsistentArchiveException

func NSInconsistentArchiveException() *NSString

func NSInflectionConceptsKey

func NSInflectionConceptsKey() *NSString

func NSInternalInconsistencyException

func NSInternalInconsistencyException() *NSString

func NSInvalidArchiveOperationException

func NSInvalidArchiveOperationException() *NSString

func NSInvalidArgumentException

func NSInvalidArgumentException() *NSString

func NSInvalidReceivePortException

func NSInvalidReceivePortException() *NSString

func NSInvalidSendPortException

func NSInvalidSendPortException() *NSString

func NSInvalidUnarchiveOperationException

func NSInvalidUnarchiveOperationException() *NSString

func NSInvocationOperationCancelledException

func NSInvocationOperationCancelledException() *NSString

func NSInvocationOperationVoidResultException

func NSInvocationOperationVoidResultException() *NSString

func NSIsNilTransformerName

func NSIsNilTransformerName() *NSString

func NSIsNotNilTransformerName

func NSIsNotNilTransformerName() *NSString

func NSKeyValueChangeIndexesKey

func NSKeyValueChangeIndexesKey() *NSString

func NSKeyValueChangeKindKey

func NSKeyValueChangeKindKey() *NSString

func NSKeyValueChangeNewKey

func NSKeyValueChangeNewKey() *NSString

func NSKeyValueChangeNotificationIsPriorKey

func NSKeyValueChangeNotificationIsPriorKey() *NSString

func NSKeyValueChangeOldKey

func NSKeyValueChangeOldKey() *NSString

func NSKeyedArchiverClassNameForClass

func NSKeyedArchiverClassNameForClass(cls objc.Class) *NSString

Returns the class name with which the archiver class encodes instances of a given class.

func NSKeyedUnarchiveFromDataTransformerName deprecated

func NSKeyedUnarchiveFromDataTransformerName() *NSString

Deprecated: since macOS 10.14.

func NSLinguisticTagAdjective deprecated

func NSLinguisticTagAdjective() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagAdverb deprecated

func NSLinguisticTagAdverb() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagClassifier deprecated

func NSLinguisticTagClassifier() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagCloseParenthesis deprecated

func NSLinguisticTagCloseParenthesis() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagCloseQuote deprecated

func NSLinguisticTagCloseQuote() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagConjunction deprecated

func NSLinguisticTagConjunction() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagDash deprecated

func NSLinguisticTagDash() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagDeterminer deprecated

func NSLinguisticTagDeterminer() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagIdiom deprecated

func NSLinguisticTagIdiom() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagInterjection deprecated

func NSLinguisticTagInterjection() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagNoun deprecated

func NSLinguisticTagNoun() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagNumber deprecated

func NSLinguisticTagNumber() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagOpenParenthesis deprecated

func NSLinguisticTagOpenParenthesis() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagOpenQuote deprecated

func NSLinguisticTagOpenQuote() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagOrganizationName deprecated

func NSLinguisticTagOrganizationName() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagOther deprecated

func NSLinguisticTagOther() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagOtherPunctuation deprecated

func NSLinguisticTagOtherPunctuation() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagOtherWhitespace deprecated

func NSLinguisticTagOtherWhitespace() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagOtherWord deprecated

func NSLinguisticTagOtherWord() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagParagraphBreak deprecated

func NSLinguisticTagParagraphBreak() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagParticle deprecated

func NSLinguisticTagParticle() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagPersonalName deprecated

func NSLinguisticTagPersonalName() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagPlaceName deprecated

func NSLinguisticTagPlaceName() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagPreposition deprecated

func NSLinguisticTagPreposition() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagPronoun deprecated

func NSLinguisticTagPronoun() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagPunctuation deprecated

func NSLinguisticTagPunctuation() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagSchemeLanguage deprecated

func NSLinguisticTagSchemeLanguage() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagSchemeLemma deprecated

func NSLinguisticTagSchemeLemma() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagSchemeLexicalClass deprecated

func NSLinguisticTagSchemeLexicalClass() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagSchemeNameType deprecated

func NSLinguisticTagSchemeNameType() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagSchemeNameTypeOrLexicalClass deprecated

func NSLinguisticTagSchemeNameTypeOrLexicalClass() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagSchemeScript deprecated

func NSLinguisticTagSchemeScript() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagSchemeTokenType deprecated

func NSLinguisticTagSchemeTokenType() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagSentenceTerminator deprecated

func NSLinguisticTagSentenceTerminator() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagVerb deprecated

func NSLinguisticTagVerb() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagWhitespace deprecated

func NSLinguisticTagWhitespace() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagWord deprecated

func NSLinguisticTagWord() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTagWordJoiner deprecated

func NSLinguisticTagWordJoiner() *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTaggerDominantLanguageForString

func NSLinguisticTaggerDominantLanguageForString(string_ *NSString) *NSString

Returns the dominant language for the specified string. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTaggerTagForStringAtIndexUnitSchemeOrthographyTokenRange

func NSLinguisticTaggerTagForStringAtIndexUnitSchemeOrthographyTokenRange(string_ *NSString, charIndex uint, unit NSLinguisticTaggerUnit, scheme *NSString, orthography *NSOrthography, tokenRange *NSRange) *NSString

Returns a tag for a single scheme, for a given linguistic unit, at the specified character position in a string. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSListFormatterLocalizedStringByJoiningStrings

func NSListFormatterLocalizedStringByJoiningStrings(strings_ *NSArray[*NSString]) *NSString

func NSLocalNotificationCenterType

func NSLocalNotificationCenterType() *NSString

func NSLocaleAlternateQuotationBeginDelimiterKey

func NSLocaleAlternateQuotationBeginDelimiterKey() *NSString

func NSLocaleAlternateQuotationEndDelimiterKey

func NSLocaleAlternateQuotationEndDelimiterKey() *NSString

func NSLocaleCalendar

func NSLocaleCalendar() *NSString

func NSLocaleCanonicalLanguageIdentifierFromString

func NSLocaleCanonicalLanguageIdentifierFromString(string_ *NSString) *NSString

Returns a canonical language identifier by mapping an arbitrary locale identification string to the canonical identifier.

func NSLocaleCanonicalLocaleIdentifierFromString

func NSLocaleCanonicalLocaleIdentifierFromString(string_ *NSString) *NSString

Returns the canonical identifier for a given locale identification string.

func NSLocaleCollationIdentifier

func NSLocaleCollationIdentifier() *NSString

func NSLocaleCollatorIdentifier

func NSLocaleCollatorIdentifier() *NSString

func NSLocaleCountryCode

func NSLocaleCountryCode() *NSString

func NSLocaleCurrencyCode

func NSLocaleCurrencyCode() *NSString

func NSLocaleCurrencySymbol

func NSLocaleCurrencySymbol() *NSString

func NSLocaleDecimalSeparator

func NSLocaleDecimalSeparator() *NSString

func NSLocaleExemplarCharacterSet

func NSLocaleExemplarCharacterSet() *NSString

func NSLocaleGroupingSeparator

func NSLocaleGroupingSeparator() *NSString

func NSLocaleIdentifier

func NSLocaleIdentifier() *NSString

func NSLocaleLanguageCode

func NSLocaleLanguageCode() *NSString

func NSLocaleLocaleIdentifierFromComponents

func NSLocaleLocaleIdentifierFromComponents(dict *NSDictionary[*NSString, *NSString]) *NSString

Returns a locale identifier from the components specified in a given dictionary.

func NSLocaleLocaleIdentifierFromWindowsLocaleCode

func NSLocaleLocaleIdentifierFromWindowsLocaleCode(lcid uint32) *NSString

Returns a locale identifier from a Windows locale code.

func NSLocaleMeasurementSystem

func NSLocaleMeasurementSystem() *NSString

func NSLocaleQuotationBeginDelimiterKey

func NSLocaleQuotationBeginDelimiterKey() *NSString

func NSLocaleQuotationEndDelimiterKey

func NSLocaleQuotationEndDelimiterKey() *NSString

func NSLocaleScriptCode

func NSLocaleScriptCode() *NSString

func NSLocaleUsesMetricSystem

func NSLocaleUsesMetricSystem() *NSString

func NSLocaleVariantCode

func NSLocaleVariantCode() *NSString

func NSLocalizedDescriptionKey

func NSLocalizedDescriptionKey() *NSString

func NSLocalizedFailureErrorKey

func NSLocalizedFailureErrorKey() *NSString

func NSLocalizedFailureReasonErrorKey

func NSLocalizedFailureReasonErrorKey() *NSString

func NSLocalizedRecoveryOptionsErrorKey

func NSLocalizedRecoveryOptionsErrorKey() *NSString

func NSLocalizedRecoverySuggestionErrorKey

func NSLocalizedRecoverySuggestionErrorKey() *NSString

func NSMachErrorDomain

func NSMachErrorDomain() *NSString

func NSMallocException

func NSMallocException() *NSString

func NSMaximumKeyValueOperator

func NSMaximumKeyValueOperator() *NSString

func NSMetadataQueryDidFinishGatheringNotification

func NSMetadataQueryDidFinishGatheringNotification() *NSString

func NSMetadataQueryDidStartGatheringNotification

func NSMetadataQueryDidStartGatheringNotification() *NSString

func NSMetadataQueryDidUpdateNotification

func NSMetadataQueryDidUpdateNotification() *NSString

func NSMetadataQueryGatheringProgressNotification

func NSMetadataQueryGatheringProgressNotification() *NSString

func NSMinimumKeyValueOperator

func NSMinimumKeyValueOperator() *NSString

func NSMultipleUnderlyingErrorsKey

func NSMultipleUnderlyingErrorsKey() *NSString

func NSNegateBooleanTransformerName

func NSNegateBooleanTransformerName() *NSString

func NSNumberFormatterLocalizedStringFromNumberNumberStyle

func NSNumberFormatterLocalizedStringFromNumberNumberStyle(num *NSNumber, nstyle NSNumberFormatterStyle) *NSString

func NSOSStatusErrorDomain

func NSOSStatusErrorDomain() *NSString

func NSObjectDebugDescription

func NSObjectDebugDescription() *NSString

func NSObjectDescription

func NSObjectDescription() *NSString

func NSObjectInaccessibleException

func NSObjectInaccessibleException() *NSString

func NSObjectNotAvailableException

func NSObjectNotAvailableException() *NSString

func NSOldStyleException

func NSOldStyleException() *NSString

func NSOpenStepRootDirectory

func NSOpenStepRootDirectory() *NSString

func NSPOSIXErrorDomain

func NSPOSIXErrorDomain() *NSString

func NSParseErrorException

func NSParseErrorException() *NSString

func NSPersonNameComponentsFormatterLocalizedStringFromPersonNameComponentsStyleOptions

func NSPersonNameComponentsFormatterLocalizedStringFromPersonNameComponentsStyleOptions(components *NSPersonNameComponents, nameFormatStyle NSPersonNameComponentsFormatterStyle, nameOptions NSPersonNameComponentsFormatterOptions) *NSString

func NSPortDidBecomeInvalidNotification

func NSPortDidBecomeInvalidNotification() *NSString

func NSPortReceiveException

func NSPortReceiveException() *NSString

func NSPortSendException

func NSPortSendException() *NSString

func NSPortTimeoutException

func NSPortTimeoutException() *NSString

func NSPresentationIntentAttributeName

func NSPresentationIntentAttributeName() *NSString

func NSProcessInfoPowerStateDidChangeNotification

func NSProcessInfoPowerStateDidChangeNotification() *NSString

func NSProcessInfoThermalStateDidChangeNotification

func NSProcessInfoThermalStateDidChangeNotification() *NSString

func NSProgressEstimatedTimeRemainingKey

func NSProgressEstimatedTimeRemainingKey() *NSString

func NSProgressFileCompletedCountKey

func NSProgressFileCompletedCountKey() *NSString

func NSProgressFileOperationKindCopying

func NSProgressFileOperationKindCopying() *NSString

func NSProgressFileOperationKindDecompressingAfterDownloading

func NSProgressFileOperationKindDecompressingAfterDownloading() *NSString

func NSProgressFileOperationKindDownloading

func NSProgressFileOperationKindDownloading() *NSString

func NSProgressFileOperationKindDuplicating

func NSProgressFileOperationKindDuplicating() *NSString

func NSProgressFileOperationKindKey

func NSProgressFileOperationKindKey() *NSString

func NSProgressFileOperationKindReceiving

func NSProgressFileOperationKindReceiving() *NSString

func NSProgressFileOperationKindUploading

func NSProgressFileOperationKindUploading() *NSString

func NSProgressFileTotalCountKey

func NSProgressFileTotalCountKey() *NSString

func NSProgressFileURLKey

func NSProgressFileURLKey() *NSString

func NSProgressKindFile

func NSProgressKindFile() *NSString

func NSProgressThroughputKey

func NSProgressThroughputKey() *NSString

func NSRangeException

func NSRangeException() *NSString

func NSRecoveryAttempterErrorKey

func NSRecoveryAttempterErrorKey() *NSString

func NSRegularExpressionEscapedPatternForString

func NSRegularExpressionEscapedPatternForString(string_ *NSString) *NSString

Returns a string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters.

func NSRegularExpressionEscapedTemplateForString

func NSRegularExpressionEscapedTemplateForString(string_ *NSString) *NSString

Returns a template string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters

func NSRunLoopCommonModes

func NSRunLoopCommonModes() *NSString

func NSSecureUnarchiveFromDataTransformerName

func NSSecureUnarchiveFromDataTransformerName() *NSString

func NSStreamDataWrittenToMemoryStreamKey

func NSStreamDataWrittenToMemoryStreamKey() *NSString

func NSStreamFileCurrentOffsetKey

func NSStreamFileCurrentOffsetKey() *NSString

func NSStreamNetworkServiceType

func NSStreamNetworkServiceType() *NSString

func NSStreamNetworkServiceTypeBackground

func NSStreamNetworkServiceTypeBackground() *NSString

func NSStreamNetworkServiceTypeCallSignaling

func NSStreamNetworkServiceTypeCallSignaling() *NSString

func NSStreamNetworkServiceTypeVideo

func NSStreamNetworkServiceTypeVideo() *NSString

func NSStreamNetworkServiceTypeVoIP

func NSStreamNetworkServiceTypeVoIP() *NSString

func NSStreamNetworkServiceTypeVoice

func NSStreamNetworkServiceTypeVoice() *NSString

func NSStreamSOCKSErrorDomain

func NSStreamSOCKSErrorDomain() *NSString

func NSStreamSOCKSProxyConfigurationKey

func NSStreamSOCKSProxyConfigurationKey() *NSString

func NSStreamSOCKSProxyHostKey

func NSStreamSOCKSProxyHostKey() *NSString

func NSStreamSOCKSProxyPasswordKey

func NSStreamSOCKSProxyPasswordKey() *NSString

func NSStreamSOCKSProxyPortKey

func NSStreamSOCKSProxyPortKey() *NSString

func NSStreamSOCKSProxyUserKey

func NSStreamSOCKSProxyUserKey() *NSString

func NSStreamSOCKSProxyVersion4

func NSStreamSOCKSProxyVersion4() *NSString

func NSStreamSOCKSProxyVersion5

func NSStreamSOCKSProxyVersion5() *NSString

func NSStreamSOCKSProxyVersionKey

func NSStreamSOCKSProxyVersionKey() *NSString

func NSStreamSocketSSLErrorDomain

func NSStreamSocketSSLErrorDomain() *NSString

func NSStreamSocketSecurityLevelKey

func NSStreamSocketSecurityLevelKey() *NSString

func NSStreamSocketSecurityLevelNegotiatedSSL

func NSStreamSocketSecurityLevelNegotiatedSSL() *NSString

func NSStreamSocketSecurityLevelNone

func NSStreamSocketSecurityLevelNone() *NSString

func NSStreamSocketSecurityLevelSSLv2

func NSStreamSocketSecurityLevelSSLv2() *NSString

func NSStreamSocketSecurityLevelSSLv3

func NSStreamSocketSecurityLevelSSLv3() *NSString

func NSStreamSocketSecurityLevelTLSv1

func NSStreamSocketSecurityLevelTLSv1() *NSString

func NSStringEncodingDetectionAllowLossyKey

func NSStringEncodingDetectionAllowLossyKey() *NSString

func NSStringEncodingDetectionDisallowedEncodingsKey

func NSStringEncodingDetectionDisallowedEncodingsKey() *NSString

func NSStringEncodingDetectionFromWindowsKey

func NSStringEncodingDetectionFromWindowsKey() *NSString

func NSStringEncodingDetectionLikelyLanguageKey

func NSStringEncodingDetectionLikelyLanguageKey() *NSString

func NSStringEncodingDetectionLossySubstitutionKey

func NSStringEncodingDetectionLossySubstitutionKey() *NSString

func NSStringEncodingDetectionSuggestedEncodingsKey

func NSStringEncodingDetectionSuggestedEncodingsKey() *NSString

func NSStringEncodingDetectionUseOnlySuggestedEncodingsKey

func NSStringEncodingDetectionUseOnlySuggestedEncodingsKey() *NSString

func NSStringEncodingErrorKey

func NSStringEncodingErrorKey() *NSString

func NSStringFromClass

func NSStringFromClass(aClass objc.Class) *NSString

func NSStringFromHashTable

func NSStringFromHashTable(table *NSHashTable[objc.ID]) *NSString

func NSStringFromID

func NSStringFromID(id objc.ID) *NSString

func NSStringFromMapTable

func NSStringFromMapTable(table *NSMapTable[objc.ID, objc.ID]) *NSString

func NSStringFromPoint

func NSStringFromPoint(aPoint corefoundation.CGPoint) *NSString

func NSStringFromProtocol

func NSStringFromProtocol(proto unsafe.Pointer) *NSString

func NSStringFromRange

func NSStringFromRange(range_ NSRange) *NSString

func NSStringFromRect

func NSStringFromRect(aRect corefoundation.CGRect) *NSString

func NSStringFromSelector

func NSStringFromSelector(aSelector objc.SEL) *NSString

func NSStringFromSize

func NSStringFromSize(aSize corefoundation.CGSize) *NSString

func NSStringLocalizedNameOfStringEncoding

func NSStringLocalizedNameOfStringEncoding(encoding uint) *NSString

Returns a human-readable string giving the name of a given encoding.

func NSStringLocalizedStringWithFormat

func NSStringLocalizedStringWithFormat(format *NSString) *NSString

Returns a string created by using a given format string as a template into which the remaining argument values are substituted according to the current locale.

func NSStringLocalizedStringWithValidatedFormatValidFormatSpecifiersError

func NSStringLocalizedStringWithValidatedFormatValidFormatSpecifiersError(format *NSString, validFormatSpecifiers *NSString) (*NSString, error)

func NSStringPathWithComponents

func NSStringPathWithComponents(components *NSArray[*NSString]) *NSString

Returns a string built from the strings in a given array by concatenating them with a path separator between each pair.

func NSStringString

func NSStringString() *NSString

Returns an empty string.

func NSStringStringWithCStringEncoding

func NSStringStringWithCStringEncoding(cString string, enc uint) *NSString

Returns a string containing the bytes in a given C array, interpreted according to a given encoding.

func NSStringStringWithCharactersLength

func NSStringStringWithCharactersLength(characters *uint16, length uint) *NSString

Returns a string containing a given number of characters taken from a given C array of UTF-16 code units.

func NSStringStringWithContentsOfFileEncodingError

func NSStringStringWithContentsOfFileEncodingError(path *NSString, enc uint) (*NSString, error)

Returns a string created by reading data from the file at a given path interpreted using a given encoding.

func NSStringStringWithContentsOfFileUsedEncodingError

func NSStringStringWithContentsOfFileUsedEncodingError(path *NSString, enc *uint) (*NSString, error)

Returns a string created by reading data from the file at a given path and returns by reference the encoding used to interpret the file.

func NSStringStringWithContentsOfURLEncodingError

func NSStringStringWithContentsOfURLEncodingError(url *NSURL, enc uint) (*NSString, error)

Returns a string created by reading data from the file at a given path interpreted using a given encoding.

func NSStringStringWithContentsOfURLUsedEncodingError

func NSStringStringWithContentsOfURLUsedEncodingError(url *NSURL, enc *uint) (*NSString, error)

Returns a string created by reading data from the file at a given URL and returns by reference the encoding used to interpret the data.

func NSStringStringWithFormat

func NSStringStringWithFormat(format *NSString) *NSString

Returns a string created by using a given format string as a template into which the remaining argument values are substituted.

func NSStringStringWithString

func NSStringStringWithString(string_ *NSString) *NSString

Returns a string created by copying the characters from another given string.

func NSStringStringWithUTF8String

func NSStringStringWithUTF8String(nullTerminatedCString string) *NSString

Returns a string created by copying the data from a given C array of UTF8-encoded bytes.

func NSStringStringWithValidatedFormatValidFormatSpecifiersError

func NSStringStringWithValidatedFormatValidFormatSpecifiersError(format *NSString, validFormatSpecifiers *NSString) (*NSString, error)

func NSStringTransformFullwidthToHalfwidth

func NSStringTransformFullwidthToHalfwidth() *NSString

func NSStringTransformHiraganaToKatakana

func NSStringTransformHiraganaToKatakana() *NSString

func NSStringTransformLatinToArabic

func NSStringTransformLatinToArabic() *NSString

func NSStringTransformLatinToCyrillic

func NSStringTransformLatinToCyrillic() *NSString

func NSStringTransformLatinToGreek

func NSStringTransformLatinToGreek() *NSString

func NSStringTransformLatinToHangul

func NSStringTransformLatinToHangul() *NSString

func NSStringTransformLatinToHebrew

func NSStringTransformLatinToHebrew() *NSString

func NSStringTransformLatinToHiragana

func NSStringTransformLatinToHiragana() *NSString

func NSStringTransformLatinToKatakana

func NSStringTransformLatinToKatakana() *NSString

func NSStringTransformLatinToThai

func NSStringTransformLatinToThai() *NSString

func NSStringTransformMandarinToLatin

func NSStringTransformMandarinToLatin() *NSString

func NSStringTransformStripCombiningMarks

func NSStringTransformStripCombiningMarks() *NSString

func NSStringTransformStripDiacritics

func NSStringTransformStripDiacritics() *NSString

func NSStringTransformToLatin

func NSStringTransformToLatin() *NSString

func NSStringTransformToUnicodeName

func NSStringTransformToUnicodeName() *NSString

func NSStringTransformToXMLHex

func NSStringTransformToXMLHex() *NSString

func NSSumKeyValueOperator

func NSSumKeyValueOperator() *NSString

func NSSystemClockDidChangeNotification

func NSSystemClockDidChangeNotification() *NSString

func NSSystemTimeZoneDidChangeNotification

func NSSystemTimeZoneDidChangeNotification() *NSString

func NSTaskDidTerminateNotification

func NSTaskDidTerminateNotification() *NSString

func NSTemporaryDirectory

func NSTemporaryDirectory() *NSString

func NSTextCheckingAirlineKey

func NSTextCheckingAirlineKey() *NSString

func NSTextCheckingCityKey

func NSTextCheckingCityKey() *NSString

func NSTextCheckingCountryKey

func NSTextCheckingCountryKey() *NSString

func NSTextCheckingFlightKey

func NSTextCheckingFlightKey() *NSString

func NSTextCheckingJobTitleKey

func NSTextCheckingJobTitleKey() *NSString

func NSTextCheckingNameKey

func NSTextCheckingNameKey() *NSString

func NSTextCheckingOrganizationKey

func NSTextCheckingOrganizationKey() *NSString

func NSTextCheckingPhoneKey

func NSTextCheckingPhoneKey() *NSString

func NSTextCheckingStateKey

func NSTextCheckingStateKey() *NSString

func NSTextCheckingStreetKey

func NSTextCheckingStreetKey() *NSString

func NSTextCheckingZIPKey

func NSTextCheckingZIPKey() *NSString

func NSThreadWillExitNotification deprecated

func NSThreadWillExitNotification() *NSString

Deprecated: This notification does not protect against data races

func NSThumbnail1024x1024SizeKey deprecated

func NSThumbnail1024x1024SizeKey() *NSString

Deprecated: Use the QuickLookThumbnailing framework and extension point instead

func NSTimeZoneTimeZoneDataVersion

func NSTimeZoneTimeZoneDataVersion() *NSString

func NSURLAddedToDirectoryDateKey

func NSURLAddedToDirectoryDateKey() *NSString

func NSURLAttributeModificationDateKey

func NSURLAttributeModificationDateKey() *NSString

func NSURLCanonicalPathKey

func NSURLCanonicalPathKey() *NSString

func NSURLContentAccessDateKey

func NSURLContentAccessDateKey() *NSString

func NSURLContentModificationDateKey

func NSURLContentModificationDateKey() *NSString

func NSURLContentTypeKey

func NSURLContentTypeKey() *NSString

func NSURLCreationDateKey

func NSURLCreationDateKey() *NSString

func NSURLCredentialStorageChangedNotification

func NSURLCredentialStorageChangedNotification() *NSString

@const NSURLCredentialStorageChangedNotification @abstract This notification is sent on the main thread whenever the set of stored credentials changes. Deprecated: Notification is never posted

func NSURLCustomIconKey

func NSURLCustomIconKey() *NSString

func NSURLDirectoryEntryCountKey

func NSURLDirectoryEntryCountKey() *NSString

func NSURLDocumentIdentifierKey

func NSURLDocumentIdentifierKey() *NSString

func NSURLEffectiveIconKey

func NSURLEffectiveIconKey() *NSString

func NSURLErrorDomain

func NSURLErrorDomain() *NSString

func NSURLErrorKey

func NSURLErrorKey() *NSString

func NSURLErrorNetworkUnavailableReasonKey

func NSURLErrorNetworkUnavailableReasonKey() *NSString

@const NSURLErrorNetworkUnavailableReasonKey @abstract The NSErrorUserInfoKey used to store and retrieve the NSNumber object corresponding to the reason why the network is unavailable when the task failed due to unsatisfiable network constraints. See the NSURLErrorNetworkUnavailableReason enum for details.

func NSURLFileAllocatedSizeKey

func NSURLFileAllocatedSizeKey() *NSString

func NSURLFileContentIdentifierKey

func NSURLFileContentIdentifierKey() *NSString

func NSURLFileIdentifierKey

func NSURLFileIdentifierKey() *NSString

func NSURLFileProtectionComplete

func NSURLFileProtectionComplete() *NSString

func NSURLFileProtectionCompleteUnlessOpen

func NSURLFileProtectionCompleteUnlessOpen() *NSString

func NSURLFileProtectionCompleteUntilFirstUserAuthentication

func NSURLFileProtectionCompleteUntilFirstUserAuthentication() *NSString

func NSURLFileProtectionKey

func NSURLFileProtectionKey() *NSString

func NSURLFileProtectionNone

func NSURLFileProtectionNone() *NSString

func NSURLFileResourceIdentifierKey

func NSURLFileResourceIdentifierKey() *NSString

func NSURLFileResourceTypeBlockSpecial

func NSURLFileResourceTypeBlockSpecial() *NSString

func NSURLFileResourceTypeCharacterSpecial

func NSURLFileResourceTypeCharacterSpecial() *NSString

func NSURLFileResourceTypeDirectory

func NSURLFileResourceTypeDirectory() *NSString

func NSURLFileResourceTypeKey

func NSURLFileResourceTypeKey() *NSString

func NSURLFileResourceTypeNamedPipe

func NSURLFileResourceTypeNamedPipe() *NSString

func NSURLFileResourceTypeRegular

func NSURLFileResourceTypeRegular() *NSString

func NSURLFileResourceTypeSocket

func NSURLFileResourceTypeSocket() *NSString
func NSURLFileResourceTypeSymbolicLink() *NSString

func NSURLFileResourceTypeUnknown

func NSURLFileResourceTypeUnknown() *NSString

func NSURLFileSecurityKey

func NSURLFileSecurityKey() *NSString

func NSURLFileSizeKey

func NSURLFileSizeKey() *NSString

func NSURLGenerationIdentifierKey

func NSURLGenerationIdentifierKey() *NSString

func NSURLHasHiddenExtensionKey

func NSURLHasHiddenExtensionKey() *NSString

func NSURLIsAliasFileKey

func NSURLIsAliasFileKey() *NSString

func NSURLIsApplicationKey

func NSURLIsApplicationKey() *NSString

func NSURLIsDirectoryKey

func NSURLIsDirectoryKey() *NSString

func NSURLIsExcludedFromBackupKey

func NSURLIsExcludedFromBackupKey() *NSString

func NSURLIsExecutableKey

func NSURLIsExecutableKey() *NSString

func NSURLIsHiddenKey

func NSURLIsHiddenKey() *NSString

func NSURLIsMountTriggerKey

func NSURLIsMountTriggerKey() *NSString

func NSURLIsPackageKey

func NSURLIsPackageKey() *NSString

func NSURLIsPurgeableKey

func NSURLIsPurgeableKey() *NSString

func NSURLIsReadableKey

func NSURLIsReadableKey() *NSString

func NSURLIsRegularFileKey

func NSURLIsRegularFileKey() *NSString

func NSURLIsSparseKey

func NSURLIsSparseKey() *NSString

func NSURLIsSymbolicLinkKey

func NSURLIsSymbolicLinkKey() *NSString

func NSURLIsSystemImmutableKey

func NSURLIsSystemImmutableKey() *NSString

func NSURLIsUbiquitousItemKey

func NSURLIsUbiquitousItemKey() *NSString

func NSURLIsUserImmutableKey

func NSURLIsUserImmutableKey() *NSString

func NSURLIsVolumeKey

func NSURLIsVolumeKey() *NSString

func NSURLIsWritableKey

func NSURLIsWritableKey() *NSString

func NSURLKeysOfUnsetValuesKey

func NSURLKeysOfUnsetValuesKey() *NSString

func NSURLLabelColorKey

func NSURLLabelColorKey() *NSString

func NSURLLabelNumberKey

func NSURLLabelNumberKey() *NSString

func NSURLLinkCountKey

func NSURLLinkCountKey() *NSString

func NSURLLocalizedLabelKey

func NSURLLocalizedLabelKey() *NSString

func NSURLLocalizedNameKey

func NSURLLocalizedNameKey() *NSString

func NSURLLocalizedTypeDescriptionKey

func NSURLLocalizedTypeDescriptionKey() *NSString

func NSURLMayHaveExtendedAttributesKey

func NSURLMayHaveExtendedAttributesKey() *NSString

func NSURLMayShareFileContentKey

func NSURLMayShareFileContentKey() *NSString

func NSURLNameKey

func NSURLNameKey() *NSString

func NSURLParentDirectoryURLKey

func NSURLParentDirectoryURLKey() *NSString

func NSURLPathKey

func NSURLPathKey() *NSString

func NSURLPreferredIOBlockSizeKey

func NSURLPreferredIOBlockSizeKey() *NSString

func NSURLThumbnailDictionaryKey deprecated

func NSURLThumbnailDictionaryKey() *NSString

Deprecated: Use the QuickLookThumbnailing framework and extension point instead

func NSURLTotalFileAllocatedSizeKey

func NSURLTotalFileAllocatedSizeKey() *NSString

func NSURLTotalFileSizeKey

func NSURLTotalFileSizeKey() *NSString

func NSURLTypeIdentifierKey deprecated

func NSURLTypeIdentifierKey() *NSString

Deprecated: Use NSURLContentTypeKey instead

func NSURLUbiquitousItemContainerDisplayNameKey

func NSURLUbiquitousItemContainerDisplayNameKey() *NSString

func NSURLUbiquitousItemDownloadRequestedKey

func NSURLUbiquitousItemDownloadRequestedKey() *NSString

func NSURLUbiquitousItemDownloadingErrorKey

func NSURLUbiquitousItemDownloadingErrorKey() *NSString

func NSURLUbiquitousItemDownloadingStatusCurrent

func NSURLUbiquitousItemDownloadingStatusCurrent() *NSString

func NSURLUbiquitousItemDownloadingStatusDownloaded

func NSURLUbiquitousItemDownloadingStatusDownloaded() *NSString

func NSURLUbiquitousItemDownloadingStatusKey

func NSURLUbiquitousItemDownloadingStatusKey() *NSString

func NSURLUbiquitousItemDownloadingStatusNotDownloaded

func NSURLUbiquitousItemDownloadingStatusNotDownloaded() *NSString

func NSURLUbiquitousItemHasUnresolvedConflictsKey

func NSURLUbiquitousItemHasUnresolvedConflictsKey() *NSString

func NSURLUbiquitousItemIsDownloadedKey deprecated

func NSURLUbiquitousItemIsDownloadedKey() *NSString

Deprecated: Use NSURLUbiquitousItemDownloadingStatusKey instead

func NSURLUbiquitousItemIsDownloadingKey

func NSURLUbiquitousItemIsDownloadingKey() *NSString

func NSURLUbiquitousItemIsExcludedFromSyncKey

func NSURLUbiquitousItemIsExcludedFromSyncKey() *NSString

func NSURLUbiquitousItemIsSharedKey

func NSURLUbiquitousItemIsSharedKey() *NSString

func NSURLUbiquitousItemIsSyncPausedKey

func NSURLUbiquitousItemIsSyncPausedKey() *NSString

func NSURLUbiquitousItemIsUploadedKey

func NSURLUbiquitousItemIsUploadedKey() *NSString

func NSURLUbiquitousItemIsUploadingKey

func NSURLUbiquitousItemIsUploadingKey() *NSString

func NSURLUbiquitousItemPercentDownloadedKey deprecated

func NSURLUbiquitousItemPercentDownloadedKey() *NSString

Deprecated: Use NSMetadataUbiquitousItemPercentDownloadedKey instead

func NSURLUbiquitousItemPercentUploadedKey deprecated

func NSURLUbiquitousItemPercentUploadedKey() *NSString

Deprecated: Use NSMetadataUbiquitousItemPercentUploadedKey instead

func NSURLUbiquitousItemSupportedSyncControlsKey

func NSURLUbiquitousItemSupportedSyncControlsKey() *NSString

func NSURLUbiquitousItemUploadingErrorKey

func NSURLUbiquitousItemUploadingErrorKey() *NSString

func NSURLUbiquitousSharedItemCurrentUserPermissionsKey

func NSURLUbiquitousSharedItemCurrentUserPermissionsKey() *NSString

func NSURLUbiquitousSharedItemCurrentUserRoleKey

func NSURLUbiquitousSharedItemCurrentUserRoleKey() *NSString

func NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey

func NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey() *NSString

func NSURLUbiquitousSharedItemOwnerNameComponentsKey

func NSURLUbiquitousSharedItemOwnerNameComponentsKey() *NSString

func NSURLUbiquitousSharedItemPermissionsReadOnly

func NSURLUbiquitousSharedItemPermissionsReadOnly() *NSString

func NSURLUbiquitousSharedItemPermissionsReadWrite

func NSURLUbiquitousSharedItemPermissionsReadWrite() *NSString

func NSURLUbiquitousSharedItemRoleOwner

func NSURLUbiquitousSharedItemRoleOwner() *NSString

func NSURLUbiquitousSharedItemRoleParticipant

func NSURLUbiquitousSharedItemRoleParticipant() *NSString

func NSURLVolumeAvailableCapacityForImportantUsageKey

func NSURLVolumeAvailableCapacityForImportantUsageKey() *NSString

func NSURLVolumeAvailableCapacityForOpportunisticUsageKey

func NSURLVolumeAvailableCapacityForOpportunisticUsageKey() *NSString

func NSURLVolumeAvailableCapacityKey

func NSURLVolumeAvailableCapacityKey() *NSString

func NSURLVolumeCreationDateKey

func NSURLVolumeCreationDateKey() *NSString

func NSURLVolumeIdentifierKey

func NSURLVolumeIdentifierKey() *NSString

func NSURLVolumeIsAutomountedKey

func NSURLVolumeIsAutomountedKey() *NSString

func NSURLVolumeIsBrowsableKey

func NSURLVolumeIsBrowsableKey() *NSString

func NSURLVolumeIsEjectableKey

func NSURLVolumeIsEjectableKey() *NSString

func NSURLVolumeIsEncryptedKey

func NSURLVolumeIsEncryptedKey() *NSString

func NSURLVolumeIsInternalKey

func NSURLVolumeIsInternalKey() *NSString

func NSURLVolumeIsJournalingKey

func NSURLVolumeIsJournalingKey() *NSString

func NSURLVolumeIsLocalKey

func NSURLVolumeIsLocalKey() *NSString

func NSURLVolumeIsReadOnlyKey

func NSURLVolumeIsReadOnlyKey() *NSString

func NSURLVolumeIsRemovableKey

func NSURLVolumeIsRemovableKey() *NSString

func NSURLVolumeIsRootFileSystemKey

func NSURLVolumeIsRootFileSystemKey() *NSString

func NSURLVolumeLocalizedFormatDescriptionKey

func NSURLVolumeLocalizedFormatDescriptionKey() *NSString

func NSURLVolumeLocalizedNameKey

func NSURLVolumeLocalizedNameKey() *NSString

func NSURLVolumeMaximumFileSizeKey

func NSURLVolumeMaximumFileSizeKey() *NSString

func NSURLVolumeMountFromLocationKey

func NSURLVolumeMountFromLocationKey() *NSString

func NSURLVolumeNameKey

func NSURLVolumeNameKey() *NSString

func NSURLVolumeResourceCountKey

func NSURLVolumeResourceCountKey() *NSString

func NSURLVolumeSubtypeKey

func NSURLVolumeSubtypeKey() *NSString

func NSURLVolumeSupportsAccessPermissionsKey

func NSURLVolumeSupportsAccessPermissionsKey() *NSString

func NSURLVolumeSupportsAdvisoryFileLockingKey

func NSURLVolumeSupportsAdvisoryFileLockingKey() *NSString

func NSURLVolumeSupportsCasePreservedNamesKey

func NSURLVolumeSupportsCasePreservedNamesKey() *NSString

func NSURLVolumeSupportsCaseSensitiveNamesKey

func NSURLVolumeSupportsCaseSensitiveNamesKey() *NSString

func NSURLVolumeSupportsCompressionKey

func NSURLVolumeSupportsCompressionKey() *NSString

func NSURLVolumeSupportsExclusiveRenamingKey

func NSURLVolumeSupportsExclusiveRenamingKey() *NSString

func NSURLVolumeSupportsExtendedSecurityKey

func NSURLVolumeSupportsExtendedSecurityKey() *NSString

func NSURLVolumeSupportsFileCloningKey

func NSURLVolumeSupportsFileCloningKey() *NSString

func NSURLVolumeSupportsFileProtectionKey

func NSURLVolumeSupportsFileProtectionKey() *NSString

func NSURLVolumeSupportsHardLinksKey

func NSURLVolumeSupportsHardLinksKey() *NSString

func NSURLVolumeSupportsImmutableFilesKey

func NSURLVolumeSupportsImmutableFilesKey() *NSString

func NSURLVolumeSupportsJournalingKey

func NSURLVolumeSupportsJournalingKey() *NSString

func NSURLVolumeSupportsPersistentIDsKey

func NSURLVolumeSupportsPersistentIDsKey() *NSString

func NSURLVolumeSupportsRenamingKey

func NSURLVolumeSupportsRenamingKey() *NSString

func NSURLVolumeSupportsRootDirectoryDatesKey

func NSURLVolumeSupportsRootDirectoryDatesKey() *NSString

func NSURLVolumeSupportsSparseFilesKey

func NSURLVolumeSupportsSparseFilesKey() *NSString

func NSURLVolumeSupportsSwapRenamingKey

func NSURLVolumeSupportsSwapRenamingKey() *NSString

func NSURLVolumeSupportsSymbolicLinksKey

func NSURLVolumeSupportsSymbolicLinksKey() *NSString

func NSURLVolumeSupportsVolumeSizesKey

func NSURLVolumeSupportsVolumeSizesKey() *NSString

func NSURLVolumeSupportsZeroRunsKey

func NSURLVolumeSupportsZeroRunsKey() *NSString

func NSURLVolumeTotalCapacityKey

func NSURLVolumeTotalCapacityKey() *NSString

func NSURLVolumeTypeNameKey

func NSURLVolumeTypeNameKey() *NSString

func NSURLVolumeURLForRemountingKey

func NSURLVolumeURLForRemountingKey() *NSString

func NSURLVolumeURLKey

func NSURLVolumeURLKey() *NSString

func NSURLVolumeUUIDStringKey

func NSURLVolumeUUIDStringKey() *NSString

func NSUbiquitousKeyValueStoreDidChangeExternallyNotification

func NSUbiquitousKeyValueStoreDidChangeExternallyNotification() *NSString

func NSUbiquityIdentityDidChangeNotification

func NSUbiquityIdentityDidChangeNotification() *NSString

func NSUnarchiveFromDataTransformerName deprecated

func NSUnarchiveFromDataTransformerName() *NSString

Deprecated: since macOS 10.14.

func NSUnarchiverClassNameDecodedForArchiveClassName

func NSUnarchiverClassNameDecodedForArchiveClassName(inArchiveName *NSString) *NSString

Returns the name of the class used when instantiating objects whose ostensible class, according to the archived data, is a given name.

func NSUndefinedKeyException

func NSUndefinedKeyException() *NSString

func NSUnderlyingErrorKey

func NSUnderlyingErrorKey() *NSString

func NSUndoManagerCheckpointNotification

func NSUndoManagerCheckpointNotification() *NSString

func NSUndoManagerDidCloseUndoGroupNotification

func NSUndoManagerDidCloseUndoGroupNotification() *NSString

func NSUndoManagerDidOpenUndoGroupNotification

func NSUndoManagerDidOpenUndoGroupNotification() *NSString

func NSUndoManagerDidRedoChangeNotification

func NSUndoManagerDidRedoChangeNotification() *NSString

func NSUndoManagerDidUndoChangeNotification

func NSUndoManagerDidUndoChangeNotification() *NSString

func NSUndoManagerWillCloseUndoGroupNotification

func NSUndoManagerWillCloseUndoGroupNotification() *NSString

func NSUndoManagerWillRedoChangeNotification

func NSUndoManagerWillRedoChangeNotification() *NSString

func NSUndoManagerWillUndoChangeNotification

func NSUndoManagerWillUndoChangeNotification() *NSString

func NSUnionOfArraysKeyValueOperator

func NSUnionOfArraysKeyValueOperator() *NSString

func NSUnionOfObjectsKeyValueOperator

func NSUnionOfObjectsKeyValueOperator() *NSString

func NSUnionOfSetsKeyValueOperator

func NSUnionOfSetsKeyValueOperator() *NSString

func NSUserDefaultsDidChangeNotification

func NSUserDefaultsDidChangeNotification() *NSString

NSUserDefaultsDidChangeNotification is posted whenever any user defaults changed within the current process, but is not posted when ubiquitous defaults change, or when an outside process changes defaults. Using key-value observing to register observers for the specific keys of interest will inform you of all updates, regardless of where they're from.

func NSUserName

func NSUserName() *NSString

func NSWillBecomeMultiThreadedNotification deprecated

func NSWillBecomeMultiThreadedNotification() *NSString

Deprecated: This notification does not protect against data races

func NSXMLNodeLocalNameForName

func NSXMLNodeLocalNameForName(name *NSString) *NSString

@method localNameForName: @abstract Returns the local name bar in foo:bar.

func NSXMLNodePrefixForName

func NSXMLNodePrefixForName(name *NSString) *NSString

@method localNameForName: @abstract Returns the prefix foo in the name foo:bar.

func NSXMLParserErrorDomain

func NSXMLParserErrorDomain() *NSString

func NSZoneName

func NSZoneName(zone unsafe.Pointer) *NSString

func (*NSString) BoolValue

func (o *NSString) BoolValue() bool

func (*NSString) CString

func (o *NSString) CString() string

Returns a representation of the receiver as a C string in the default C-string encoding. Deprecated: Use -cStringUsingEncoding: instead

func (*NSString) CStringLength

func (o *NSString) CStringLength() uint

Returns the length in char-sized units of the receiver’s C-string representation in the default C-string encoding. Deprecated: Use -lengthOfBytesUsingEncoding: instead

func (*NSString) CStringUsingEncoding

func (o *NSString) CStringUsingEncoding(encoding uint) string

Returns a representation of the string as a C string using a given encoding.

func (*NSString) CanBeConvertedToEncoding

func (o *NSString) CanBeConvertedToEncoding(encoding uint) bool

Returns a Boolean value that indicates whether the receiver can be converted to a given encoding without loss of information.

func (*NSString) CapitalizedString

func (o *NSString) CapitalizedString() *NSString

func (*NSString) CapitalizedStringWithLocale

func (o *NSString) CapitalizedStringWithLocale(locale *NSLocale) *NSString

Returns a capitalized representation of the receiver using the specified locale.

func (*NSString) CaseInsensitiveCompare

func (o *NSString) CaseInsensitiveCompare(string_ *NSString) NSComparisonResult

Returns the result of invoking compare:options: with NSCaseInsensitiveSearch as the only option.

func (*NSString) CharacterAtIndex

func (o *NSString) CharacterAtIndex(index uint) uint16

Returns the character at a given UTF-16 code unit index.

func (*NSString) CommonPrefixWithStringOptions

func (o *NSString) CommonPrefixWithStringOptions(str *NSString, mask NSStringCompareOptions) *NSString

Returns a string containing characters the receiver and a given string have in common, starting from the beginning of each up to the first characters that aren’t equivalent.

func (*NSString) Compare

func (o *NSString) Compare(string_ *NSString) NSComparisonResult

Returns the result of invoking compare:options:range: with no options and the receiver’s full extent as the range.

func (*NSString) CompareOptions

func (o *NSString) CompareOptions(string_ *NSString, mask NSStringCompareOptions) NSComparisonResult

Compares the string with the specified string using the given options.

func (*NSString) CompareOptionsRange

func (o *NSString) CompareOptionsRange(string_ *NSString, mask NSStringCompareOptions, rangeOfReceiverToCompare NSRange) NSComparisonResult

Returns the result of invoking compare:options:range:locale: with a nil locale.

func (*NSString) CompareOptionsRangeLocale

func (o *NSString) CompareOptionsRangeLocale(string_ *NSString, mask NSStringCompareOptions, rangeOfReceiverToCompare NSRange, locale objc.ID) NSComparisonResult

Compares the string using the specified options and returns the lexical ordering for the range.

func (*NSString) CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes

func (o *NSString) CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(outputName *NSString, flag bool, outputArray *NSArray[*NSString], filterTypes *NSArray[*NSString]) uint

Interprets the receiver as a path in the file system and attempts to perform filename completion, returning a numeric value that indicates whether a match was possible, and by reference the longest path that matches the receiver.

func (*NSString) ComponentsSeparatedByCharactersInSet

func (o *NSString) ComponentsSeparatedByCharactersInSet(separator *NSCharacterSet) *NSArray[*NSString]

Returns an array containing substrings from the receiver that have been divided by characters in a given set.

func (*NSString) ComponentsSeparatedByString

func (o *NSString) ComponentsSeparatedByString(separator *NSString) *NSArray[*NSString]

Returns an array containing substrings from the receiver that have been divided by a given separator.

func (*NSString) ContainsString

func (o *NSString) ContainsString(str *NSString) bool

Returns a Boolean value indicating whether the string contains a given string by performing a case-sensitive, locale-unaware search.

func (*NSString) DataUsingEncoding

func (o *NSString) DataUsingEncoding(encoding uint) *NSData

Returns an NSData object containing a representation of the receiver encoded using a given encoding.

func (*NSString) DataUsingEncodingAllowLossyConversion

func (o *NSString) DataUsingEncodingAllowLossyConversion(encoding uint, lossy bool) *NSData

Returns an NSData object containing a representation of the receiver encoded using a given encoding.

func (*NSString) DecomposedStringWithCanonicalMapping

func (o *NSString) DecomposedStringWithCanonicalMapping() *NSString

func (*NSString) DecomposedStringWithCompatibilityMapping

func (o *NSString) DecomposedStringWithCompatibilityMapping() *NSString

func (*NSString) DoubleValue

func (o *NSString) DoubleValue() float64

func (*NSString) EnumerateLinesUsing

func (o *NSString) EnumerateLinesUsing(block func(*NSString, *bool))

Enumerates all the lines in the string.

func (*NSString) EnumerateLinguisticTagsInRangeSchemeOptionsOrthographyUsing

func (o *NSString) EnumerateLinguisticTagsInRangeSchemeOptionsOrthographyUsing(range_ NSRange, scheme *NSString, options NSLinguisticTaggerOptions, orthography *NSOrthography, block objc.Block)

Performs linguistic analysis on the specified string by enumerating the specific range of the string, providing the Block with the located tags. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSString) EnumerateSubstringsInRangeOptionsUsing

func (o *NSString) EnumerateSubstringsInRangeOptionsUsing(range_ NSRange, opts NSStringEnumerationOptions, block objc.Block)

Enumerates the substrings of the specified type in the specified range of the string.

func (*NSString) FastestEncoding

func (o *NSString) FastestEncoding() uint

func (*NSString) FileSystemRepresentation

func (o *NSString) FileSystemRepresentation() unsafe.Pointer

func (*NSString) FloatValue

func (o *NSString) FloatValue() float32

func (*NSString) GetBytesMaxLengthUsedLengthEncodingOptionsRangeRemainingRange

func (o *NSString) GetBytesMaxLengthUsedLengthEncodingOptionsRangeRemainingRange(buffer unsafe.Pointer, maxBufferCount uint, usedBufferCount *uint, encoding uint, options NSStringEncodingConversionOptions, range_ NSRange, leftover *NSRange) bool

Gets a given range of characters as bytes in a specified encoding.

func (*NSString) GetCString

func (o *NSString) GetCString(bytes_ string)

Invokes getCString:maxLength:range:remainingRange: with NSMaximumStringLength as the maximum length, the receiver’s entire extent as the range, and NULL for the remaining range. Deprecated: Use -getCString:maxLength:encoding: instead

func (*NSString) GetCStringMaxLength

func (o *NSString) GetCStringMaxLength(bytes_ string, maxLength uint)

Invokes getCString:maxLength:range:remainingRange: with maxLength as the maximum length in char-sized units, the receiver’s entire extent as the range, and NULL for the remaining range. Deprecated: Use -getCString:maxLength:encoding: instead

func (*NSString) GetCStringMaxLengthEncoding

func (o *NSString) GetCStringMaxLengthEncoding(buffer string, maxBufferCount uint, encoding uint) bool

Converts the string to a given encoding and stores it in a buffer.

func (*NSString) GetCStringMaxLengthRangeRemainingRange

func (o *NSString) GetCStringMaxLengthRangeRemainingRange(bytes_ string, maxLength uint, aRange NSRange, leftoverRange *NSRange)

Converts the receiver’s content to the default C-string encoding and stores them in a given buffer. Deprecated: Use -getCString:maxLength:encoding: instead

func (*NSString) GetCharacters

func (o *NSString) GetCharacters(buffer *uint16)

Copies all characters from the receiver into a given buffer. Deprecated: Use +stringWithCString:encoding: instead

func (*NSString) GetCharactersRange

func (o *NSString) GetCharactersRange(buffer *uint16, range_ NSRange)

Copies characters from a given range in the receiver into a given buffer.

func (*NSString) GetFileSystemRepresentationMaxLength

func (o *NSString) GetFileSystemRepresentationMaxLength(cname string, max uint) bool

Interprets the receiver as a system-independent path and fills a buffer with a C-string in a format and encoding suitable for use with file-system calls.

func (*NSString) GetLineStartEndContentsEndForRange

func (o *NSString) GetLineStartEndContentsEndForRange(startPtr *uint, lineEndPtr *uint, contentsEndPtr *uint, range_ NSRange)

Returns by reference the beginning of the first line and the end of the last line touched by the given range.

func (*NSString) GetParagraphStartEndContentsEndForRange

func (o *NSString) GetParagraphStartEndContentsEndForRange(startPtr *uint, parEndPtr *uint, contentsEndPtr *uint, range_ NSRange)

Returns by reference the beginning of the first paragraph and the end of the last paragraph touched by the given range.

func (*NSString) HasPrefix

func (o *NSString) HasPrefix(str *NSString) bool

Returns a Boolean value that indicates whether a given string matches the beginning characters of the receiver.

func (*NSString) HasSuffix

func (o *NSString) HasSuffix(str *NSString) bool

Returns a Boolean value that indicates whether a given string matches the ending characters of the receiver.

func (*NSString) Init

func (o *NSString) Init() *NSString

Returns an initialized NSString object that contains no characters.

func (*NSString) InitWithBytesLengthEncoding

func (o *NSString) InitWithBytesLengthEncoding(bytes_ unsafe.Pointer, len_ uint, encoding uint) *NSString

Returns an initialized NSString object containing a given number of bytes from a given buffer of bytes interpreted in a given encoding.

func (*NSString) InitWithBytesNoCopyLengthEncodingDeallocator

func (o *NSString) InitWithBytesNoCopyLengthEncodingDeallocator(bytes_ unsafe.Pointer, len_ uint, encoding uint, deallocator func(unsafe.Pointer, uint)) *NSString

func (*NSString) InitWithBytesNoCopyLengthEncodingFreeWhenDone

func (o *NSString) InitWithBytesNoCopyLengthEncodingFreeWhenDone(bytes_ unsafe.Pointer, len_ uint, encoding uint, freeBuffer bool) *NSString

Returns an initialized NSString object that contains a given number of bytes from a given buffer of bytes interpreted in a given encoding, and optionally frees the buffer.

func (*NSString) InitWithCString deprecated

func (o *NSString) InitWithCString(bytes_ string) objc.ID

Deprecated: Use -initWithCString:encoding: instead

func (*NSString) InitWithCStringEncoding

func (o *NSString) InitWithCStringEncoding(nullTerminatedCString string, encoding uint) *NSString

Returns an @c NSString object initialized using the characters in a given C array, interpreted according to a given encoding.

func (*NSString) InitWithCStringLength deprecated

func (o *NSString) InitWithCStringLength(bytes_ string, length uint) objc.ID

Deprecated: Use -initWithCString:encoding: instead

func (*NSString) InitWithCStringNoCopyLengthFreeWhenDone deprecated

func (o *NSString) InitWithCStringNoCopyLengthFreeWhenDone(bytes_ string, length uint, freeBuffer bool) objc.ID

Deprecated: Use -initWithCString:encoding: instead

func (*NSString) InitWithCharactersLength

func (o *NSString) InitWithCharactersLength(characters *uint16, length uint) *NSString

Returns an initialized NSString object that contains a given number of characters from a given C array of UTF-16 code units.

func (*NSString) InitWithCharactersNoCopyLengthDeallocator

func (o *NSString) InitWithCharactersNoCopyLengthDeallocator(chars *uint16, len_ uint, deallocator func(*uint16, uint)) *NSString

func (*NSString) InitWithCharactersNoCopyLengthFreeWhenDone

func (o *NSString) InitWithCharactersNoCopyLengthFreeWhenDone(characters *uint16, length uint, freeBuffer bool) *NSString

Returns an initialized NSString object that contains a given number of characters from a given C array of UTF-16 code units.

func (*NSString) InitWithCoder

func (o *NSString) InitWithCoder(coder *NSCoder) *NSString

func (*NSString) InitWithContentsOfFile

func (o *NSString) InitWithContentsOfFile(path *NSString) objc.ID

Initializes the receiver, a newly allocated NSString object, by reading data from the file named by path. Deprecated: Use -initWithContentsOfFile:encoding:error: instead

func (*NSString) InitWithContentsOfFileEncodingError

func (o *NSString) InitWithContentsOfFileEncodingError(path *NSString, enc uint) (*NSString, error)

Returns an NSString object initialized by reading data from the file at a given path using a given encoding.

func (*NSString) InitWithContentsOfFileUsedEncodingError

func (o *NSString) InitWithContentsOfFileUsedEncodingError(path *NSString, enc *uint) (*NSString, error)

Returns an NSString object initialized by reading data from the file at a given path and returns by reference the encoding used to interpret the characters.

func (*NSString) InitWithContentsOfURL

func (o *NSString) InitWithContentsOfURL(url *NSURL) objc.ID

Returns an @c NSString object initialized by reading data from the URL named by @c url. Deprecated: Use -initWithContentsOfURL:encoding:error: instead

func (*NSString) InitWithContentsOfURLEncodingError

func (o *NSString) InitWithContentsOfURLEncodingError(url *NSURL, enc uint) (*NSString, error)

Returns an @c NSString object initialized by reading data from a given URL interpreted using a given encoding.

func (*NSString) InitWithContentsOfURLUsedEncodingError

func (o *NSString) InitWithContentsOfURLUsedEncodingError(url *NSURL, enc *uint) (*NSString, error)

Returns an @c NSString object initialized by reading data from a given URL and returns by reference the encoding used to interpret the data.

func (*NSString) InitWithDataEncoding

func (o *NSString) InitWithDataEncoding(data *NSData, encoding uint) *NSString

Returns an NSString object initialized by converting given data into UTF-16 code units using a given encoding.

func (*NSString) InitWithFormat

func (o *NSString) InitWithFormat(format *NSString) *NSString

Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted.

func (*NSString) InitWithFormatArguments

func (o *NSString) InitWithFormatArguments(format *NSString, argList string) *NSString

Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted without any localization.

func (*NSString) InitWithFormatLocale

func (o *NSString) InitWithFormatLocale(format *NSString, locale objc.ID) *NSString

Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to given locale.

func (*NSString) InitWithFormatLocaleArguments

func (o *NSString) InitWithFormatLocaleArguments(format *NSString, locale objc.ID, argList string) *NSString

Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to given locale information. This method is meant to be called from within a variadic function, where the argument list will be available.

func (*NSString) InitWithString

func (o *NSString) InitWithString(aString *NSString) *NSString

Returns an NSString object initialized by copying the characters from another given string.

func (*NSString) InitWithUTF8String

func (o *NSString) InitWithUTF8String(nullTerminatedCString string) *NSString

Returns an @c NSString object initialized by copying the characters from a given C array of UTF8-encoded bytes.

func (*NSString) InitWithValidatedFormatValidFormatSpecifiersArgumentsError

func (o *NSString) InitWithValidatedFormatValidFormatSpecifiersArgumentsError(format *NSString, validFormatSpecifiers *NSString, argList string) (*NSString, error)

func (*NSString) InitWithValidatedFormatValidFormatSpecifiersError

func (o *NSString) InitWithValidatedFormatValidFormatSpecifiersError(format *NSString, validFormatSpecifiers *NSString) (*NSString, error)

func (*NSString) InitWithValidatedFormatValidFormatSpecifiersLocaleArgumentsError

func (o *NSString) InitWithValidatedFormatValidFormatSpecifiersLocaleArgumentsError(format *NSString, validFormatSpecifiers *NSString, locale objc.ID, argList string) (*NSString, error)

func (*NSString) InitWithValidatedFormatValidFormatSpecifiersLocaleError

func (o *NSString) InitWithValidatedFormatValidFormatSpecifiersLocaleError(format *NSString, validFormatSpecifiers *NSString, locale objc.ID) (*NSString, error)

func (*NSString) IntValue

func (o *NSString) IntValue() int

func (*NSString) IntegerValue

func (o *NSString) IntegerValue() int

func (*NSString) IsAbsolutePath

func (o *NSString) IsAbsolutePath() bool

func (*NSString) IsEqualToString

func (o *NSString) IsEqualToString(aString *NSString) bool

Returns a Boolean value that indicates whether a given string is equal to the receiver using a literal Unicode-based comparison.

func (*NSString) LastPathComponent

func (o *NSString) LastPathComponent() *NSString

func (*NSString) Length

func (o *NSString) Length() uint

func (*NSString) LengthOfBytesUsingEncoding

func (o *NSString) LengthOfBytesUsingEncoding(enc uint) uint

Returns the number of bytes required to store the receiver in a given encoding.

func (*NSString) LineRangeForRange

func (o *NSString) LineRangeForRange(range_ NSRange) NSRange

Returns the range of characters representing the line or lines containing a given range.

func (*NSString) LinguisticTagsInRangeSchemeOptionsOrthographyTokenRanges

func (o *NSString) LinguisticTagsInRangeSchemeOptionsOrthographyTokenRanges(range_ NSRange, scheme *NSString, options NSLinguisticTaggerOptions, orthography *NSOrthography, tokenRanges *NSArray[*NSValue]) *NSArray[*NSString]

Returns an array of linguistic tags for the specified range and requested tags within the receiving string. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSString) LocalizedCapitalizedString

func (o *NSString) LocalizedCapitalizedString() *NSString

func (*NSString) LocalizedCaseInsensitiveCompare

func (o *NSString) LocalizedCaseInsensitiveCompare(string_ *NSString) NSComparisonResult

Compares the string with a given string using a case-insensitive, localized, comparison.

func (*NSString) LocalizedCaseInsensitiveContainsString

func (o *NSString) LocalizedCaseInsensitiveContainsString(str *NSString) bool

Returns a Boolean value indicating whether the string contains a given string by performing a case-insensitive, locale-aware search.

func (*NSString) LocalizedCompare

func (o *NSString) LocalizedCompare(string_ *NSString) NSComparisonResult

Compares the string and a given string using a localized comparison.

func (*NSString) LocalizedLowercaseString

func (o *NSString) LocalizedLowercaseString() *NSString

func (*NSString) LocalizedStandardCompare

func (o *NSString) LocalizedStandardCompare(string_ *NSString) NSComparisonResult

Compares strings as sorted by the Finder.

func (*NSString) LocalizedStandardContainsString

func (o *NSString) LocalizedStandardContainsString(str *NSString) bool

Returns a Boolean value indicating whether the string contains a given string by performing a case and diacritic insensitive, locale-aware search.

func (*NSString) LocalizedStandardRangeOfString

func (o *NSString) LocalizedStandardRangeOfString(str *NSString) NSRange

Finds and returns the range of the first occurrence of a given string within the string by performing a case and diacritic insensitive, locale-aware search.

func (*NSString) LocalizedUppercaseString

func (o *NSString) LocalizedUppercaseString() *NSString

func (*NSString) LongLongValue

func (o *NSString) LongLongValue() int64

func (*NSString) LossyCString

func (o *NSString) LossyCString() string

Returns a representation of the receiver as a C string in the default C-string encoding, possibly losing information in converting to that encoding. Deprecated: Use -cStringUsingEncoding: instead

func (*NSString) LowercaseString

func (o *NSString) LowercaseString() *NSString

func (*NSString) LowercaseStringWithLocale

func (o *NSString) LowercaseStringWithLocale(locale *NSLocale) *NSString

Returns a version of the string with all letters converted to lowercase, taking into account the specified locale.

func (*NSString) MaximumLengthOfBytesUsingEncoding

func (o *NSString) MaximumLengthOfBytesUsingEncoding(enc uint) uint

Returns the maximum number of bytes needed to store the receiver in a given encoding.

func (*NSString) ParagraphRangeForRange

func (o *NSString) ParagraphRangeForRange(range_ NSRange) NSRange

Returns the range of characters representing the paragraph or paragraphs containing a given range.

func (*NSString) PathComponents

func (o *NSString) PathComponents() *NSArray[*NSString]

func (*NSString) PathExtension

func (o *NSString) PathExtension() *NSString

func (*NSString) PrecomposedStringWithCanonicalMapping

func (o *NSString) PrecomposedStringWithCanonicalMapping() *NSString

func (*NSString) PrecomposedStringWithCompatibilityMapping

func (o *NSString) PrecomposedStringWithCompatibilityMapping() *NSString

func (*NSString) PropertyList

func (o *NSString) PropertyList() objc.ID

Parses the receiver as a text representation of a property list, returning an NSString, NSData, NSArray, or NSDictionary object, according to the topmost element.

func (*NSString) PropertyListFromStringsFileFormat

func (o *NSString) PropertyListFromStringsFileFormat() *NSDictionary[objc.ID, objc.ID]

Returns a dictionary object initialized with the keys and values found in the receiver.

func (*NSString) RangeOfCharacterFromSet

func (o *NSString) RangeOfCharacterFromSet(searchSet *NSCharacterSet) NSRange

Finds and returns the range in the string of the first character from a given character set.

func (*NSString) RangeOfCharacterFromSetOptions

func (o *NSString) RangeOfCharacterFromSetOptions(searchSet *NSCharacterSet, mask NSStringCompareOptions) NSRange

Finds and returns the range in the string of the first character, using given options, from a given character set.

func (*NSString) RangeOfCharacterFromSetOptionsRange

func (o *NSString) RangeOfCharacterFromSetOptionsRange(searchSet *NSCharacterSet, mask NSStringCompareOptions, rangeOfReceiverToSearch NSRange) NSRange

Finds and returns the range in the string of the first character from a given character set found in a given range with given options.

func (*NSString) RangeOfComposedCharacterSequenceAtIndex

func (o *NSString) RangeOfComposedCharacterSequenceAtIndex(index uint) NSRange

Returns the range in the receiver of the composed character sequence located at a given index.

func (*NSString) RangeOfComposedCharacterSequencesForRange

func (o *NSString) RangeOfComposedCharacterSequencesForRange(range_ NSRange) NSRange

Returns the range in the string of the composed character sequences for a given range.

func (*NSString) RangeOfString

func (o *NSString) RangeOfString(searchString *NSString) NSRange

Finds and returns the range of the first occurrence of a given string within the string.

func (*NSString) RangeOfStringOptions

func (o *NSString) RangeOfStringOptions(searchString *NSString, mask NSStringCompareOptions) NSRange

Finds and returns the range of the first occurrence of a given string within the string, subject to given options.

func (*NSString) RangeOfStringOptionsRange

func (o *NSString) RangeOfStringOptionsRange(searchString *NSString, mask NSStringCompareOptions, rangeOfReceiverToSearch NSRange) NSRange

Finds and returns the range of the first occurrence of a given string, within the given range of the string, subject to given options.

func (*NSString) RangeOfStringOptionsRangeLocale

func (o *NSString) RangeOfStringOptionsRangeLocale(searchString *NSString, mask NSStringCompareOptions, rangeOfReceiverToSearch NSRange, locale *NSLocale) NSRange

Finds and returns the range of the first occurrence of a given string within a given range of the string, subject to given options, using the specified locale, if any.

func (*NSString) SmallestEncoding

func (o *NSString) SmallestEncoding() uint

func (*NSString) StringByAbbreviatingWithTildeInPath

func (o *NSString) StringByAbbreviatingWithTildeInPath() *NSString

func (*NSString) StringByAddingPercentEncodingWithAllowedCharacters

func (o *NSString) StringByAddingPercentEncodingWithAllowedCharacters(allowedCharacters *NSCharacterSet) *NSString

Returns a new string made from the receiver by replacing all characters not in the specified set with percent-encoded characters.

func (*NSString) StringByAddingPercentEscapesUsingEncoding

func (o *NSString) StringByAddingPercentEscapesUsingEncoding(enc uint) *NSString

Returns a representation of the receiver using a given encoding to determine the percent escapes necessary to convert the receiver into a legal URL string. Deprecated: Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid.

func (*NSString) StringByAppendingFormat

func (o *NSString) StringByAppendingFormat(format *NSString) *NSString

Returns a string made by appending to the receiver a string constructed from a given format string and the following arguments.

func (*NSString) StringByAppendingPathComponent

func (o *NSString) StringByAppendingPathComponent(str *NSString) *NSString

Returns a new string made by appending to the receiver a given string.

func (*NSString) StringByAppendingPathExtension

func (o *NSString) StringByAppendingPathExtension(str *NSString) *NSString

Returns a new string made by appending to the receiver an extension separator followed by a given extension.

func (*NSString) StringByAppendingString

func (o *NSString) StringByAppendingString(aString *NSString) *NSString

Returns a new string made by appending a given string to the receiver.

func (*NSString) StringByApplyingTransformReverse

func (o *NSString) StringByApplyingTransformReverse(transform *NSString, reverse bool) *NSString

Returns a new string by applying a specified transform to the string.

func (*NSString) StringByDeletingLastPathComponent

func (o *NSString) StringByDeletingLastPathComponent() *NSString

func (*NSString) StringByDeletingPathExtension

func (o *NSString) StringByDeletingPathExtension() *NSString

func (*NSString) StringByExpandingTildeInPath

func (o *NSString) StringByExpandingTildeInPath() *NSString

func (*NSString) StringByFoldingWithOptionsLocale

func (o *NSString) StringByFoldingWithOptionsLocale(options NSStringCompareOptions, locale *NSLocale) *NSString

Creates a string suitable for comparison by removing the specified character distinctions from a string.

func (*NSString) StringByPaddingToLengthWithStringStartingAtIndex

func (o *NSString) StringByPaddingToLengthWithStringStartingAtIndex(newLength uint, padString *NSString, padIndex uint) *NSString

Returns a new string formed from the receiver by either removing characters from the end, or by appending as many occurrences as necessary of a given pad string.

func (*NSString) StringByRemovingPercentEncoding

func (o *NSString) StringByRemovingPercentEncoding() *NSString

func (*NSString) StringByReplacingCharactersInRangeWithString

func (o *NSString) StringByReplacingCharactersInRangeWithString(range_ NSRange, replacement *NSString) *NSString

Returns a new string in which the characters in a specified range of the receiver are replaced by a given string.

func (*NSString) StringByReplacingOccurrencesOfStringWithString

func (o *NSString) StringByReplacingOccurrencesOfStringWithString(target *NSString, replacement *NSString) *NSString

Returns a new string in which all occurrences of a target string in the receiver are replaced by another given string.

func (*NSString) StringByReplacingOccurrencesOfStringWithStringOptionsRange

func (o *NSString) StringByReplacingOccurrencesOfStringWithStringOptionsRange(target *NSString, replacement *NSString, options NSStringCompareOptions, searchRange NSRange) *NSString

Returns a new string in which all occurrences of a target string in a specified range of the receiver are replaced by another given string.

func (*NSString) StringByReplacingPercentEscapesUsingEncoding

func (o *NSString) StringByReplacingPercentEscapesUsingEncoding(enc uint) *NSString

Returns a new string made by replacing in the receiver all percent escapes with the matching characters as determined by a given encoding. Deprecated: Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding.

func (*NSString) StringByResolvingSymlinksInPath

func (o *NSString) StringByResolvingSymlinksInPath() *NSString

func (*NSString) StringByStandardizingPath

func (o *NSString) StringByStandardizingPath() *NSString

func (*NSString) StringByTrimmingCharactersInSet

func (o *NSString) StringByTrimmingCharactersInSet(set *NSCharacterSet) *NSString

Returns a new string made by removing from both ends of the receiver characters contained in a given character set.

func (*NSString) StringsByAppendingPaths

func (o *NSString) StringsByAppendingPaths(paths *NSArray[*NSString]) *NSArray[*NSString]

Returns an array of strings made by separately appending to the receiver each string in a given array.

func (*NSString) SubstringFromIndex

func (o *NSString) SubstringFromIndex(from uint) *NSString

Returns a new string containing the characters of the receiver from the one at a given index to the end.

func (*NSString) SubstringToIndex

func (o *NSString) SubstringToIndex(to uint) *NSString

Returns a new string containing the characters of the receiver up to, but not including, the one at a given index.

func (*NSString) SubstringWithRange

func (o *NSString) SubstringWithRange(range_ NSRange) *NSString

Returns a string object containing the characters of the receiver that lie within a given range.

func (*NSString) UTF8String

func (o *NSString) UTF8String() unsafe.Pointer

func (*NSString) UppercaseString

func (o *NSString) UppercaseString() *NSString

func (*NSString) UppercaseStringWithLocale

func (o *NSString) UppercaseStringWithLocale(locale *NSLocale) *NSString

Returns a version of the string with all letters converted to uppercase, taking into account the specified locale.

func (*NSString) VariantFittingPresentationWidth

func (o *NSString) VariantFittingPresentationWidth(width int) *NSString

Returns a string variation suitable for the specified presentation width.

func (*NSString) WriteToFileAtomically

func (o *NSString) WriteToFileAtomically(path *NSString, useAuxiliaryFile bool) bool

Writes the contents of the receiver to the file specified by a given path. Deprecated: Use -writeToFile:atomically:encoding:error: instead

func (*NSString) WriteToFileAtomicallyEncodingError

func (o *NSString) WriteToFileAtomicallyEncodingError(path *NSString, useAuxiliaryFile bool, enc uint) (bool, error)

Writes the contents of the receiver to a file at a given path using a given encoding.

func (*NSString) WriteToURLAtomically

func (o *NSString) WriteToURLAtomically(url *NSURL, atomically bool) bool

Writes the contents of the receiver to the location specified by a given URL. Deprecated: Use -writeToURL:atomically:encoding:error: instead

func (*NSString) WriteToURLAtomicallyEncodingError

func (o *NSString) WriteToURLAtomicallyEncodingError(url *NSURL, useAuxiliaryFile bool, enc uint) (bool, error)

Writes the contents of the receiver to the URL specified by url using the specified encoding.

type NSStringCompareOptions

type NSStringCompareOptions uint64

These values represent the options available to many of the string classes’ search and comparison methods.

const (
	NSCaseInsensitiveSearch      NSStringCompareOptions = 1
	NSLiteralSearch              NSStringCompareOptions = 2
	NSBackwardsSearch            NSStringCompareOptions = 4
	NSAnchoredSearch             NSStringCompareOptions = 8
	NSNumericSearch              NSStringCompareOptions = 64
	NSDiacriticInsensitiveSearch NSStringCompareOptions = 128
	NSWidthInsensitiveSearch     NSStringCompareOptions = 256
	NSForcedOrderingSearch       NSStringCompareOptions = 512
	NSRegularExpressionSearch    NSStringCompareOptions = 1024
)

func (NSStringCompareOptions) String

func (e NSStringCompareOptions) String() string

type NSStringEncodingConversionOptions

type NSStringEncodingConversionOptions uint64

Options for converting string encodings.

const (
	NSStringEncodingConversionAllowLossy             NSStringEncodingConversionOptions = 1
	NSStringEncodingConversionExternalRepresentation NSStringEncodingConversionOptions = 2
)

func (NSStringEncodingConversionOptions) String

type NSStringEnumerationOptions

type NSStringEnumerationOptions uint64

Constants to specify kinds of substrings and styles of enumeration.

const (
	NSStringEnumerationByLines                      NSStringEnumerationOptions = 0
	NSStringEnumerationByParagraphs                 NSStringEnumerationOptions = 1
	NSStringEnumerationByComposedCharacterSequences NSStringEnumerationOptions = 2
	NSStringEnumerationByWords                      NSStringEnumerationOptions = 3
	NSStringEnumerationBySentences                  NSStringEnumerationOptions = 4
	NSStringEnumerationByCaretPositions             NSStringEnumerationOptions = 5
	NSStringEnumerationByDeletionClusters           NSStringEnumerationOptions = 6
	NSStringEnumerationReverse                      NSStringEnumerationOptions = 256
	NSStringEnumerationSubstringNotRequired         NSStringEnumerationOptions = 512
	NSStringEnumerationLocalized                    NSStringEnumerationOptions = 1024
)

func (NSStringEnumerationOptions) String

type NSSwappedDouble

type NSSwappedDouble struct {
	V uint64
}

Opaque structure containing endian-independent double value.

func NSConvertHostDoubleToSwapped

func NSConvertHostDoubleToSwapped(x float64) NSSwappedDouble

func NSSwapDouble

func NSSwapDouble(x NSSwappedDouble) NSSwappedDouble

func NSSwapHostDoubleToBig

func NSSwapHostDoubleToBig(x float64) NSSwappedDouble

func NSSwapHostDoubleToLittle

func NSSwapHostDoubleToLittle(x float64) NSSwappedDouble

type NSSwappedFloat

type NSSwappedFloat struct {
	V uint
}

Opaque type containing an endian-independent float value.

func NSConvertHostFloatToSwapped

func NSConvertHostFloatToSwapped(x float32) NSSwappedFloat

func NSSwapFloat

func NSSwapFloat(x NSSwappedFloat) NSSwappedFloat

func NSSwapHostFloatToBig

func NSSwapHostFloatToBig(x float32) NSSwappedFloat

func NSSwapHostFloatToLittle

func NSSwapHostFloatToLittle(x float32) NSSwappedFloat

type NSTask

type NSTask struct {
	NSObject
}

An object that represents a subprocess of the current process.

Apple documentation: https://developer.apple.com/documentation/foundation/nstask

func NSTaskFromID

func NSTaskFromID(id objc.ID) *NSTask

func NSTaskLaunchedTaskWithExecutableURLArgumentsErrorTerminationHandler

func NSTaskLaunchedTaskWithExecutableURLArgumentsErrorTerminationHandler(url *NSURL, arguments *NSArray[*NSString], error_ unsafe.Pointer, terminationHandler func(*NSTask)) *NSTask

func NSTaskLaunchedTaskWithLaunchPathArguments deprecated

func NSTaskLaunchedTaskWithLaunchPathArguments(path *NSString, arguments *NSArray[*NSString]) *NSTask

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSTask) Arguments

func (o *NSTask) Arguments() *NSArray[*NSString]

func (*NSTask) CurrentDirectoryPath deprecated

func (o *NSTask) CurrentDirectoryPath() unsafe.Pointer

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSTask) CurrentDirectoryURL

func (o *NSTask) CurrentDirectoryURL() *NSURL

func (*NSTask) Environment

func (o *NSTask) Environment() *NSDictionary[*NSString, *NSString]

func (*NSTask) ExecutableURL

func (o *NSTask) ExecutableURL() *NSURL

func (*NSTask) Init

func (o *NSTask) Init() *NSTask

func (*NSTask) Interrupt

func (o *NSTask) Interrupt()

func (*NSTask) IsRunning

func (o *NSTask) IsRunning() bool

func (*NSTask) Launch deprecated

func (o *NSTask) Launch()

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSTask) LaunchAndReturnError

func (o *NSTask) LaunchAndReturnError() (bool, error)

func (*NSTask) LaunchPath deprecated

func (o *NSTask) LaunchPath() unsafe.Pointer

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSTask) LaunchRequirementData

func (o *NSTask) LaunchRequirementData() *NSData

func (*NSTask) ProcessIdentifier

func (o *NSTask) ProcessIdentifier() int

func (*NSTask) QualityOfService

func (o *NSTask) QualityOfService() NSQualityOfService

func (*NSTask) Resume

func (o *NSTask) Resume() bool

func (*NSTask) SetArguments

func (o *NSTask) SetArguments(arguments *NSArray[*NSString])

func (*NSTask) SetCurrentDirectoryPath deprecated

func (o *NSTask) SetCurrentDirectoryPath(currentDirectoryPath unsafe.Pointer)

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSTask) SetCurrentDirectoryURL

func (o *NSTask) SetCurrentDirectoryURL(currentDirectoryURL *NSURL)

func (*NSTask) SetEnvironment

func (o *NSTask) SetEnvironment(environment *NSDictionary[*NSString, *NSString])

func (*NSTask) SetExecutableURL

func (o *NSTask) SetExecutableURL(executableURL *NSURL)

func (*NSTask) SetLaunchPath deprecated

func (o *NSTask) SetLaunchPath(launchPath unsafe.Pointer)

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSTask) SetLaunchRequirementData

func (o *NSTask) SetLaunchRequirementData(launchRequirementData *NSData)

func (*NSTask) SetQualityOfService

func (o *NSTask) SetQualityOfService(qualityOfService NSQualityOfService)

func (*NSTask) SetStandardError

func (o *NSTask) SetStandardError(standardError objc.ID)

func (*NSTask) SetStandardInput

func (o *NSTask) SetStandardInput(standardInput objc.ID)

func (*NSTask) SetStandardOutput

func (o *NSTask) SetStandardOutput(standardOutput objc.ID)

func (*NSTask) SetTerminationHandler

func (o *NSTask) SetTerminationHandler(terminationHandler func(*NSTask))

func (*NSTask) StandardError

func (o *NSTask) StandardError() objc.ID

func (*NSTask) StandardInput

func (o *NSTask) StandardInput() objc.ID

func (*NSTask) StandardOutput

func (o *NSTask) StandardOutput() objc.ID

func (*NSTask) Suspend

func (o *NSTask) Suspend() bool

func (*NSTask) Terminate

func (o *NSTask) Terminate()

func (*NSTask) TerminationHandler

func (o *NSTask) TerminationHandler() objc.Block

func (*NSTask) TerminationReason

func (o *NSTask) TerminationReason() NSTaskTerminationReason

func (*NSTask) TerminationStatus

func (o *NSTask) TerminationStatus() int

func (*NSTask) WaitUntilExit

func (o *NSTask) WaitUntilExit()

type NSTaskTerminationReason

type NSTaskTerminationReason int64

Constants that specify the termination reason values that the system returns.

const (
	NSTaskTerminationReasonExit           NSTaskTerminationReason = 1
	NSTaskTerminationReasonUncaughtSignal NSTaskTerminationReason = 2
)

func (NSTaskTerminationReason) String

func (e NSTaskTerminationReason) String() string

type NSTermOfAddress

type NSTermOfAddress struct {
	NSObject
}

The type for representing grammatical gender in localized text.

Apple documentation: https://developer.apple.com/documentation/foundation/nstermofaddress

func NSTermOfAddressCurrentUser

func NSTermOfAddressCurrentUser() *NSTermOfAddress

The term of address that should be used for addressing the user

func NSTermOfAddressFeminine

func NSTermOfAddressFeminine() *NSTermOfAddress

Term of address that uses feminine pronouns (e.g. she/her/hers in English), and a feminine grammatical gender when inflecting verbs and adjectives referring to the person

func NSTermOfAddressFromID

func NSTermOfAddressFromID(id objc.ID) *NSTermOfAddress

func NSTermOfAddressLocalizedForLanguageIdentifierWithPronouns

func NSTermOfAddressLocalizedForLanguageIdentifierWithPronouns(language *NSString, pronouns *NSArray[*NSMorphologyPronoun]) *NSTermOfAddress

A term of address restricted to a given language

func NSTermOfAddressMasculine

func NSTermOfAddressMasculine() *NSTermOfAddress

Term of address that uses masculine pronouns (e.g. he/him/his in English), and a masculine grammatical gender when inflecting verbs and adjectives referring to the person

func NSTermOfAddressNeutral

func NSTermOfAddressNeutral() *NSTermOfAddress

Term of address that uses gender-neutral pronouns (e.g. they/them/theirs in English), and an epicene grammatical gender when inflecting verbs and adjectives referring to the person

func (*NSTermOfAddress) LanguageIdentifier

func (o *NSTermOfAddress) LanguageIdentifier() *NSString

The ISO language code if this is a localized term of address

func (*NSTermOfAddress) Pronouns

func (o *NSTermOfAddress) Pronouns() *NSArray[*NSMorphologyPronoun]

A list of pronouns for a localized term of address

type NSTestComparisonOperation

type NSTestComparisonOperation uint64

These are passed to initWithObjectSpecifier:comparisonOperator:testObject: to specify the comparison operator.

const (
	NSEqualToComparison              NSTestComparisonOperation = 0
	NSLessThanOrEqualToComparison    NSTestComparisonOperation = 1
	NSLessThanComparison             NSTestComparisonOperation = 2
	NSGreaterThanOrEqualToComparison NSTestComparisonOperation = 3
	NSGreaterThanComparison          NSTestComparisonOperation = 4
	NSBeginsWithComparison           NSTestComparisonOperation = 5
	NSEndsWithComparison             NSTestComparisonOperation = 6
	NSContainsComparison             NSTestComparisonOperation = 7
)

func (NSTestComparisonOperation) String

func (e NSTestComparisonOperation) String() string

type NSTextCheckingResult

type NSTextCheckingResult struct {
	NSObject
}

An occurrence of textual content found during the analysis of a block of text, such as when matching a regular expression.

Apple documentation: https://developer.apple.com/documentation/foundation/nstextcheckingresult

func NSTextCheckingResultAddressCheckingResultWithRangeComponents

func NSTextCheckingResultAddressCheckingResultWithRangeComponents(range_ NSRange, components *NSDictionary[*NSString, *NSString]) *NSTextCheckingResult

Creates and returns a text checking result with the specified address components.

func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementString

func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult

Creates and returns a text checking result after detecting a possible correction.

func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementStringAlternativeStrings

func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementStringAlternativeStrings(range_ NSRange, replacementString *NSString, alternativeStrings *NSArray[*NSString]) *NSTextCheckingResult

func NSTextCheckingResultDashCheckingResultWithRangeReplacementString

func NSTextCheckingResultDashCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult

Creates and returns a text checking result with the specified dash corrected replacement string.

func NSTextCheckingResultDateCheckingResultWithRangeDate

func NSTextCheckingResultDateCheckingResultWithRangeDate(range_ NSRange, date *NSDate) *NSTextCheckingResult

Creates and returns a text checking result with the specified date.

func NSTextCheckingResultDateCheckingResultWithRangeDateTimeZoneDuration

func NSTextCheckingResultDateCheckingResultWithRangeDateTimeZoneDuration(range_ NSRange, date *NSDate, timeZone *NSTimeZone, duration float64) *NSTextCheckingResult

Creates and returns a text checking result with the specified date, time zone, and duration.

func NSTextCheckingResultFromID

func NSTextCheckingResultFromID(id objc.ID) *NSTextCheckingResult

func NSTextCheckingResultGrammarCheckingResultWithRangeDetails

func NSTextCheckingResultGrammarCheckingResultWithRangeDetails(range_ NSRange, details *NSArray[objc.ID]) *NSTextCheckingResult

Creates and returns a text checking result with the specified array of grammatical errors.

func NSTextCheckingResultLinkCheckingResultWithRangeURL

func NSTextCheckingResultLinkCheckingResultWithRangeURL(range_ NSRange, url *NSURL) *NSTextCheckingResult

Creates and returns a text checking result with the specified URL.

func NSTextCheckingResultOrthographyCheckingResultWithRangeOrthography

func NSTextCheckingResultOrthographyCheckingResultWithRangeOrthography(range_ NSRange, orthography *NSOrthography) *NSTextCheckingResult

Creates and returns a text checking result with the specified orthography.

func NSTextCheckingResultPhoneNumberCheckingResultWithRangePhoneNumber

func NSTextCheckingResultPhoneNumberCheckingResultWithRangePhoneNumber(range_ NSRange, phoneNumber *NSString) *NSTextCheckingResult

Creates and returns a text checking result with the specified phone number.

func NSTextCheckingResultQuoteCheckingResultWithRangeReplacementString

func NSTextCheckingResultQuoteCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult

Creates and returns a text checking result with the specified quote-balanced replacement string.

func NSTextCheckingResultRegularExpressionCheckingResultWithRangesCountRegularExpression

func NSTextCheckingResultRegularExpressionCheckingResultWithRangesCountRegularExpression(ranges *NSRange, count uint, regularExpression *NSRegularExpression) *NSTextCheckingResult

Creates and returns a type checking result with the specified regular expression data.

func NSTextCheckingResultReplacementCheckingResultWithRangeReplacementString

func NSTextCheckingResultReplacementCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult

Creates and returns a text checking result with the specified replacement string.

func NSTextCheckingResultSpellCheckingResultWithRange

func NSTextCheckingResultSpellCheckingResultWithRange(range_ NSRange) *NSTextCheckingResult

Creates and returns a text checking result with the range of a misspelled word.

func NSTextCheckingResultTransitInformationCheckingResultWithRangeComponents

func NSTextCheckingResultTransitInformationCheckingResultWithRangeComponents(range_ NSRange, components *NSDictionary[*NSString, *NSString]) *NSTextCheckingResult

Creates and returns a text checking result with the specified transit information.

func (*NSTextCheckingResult) AddressComponents

func (o *NSTextCheckingResult) AddressComponents() *NSDictionary[*NSString, *NSString]

func (*NSTextCheckingResult) AlternativeStrings

func (o *NSTextCheckingResult) AlternativeStrings() *NSArray[*NSString]

func (*NSTextCheckingResult) Components

func (o *NSTextCheckingResult) Components() *NSDictionary[*NSString, *NSString]

func (*NSTextCheckingResult) Date

func (o *NSTextCheckingResult) Date() *NSDate

func (*NSTextCheckingResult) Duration

func (o *NSTextCheckingResult) Duration() float64

func (*NSTextCheckingResult) GrammarDetails

func (o *NSTextCheckingResult) GrammarDetails() *NSArray[objc.ID]

func (*NSTextCheckingResult) NumberOfRanges

func (o *NSTextCheckingResult) NumberOfRanges() uint

func (*NSTextCheckingResult) Orthography

func (o *NSTextCheckingResult) Orthography() *NSOrthography

func (*NSTextCheckingResult) PhoneNumber

func (o *NSTextCheckingResult) PhoneNumber() *NSString

func (*NSTextCheckingResult) Range

func (o *NSTextCheckingResult) Range() NSRange

func (*NSTextCheckingResult) RangeAtIndex

func (o *NSTextCheckingResult) RangeAtIndex(idx uint) NSRange

Returns the result type that the range represents.

func (*NSTextCheckingResult) RangeWithName

func (o *NSTextCheckingResult) RangeWithName(name *NSString) NSRange

func (*NSTextCheckingResult) RegularExpression

func (o *NSTextCheckingResult) RegularExpression() *NSRegularExpression

func (*NSTextCheckingResult) ReplacementString

func (o *NSTextCheckingResult) ReplacementString() *NSString

func (*NSTextCheckingResult) ResultByAdjustingRangesWithOffset

func (o *NSTextCheckingResult) ResultByAdjustingRangesWithOffset(offset int) *NSTextCheckingResult

Returns a new text checking result after adjusting the ranges as specified by the offset.

func (*NSTextCheckingResult) ResultType

func (o *NSTextCheckingResult) ResultType() NSTextCheckingType

func (*NSTextCheckingResult) TimeZone

func (o *NSTextCheckingResult) TimeZone() *NSTimeZone

func (*NSTextCheckingResult) URL

func (o *NSTextCheckingResult) URL() *NSURL

type NSTextCheckingType

type NSTextCheckingType int64
const (
	NSTextCheckingTypeOrthography        NSTextCheckingType = 1
	NSTextCheckingTypeSpelling           NSTextCheckingType = 2
	NSTextCheckingTypeGrammar            NSTextCheckingType = 4
	NSTextCheckingTypeDate               NSTextCheckingType = 8
	NSTextCheckingTypeAddress            NSTextCheckingType = 16
	NSTextCheckingTypeLink               NSTextCheckingType = 32
	NSTextCheckingTypeQuote              NSTextCheckingType = 64
	NSTextCheckingTypeDash               NSTextCheckingType = 128
	NSTextCheckingTypeReplacement        NSTextCheckingType = 256
	NSTextCheckingTypeCorrection         NSTextCheckingType = 512
	NSTextCheckingTypeRegularExpression  NSTextCheckingType = 1024
	NSTextCheckingTypePhoneNumber        NSTextCheckingType = 2048
	NSTextCheckingTypeTransitInformation NSTextCheckingType = 4096
)

func (NSTextCheckingType) String

func (e NSTextCheckingType) String() string

type NSThread

type NSThread struct {
	NSObject
}

A thread of execution.

Apple documentation: https://developer.apple.com/documentation/foundation/nsthread

func NSThreadCurrentThread

func NSThreadCurrentThread() *NSThread

func NSThreadFromID

func NSThreadFromID(id objc.ID) *NSThread

func NSThreadMainThread

func NSThreadMainThread() *NSThread

func (*NSThread) Cancel

func (o *NSThread) Cancel()

func (*NSThread) Init

func (o *NSThread) Init() *NSThread

func (*NSThread) InitWith

func (o *NSThread) InitWith(block func()) *NSThread

func (*NSThread) InitWithTargetSelectorObject

func (o *NSThread) InitWithTargetSelectorObject(target objc.ID, selector objc.SEL, argument objc.ID) *NSThread

func (*NSThread) IsCancelled

func (o *NSThread) IsCancelled() bool

func (*NSThread) IsExecuting

func (o *NSThread) IsExecuting() bool

func (*NSThread) IsFinished

func (o *NSThread) IsFinished() bool

func (*NSThread) IsMainThread

func (o *NSThread) IsMainThread() bool

func (*NSThread) Main

func (o *NSThread) Main()

func (*NSThread) Name

func (o *NSThread) Name() *NSString

func (*NSThread) QualityOfService

func (o *NSThread) QualityOfService() NSQualityOfService

func (*NSThread) SetName

func (o *NSThread) SetName(name *NSString)

func (*NSThread) SetQualityOfService

func (o *NSThread) SetQualityOfService(qualityOfService NSQualityOfService)

func (*NSThread) SetStackSize

func (o *NSThread) SetStackSize(stackSize uint)

func (*NSThread) SetThreadPriority

func (o *NSThread) SetThreadPriority(threadPriority float64)

func (*NSThread) StackSize

func (o *NSThread) StackSize() uint

func (*NSThread) Start

func (o *NSThread) Start()

func (*NSThread) ThreadDictionary

func (o *NSThread) ThreadDictionary() *NSMutableDictionary[objc.ID, objc.ID]

func (*NSThread) ThreadPriority

func (o *NSThread) ThreadPriority() float64

type NSTimeZone

type NSTimeZone struct {
	NSObject
}

Information about standard time conventions associated with a specific geopolitical region.

Apple documentation: https://developer.apple.com/documentation/foundation/nstimezone

func NSTimeZoneDefaultTimeZone

func NSTimeZoneDefaultTimeZone() *NSTimeZone

func NSTimeZoneFromID

func NSTimeZoneFromID(id objc.ID) *NSTimeZone

func NSTimeZoneLocalTimeZone

func NSTimeZoneLocalTimeZone() *NSTimeZone

func NSTimeZoneSystemTimeZone

func NSTimeZoneSystemTimeZone() *NSTimeZone

func NSTimeZoneTimeZoneForSecondsFromGMT

func NSTimeZoneTimeZoneForSecondsFromGMT(seconds int) *NSTimeZone

Returns a time zone object offset from Greenwich Mean Time by a given number of seconds.

func NSTimeZoneTimeZoneWithAbbreviation

func NSTimeZoneTimeZoneWithAbbreviation(abbreviation *NSString) *NSTimeZone

Returns the time zone object identified by a given abbreviation.

func NSTimeZoneTimeZoneWithName

func NSTimeZoneTimeZoneWithName(tzName *NSString) *NSTimeZone

Returns the time zone object identified by a given identifier.

func NSTimeZoneTimeZoneWithNameData

func NSTimeZoneTimeZoneWithNameData(tzName *NSString, aData *NSData) *NSTimeZone

Returns the time zone with a given identifier whose data has been initialized using given data.

func (*NSTimeZone) Abbreviation

func (o *NSTimeZone) Abbreviation() *NSString

func (*NSTimeZone) AbbreviationForDate

func (o *NSTimeZone) AbbreviationForDate(aDate *NSDate) *NSString

Returns the abbreviation for the receiver at a given date.

func (*NSTimeZone) Data

func (o *NSTimeZone) Data() *NSData

func (*NSTimeZone) DaylightSavingTimeOffset

func (o *NSTimeZone) DaylightSavingTimeOffset() float64

func (*NSTimeZone) DaylightSavingTimeOffsetForDate

func (o *NSTimeZone) DaylightSavingTimeOffsetForDate(aDate *NSDate) float64

Returns the daylight saving time offset for a given date.

func (*NSTimeZone) InitWithName

func (o *NSTimeZone) InitWithName(tzName *NSString) *NSTimeZone

Returns a time zone initialized with a given identifier.

func (*NSTimeZone) InitWithNameData

func (o *NSTimeZone) InitWithNameData(tzName *NSString, aData *NSData) *NSTimeZone

Initializes a time zone with a given identifier and time zone data.

func (*NSTimeZone) IsDaylightSavingTime

func (o *NSTimeZone) IsDaylightSavingTime() bool

func (*NSTimeZone) IsDaylightSavingTimeForDate

func (o *NSTimeZone) IsDaylightSavingTimeForDate(aDate *NSDate) bool

Indicates whether the receiver uses daylight saving time on a given date.

func (*NSTimeZone) IsEqualToTimeZone

func (o *NSTimeZone) IsEqualToTimeZone(aTimeZone *NSTimeZone) bool

Indicates whether the receiver has the same name and data as the specified time zone.

func (*NSTimeZone) LocalizedNameLocale

func (o *NSTimeZone) LocalizedNameLocale(style NSTimeZoneNameStyle, locale *NSLocale) *NSString

Returns the localized name of the time zone.

func (*NSTimeZone) Name

func (o *NSTimeZone) Name() *NSString

func (*NSTimeZone) NextDaylightSavingTimeTransition

func (o *NSTimeZone) NextDaylightSavingTimeTransition() *NSDate

func (*NSTimeZone) NextDaylightSavingTimeTransitionAfterDate

func (o *NSTimeZone) NextDaylightSavingTimeTransitionAfterDate(aDate *NSDate) *NSDate

Returns the next daylight saving time transition after a given date.

func (*NSTimeZone) SecondsFromGMT

func (o *NSTimeZone) SecondsFromGMT() int

func (*NSTimeZone) SecondsFromGMTForDate

func (o *NSTimeZone) SecondsFromGMTForDate(aDate *NSDate) int

Returns the difference in seconds between the receiver and Greenwich Mean Time at a given date.

type NSTimeZoneNameStyle

type NSTimeZoneNameStyle int64

Constants you use to specify a style when presenting time zone names.

const (
	NSTimeZoneNameStyleStandard            NSTimeZoneNameStyle = 0
	NSTimeZoneNameStyleShortStandard       NSTimeZoneNameStyle = 1
	NSTimeZoneNameStyleDaylightSaving      NSTimeZoneNameStyle = 2
	NSTimeZoneNameStyleShortDaylightSaving NSTimeZoneNameStyle = 3
	NSTimeZoneNameStyleGeneric             NSTimeZoneNameStyle = 4
	NSTimeZoneNameStyleShortGeneric        NSTimeZoneNameStyle = 5
)

func (NSTimeZoneNameStyle) String

func (e NSTimeZoneNameStyle) String() string

type NSTimer

type NSTimer struct {
	NSObject
}

A timer that fires after a certain time interval has elapsed, sending a specified message to a target object.

Apple documentation: https://developer.apple.com/documentation/foundation/nstimer

func NSTimerFromID

func NSTimerFromID(id objc.ID) *NSTimer

func NSTimerScheduledTimerWithTimeIntervalInvocationRepeats

func NSTimerScheduledTimerWithTimeIntervalInvocationRepeats(ti float64, invocation *NSInvocation, yesOrNo bool) *NSTimer

func NSTimerScheduledTimerWithTimeIntervalRepeatsBlock

func NSTimerScheduledTimerWithTimeIntervalRepeatsBlock(interval float64, repeats bool, block func(*NSTimer)) *NSTimer

Creates and returns a new NSTimer object initialized with the specified block object and schedules it on the current run loop in the default mode. - parameter: ti The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead - parameter: repeats If YES, the timer will repeatedly reschedule itself until invalidated. If NO, the timer will be invalidated after it fires. - parameter: block The execution body of the timer; the timer itself is passed as the parameter to this block when executed to aid in avoiding cyclical references

func NSTimerScheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats

func NSTimerScheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats(ti float64, aTarget objc.ID, aSelector objc.SEL, userInfo objc.ID, yesOrNo bool) *NSTimer

func NSTimerTimerWithTimeIntervalInvocationRepeats

func NSTimerTimerWithTimeIntervalInvocationRepeats(ti float64, invocation *NSInvocation, yesOrNo bool) *NSTimer

func NSTimerTimerWithTimeIntervalRepeatsBlock

func NSTimerTimerWithTimeIntervalRepeatsBlock(interval float64, repeats bool, block func(*NSTimer)) *NSTimer

Creates and returns a new NSTimer object initialized with the specified block object. This timer needs to be scheduled on a run loop (via -[NSRunLoop addTimer:]) before it will fire. - parameter: timeInterval The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead - parameter: repeats If YES, the timer will repeatedly reschedule itself until invalidated. If NO, the timer will be invalidated after it fires. - parameter: block The execution body of the timer; the timer itself is passed as the parameter to this block when executed to aid in avoiding cyclical references

func NSTimerTimerWithTimeIntervalTargetSelectorUserInfoRepeats

func NSTimerTimerWithTimeIntervalTargetSelectorUserInfoRepeats(ti float64, aTarget objc.ID, aSelector objc.SEL, userInfo objc.ID, yesOrNo bool) *NSTimer

func (*NSTimer) Fire

func (o *NSTimer) Fire()

func (*NSTimer) FireDate

func (o *NSTimer) FireDate() *NSDate

func (*NSTimer) InitWithFireDateIntervalRepeatsBlock

func (o *NSTimer) InitWithFireDateIntervalRepeatsBlock(date *NSDate, interval float64, repeats bool, block func(*NSTimer)) *NSTimer

Initializes a new NSTimer object using the block as the main body of execution for the timer. This timer needs to be scheduled on a run loop (via -[NSRunLoop addTimer:]) before it will fire. - parameter: fireDate The time at which the timer should first fire. - parameter: interval The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead - parameter: repeats If YES, the timer will repeatedly reschedule itself until invalidated. If NO, the timer will be invalidated after it fires. - parameter: block The execution body of the timer; the timer itself is passed as the parameter to this block when executed to aid in avoiding cyclical references

func (*NSTimer) InitWithFireDateIntervalTargetSelectorUserInfoRepeats

func (o *NSTimer) InitWithFireDateIntervalTargetSelectorUserInfoRepeats(date *NSDate, ti float64, t objc.ID, s objc.SEL, ui objc.ID, rep bool) *NSTimer

func (*NSTimer) Invalidate

func (o *NSTimer) Invalidate()

func (*NSTimer) IsValid

func (o *NSTimer) IsValid() bool

func (*NSTimer) SetFireDate

func (o *NSTimer) SetFireDate(fireDate *NSDate)

func (*NSTimer) SetTolerance

func (o *NSTimer) SetTolerance(tolerance float64)

func (*NSTimer) TimeInterval

func (o *NSTimer) TimeInterval() float64

func (*NSTimer) Tolerance

func (o *NSTimer) Tolerance() float64

func (*NSTimer) UserInfo

func (o *NSTimer) UserInfo() objc.ID

type NSURL

type NSURL struct {
	NSObject
}

An object that represents the location of a resource, such as an item on a remote server or the path to a local file.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurl

func NSBundleURLForResourceWithExtensionSubdirectoryInBundleWithURL

func NSBundleURLForResourceWithExtensionSubdirectoryInBundleWithURL(name *NSString, ext *NSString, subpath *NSString, bundleURL *NSURL) *NSURL

func NSFileVersionTemporaryDirectoryURLForNewVersionOfItemAtURL

func NSFileVersionTemporaryDirectoryURLForNewVersionOfItemAtURL(url *NSURL) *NSURL

Creates and returns a temporary directory to use for saving the contents of the file.

func NSURLAbsoluteURLWithDataRepresentationRelativeToURL

func NSURLAbsoluteURLWithDataRepresentationRelativeToURL(data *NSData, baseURL *NSURL) *NSURL

Initializes and returns a newly created absolute NSURL using the contents of the given data, relative to a base URL.

func NSURLFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL

func NSURLFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path string, isDir bool, baseURL *NSURL) *NSURL

Returns a new URL object initialized with a C string representing a local file system path.

func NSURLFileURLWithPath

func NSURLFileURLWithPath(path *NSString) *NSURL

Initializes and returns a newly created NSURL object as a file URL with a specified path.

func NSURLFileURLWithPathComponents

func NSURLFileURLWithPathComponents(components *NSArray[*NSString]) *NSURL

Initializes and returns a newly created NSURL object as a file URL with specified path components.

func NSURLFileURLWithPathIsDirectory

func NSURLFileURLWithPathIsDirectory(path *NSString, isDir bool) *NSURL

Initializes and returns a newly created NSURL object as a file URL with a specified path.

func NSURLFileURLWithPathIsDirectoryRelativeToURL

func NSURLFileURLWithPathIsDirectoryRelativeToURL(path *NSString, isDir bool, baseURL *NSURL) *NSURL

Initializes and returns a newly created file NSURL referencing the local file or directory at path, relative to a base URL.

func NSURLFileURLWithPathRelativeToURL

func NSURLFileURLWithPathRelativeToURL(path *NSString, baseURL *NSURL) *NSURL

Initializes and returns a newly created file NSURL referencing the local file or directory at path, relative to a base URL.

func NSURLFromID

func NSURLFromID(id objc.ID) *NSURL

func NSURLURLByResolvingAliasFileAtURLOptionsError

func NSURLURLByResolvingAliasFileAtURLOptionsError(url *NSURL, options NSURLBookmarkResolutionOptions) (*NSURL, error)

Returns a new URL made by resolving the alias file at url.

func NSURLURLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError

func NSURLURLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData *NSData, options NSURLBookmarkResolutionOptions, relativeURL *NSURL, isStale *bool) (*NSURL, error)

Returns a new URL made by resolving bookmark data.

func NSURLURLWithDataRepresentationRelativeToURL

func NSURLURLWithDataRepresentationRelativeToURL(data *NSData, baseURL *NSURL) *NSURL

Initializes and returns a newly created NSURL using the contents of the given data, relative to a base URL.

func NSURLURLWithString

func NSURLURLWithString(uRLString *NSString) *NSURL

Creates and returns an NSURL object initialized with a provided URL string.

func NSURLURLWithStringEncodingInvalidCharacters

func NSURLURLWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURL

Creates and returns an instance from the provided string, optionally IDNA- and percent-encoding any invalid characters.

func NSURLURLWithStringRelativeToURL

func NSURLURLWithStringRelativeToURL(uRLString *NSString, baseURL *NSURL) *NSURL

Creates and returns an NSURL object initialized with a base URL and a relative string.

func (*NSURL) AbsoluteString

func (o *NSURL) AbsoluteString() *NSString

func (*NSURL) AbsoluteURL

func (o *NSURL) AbsoluteURL() *NSURL

func (*NSURL) BaseURL

func (o *NSURL) BaseURL() *NSURL

func (*NSURL) BookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError

func (o *NSURL) BookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError(options NSURLBookmarkCreationOptions, keys *NSArray[*NSString], relativeURL *NSURL) (*NSData, error)

Returns a bookmark for the URL, created with specified options and resource values.

func (*NSURL) CheckPromisedItemIsReachableAndReturnError

func (o *NSURL) CheckPromisedItemIsReachableAndReturnError() (bool, error)

Returns whether the promised item can be reached.

func (*NSURL) CheckResourceIsReachableAndReturnError

func (o *NSURL) CheckResourceIsReachableAndReturnError() (bool, error)

Returns whether the resource pointed to by a file URL can be reached.

func (*NSURL) DataRepresentation

func (o *NSURL) DataRepresentation() *NSData

func (*NSURL) FilePathURL

func (o *NSURL) FilePathURL() *NSURL

func (*NSURL) FileReferenceURL

func (o *NSURL) FileReferenceURL() *NSURL

Returns a new file reference URL that points to the same resource as the receiver.

func (*NSURL) FileSystemRepresentation

func (o *NSURL) FileSystemRepresentation() unsafe.Pointer

func (*NSURL) Fragment

func (o *NSURL) Fragment() *NSString

func (*NSURL) GetFileSystemRepresentationMaxLength

func (o *NSURL) GetFileSystemRepresentationMaxLength(buffer string, maxBufferLength uint) bool

Fills the provided buffer with a C string representing a local file system path.

func (*NSURL) GetPromisedItemResourceValueForKeyError

func (o *NSURL) GetPromisedItemResourceValueForKeyError(value **ObjcObject, key *NSString) (bool, error)

Returns the value of the resource property for the specified key.

func (*NSURL) GetResourceValueForKeyError

func (o *NSURL) GetResourceValueForKeyError(value **ObjcObject, key *NSString) (bool, error)

Returns the value of the resource property for the specified key.

func (*NSURL) HasDirectoryPath

func (o *NSURL) HasDirectoryPath() bool

func (*NSURL) Host

func (o *NSURL) Host() *NSString

func (*NSURL) InitAbsoluteURLWithDataRepresentationRelativeToURL

func (o *NSURL) InitAbsoluteURLWithDataRepresentationRelativeToURL(data *NSData, baseURL *NSURL) *NSURL

Initializes a newly created absolute NSURL using the contents of the given data, relative to a base URL.

func (*NSURL) InitByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError

func (o *NSURL) InitByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData *NSData, options NSURLBookmarkResolutionOptions, relativeURL *NSURL, isStale *bool) (*NSURL, error)

Initializes a newly created NSURL that points to a location specified by resolving bookmark data.

func (*NSURL) InitFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL

func (o *NSURL) InitFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path string, isDir bool, baseURL *NSURL) *NSURL

Initializes a URL object with a C string representing a local file system path.

func (*NSURL) InitFileURLWithPath

func (o *NSURL) InitFileURLWithPath(path *NSString) *NSURL

Initializes a newly created NSURL referencing the local file or directory at path.

func (*NSURL) InitFileURLWithPathIsDirectory

func (o *NSURL) InitFileURLWithPathIsDirectory(path *NSString, isDir bool) *NSURL

Initializes a newly created NSURL referencing the local file or directory at path.

func (*NSURL) InitFileURLWithPathIsDirectoryRelativeToURL

func (o *NSURL) InitFileURLWithPathIsDirectoryRelativeToURL(path *NSString, isDir bool, baseURL *NSURL) *NSURL

Initializes a newly created file NSURL referencing the local file or directory at path, relative to a base URL.

func (*NSURL) InitFileURLWithPathRelativeToURL

func (o *NSURL) InitFileURLWithPathRelativeToURL(path *NSString, baseURL *NSURL) *NSURL

Initializes a newly created file NSURL referencing the local file or directory at path, relative to a base URL.

func (*NSURL) InitWithDataRepresentationRelativeToURL

func (o *NSURL) InitWithDataRepresentationRelativeToURL(data *NSData, baseURL *NSURL) *NSURL

Initializes a newly created NSURL using the contents of the given data, relative to a base URL.

func (*NSURL) InitWithSchemeHostPath

func (o *NSURL) InitWithSchemeHostPath(scheme *NSString, host *NSString, path *NSString) *NSURL

Initializes a newly created NSURL with a specified scheme, host, and path. Deprecated: Use NSURLComponents instead, which lets you create a valid URL with any valid combination of URL components and subcomponents (not just scheme, host and path), and lets you set components and subcomponents with either percent-encoded or un-percent-encoded strings.

func (*NSURL) InitWithString

func (o *NSURL) InitWithString(uRLString *NSString) *NSURL

Initializes an NSURL object with a provided URL string.

func (*NSURL) InitWithStringEncodingInvalidCharacters

func (o *NSURL) InitWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURL

Creates an instance from the provided string, optionally IDNA- and percent-encoding any invalid characters.

func (*NSURL) InitWithStringRelativeToURL

func (o *NSURL) InitWithStringRelativeToURL(uRLString *NSString, baseURL *NSURL) *NSURL

Initializes an NSURL object with a base URL and a relative string.

func (*NSURL) IsFileReferenceURL

func (o *NSURL) IsFileReferenceURL() bool

Returns whether the URL is a file reference URL.

func (*NSURL) IsFileURL

func (o *NSURL) IsFileURL() bool

func (*NSURL) LastPathComponent

func (o *NSURL) LastPathComponent() *NSString

func (*NSURL) LoadResourceDataNotifyingClientUsingCache

func (o *NSURL) LoadResourceDataNotifyingClientUsingCache(client objc.ID, shouldUseCache bool)

Loads the receiver’s resource data in the background. Deprecated: Use NSURLConnection instead

func (*NSURL) ParameterString deprecated

func (o *NSURL) ParameterString() *NSString

Deprecated: The parameterString method is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, parameterString will always return nil, and the path method will return the complete path including the semicolon separator and params component if the URL string contains them.

func (*NSURL) Password

func (o *NSURL) Password() *NSString

func (*NSURL) Path

func (o *NSURL) Path() *NSString

func (*NSURL) PathComponents

func (o *NSURL) PathComponents() *NSArray[*NSString]

func (*NSURL) PathExtension

func (o *NSURL) PathExtension() *NSString

func (*NSURL) Port

func (o *NSURL) Port() *NSNumber

func (*NSURL) PromisedItemResourceValuesForKeysError

func (o *NSURL) PromisedItemResourceValuesForKeysError(keys *NSArray[*NSString]) (*NSDictionary[*NSString, objc.ID], error)

Returns the resource values for the properties identified by specified array of keys.

func (*NSURL) PropertyForKey

func (o *NSURL) PropertyForKey(propertyKey *NSString) objc.ID

Returns the specified property of the receiver’s resource. Deprecated: Use NSURLConnection instead

func (*NSURL) Query deprecated

func (o *NSURL) Query() *NSString

Deprecated: The parameterString method is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, parameterString will always return nil, and the path method will return the complete path including the semicolon separator and params component if the URL string contains them.

func (*NSURL) RelativePath deprecated

func (o *NSURL) RelativePath() *NSString

Deprecated: The parameterString method is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, parameterString will always return nil, and the path method will return the complete path including the semicolon separator and params component if the URL string contains them.

func (*NSURL) RelativeString

func (o *NSURL) RelativeString() *NSString

func (*NSURL) RemoveAllCachedResourceValues

func (o *NSURL) RemoveAllCachedResourceValues()

Removes all cached resource values and temporary resource values from the URL object.

func (*NSURL) RemoveCachedResourceValueForKey

func (o *NSURL) RemoveCachedResourceValueForKey(key *NSString)

Removes the cached resource value identified by a given key from the URL object.

func (*NSURL) ResourceDataUsingCache

func (o *NSURL) ResourceDataUsingCache(shouldUseCache bool) *NSData

Returns the receiver’s resource data, loading it if necessary. Deprecated: Use NSURLConnection instead

func (*NSURL) ResourceSpecifier

func (o *NSURL) ResourceSpecifier() *NSString

func (*NSURL) ResourceValuesForKeysError

func (o *NSURL) ResourceValuesForKeysError(keys *NSArray[*NSString]) (*NSDictionary[*NSString, objc.ID], error)

Returns the resource values for the properties identified by specified array of keys.

func (*NSURL) Scheme

func (o *NSURL) Scheme() *NSString

func (*NSURL) SetPropertyForKey

func (o *NSURL) SetPropertyForKey(property objc.ID, propertyKey *NSString) bool

Changes the specified property of the receiver’s resource. Deprecated: Use NSURLConnection instead

func (*NSURL) SetResourceData

func (o *NSURL) SetResourceData(data *NSData) bool

Attempts to set the resource data for the receiver. Deprecated: Use NSURLConnection instead

func (*NSURL) SetResourceValueForKeyError

func (o *NSURL) SetResourceValueForKeyError(value objc.ID, key *NSString) (bool, error)

Sets the URL’s resource property for a given key to a given value.

func (*NSURL) SetResourceValuesError

func (o *NSURL) SetResourceValuesError(keyedValues *NSDictionary[*NSString, objc.ID]) (bool, error)

Sets the URL’s resource properties for a given set of keys to a given set of values.

func (*NSURL) SetTemporaryResourceValueForKey

func (o *NSURL) SetTemporaryResourceValueForKey(value objc.ID, key *NSString)

Sets a temporary resource value on the URL object.

func (*NSURL) StandardizedURL

func (o *NSURL) StandardizedURL() *NSURL

func (*NSURL) StartAccessingSecurityScopedResource

func (o *NSURL) StartAccessingSecurityScopedResource() bool

In an app that has adopted App Sandbox, makes the resource pointed to by a security-scoped URL available to the app.

func (*NSURL) StopAccessingSecurityScopedResource

func (o *NSURL) StopAccessingSecurityScopedResource()

In an app that adopts App Sandbox, revokes access to the resource pointed to by a security-scoped URL.

func (*NSURL) URLByAppendingPathComponent

func (o *NSURL) URLByAppendingPathComponent(pathComponent *NSString) *NSURL

Returns a new URL by appending a path component to the original URL.

func (*NSURL) URLByAppendingPathComponentIsDirectory

func (o *NSURL) URLByAppendingPathComponentIsDirectory(pathComponent *NSString, isDirectory bool) *NSURL

Returns a new URL by appending a path component to the original URL, along with a trailing slash if the component is a directory.

func (*NSURL) URLByAppendingPathExtension

func (o *NSURL) URLByAppendingPathExtension(pathExtension *NSString) *NSURL

Returns a new URL by appending a path extension to the original URL.

func (*NSURL) URLByDeletingLastPathComponent

func (o *NSURL) URLByDeletingLastPathComponent() *NSURL

func (*NSURL) URLByDeletingPathExtension

func (o *NSURL) URLByDeletingPathExtension() *NSURL

func (*NSURL) URLByResolvingSymlinksInPath

func (o *NSURL) URLByResolvingSymlinksInPath() *NSURL

func (*NSURL) URLByStandardizingPath

func (o *NSURL) URLByStandardizingPath() *NSURL

func (*NSURL) URLHandleUsingCache

func (o *NSURL) URLHandleUsingCache(shouldUseCache bool) *NSURLHandle

Returns a URL handle to service the receiver. Deprecated: Use NSURLConnection instead

func (*NSURL) User

func (o *NSURL) User() *NSString

type NSURLAuthenticationChallenge

type NSURLAuthenticationChallenge struct {
	NSObject
}

A challenge from a server requiring authentication from the client.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallenge

func NSURLAuthenticationChallengeFromID

func NSURLAuthenticationChallengeFromID(id objc.ID) *NSURLAuthenticationChallenge

func (*NSURLAuthenticationChallenge) Error

@abstract Get the error representing authentication failure. @discussion If there was a previous authentication failure, and this protocol uses errors to indicate authentication failure, then this method will return the error. Otherwise it will return nil.

func (*NSURLAuthenticationChallenge) FailureResponse

func (o *NSURLAuthenticationChallenge) FailureResponse() *NSURLResponse

@abstract Get the response representing authentication failure. @result The failure response or nil @discussion If there was a previous authentication failure, and this protocol uses responses to indicate authentication failure, then this method will return the response. Otherwise it will return nil.

func (*NSURLAuthenticationChallenge) InitWithAuthenticationChallengeSender

@method initWithAuthenticationChallenge: @abstract Initialize an authentication challenge copying all parameters from another one. @result A new challenge initialized with the parameters from the passed in challenge @discussion This initializer may be useful to subclassers that want to proxy one type of authentication challenge to look like another type.

func (*NSURLAuthenticationChallenge) InitWithProtectionSpaceProposedCredentialPreviousFailureCountFailureResponseErrorSender

func (o *NSURLAuthenticationChallenge) InitWithProtectionSpaceProposedCredentialPreviousFailureCountFailureResponseErrorSender(space *NSURLProtectionSpace, credential *NSURLCredential, previousFailureCount int, response *NSURLResponse, error_ unsafe.Pointer, sender NSURLAuthenticationChallengeSender) *NSURLAuthenticationChallenge

@method initWithProtectionSpace:proposedCredential:previousFailureCount:failureResponse:error: @abstract Initialize an authentication challenge @param space The NSURLProtectionSpace to use @param credential The proposed NSURLCredential for this challenge, or nil @param previousFailureCount A count of previous failures attempting access. @param response The NSURLResponse for the authentication failure, if applicable, else nil @param error The NSError for the authentication failure, if applicable, else nil @result An authentication challenge initialized with the specified parameters

func (*NSURLAuthenticationChallenge) PreviousFailureCount

func (o *NSURLAuthenticationChallenge) PreviousFailureCount() int

@abstract Get count of previous failed authentication attempts @result The count of previous failures

func (*NSURLAuthenticationChallenge) ProposedCredential

func (o *NSURLAuthenticationChallenge) ProposedCredential() *NSURLCredential

@abstract Get the proposed credential for this challenge @result The proposed credential @discussion proposedCredential may be nil, if there is no default credential to use for this challenge (either stored or in the URL). If the credential is not nil and returns YES for hasPassword, this means the NSURLConnection thinks the credential is ready to use as-is. If it returns NO for hasPassword, then the credential is not ready to use as-is, but provides a default username the client could use when prompting.

func (*NSURLAuthenticationChallenge) ProtectionSpace

func (o *NSURLAuthenticationChallenge) ProtectionSpace() *NSURLProtectionSpace

@abstract Get a description of the protection space that requires authentication @result The protection space that needs authentication

func (*NSURLAuthenticationChallenge) Sender

@abstract Get the sender of this challenge @result The sender of the challenge @discussion The sender is the object you should reply to when done processing the challenge.

type NSURLAuthenticationChallengeSender

type NSURLAuthenticationChallengeSender interface {
	UseCredentialForAuthenticationChallenge(credential *NSURLCredential, challenge *NSURLAuthenticationChallenge)
	ContinueWithoutCredentialForAuthenticationChallenge(challenge *NSURLAuthenticationChallenge)
	CancelAuthenticationChallenge(challenge *NSURLAuthenticationChallenge)
}

NSURLAuthenticationChallengeSender wraps the ObjC protocol NSURLAuthenticationChallengeSender.

type NSURLBookmarkCreationOptions

type NSURLBookmarkCreationOptions uint64

Options used when creating bookmark data.

const (
	NSURLBookmarkCreationPreferFileIDResolution           NSURLBookmarkCreationOptions = 256
	NSURLBookmarkCreationMinimalBookmark                  NSURLBookmarkCreationOptions = 512
	NSURLBookmarkCreationSuitableForBookmarkFile          NSURLBookmarkCreationOptions = 1024
	NSURLBookmarkCreationWithSecurityScope                NSURLBookmarkCreationOptions = 2048
	NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess NSURLBookmarkCreationOptions = 4096
	NSURLBookmarkCreationWithoutImplicitSecurityScope     NSURLBookmarkCreationOptions = 536870912
)

func (NSURLBookmarkCreationOptions) String

type NSURLBookmarkResolutionOptions

type NSURLBookmarkResolutionOptions uint64

Options used when resolving bookmark data.

const (
	NSURLBookmarkResolutionWithoutUI                     NSURLBookmarkResolutionOptions = 256
	NSURLBookmarkResolutionWithoutMounting               NSURLBookmarkResolutionOptions = 512
	NSURLBookmarkResolutionWithSecurityScope             NSURLBookmarkResolutionOptions = 1024
	NSURLBookmarkResolutionWithoutImplicitStartAccessing NSURLBookmarkResolutionOptions = 32768
)

func (NSURLBookmarkResolutionOptions) String

type NSURLCache

type NSURLCache struct {
	NSObject
}

An object that maps URL requests to cached response objects.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlcache

func NSURLCacheFromID

func NSURLCacheFromID(id objc.ID) *NSURLCache

func NSURLCacheSharedURLCache

func NSURLCacheSharedURLCache() *NSURLCache

@property sharedURLCache @abstract Returns the shared NSURLCache instance or sets the NSURLCache instance shared by all clients of the current process. This will be the new object returned when calls to the <tt>sharedURLCache</tt> method are made. @discussion Unless set explicitly through a call to <tt>+setSharedURLCache:</tt>, this method returns an NSURLCache instance created with the following default values: <ul> <li>Memory capacity: 4 megabytes (4 * 1024 * 1024 bytes) <li>Disk capacity: 20 megabytes (20 * 1024 * 1024 bytes) <li>Disk path: <nobr>(user home directory)/Library/Caches/(application bundle id)</nobr> </ul> <p>Users who do not have special caching requirements or constraints should find the default shared cache instance acceptable. If this default shared cache instance is not acceptable, <tt>+setSharedURLCache:</tt> can be called to set a different NSURLCache instance to be returned from this method. Callers should take care to ensure that the setter is called at a time when no other caller has a reference to the previously-set shared URL cache. This is to prevent storing cache data from becoming unexpectedly unretrievable. @result the shared NSURLCache instance.

func (*NSURLCache) CachedResponseForRequest

func (o *NSURLCache) CachedResponseForRequest(request *NSURLRequest) *NSCachedURLResponse

@method cachedResponseForRequest: @abstract Returns the NSCachedURLResponse stored in the cache with the given request. @discussion The method returns nil if there is no NSCachedURLResponse stored using the given request. @param request the NSURLRequest to use as a key for the lookup. @result The NSCachedURLResponse stored in the cache with the given request, or nil if there is no NSCachedURLResponse stored with the given request.

func (*NSURLCache) CurrentDiskUsage

func (o *NSURLCache) CurrentDiskUsage() uint

@abstract Returns the current amount of space consumed by the on-disk cache of the receiver. @discussion This size, measured in bytes, indicates the current usage of the on-disk cache. @result the current usage of the on-disk cache of the receiver.

func (*NSURLCache) CurrentMemoryUsage

func (o *NSURLCache) CurrentMemoryUsage() uint

@abstract Returns the current amount of space consumed by the in-memory cache of the receiver. @discussion This size, measured in bytes, indicates the current usage of the in-memory cache. @result the current usage of the in-memory cache of the receiver.

func (*NSURLCache) DiskCapacity

func (o *NSURLCache) DiskCapacity() uint

@abstract The on-disk capacity of the receiver. @discussion The on-disk capacity, measured in bytes, for the receiver. On mutation the on-disk cache will truncate its contents to the size given, if necessary.

func (*NSURLCache) GetCachedResponseForDataTaskCompletionHandler

func (o *NSURLCache) GetCachedResponseForDataTaskCompletionHandler(dataTask *NSURLSessionDataTask, completionHandler func(*NSCachedURLResponse))

func (*NSURLCache) InitWithMemoryCapacityDiskCapacityDirectoryURL

func (o *NSURLCache) InitWithMemoryCapacityDiskCapacityDirectoryURL(memoryCapacity uint, diskCapacity uint, directoryURL *NSURL) *NSURLCache

Creates a URL cache object with the specified memory and disk capacities, in the specified directory.

func (*NSURLCache) InitWithMemoryCapacityDiskCapacityDiskPath

func (o *NSURLCache) InitWithMemoryCapacityDiskCapacityDiskPath(memoryCapacity uint, diskCapacity uint, path *NSString) *NSURLCache

@method initWithMemoryCapacity:diskCapacity:diskPath: @abstract Initializes an NSURLCache with the given capacity and path. @discussion The returned NSURLCache is backed by disk, so developers can be more liberal with space when choosing the capacity for this kind of cache. A disk cache measured in the tens of megabytes should be acceptable in most cases. @param memoryCapacity the capacity, measured in bytes, for the cache in memory. @param diskCapacity the capacity, measured in bytes, for the cache on disk. @param path the path on disk where the cache data is stored. @result an initialized NSURLCache, with the given capacity, backed by disk. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSURLCache) MemoryCapacity

func (o *NSURLCache) MemoryCapacity() uint

@abstract In-memory capacity of the receiver. @discussion At the time this call is made, the in-memory cache will truncate its contents to the size given, if necessary. @result The in-memory capacity, measured in bytes, for the receiver.

func (*NSURLCache) RemoveAllCachedResponses

func (o *NSURLCache) RemoveAllCachedResponses()

@method removeAllCachedResponses @abstract Clears the given cache, removing all NSCachedURLResponse objects that it stores.

func (*NSURLCache) RemoveCachedResponseForDataTask

func (o *NSURLCache) RemoveCachedResponseForDataTask(dataTask *NSURLSessionDataTask)

func (*NSURLCache) RemoveCachedResponseForRequest

func (o *NSURLCache) RemoveCachedResponseForRequest(request *NSURLRequest)

@method removeCachedResponseForRequest: @abstract Removes the NSCachedURLResponse from the cache that is stored using the given request. @discussion No action is taken if there is no NSCachedURLResponse stored with the given request. @param request the NSURLRequest to use as a key for the lookup.

func (*NSURLCache) RemoveCachedResponsesSinceDate

func (o *NSURLCache) RemoveCachedResponsesSinceDate(date *NSDate)

@method removeCachedResponsesSince: @abstract Clears the given cache of any cached responses since the provided date.

func (*NSURLCache) SetDiskCapacity

func (o *NSURLCache) SetDiskCapacity(diskCapacity uint)

func (*NSURLCache) SetMemoryCapacity

func (o *NSURLCache) SetMemoryCapacity(memoryCapacity uint)

func (*NSURLCache) StoreCachedResponseForDataTask

func (o *NSURLCache) StoreCachedResponseForDataTask(cachedResponse *NSCachedURLResponse, dataTask *NSURLSessionDataTask)

func (*NSURLCache) StoreCachedResponseForRequest

func (o *NSURLCache) StoreCachedResponseForRequest(cachedResponse *NSCachedURLResponse, request *NSURLRequest)

@method storeCachedResponse:forRequest: @abstract Stores the given NSCachedURLResponse in the cache using the given request. @param cachedResponse The cached response to store. @param request the NSURLRequest to use as a key for the storage.

type NSURLCacheStoragePolicy

type NSURLCacheStoragePolicy uint64

These constants specify the caching strategy used by an NSCachedURLResponse object.

const (
	NSURLCacheStorageAllowed             NSURLCacheStoragePolicy = 0
	NSURLCacheStorageAllowedInMemoryOnly NSURLCacheStoragePolicy = 1
	NSURLCacheStorageNotAllowed          NSURLCacheStoragePolicy = 2
)

func (NSURLCacheStoragePolicy) String

func (e NSURLCacheStoragePolicy) String() string

type NSURLComponents

type NSURLComponents struct {
	NSObject
}

An object that parses URLs into and constructs URLs from their constituent parts.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlcomponents

func NSURLComponentsComponentsWithString

func NSURLComponentsComponentsWithString(uRLString *NSString) *NSURLComponents

Returns a URL components object by parsing a URL in string form.

func NSURLComponentsComponentsWithStringEncodingInvalidCharacters

func NSURLComponentsComponentsWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURLComponents

Returns a URL components instance from the provided string, optionally IDNA- and percent-encoding any invalid characters.

func NSURLComponentsComponentsWithURLResolvingAgainstBaseURL

func NSURLComponentsComponentsWithURLResolvingAgainstBaseURL(url *NSURL, resolve bool) *NSURLComponents

Returns a URL components object by parsing the URL from an NSURL object.

func NSURLComponentsFromID

func NSURLComponentsFromID(id objc.ID) *NSURLComponents

func (*NSURLComponents) EncodedHost

func (o *NSURLComponents) EncodedHost() *NSString

func (*NSURLComponents) Fragment

func (o *NSURLComponents) Fragment() *NSString

func (*NSURLComponents) Host

func (o *NSURLComponents) Host() *NSString

func (*NSURLComponents) Init

func (o *NSURLComponents) Init() *NSURLComponents

Creates a URL components object with all components left undefined.

func (*NSURLComponents) InitWithString

func (o *NSURLComponents) InitWithString(uRLString *NSString) *NSURLComponents

Creates a URL components object by parsing a URL in string form.

func (*NSURLComponents) InitWithStringEncodingInvalidCharacters

func (o *NSURLComponents) InitWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURLComponents

Creates a URL components instance from the provided string, optionally IDNA- and percent-encoding any invalid characters.

func (*NSURLComponents) InitWithURLResolvingAgainstBaseURL

func (o *NSURLComponents) InitWithURLResolvingAgainstBaseURL(url *NSURL, resolve bool) *NSURLComponents

Creates a URL components object by parsing the URL from an NSURL object.

func (*NSURLComponents) Password

func (o *NSURLComponents) Password() *NSString

func (*NSURLComponents) Path

func (o *NSURLComponents) Path() *NSString

func (*NSURLComponents) PercentEncodedFragment deprecated

func (o *NSURLComponents) PercentEncodedFragment() *NSString

Deprecated: Use encodedHost instead

func (*NSURLComponents) PercentEncodedHost deprecated

func (o *NSURLComponents) PercentEncodedHost() *NSString

Deprecated: Use encodedHost instead

func (*NSURLComponents) PercentEncodedPassword

func (o *NSURLComponents) PercentEncodedPassword() *NSString

func (*NSURLComponents) PercentEncodedPath deprecated

func (o *NSURLComponents) PercentEncodedPath() *NSString

Deprecated: Use encodedHost instead

func (*NSURLComponents) PercentEncodedQuery deprecated

func (o *NSURLComponents) PercentEncodedQuery() *NSString

Deprecated: Use encodedHost instead

func (*NSURLComponents) PercentEncodedQueryItems

func (o *NSURLComponents) PercentEncodedQueryItems() *NSArray[*NSURLQueryItem]

func (*NSURLComponents) PercentEncodedUser

func (o *NSURLComponents) PercentEncodedUser() *NSString

func (*NSURLComponents) Port

func (o *NSURLComponents) Port() *NSNumber

func (*NSURLComponents) Query

func (o *NSURLComponents) Query() *NSString

func (*NSURLComponents) QueryItems

func (o *NSURLComponents) QueryItems() *NSArray[*NSURLQueryItem]

func (*NSURLComponents) RangeOfFragment

func (o *NSURLComponents) RangeOfFragment() NSRange

func (*NSURLComponents) RangeOfHost

func (o *NSURLComponents) RangeOfHost() NSRange

func (*NSURLComponents) RangeOfPassword

func (o *NSURLComponents) RangeOfPassword() NSRange

func (*NSURLComponents) RangeOfPath

func (o *NSURLComponents) RangeOfPath() NSRange

func (*NSURLComponents) RangeOfPort

func (o *NSURLComponents) RangeOfPort() NSRange

func (*NSURLComponents) RangeOfQuery

func (o *NSURLComponents) RangeOfQuery() NSRange

func (*NSURLComponents) RangeOfScheme

func (o *NSURLComponents) RangeOfScheme() NSRange

func (*NSURLComponents) RangeOfUser

func (o *NSURLComponents) RangeOfUser() NSRange

func (*NSURLComponents) Scheme

func (o *NSURLComponents) Scheme() *NSString

func (*NSURLComponents) SetEncodedHost

func (o *NSURLComponents) SetEncodedHost(encodedHost *NSString)

func (*NSURLComponents) SetFragment

func (o *NSURLComponents) SetFragment(fragment *NSString)

func (*NSURLComponents) SetHost

func (o *NSURLComponents) SetHost(host *NSString)

func (*NSURLComponents) SetPassword

func (o *NSURLComponents) SetPassword(password *NSString)

func (*NSURLComponents) SetPath

func (o *NSURLComponents) SetPath(path *NSString)

func (*NSURLComponents) SetPercentEncodedFragment

func (o *NSURLComponents) SetPercentEncodedFragment(percentEncodedFragment *NSString)

func (*NSURLComponents) SetPercentEncodedHost deprecated

func (o *NSURLComponents) SetPercentEncodedHost(percentEncodedHost *NSString)

Deprecated: Use encodedHost instead

func (*NSURLComponents) SetPercentEncodedPassword

func (o *NSURLComponents) SetPercentEncodedPassword(percentEncodedPassword *NSString)

func (*NSURLComponents) SetPercentEncodedPath

func (o *NSURLComponents) SetPercentEncodedPath(percentEncodedPath *NSString)

func (*NSURLComponents) SetPercentEncodedQuery

func (o *NSURLComponents) SetPercentEncodedQuery(percentEncodedQuery *NSString)

func (*NSURLComponents) SetPercentEncodedQueryItems

func (o *NSURLComponents) SetPercentEncodedQueryItems(percentEncodedQueryItems *NSArray[*NSURLQueryItem])

func (*NSURLComponents) SetPercentEncodedUser

func (o *NSURLComponents) SetPercentEncodedUser(percentEncodedUser *NSString)

func (*NSURLComponents) SetPort

func (o *NSURLComponents) SetPort(port *NSNumber)

func (*NSURLComponents) SetQuery

func (o *NSURLComponents) SetQuery(query *NSString)

func (*NSURLComponents) SetQueryItems

func (o *NSURLComponents) SetQueryItems(queryItems *NSArray[*NSURLQueryItem])

func (*NSURLComponents) SetScheme

func (o *NSURLComponents) SetScheme(scheme *NSString)

func (*NSURLComponents) SetUser

func (o *NSURLComponents) SetUser(user *NSString)

func (*NSURLComponents) String

func (o *NSURLComponents) String() *NSString

func (*NSURLComponents) URL

func (o *NSURLComponents) URL() *NSURL

func (*NSURLComponents) URLRelativeToURL

func (o *NSURLComponents) URLRelativeToURL(baseURL *NSURL) *NSURL

Returns a URL object derived from the components object.

func (*NSURLComponents) User

func (o *NSURLComponents) User() *NSString

type NSURLConnection

type NSURLConnection struct {
	NSObject
}

An object that enables you to start and stop URL requests.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlconnection

func NSURLConnectionConnectionWithRequestDelegate

func NSURLConnectionConnectionWithRequestDelegate(request *NSURLRequest, delegate objc.ID) *NSURLConnection

Creates and returns an initialized URL connection and begins to load the data for the URL request. Deprecated: Use NSURLSession (see NSURLSession.h)

func NSURLConnectionFromID

func NSURLConnectionFromID(id objc.ID) *NSURLConnection

func (*NSURLConnection) Cancel

func (o *NSURLConnection) Cancel()

Cancels an asynchronous load of a request.

func (*NSURLConnection) CurrentRequest

func (o *NSURLConnection) CurrentRequest() *NSURLRequest

func (*NSURLConnection) InitWithRequestDelegate

func (o *NSURLConnection) InitWithRequestDelegate(request *NSURLRequest, delegate objc.ID) *NSURLConnection

Returns an initialized URL connection and begins to load the data for the URL request. Deprecated: Use NSURLSession (see NSURLSession.h)

func (*NSURLConnection) InitWithRequestDelegateStartImmediately

func (o *NSURLConnection) InitWithRequestDelegateStartImmediately(request *NSURLRequest, delegate objc.ID, startImmediately bool) *NSURLConnection

Returns an initialized URL connection and begins to load the data for the URL request, if specified. Deprecated: Use NSURLSession (see NSURLSession.h)

func (*NSURLConnection) OriginalRequest

func (o *NSURLConnection) OriginalRequest() *NSURLRequest

func (*NSURLConnection) ScheduleInRunLoopForMode

func (o *NSURLConnection) ScheduleInRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)

Determines the run loop and mode that the connection uses to call methods on its delegate.

func (*NSURLConnection) SetDelegateQueue

func (o *NSURLConnection) SetDelegateQueue(queue *NSOperationQueue)

Determines the operation queue that is used to call methods on the connection’s delegate.

func (*NSURLConnection) Start

func (o *NSURLConnection) Start()

Causes the connection to begin loading data, if it has not already.

func (*NSURLConnection) UnscheduleFromRunLoopForMode

func (o *NSURLConnection) UnscheduleFromRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)

Causes the connection to stop calling delegate methods in the specified run loop and mode.

type NSURLConnectionDataDelegate

type NSURLConnectionDataDelegate interface {
	NSURLConnectionDelegate
}

NSURLConnectionDataDelegate wraps the ObjC protocol NSURLConnectionDataDelegate.

type NSURLConnectionDelegate

type NSURLConnectionDelegate interface {
}

NSURLConnectionDelegate wraps the ObjC protocol NSURLConnectionDelegate.

type NSURLConnectionDownloadDelegate

type NSURLConnectionDownloadDelegate interface {
	NSURLConnectionDelegate
	ConnectionDidFinishDownloadingDestinationURL(connection *NSURLConnection, destinationURL *NSURL)
}

NSURLConnectionDownloadDelegate wraps the ObjC protocol NSURLConnectionDownloadDelegate.

type NSURLCredential

type NSURLCredential struct {
	NSObject
}

An authentication credential consisting of information specific to the type of credential and the type of persistent storage to use, if any.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlcredential

func NSURLCredentialCredentialForTrust

func NSURLCredentialCredentialForTrust(trust unsafe.Pointer) *NSURLCredential

Creates a URL credential instance for server trust authentication with a given accepted trust.

func NSURLCredentialCredentialWithIdentityCertificatesPersistence

func NSURLCredentialCredentialWithIdentityCertificatesPersistence(identity unsafe.Pointer, certArray *NSArray[objc.ID], persistence NSURLCredentialPersistence) *NSURLCredential

Creates a URL credential instance for resolving a client certificate authentication challenge.

func NSURLCredentialCredentialWithUserPasswordPersistence

func NSURLCredentialCredentialWithUserPasswordPersistence(user *NSString, password *NSString, persistence NSURLCredentialPersistence) *NSURLCredential

Creates a URL credential instance for internet password authentication with a given user name and password, using a given persistence setting.

func NSURLCredentialFromID

func NSURLCredentialFromID(id objc.ID) *NSURLCredential

func (*NSURLCredential) Certificates

func (o *NSURLCredential) Certificates() *NSArray[objc.ID]

@abstract Returns an NSArray of SecCertificateRef objects representing the client certificate for this credential, if this credential was created with an identity and certificate. @result an NSArray of SecCertificateRef or NULL if this is a username/password credential

func (*NSURLCredential) HasPassword

func (o *NSURLCredential) HasPassword() bool

@abstract Find out if this credential has a password, without trying to get it @result YES if this credential has a password, otherwise NO @discussion If this credential's password is actually kept in an external store, the password method may return nil even if this method returns YES, since getting the password may fail, or the user may refuse access.

func (*NSURLCredential) Identity

func (o *NSURLCredential) Identity() unsafe.Pointer

@abstract Returns the SecIdentityRef of this credential, if it was created with a certificate and identity @result A SecIdentityRef or NULL if this is a username/password credential

func (*NSURLCredential) InitWithIdentityCertificatesPersistence

func (o *NSURLCredential) InitWithIdentityCertificatesPersistence(identity unsafe.Pointer, certArray *NSArray[objc.ID], persistence NSURLCredentialPersistence) *NSURLCredential

@method initWithIdentity:certificates:persistence: @abstract Initialize an NSURLCredential with an identity and array of at least 1 client certificates (SecCertificateRef) @param identity a SecIdentityRef object @param certArray an array containing at least one SecCertificateRef objects @param persistence enum that says to store per session, permanently or not at all @result the Initialized NSURLCredential

func (*NSURLCredential) InitWithTrust

func (o *NSURLCredential) InitWithTrust(trust unsafe.Pointer) *NSURLCredential

@method initWithTrust: @abstract Initialize a new NSURLCredential which specifies that the specified trust has been accepted. @result the Initialized NSURLCredential

func (*NSURLCredential) InitWithUserPasswordPersistence

func (o *NSURLCredential) InitWithUserPasswordPersistence(user *NSString, password *NSString, persistence NSURLCredentialPersistence) *NSURLCredential

@method initWithUser:password:persistence: @abstract Initialize a NSURLCredential with a user and password @param user the username @param password the password @param persistence enum that says to store per session, permanently or not at all @result The initialized NSURLCredential

func (*NSURLCredential) Password

func (o *NSURLCredential) Password() *NSString

@abstract Get the password @result The password string @discussion This method might actually attempt to retrieve the password from an external store, possible resulting in prompting, so do not call it unless needed.

func (*NSURLCredential) Persistence

func (*NSURLCredential) User

func (o *NSURLCredential) User() *NSString

@abstract Get the username @result The user string

type NSURLCredentialPersistence

type NSURLCredentialPersistence uint64

Constants that specify how long the credential will be kept.

const (
	NSURLCredentialPersistenceNone           NSURLCredentialPersistence = 0
	NSURLCredentialPersistenceForSession     NSURLCredentialPersistence = 1
	NSURLCredentialPersistencePermanent      NSURLCredentialPersistence = 2
	NSURLCredentialPersistenceSynchronizable NSURLCredentialPersistence = 3
)

func (NSURLCredentialPersistence) String

type NSURLCredentialStorage

type NSURLCredentialStorage struct {
	NSObject
}

The manager of a shared credentials cache.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage

func NSURLCredentialStorageFromID

func NSURLCredentialStorageFromID(id objc.ID) *NSURLCredentialStorage

func NSURLCredentialStorageSharedCredentialStorage

func NSURLCredentialStorageSharedCredentialStorage() *NSURLCredentialStorage

@property sharedCredentialStorage @abstract Get the shared singleton authentication storage @result the shared authentication storage

func (*NSURLCredentialStorage) AllCredentials

@abstract Get a dictionary mapping NSURLProtectionSpaces to dictionaries which map usernames to NSURLCredentials @result an NSDictionary where the keys are NSURLProtectionSpaces and the values are dictionaries, in which the keys are usernames and the values are NSURLCredentials

func (*NSURLCredentialStorage) CredentialsForProtectionSpace

func (o *NSURLCredentialStorage) CredentialsForProtectionSpace(space *NSURLProtectionSpace) *NSDictionary[*NSString, *NSURLCredential]

@method credentialsForProtectionSpace: @abstract Get a dictionary mapping usernames to credentials for the specified protection space. @param space An NSURLProtectionSpace indicating the protection space for which to get credentials @result A dictionary where the keys are usernames and the values are the corresponding NSURLCredentials.

func (*NSURLCredentialStorage) DefaultCredentialForProtectionSpace

func (o *NSURLCredentialStorage) DefaultCredentialForProtectionSpace(space *NSURLProtectionSpace) *NSURLCredential

@method defaultCredentialForProtectionSpace: @abstract Get the default credential for the specified protection space. @param space The protection space for which to get the default credential.

func (*NSURLCredentialStorage) GetCredentialsForProtectionSpaceTaskCompletionHandler

func (o *NSURLCredentialStorage) GetCredentialsForProtectionSpaceTaskCompletionHandler(protectionSpace *NSURLProtectionSpace, task *NSURLSessionTask, completionHandler func(*NSDictionary[*NSString, *NSURLCredential]))

func (*NSURLCredentialStorage) GetDefaultCredentialForProtectionSpaceTaskCompletionHandler

func (o *NSURLCredentialStorage) GetDefaultCredentialForProtectionSpaceTaskCompletionHandler(space *NSURLProtectionSpace, task *NSURLSessionTask, completionHandler func(*NSURLCredential))

func (*NSURLCredentialStorage) RemoveCredentialForProtectionSpace

func (o *NSURLCredentialStorage) RemoveCredentialForProtectionSpace(credential *NSURLCredential, space *NSURLProtectionSpace)

@method removeCredential:forProtectionSpace: @abstract Remove the credential from the set for the specified protection space. @param credential The credential to remove. @param space The protection space for which a credential should be removed @discussion The credential is removed from both persistent and temporary storage. A credential that has a persistence policy of NSURLCredentialPersistenceSynchronizable will fail. See removeCredential:forProtectionSpace:options.

func (*NSURLCredentialStorage) RemoveCredentialForProtectionSpaceOptions

func (o *NSURLCredentialStorage) RemoveCredentialForProtectionSpaceOptions(credential *NSURLCredential, space *NSURLProtectionSpace, options *NSDictionary[*NSString, objc.ID])

@method removeCredential:forProtectionSpace:options @abstract Remove the credential from the set for the specified protection space based on options. @param credential The credential to remove. @param space The protection space for which a credential should be removed @param options A dictionary containing options to consider when removing the credential. This should be used when trying to delete a credential that has the NSURLCredentialPersistenceSynchronizable policy. Please note that when NSURLCredential objects that have a NSURLCredentialPersistenceSynchronizable policy are removed, the credential will be removed on all devices that contain this credential. @discussion The credential is removed from both persistent and temporary storage.

func (*NSURLCredentialStorage) RemoveCredentialForProtectionSpaceOptionsTask

func (o *NSURLCredentialStorage) RemoveCredentialForProtectionSpaceOptionsTask(credential *NSURLCredential, protectionSpace *NSURLProtectionSpace, options *NSDictionary[*NSString, objc.ID], task *NSURLSessionTask)

func (*NSURLCredentialStorage) SetCredentialForProtectionSpace

func (o *NSURLCredentialStorage) SetCredentialForProtectionSpace(credential *NSURLCredential, space *NSURLProtectionSpace)

@method setCredential:forProtectionSpace: @abstract Add a new credential to the set for the specified protection space or replace an existing one. @param credential The credential to set. @param space The protection space for which to add it. @discussion Multiple credentials may be set for a given protection space, but each must have a distinct user. If a credential with the same user is already set for the protection space, the new one will replace it.

func (*NSURLCredentialStorage) SetCredentialForProtectionSpaceTask

func (o *NSURLCredentialStorage) SetCredentialForProtectionSpaceTask(credential *NSURLCredential, protectionSpace *NSURLProtectionSpace, task *NSURLSessionTask)

func (*NSURLCredentialStorage) SetDefaultCredentialForProtectionSpace

func (o *NSURLCredentialStorage) SetDefaultCredentialForProtectionSpace(credential *NSURLCredential, space *NSURLProtectionSpace)

@method setDefaultCredential:forProtectionSpace: @abstract Set the default credential for the specified protection space. @param credential The credential to set as default. @param space The protection space for which the credential should be set as default. @discussion If the credential is not yet in the set for the protection space, it will be added to it.

func (*NSURLCredentialStorage) SetDefaultCredentialForProtectionSpaceTask

func (o *NSURLCredentialStorage) SetDefaultCredentialForProtectionSpaceTask(credential *NSURLCredential, protectionSpace *NSURLProtectionSpace, task *NSURLSessionTask)

type NSURLDownload

type NSURLDownload struct {
	NSObject
}

An object that downloads a resource asynchronously and saves the data to a file.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurldownload

func NSURLDownloadFromID

func NSURLDownloadFromID(id objc.ID) *NSURLDownload

func (*NSURLDownload) Cancel

func (o *NSURLDownload) Cancel()

Cancels the receiver’s download and deletes the downloaded file.

func (*NSURLDownload) DeletesFileUponFailure

func (o *NSURLDownload) DeletesFileUponFailure() bool

@abstract Sets whether or not the downloaded file should be deleted upon failure. 1 @description To allow the download to be resumed in case the download ends prematurely, deletesFileUponFailure must be set to NO as soon as possible to prevent the downloaded file from being deleted. deletesFileUponFailure is YES by default.

func (*NSURLDownload) InitWithRequestDelegate

func (o *NSURLDownload) InitWithRequestDelegate(request *NSURLRequest, delegate NSURLDownloadDelegate) *NSURLDownload

Returns an initialized URL download for a URL request and begins to download the data for the request. Deprecated: Use NSURLSession downloadTask (see NSURLSession.h)

func (*NSURLDownload) InitWithResumeDataDelegatePath

func (o *NSURLDownload) InitWithResumeDataDelegatePath(resumeData *NSData, delegate NSURLDownloadDelegate, path *NSString) *NSURLDownload

Returns an initialized NSURLDownload object that will resume downloading the specified data to the specified file and begins the download. Deprecated: Use NSURLSession downloadTask (see NSURLSession.h)

func (*NSURLDownload) Request

func (o *NSURLDownload) Request() *NSURLRequest

@abstract Returns the request of the download. @result The request of the download.

func (*NSURLDownload) ResumeData

func (o *NSURLDownload) ResumeData() *NSData

@abstract Returns the resume data of a download that is incomplete. @result The resume data. @description resumeData returns the resume data of a download that is incomplete. This data represents the necessary state information that NSURLDownload needs to resume a download. The resume data can later be used when initializing a download with initWithResumeData:delegate:path:. Non-nil is returned if resuming the download seems possible. Non-nil is returned if the download was cancelled or ended in error after some but not all data has been received. The protocol of the download as well as the server must support resuming for non-nil to be returned. In order to later resume a download, be sure to call setDeletesFileUponFailure: with NO.

func (*NSURLDownload) SetDeletesFileUponFailure

func (o *NSURLDownload) SetDeletesFileUponFailure(deletesFileUponFailure bool)

func (*NSURLDownload) SetDestinationAllowOverwrite

func (o *NSURLDownload) SetDestinationAllowOverwrite(path *NSString, allowOverwrite bool)

Sets the destination path of the downloaded file.

type NSURLDownloadDelegate

type NSURLDownloadDelegate interface {
}

NSURLDownloadDelegate wraps the ObjC protocol NSURLDownloadDelegate.

type NSURLErrorNetworkUnavailableReason

type NSURLErrorNetworkUnavailableReason int64

An enumeration of reasons why a task couldn’t satisfy networking constraints.

const (
	// A reason that indicates network is unavailable because the interface is cellular and cellular network is disabled.
	NSURLErrorNetworkUnavailableReasonCellular NSURLErrorNetworkUnavailableReason = 0
	// A reason that indicates network is unavailable because the system marked the interface as expensive.
	NSURLErrorNetworkUnavailableReasonExpensive NSURLErrorNetworkUnavailableReason = 1
	// A reason that indicates network is unavailable because the user enabled “Low Data Mode” in the Settings app.
	NSURLErrorNetworkUnavailableReasonConstrained NSURLErrorNetworkUnavailableReason = 2
	// The network is unavailable because the ultra-constrained interface is not available.
	NSURLErrorNetworkUnavailableReasonUltraConstrained NSURLErrorNetworkUnavailableReason = 3
)

func (NSURLErrorNetworkUnavailableReason) String

type NSURLHandle

type NSURLHandle struct {
	NSObject
}

An object that accesses and manages resource data indicated by a URL.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlhandle Deprecated: since macOS 10.4.

func NSURLHandleCachedHandleForURL

func NSURLHandleCachedHandleForURL(anURL *NSURL) *NSURLHandle

Returns the URL handle from the cache that has serviced the specified URL or another identical URL. Deprecated: since macOS 10.4.

func NSURLHandleFromID

func NSURLHandleFromID(id objc.ID) *NSURLHandle

func (*NSURLHandle) AddClient

func (o *NSURLHandle) AddClient(client NSURLHandleClient)

Adds a client of the URL handle. Deprecated: since macOS 10.4.

func (*NSURLHandle) AvailableResourceData

func (o *NSURLHandle) AvailableResourceData() *NSData

Immediately returns the currently available resource data managed by the URL handle. Deprecated: since macOS 10.4.

func (*NSURLHandle) BackgroundLoadDidFailWithReason

func (o *NSURLHandle) BackgroundLoadDidFailWithReason(reason *NSString)

Called when a background load fails. Deprecated: since macOS 10.4.

func (*NSURLHandle) BeginLoadInBackground

func (o *NSURLHandle) BeginLoadInBackground()

Called when a background load begins. Deprecated: since macOS 10.4.

func (*NSURLHandle) CancelLoadInBackground

func (o *NSURLHandle) CancelLoadInBackground()

Called to cancel a load currently in progress. Deprecated: since macOS 10.4.

func (*NSURLHandle) DidLoadBytesLoadComplete

func (o *NSURLHandle) DidLoadBytesLoadComplete(newBytes *NSData, yorn bool)

Appends new data to the receiver’s resource data. Deprecated: since macOS 10.4.

func (*NSURLHandle) EndLoadInBackground

func (o *NSURLHandle) EndLoadInBackground()

Halts any background loading. Deprecated: since macOS 10.4.

func (*NSURLHandle) ExpectedResourceDataSize

func (o *NSURLHandle) ExpectedResourceDataSize() int64

Returns the expected length of the resource data if it is provided by the server. Deprecated: since macOS 10.4.

func (*NSURLHandle) FailureReason

func (o *NSURLHandle) FailureReason() *NSString

Returns a string describing the reason a load failed. Deprecated: since macOS 10.4.

func (*NSURLHandle) FlushCachedData

func (o *NSURLHandle) FlushCachedData()

Flushes any cached data for the URL served by this URL handle. Deprecated: since macOS 10.4.

func (*NSURLHandle) InitWithURLCached

func (o *NSURLHandle) InitWithURLCached(anURL *NSURL, willCache bool) objc.ID

Initializes a newly created URL handle with the specified URL. Deprecated: since macOS 10.4.

func (*NSURLHandle) LoadInBackground

func (o *NSURLHandle) LoadInBackground()

Loads the receiver’s data in the background. Deprecated: since macOS 10.4.

func (*NSURLHandle) LoadInForeground

func (o *NSURLHandle) LoadInForeground() *NSData

Loads the receiver’s data synchronously. Deprecated: since macOS 10.4.

func (*NSURLHandle) PropertyForKey

func (o *NSURLHandle) PropertyForKey(propertyKey *NSString) objc.ID

Returns the property for the specified key. Deprecated: since macOS 10.4.

func (*NSURLHandle) PropertyForKeyIfAvailable

func (o *NSURLHandle) PropertyForKeyIfAvailable(propertyKey *NSString) objc.ID

Returns the property for the specified key only if the value is already available; that is, the client doesn’t need to do any work. Deprecated: since macOS 10.4.

func (*NSURLHandle) RemoveClient

func (o *NSURLHandle) RemoveClient(client NSURLHandleClient)

Removes client as an NSURLHandleClient of the receiver. Deprecated: since macOS 10.4.

func (*NSURLHandle) ResourceData

func (o *NSURLHandle) ResourceData() *NSData

Returns the resource data managed by the receiver, loading it if necessary. Deprecated: since macOS 10.4.

func (*NSURLHandle) Status

func (o *NSURLHandle) Status() NSURLHandleStatus

Returns the status of the receiver. Deprecated: since macOS 10.4.

func (*NSURLHandle) WriteData

func (o *NSURLHandle) WriteData(data *NSData) bool

Attempts to write a specified set of data to the location specified by the receiver’s URL. Deprecated: since macOS 10.4.

func (*NSURLHandle) WritePropertyForKey

func (o *NSURLHandle) WritePropertyForKey(propertyValue objc.ID, propertyKey *NSString) bool

Sets the property of the receiver’s resource for a specified key to the specified value. Deprecated: since macOS 10.4.

type NSURLHandleClient

type NSURLHandleClient interface {
	URLHandleResourceDataDidBecomeAvailable(sender *NSURLHandle, newBytes *NSData)
	URLHandleResourceDidBeginLoading(sender *NSURLHandle)
	URLHandleResourceDidFinishLoading(sender *NSURLHandle)
	URLHandleResourceDidCancelLoading(sender *NSURLHandle)
	URLHandleResourceDidFailLoadingWithReason(sender *NSURLHandle, reason *NSString)
}

NSURLHandleClient wraps the ObjC protocol NSURLHandleClient.

type NSURLHandleStatus

type NSURLHandleStatus uint64

These following constants are defined by NSURLHandle and are returned by status.

const (
	NSURLHandleNotLoaded      NSURLHandleStatus = 0
	NSURLHandleLoadSucceeded  NSURLHandleStatus = 1
	NSURLHandleLoadInProgress NSURLHandleStatus = 2
	NSURLHandleLoadFailed     NSURLHandleStatus = 3
)

func (NSURLHandleStatus) String

func (e NSURLHandleStatus) String() string

type NSURLProtectionSpace

type NSURLProtectionSpace struct {
	NSObject
}

A server or an area on a server, commonly referred to as a realm, that requires authentication.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlprotectionspace

func NSURLProtectionSpaceFromID

func NSURLProtectionSpaceFromID(id objc.ID) *NSURLProtectionSpace

func (*NSURLProtectionSpace) AuthenticationMethod

func (o *NSURLProtectionSpace) AuthenticationMethod() *NSString

@abstract Get the authentication method to be used for this protection space @result The authentication method

func (*NSURLProtectionSpace) DistinguishedNames

func (o *NSURLProtectionSpace) DistinguishedNames() *NSArray[*NSData]

func (*NSURLProtectionSpace) Host

func (o *NSURLProtectionSpace) Host() *NSString

@abstract Get the proxy host if this is a proxy authentication, or the host from the URL. @result The host for this protection space.

func (*NSURLProtectionSpace) InitWithHostPortProtocolRealmAuthenticationMethod

func (o *NSURLProtectionSpace) InitWithHostPortProtocolRealmAuthenticationMethod(host *NSString, port int, protocol *NSString, realm *NSString, authenticationMethod *NSString) *NSURLProtectionSpace

@method initWithHost:port:protocol:realm:authenticationMethod: @abstract Initialize a protection space representing an origin server, or a realm on one @param host The hostname of the server @param port The port for the server @param protocol The protocol for this server - e.g. "http", "ftp", "https" @param realm A string indicating a protocol-specific subdivision of a single host. For http and https, this maps to the realm string in http authentication challenges. For many other protocols it is unused. @param authenticationMethod The authentication method to use to access this protection space - valid values include nil (default method), @"digest" and @"form". @result The initialized object.

func (*NSURLProtectionSpace) InitWithProxyHostPortTypeRealmAuthenticationMethod

func (o *NSURLProtectionSpace) InitWithProxyHostPortTypeRealmAuthenticationMethod(host *NSString, port int, type_ *NSString, realm *NSString, authenticationMethod *NSString) *NSURLProtectionSpace

@method initWithProxyHost:port:type:realm:authenticationMethod: @abstract Initialize a protection space representing a proxy server, or a realm on one @param host The hostname of the proxy server @param port The port for the proxy server @param type The type of proxy - e.g. "http", "ftp", "SOCKS" @param realm A string indicating a protocol-specific subdivision of a single host. For http and https, this maps to the realm string in http authentication challenges. For many other protocols it is unused. @param authenticationMethod The authentication method to use to access this protection space - valid values include nil (default method) and @"digest" @result The initialized object.

func (*NSURLProtectionSpace) IsProxy

func (o *NSURLProtectionSpace) IsProxy() bool

@abstract Determine if this authenticating protection space is a proxy server @result YES if a proxy, NO otherwise

func (*NSURLProtectionSpace) Port

func (o *NSURLProtectionSpace) Port() int

@abstract Get the proxy port if this is a proxy authentication, or the port from the URL. @result The port for this protection space, or 0 if not set.

func (*NSURLProtectionSpace) Protocol

func (o *NSURLProtectionSpace) Protocol() *NSString

@abstract Get the protocol of this protection space, if not a proxy @result The type string, or nil if a proxy.

func (*NSURLProtectionSpace) ProxyType

func (o *NSURLProtectionSpace) ProxyType() *NSString

@abstract Get the type of this protection space, if a proxy @result The type string, or nil if not a proxy.

func (*NSURLProtectionSpace) Realm

func (o *NSURLProtectionSpace) Realm() *NSString

@abstract Get the authentication realm for which the protection space that needs authentication @discussion This is generally only available for http authentication, and may be nil otherwise. @result The realm string

func (*NSURLProtectionSpace) ReceivesCredentialSecurely

func (o *NSURLProtectionSpace) ReceivesCredentialSecurely() bool

@abstract Determine if the password for this protection space can be sent securely @result YES if a secure authentication method or protocol will be used, NO otherwise

func (*NSURLProtectionSpace) ServerTrust

func (o *NSURLProtectionSpace) ServerTrust() unsafe.Pointer

type NSURLProtocol

type NSURLProtocol struct {
	NSObject
}

An abstract class that handles the loading of protocol-specific URL data.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlprotocol

func NSURLProtocolFromID

func NSURLProtocolFromID(id objc.ID) *NSURLProtocol

func (*NSURLProtocol) CachedResponse

func (o *NSURLProtocol) CachedResponse() *NSCachedURLResponse

@abstract Returns the NSCachedURLResponse of the receiver. @result The NSCachedURLResponse of the receiver.

func (*NSURLProtocol) Client

func (o *NSURLProtocol) Client() NSURLProtocolClient

@abstract Returns the NSURLProtocolClient of the receiver. @result The NSURLProtocolClient of the receiver.

func (*NSURLProtocol) InitWithRequestCachedResponseClient

func (o *NSURLProtocol) InitWithRequestCachedResponseClient(request *NSURLRequest, cachedResponse *NSCachedURLResponse, client NSURLProtocolClient) *NSURLProtocol

@method initWithRequest:cachedResponse:client: @abstract Initializes an NSURLProtocol given request, cached response, and client. @param request The request to load. @param cachedResponse A response that has been retrieved from the cache for the given request. The protocol implementation should apply protocol-specific validity checks if such tests are necessary. @param client The NSURLProtocolClient object that serves as the interface the protocol implementation can use to report results back to the URL loading system.

func (*NSURLProtocol) InitWithTaskCachedResponseClient

func (o *NSURLProtocol) InitWithTaskCachedResponseClient(task *NSURLSessionTask, cachedResponse *NSCachedURLResponse, client NSURLProtocolClient) *NSURLProtocol

func (*NSURLProtocol) Request

func (o *NSURLProtocol) Request() *NSURLRequest

@abstract Returns the NSURLRequest of the receiver. @result The NSURLRequest of the receiver.

func (*NSURLProtocol) StartLoading

func (o *NSURLProtocol) StartLoading()

@method startLoading @abstract Starts protocol-specific loading of a request. @discussion When this method is called, the protocol implementation should start loading a request.

func (*NSURLProtocol) StopLoading

func (o *NSURLProtocol) StopLoading()

@method stopLoading @abstract Stops protocol-specific loading of a request. @discussion When this method is called, the protocol implementation should end the work of loading a request. This could be in response to a cancel operation, so protocol implementations must be able to handle this call while a load is in progress.

func (*NSURLProtocol) Task

func (o *NSURLProtocol) Task() *NSURLSessionTask

type NSURLProtocolClient

type NSURLProtocolClient interface {
	URLProtocolWasRedirectedToRequestRedirectResponse(protocol *NSURLProtocol, request *NSURLRequest, redirectResponse *NSURLResponse)
	URLProtocolCachedResponseIsValid(protocol *NSURLProtocol, cachedResponse *NSCachedURLResponse)
	URLProtocolDidReceiveResponseCacheStoragePolicy(protocol *NSURLProtocol, response *NSURLResponse, policy NSURLCacheStoragePolicy)
	URLProtocolDidLoadData(protocol *NSURLProtocol, data *NSData)
	URLProtocolDidFinishLoading(protocol *NSURLProtocol)
	URLProtocolDidFailWithError(protocol *NSURLProtocol, error_ unsafe.Pointer)
	URLProtocolDidReceiveAuthenticationChallenge(protocol *NSURLProtocol, challenge *NSURLAuthenticationChallenge)
	URLProtocolDidCancelAuthenticationChallenge(protocol *NSURLProtocol, challenge *NSURLAuthenticationChallenge)
}

NSURLProtocolClient wraps the ObjC protocol NSURLProtocolClient.

type NSURLQueryItem

type NSURLQueryItem struct {
	NSObject
}

An object representing a single name/value pair for an item in the query portion of a URL.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlqueryitem

func NSURLQueryItemFromID

func NSURLQueryItemFromID(id objc.ID) *NSURLQueryItem

func NSURLQueryItemQueryItemWithNameValue

func NSURLQueryItemQueryItemWithNameValue(name *NSString, value *NSString) *NSURLQueryItem

Creates a new query item with the specified name and value.

func (*NSURLQueryItem) InitWithNameValue

func (o *NSURLQueryItem) InitWithNameValue(name *NSString, value *NSString) *NSURLQueryItem

Initializes a newly allocated query item with the specified name and value.

func (*NSURLQueryItem) Name

func (o *NSURLQueryItem) Name() *NSString

func (*NSURLQueryItem) Value

func (o *NSURLQueryItem) Value() *NSString

type NSURLRelationship

type NSURLRelationship int64

Constants indicating the relationship between a directory and an item.

const (
	NSURLRelationshipContains NSURLRelationship = 0
	NSURLRelationshipSame     NSURLRelationship = 1
	NSURLRelationshipOther    NSURLRelationship = 2
)

func (NSURLRelationship) String

func (e NSURLRelationship) String() string

type NSURLRequest

type NSURLRequest struct {
	NSObject
}

A URL load request that is independent of protocol or URL scheme.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlrequest

func NSURLProtocolCanonicalRequestForRequest

func NSURLProtocolCanonicalRequestForRequest(request *NSURLRequest) *NSURLRequest

@method canonicalRequestForRequest: @abstract This method returns a canonical version of the given request. @discussion It is up to each concrete protocol implementation to define what "canonical" means. However, a protocol should guarantee that the same input request always yields the same canonical form. Special consideration should be given when implementing this method since the canonical form of a request is used to look up objects in the URL cache, a process which performs equality checks between NSURLRequest objects. <p> This is an abstract method; subclasses must provide an implementation. @param request A request to make canonical. @result The canonical form of the given request.

func NSURLRequestFromID

func NSURLRequestFromID(id objc.ID) *NSURLRequest

func NSURLRequestRequestWithURL

func NSURLRequestRequestWithURL(uRL *NSURL) *NSURLRequest

Creates and returns a URL request for a specified URL.

func NSURLRequestRequestWithURLCachePolicyTimeoutInterval

func NSURLRequestRequestWithURLCachePolicyTimeoutInterval(uRL *NSURL, cachePolicy NSURLRequestCachePolicy, timeoutInterval float64) *NSURLRequest

Creates and returns an initialized URL request with specified URL, cache policy, and timeout values.

func (*NSURLRequest) AllHTTPHeaderFields

func (o *NSURLRequest) AllHTTPHeaderFields() *NSDictionary[*NSString, *NSString]

@abstract Returns a dictionary containing all the HTTP header fields of the receiver. @result a dictionary containing all the HTTP header fields of the receiver.

func (*NSURLRequest) AllowsCellularAccess

func (o *NSURLRequest) AllowsCellularAccess() bool

@abstract returns whether a connection created with this request is allowed to use the built in cellular radios (if present). @result YES if the receiver is allowed to use the built in cellular radios to satisfy the request, NO otherwise.

func (*NSURLRequest) AllowsConstrainedNetworkAccess

func (o *NSURLRequest) AllowsConstrainedNetworkAccess() bool

@abstract returns whether a connection created with this request is allowed to use network interfaces which have been marked as constrained. @result YES if the receiver is allowed to use an interface marked as constrained to satisfy the request, NO otherwise.

func (*NSURLRequest) AllowsExpensiveNetworkAccess

func (o *NSURLRequest) AllowsExpensiveNetworkAccess() bool

@abstract returns whether a connection created with this request is allowed to use network interfaces which have been marked as expensive. @result YES if the receiver is allowed to use an interface marked as expensive to satisfy the request, NO otherwise.

func (*NSURLRequest) AllowsPersistentDNS

func (o *NSURLRequest) AllowsPersistentDNS() bool

@abstract Allows storing and usage of DNS answers, potentially beyond TTL expiry, in a persistent per-process cache. This should only be set for hostnames whose resolutions are not expected to change across networks. @discussion YES, if the DNS lookup for this request is allowed to use a persistent per-process cache, NO otherwise. Defaults to NO.

func (*NSURLRequest) AllowsUltraConstrainedNetworkAccess

func (o *NSURLRequest) AllowsUltraConstrainedNetworkAccess() bool

@abstract returns whether a connection created with this request is allowed to use network interfaces which have been marked as ultra constrained. @result YES if the receiver is allowed to use an interface marked as ultra constrained to satisfy the request, NO otherwise.

func (*NSURLRequest) AssumesHTTP3Capable

func (o *NSURLRequest) AssumesHTTP3Capable() bool

@abstract returns whether we assume that server supports HTTP/3. Enables QUIC racing without HTTP/3 service discovery. @result YES if server endpoint is known to support HTTP/3. Defaults to NO. The default may be YES in a future OS update.

func (*NSURLRequest) Attribution

func (o *NSURLRequest) Attribution() NSURLRequestAttribution

@abstract Returns the NSURLRequestAttribution associated with this request. @discussion This will return NSURLRequestAttributionDeveloper for requests that have not explicitly set an attribution. @result The NSURLRequestAttribution associated with this request.

func (*NSURLRequest) CachePolicy

func (o *NSURLRequest) CachePolicy() NSURLRequestCachePolicy

@abstract Returns the cache policy of the receiver. @result The cache policy of the receiver.

func (*NSURLRequest) CookiePartitionIdentifier

func (o *NSURLRequest) CookiePartitionIdentifier() *NSString

func (*NSURLRequest) HTTPBody

func (o *NSURLRequest) HTTPBody() *NSData

@abstract Returns the request body data of the receiver. @discussion This data is sent as the message body of the request, as in done in an HTTP POST request. @result The request body data of the receiver.

func (*NSURLRequest) HTTPBodyStream

func (o *NSURLRequest) HTTPBodyStream() *NSInputStream

@abstract Returns the request body stream of the receiver if any has been set @discussion The stream is returned for examination only; it is not safe for the caller to manipulate the stream in any way. Also note that the HTTPBodyStream and HTTPBody are mutually exclusive - only one can be set on a given request. Also note that the body stream is preserved across copies, but is LOST when the request is coded via the NSCoding protocol @result The request body stream of the receiver.

func (*NSURLRequest) HTTPMethod

func (o *NSURLRequest) HTTPMethod() *NSString

@abstract Returns the HTTP request method of the receiver. @result the HTTP request method of the receiver.

func (*NSURLRequest) HTTPShouldHandleCookies

func (o *NSURLRequest) HTTPShouldHandleCookies() bool

@abstract Determine whether default cookie handling will happen for this request. @discussion NOTE: This value is not used prior to 10.3 @result YES if cookies will be sent with and set for this request; otherwise NO.

func (*NSURLRequest) HTTPShouldUsePipelining

func (o *NSURLRequest) HTTPShouldUsePipelining() bool

@abstract Reports whether the receiver is not expected to wait for the previous response before transmitting. @result YES if the receiver should transmit before the previous response is received. NO if the receiver should wait for the previous response before transmitting. Deprecated: Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead

func (*NSURLRequest) InitWithURL

func (o *NSURLRequest) InitWithURL(uRL *NSURL) *NSURLRequest

Creates a URL request for a specified URL.

func (*NSURLRequest) InitWithURLCachePolicyTimeoutInterval

func (o *NSURLRequest) InitWithURLCachePolicyTimeoutInterval(uRL *NSURL, cachePolicy NSURLRequestCachePolicy, timeoutInterval float64) *NSURLRequest

Creates a URL request with the specified URL, cache policy, and timeout values.

func (*NSURLRequest) MainDocumentURL

func (o *NSURLRequest) MainDocumentURL() *NSURL

@abstract The main document URL associated with this load. @discussion This URL is used for the cookie "same domain as main document" policy, and attributing the request as a sub-resource of a user-specified URL. There may also be other future uses. See setMainDocumentURL: @result The main document URL.

func (*NSURLRequest) NetworkServiceType

func (o *NSURLRequest) NetworkServiceType() NSURLRequestNetworkServiceType

@abstract Returns the NSURLRequestNetworkServiceType associated with this request. @discussion This will return NSURLNetworkServiceTypeDefault for requests that have not explicitly set a networkServiceType (using the setNetworkServiceType method). @result The NSURLRequestNetworkServiceType associated with this request.

func (*NSURLRequest) RequiresDNSSECValidation

func (o *NSURLRequest) RequiresDNSSECValidation() bool

@abstract sets whether a request is required to do DNSSEC validation during DNS lookup. @discussion YES, if the DNS lookup for this request should require DNSSEC validation, No otherwise. Defaults to NO.

func (*NSURLRequest) TimeoutInterval

func (o *NSURLRequest) TimeoutInterval() float64

@abstract Returns the timeout interval of the receiver. @discussion The timeout interval specifies the limit on the idle interval allotted to a request in the process of loading. The "idle interval" is defined as the period of time that has passed since the last instance of load activity occurred for a request that is in the process of loading. Hence, when an instance of load activity occurs (e.g. bytes are received from the network for a request), the idle interval for a request is reset to 0. If the idle interval ever becomes greater than or equal to the timeout interval, the request is considered to have timed out. This timeout interval is measured in seconds. @result The timeout interval of the receiver.

func (*NSURLRequest) URL

func (o *NSURLRequest) URL() *NSURL

@abstract Returns the URL of the receiver. @result The URL of the receiver.

func (*NSURLRequest) ValueForHTTPHeaderField

func (o *NSURLRequest) ValueForHTTPHeaderField(field *NSString) *NSString

Returns the value of the specified HTTP header field.

type NSURLRequestAttribution

type NSURLRequestAttribution uint64

The entities that can make a network request.

const (
	NSURLRequestAttributionDeveloper NSURLRequestAttribution = 0
	NSURLRequestAttributionUser      NSURLRequestAttribution = 1
)

func (NSURLRequestAttribution) String

func (e NSURLRequestAttribution) String() string

type NSURLRequestCachePolicy

type NSURLRequestCachePolicy uint64

The constants used to specify interaction with the cached responses.

const (
	NSURLRequestUseProtocolCachePolicy                NSURLRequestCachePolicy = 0
	NSURLRequestReloadIgnoringLocalCacheData          NSURLRequestCachePolicy = 1
	NSURLRequestReloadIgnoringLocalAndRemoteCacheData NSURLRequestCachePolicy = 4
	NSURLRequestReloadIgnoringCacheData               NSURLRequestCachePolicy = 1
	NSURLRequestReturnCacheDataElseLoad               NSURLRequestCachePolicy = 2
	NSURLRequestReturnCacheDataDontLoad               NSURLRequestCachePolicy = 3
	NSURLRequestReloadRevalidatingCacheData           NSURLRequestCachePolicy = 5
)

func (NSURLRequestCachePolicy) String

func (e NSURLRequestCachePolicy) String() string

type NSURLRequestNetworkServiceType

type NSURLRequestNetworkServiceType uint64

Constants that specify how a request uses network resources.

const (
	NSURLNetworkServiceTypeDefault        NSURLRequestNetworkServiceType = 0
	NSURLNetworkServiceTypeVoIP           NSURLRequestNetworkServiceType = 1
	NSURLNetworkServiceTypeVideo          NSURLRequestNetworkServiceType = 2
	NSURLNetworkServiceTypeBackground     NSURLRequestNetworkServiceType = 3
	NSURLNetworkServiceTypeVoice          NSURLRequestNetworkServiceType = 4
	NSURLNetworkServiceTypeResponsiveData NSURLRequestNetworkServiceType = 6
	NSURLNetworkServiceTypeAVStreaming    NSURLRequestNetworkServiceType = 8
	NSURLNetworkServiceTypeResponsiveAV   NSURLRequestNetworkServiceType = 9
	NSURLNetworkServiceTypeCallSignaling  NSURLRequestNetworkServiceType = 11
)

func (NSURLRequestNetworkServiceType) String

type NSURLResponse

type NSURLResponse struct {
	NSObject
}

The metadata associated with the response to a URL load request, independent of protocol and URL scheme.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlresponse

func NSURLResponseFromID

func NSURLResponseFromID(id objc.ID) *NSURLResponse

func (*NSURLResponse) ExpectedContentLength

func (o *NSURLResponse) ExpectedContentLength() int64

@abstract Returns the expected content length of the receiver. @discussion Some protocol implementations report a content length as part of delivering load metadata, but not all protocols guarantee the amount of data that will be delivered in actuality. Hence, this method returns an expected amount. Clients should use this value as an advisory, and should be prepared to deal with either more or less data. @result The expected content length of the receiver, or -1 if there is no expectation that can be arrived at regarding expected content length.

func (*NSURLResponse) InitWithURLMIMETypeExpectedContentLengthTextEncodingName

func (o *NSURLResponse) InitWithURLMIMETypeExpectedContentLengthTextEncodingName(uRL *NSURL, mIMEType *NSString, length int, name *NSString) *NSURLResponse

@method initWithURL:MIMEType:expectedContentLength:textEncodingName: @abstract Initialize an NSURLResponse with the provided values. @param URL the URL @param MIMEType the MIME content type of the response @param length the expected content length of the associated data @param name the name of the text encoding for the associated data, if applicable, else nil @result The initialized NSURLResponse. @discussion This is the designated initializer for NSURLResponse.

func (*NSURLResponse) MIMEType

func (o *NSURLResponse) MIMEType() *NSString

@abstract Returns the MIME type of the receiver. @discussion The MIME type is based on the information provided from an origin source. However, that value may be changed or corrected by a protocol implementation if it can be determined that the origin server or source reported the information incorrectly or imprecisely. An attempt to guess the MIME type may be made if the origin source did not report any such information. @result The MIME type of the receiver.

func (*NSURLResponse) SuggestedFilename

func (o *NSURLResponse) SuggestedFilename() *NSString

@abstract Returns a suggested filename if the resource were saved to disk. @discussion The method first checks if the server has specified a filename using the content disposition header. If no valid filename is specified using that mechanism, this method checks the last path component of the URL. If no valid filename can be obtained using the last path component, this method uses the URL's host as the filename. If the URL's host can't be converted to a valid filename, the filename "unknown" is used. In most cases, this method appends the proper file extension based on the MIME type. This method always returns a valid filename. @result A suggested filename to use if saving the resource to disk.

func (*NSURLResponse) TextEncodingName

func (o *NSURLResponse) TextEncodingName() *NSString

@abstract Returns the name of the text encoding of the receiver. @discussion This name will be the actual string reported by the origin source during the course of performing a protocol-specific URL load. Clients can inspect this string and convert it to an NSStringEncoding or CFStringEncoding using the methods and functions made available in the appropriate framework. @result The name of the text encoding of the receiver, or nil if no text encoding was specified.

func (*NSURLResponse) URL

func (o *NSURLResponse) URL() *NSURL

@abstract Returns the URL of the receiver. @result The URL of the receiver.

type NSURLSession

type NSURLSession struct {
	NSObject
}

An object that coordinates a group of related, network data transfer tasks.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsession

func NSURLSessionFromID

func NSURLSessionFromID(id objc.ID) *NSURLSession

func NSURLSessionNew deprecated

func NSURLSessionNew() *NSURLSession

Deprecated: Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances

func NSURLSessionSessionWithConfiguration

func NSURLSessionSessionWithConfiguration(configuration *NSURLSessionConfiguration) *NSURLSession

func NSURLSessionSessionWithConfigurationDelegateDelegateQueue

func NSURLSessionSessionWithConfigurationDelegateDelegateQueue(configuration *NSURLSessionConfiguration, delegate NSURLSessionDelegate, queue *NSOperationQueue) *NSURLSession

func NSURLSessionSharedSession

func NSURLSessionSharedSession() *NSURLSession

func (*NSURLSession) Configuration

func (o *NSURLSession) Configuration() *NSURLSessionConfiguration

func (*NSURLSession) DataTaskWithRequest

func (o *NSURLSession) DataTaskWithRequest(request *NSURLRequest) *NSURLSessionDataTask

func (*NSURLSession) DataTaskWithRequestCompletionHandler

func (o *NSURLSession) DataTaskWithRequestCompletionHandler(request *NSURLRequest, completionHandler func(*NSData, *NSURLResponse, unsafe.Pointer)) *NSURLSessionDataTask

func (*NSURLSession) DataTaskWithURL

func (o *NSURLSession) DataTaskWithURL(url *NSURL) *NSURLSessionDataTask

func (*NSURLSession) DataTaskWithURLCompletionHandler

func (o *NSURLSession) DataTaskWithURLCompletionHandler(url *NSURL, completionHandler func(*NSData, *NSURLResponse, unsafe.Pointer)) *NSURLSessionDataTask

func (*NSURLSession) Delegate

func (o *NSURLSession) Delegate() NSURLSessionDelegate

func (*NSURLSession) DelegateQueue

func (o *NSURLSession) DelegateQueue() *NSOperationQueue

func (*NSURLSession) DownloadTaskWithRequest

func (o *NSURLSession) DownloadTaskWithRequest(request *NSURLRequest) *NSURLSessionDownloadTask

func (*NSURLSession) DownloadTaskWithRequestCompletionHandler

func (o *NSURLSession) DownloadTaskWithRequestCompletionHandler(request *NSURLRequest, completionHandler func(*NSURL, *NSURLResponse, unsafe.Pointer)) *NSURLSessionDownloadTask

func (*NSURLSession) DownloadTaskWithResumeData

func (o *NSURLSession) DownloadTaskWithResumeData(resumeData *NSData) *NSURLSessionDownloadTask

func (*NSURLSession) DownloadTaskWithResumeDataCompletionHandler

func (o *NSURLSession) DownloadTaskWithResumeDataCompletionHandler(resumeData *NSData, completionHandler func(*NSURL, *NSURLResponse, unsafe.Pointer)) *NSURLSessionDownloadTask

func (*NSURLSession) DownloadTaskWithURL

func (o *NSURLSession) DownloadTaskWithURL(url *NSURL) *NSURLSessionDownloadTask

func (*NSURLSession) DownloadTaskWithURLCompletionHandler

func (o *NSURLSession) DownloadTaskWithURLCompletionHandler(url *NSURL, completionHandler func(*NSURL, *NSURLResponse, unsafe.Pointer)) *NSURLSessionDownloadTask

func (*NSURLSession) FinishTasksAndInvalidate

func (o *NSURLSession) FinishTasksAndInvalidate()

func (*NSURLSession) FlushWithCompletionHandler

func (o *NSURLSession) FlushWithCompletionHandler(completionHandler func())

func (*NSURLSession) GetAllTasksWithCompletionHandler

func (o *NSURLSession) GetAllTasksWithCompletionHandler(completionHandler func(*NSArray[*NSURLSessionTask]))

func (*NSURLSession) GetTasksWithCompletionHandler

func (o *NSURLSession) GetTasksWithCompletionHandler(completionHandler func(*NSArray[*NSURLSessionDataTask], *NSArray[*NSURLSessionUploadTask], *NSArray[*NSURLSessionDownloadTask]))

func (*NSURLSession) Init deprecated

func (o *NSURLSession) Init() *NSURLSession

Deprecated: Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances

func (*NSURLSession) InvalidateAndCancel

func (o *NSURLSession) InvalidateAndCancel()

func (*NSURLSession) ResetWithCompletionHandler

func (o *NSURLSession) ResetWithCompletionHandler(completionHandler func())

func (*NSURLSession) SessionDescription

func (o *NSURLSession) SessionDescription() *NSString

func (*NSURLSession) SetSessionDescription

func (o *NSURLSession) SetSessionDescription(sessionDescription *NSString)

func (*NSURLSession) StreamTaskWithHostNamePort

func (o *NSURLSession) StreamTaskWithHostNamePort(hostname *NSString, port int) *NSURLSessionStreamTask

func (*NSURLSession) StreamTaskWithNetService deprecated

func (o *NSURLSession) StreamTaskWithNetService(service *NSNetService) *NSURLSessionStreamTask

Deprecated: Use nw_connection_t in Network framework instead

func (*NSURLSession) UploadTaskWithRequestFromData

func (o *NSURLSession) UploadTaskWithRequestFromData(request *NSURLRequest, bodyData *NSData) *NSURLSessionUploadTask

func (*NSURLSession) UploadTaskWithRequestFromDataCompletionHandler

func (o *NSURLSession) UploadTaskWithRequestFromDataCompletionHandler(request *NSURLRequest, bodyData *NSData, completionHandler func(*NSData, *NSURLResponse, unsafe.Pointer)) *NSURLSessionUploadTask

func (*NSURLSession) UploadTaskWithRequestFromFile

func (o *NSURLSession) UploadTaskWithRequestFromFile(request *NSURLRequest, fileURL *NSURL) *NSURLSessionUploadTask

func (*NSURLSession) UploadTaskWithRequestFromFileCompletionHandler

func (o *NSURLSession) UploadTaskWithRequestFromFileCompletionHandler(request *NSURLRequest, fileURL *NSURL, completionHandler func(*NSData, *NSURLResponse, unsafe.Pointer)) *NSURLSessionUploadTask

func (*NSURLSession) UploadTaskWithResumeData

func (o *NSURLSession) UploadTaskWithResumeData(resumeData *NSData) *NSURLSessionUploadTask

Creates an upload task from a resume data blob. Requires the server to support the latest resumable uploads Internet-Draft from the HTTP Working Group, found at https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/ If resuming from an upload file, the file must still exist and be unmodified. If the upload cannot be successfully resumed, URLSession:task:didCompleteWithError: will be called. - Parameter resumeData: Resume data blob from an incomplete upload, such as data returned by the cancelByProducingResumeData: method. - Returns: A new session upload task, or nil if the resumeData is invalid.

func (*NSURLSession) UploadTaskWithResumeDataCompletionHandler

func (o *NSURLSession) UploadTaskWithResumeDataCompletionHandler(resumeData *NSData, completionHandler func(*NSData, *NSURLResponse, unsafe.Pointer)) *NSURLSessionUploadTask

Creates a URLSessionUploadTask from a resume data blob. If resuming from an upload file, the file must still exist and be unmodified. - Parameter resumeData: Resume data blob from an incomplete upload, such as data returned by the cancelByProducingResumeData: method. - Parameter completionHandler: The completion handler to call when the load request is complete. - Returns: A new session upload task, or nil if the resumeData is invalid.

func (*NSURLSession) UploadTaskWithStreamedRequest

func (o *NSURLSession) UploadTaskWithStreamedRequest(request *NSURLRequest) *NSURLSessionUploadTask

func (*NSURLSession) WebSocketTaskWithRequest

func (o *NSURLSession) WebSocketTaskWithRequest(request *NSURLRequest) *NSURLSessionWebSocketTask

func (*NSURLSession) WebSocketTaskWithURL

func (o *NSURLSession) WebSocketTaskWithURL(url *NSURL) *NSURLSessionWebSocketTask

func (*NSURLSession) WebSocketTaskWithURLProtocols

func (o *NSURLSession) WebSocketTaskWithURLProtocols(url *NSURL, protocols *NSArray[*NSString]) *NSURLSessionWebSocketTask

type NSURLSessionAuthChallengeDisposition

type NSURLSessionAuthChallengeDisposition int64

Constants passed by session or task delegates to the provided continuation block in response to an authentication challenge.

const (
	NSURLSessionAuthChallengeUseCredential                 NSURLSessionAuthChallengeDisposition = 0
	NSURLSessionAuthChallengePerformDefaultHandling        NSURLSessionAuthChallengeDisposition = 1
	NSURLSessionAuthChallengeCancelAuthenticationChallenge NSURLSessionAuthChallengeDisposition = 2
	NSURLSessionAuthChallengeRejectProtectionSpace         NSURLSessionAuthChallengeDisposition = 3
)

func (NSURLSessionAuthChallengeDisposition) String

type NSURLSessionConfiguration

type NSURLSessionConfiguration struct {
	NSObject
}

A configuration object that defines behavior and policies for a URL session.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration

func NSURLSessionConfigurationBackgroundSessionConfiguration deprecated

func NSURLSessionConfigurationBackgroundSessionConfiguration(identifier *NSString) *NSURLSessionConfiguration

Deprecated: since macOS 10.10.

func NSURLSessionConfigurationBackgroundSessionConfigurationWithIdentifier

func NSURLSessionConfigurationBackgroundSessionConfigurationWithIdentifier(identifier *NSString) *NSURLSessionConfiguration

func NSURLSessionConfigurationDefaultSessionConfiguration

func NSURLSessionConfigurationDefaultSessionConfiguration() *NSURLSessionConfiguration

func NSURLSessionConfigurationEphemeralSessionConfiguration

func NSURLSessionConfigurationEphemeralSessionConfiguration() *NSURLSessionConfiguration

func NSURLSessionConfigurationFromID

func NSURLSessionConfigurationFromID(id objc.ID) *NSURLSessionConfiguration

func NSURLSessionConfigurationNew deprecated

func NSURLSessionConfigurationNew() *NSURLSessionConfiguration

Deprecated: Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances

func (*NSURLSessionConfiguration) AllowsCellularAccess

func (o *NSURLSessionConfiguration) AllowsCellularAccess() bool

func (*NSURLSessionConfiguration) AllowsConstrainedNetworkAccess

func (o *NSURLSessionConfiguration) AllowsConstrainedNetworkAccess() bool

func (*NSURLSessionConfiguration) AllowsExpensiveNetworkAccess

func (o *NSURLSessionConfiguration) AllowsExpensiveNetworkAccess() bool

func (*NSURLSessionConfiguration) AllowsUltraConstrainedNetworkAccess

func (o *NSURLSessionConfiguration) AllowsUltraConstrainedNetworkAccess() bool

func (*NSURLSessionConfiguration) ConnectionProxyDictionary

func (o *NSURLSessionConfiguration) ConnectionProxyDictionary() *NSDictionary[objc.ID, objc.ID]

func (*NSURLSessionConfiguration) EnablesEarlyData

func (o *NSURLSessionConfiguration) EnablesEarlyData() bool

func (*NSURLSessionConfiguration) HTTPAdditionalHeaders

func (o *NSURLSessionConfiguration) HTTPAdditionalHeaders() *NSDictionary[objc.ID, objc.ID]

func (*NSURLSessionConfiguration) HTTPCookieAcceptPolicy

func (o *NSURLSessionConfiguration) HTTPCookieAcceptPolicy() NSHTTPCookieAcceptPolicy

func (*NSURLSessionConfiguration) HTTPCookieStorage

func (o *NSURLSessionConfiguration) HTTPCookieStorage() *NSHTTPCookieStorage

func (*NSURLSessionConfiguration) HTTPMaximumConnectionsPerHost

func (o *NSURLSessionConfiguration) HTTPMaximumConnectionsPerHost() int

func (*NSURLSessionConfiguration) HTTPShouldSetCookies deprecated

func (o *NSURLSessionConfiguration) HTTPShouldSetCookies() bool

Deprecated: Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead

func (*NSURLSessionConfiguration) HTTPShouldUsePipelining deprecated

func (o *NSURLSessionConfiguration) HTTPShouldUsePipelining() bool

Deprecated: Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead

func (*NSURLSessionConfiguration) Identifier

func (o *NSURLSessionConfiguration) Identifier() *NSString

func (*NSURLSessionConfiguration) Init deprecated

Deprecated: Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances

func (*NSURLSessionConfiguration) IsDiscretionary

func (o *NSURLSessionConfiguration) IsDiscretionary() bool

func (*NSURLSessionConfiguration) NetworkServiceType

func (*NSURLSessionConfiguration) ProtocolClasses

func (o *NSURLSessionConfiguration) ProtocolClasses() *NSArray[objc.Class]

func (*NSURLSessionConfiguration) RequestCachePolicy

func (o *NSURLSessionConfiguration) RequestCachePolicy() NSURLRequestCachePolicy

func (*NSURLSessionConfiguration) RequiresDNSSECValidation

func (o *NSURLSessionConfiguration) RequiresDNSSECValidation() bool

func (*NSURLSessionConfiguration) SessionSendsLaunchEvents

func (o *NSURLSessionConfiguration) SessionSendsLaunchEvents() bool

func (*NSURLSessionConfiguration) SetAllowsCellularAccess

func (o *NSURLSessionConfiguration) SetAllowsCellularAccess(allowsCellularAccess bool)

func (*NSURLSessionConfiguration) SetAllowsConstrainedNetworkAccess

func (o *NSURLSessionConfiguration) SetAllowsConstrainedNetworkAccess(allowsConstrainedNetworkAccess bool)

func (*NSURLSessionConfiguration) SetAllowsExpensiveNetworkAccess

func (o *NSURLSessionConfiguration) SetAllowsExpensiveNetworkAccess(allowsExpensiveNetworkAccess bool)

func (*NSURLSessionConfiguration) SetAllowsUltraConstrainedNetworkAccess

func (o *NSURLSessionConfiguration) SetAllowsUltraConstrainedNetworkAccess(allowsUltraConstrainedNetworkAccess bool)

func (*NSURLSessionConfiguration) SetConnectionProxyDictionary

func (o *NSURLSessionConfiguration) SetConnectionProxyDictionary(connectionProxyDictionary *NSDictionary[objc.ID, objc.ID])

func (*NSURLSessionConfiguration) SetDiscretionary

func (o *NSURLSessionConfiguration) SetDiscretionary(discretionary bool)

func (*NSURLSessionConfiguration) SetEnablesEarlyData

func (o *NSURLSessionConfiguration) SetEnablesEarlyData(enablesEarlyData bool)

func (*NSURLSessionConfiguration) SetHTTPAdditionalHeaders

func (o *NSURLSessionConfiguration) SetHTTPAdditionalHeaders(hTTPAdditionalHeaders *NSDictionary[objc.ID, objc.ID])

func (*NSURLSessionConfiguration) SetHTTPCookieAcceptPolicy

func (o *NSURLSessionConfiguration) SetHTTPCookieAcceptPolicy(hTTPCookieAcceptPolicy NSHTTPCookieAcceptPolicy)

func (*NSURLSessionConfiguration) SetHTTPCookieStorage

func (o *NSURLSessionConfiguration) SetHTTPCookieStorage(hTTPCookieStorage *NSHTTPCookieStorage)

func (*NSURLSessionConfiguration) SetHTTPMaximumConnectionsPerHost

func (o *NSURLSessionConfiguration) SetHTTPMaximumConnectionsPerHost(hTTPMaximumConnectionsPerHost int)

func (*NSURLSessionConfiguration) SetHTTPShouldSetCookies

func (o *NSURLSessionConfiguration) SetHTTPShouldSetCookies(hTTPShouldSetCookies bool)

func (*NSURLSessionConfiguration) SetHTTPShouldUsePipelining deprecated

func (o *NSURLSessionConfiguration) SetHTTPShouldUsePipelining(hTTPShouldUsePipelining bool)

Deprecated: Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead

func (*NSURLSessionConfiguration) SetNetworkServiceType

func (o *NSURLSessionConfiguration) SetNetworkServiceType(networkServiceType NSURLRequestNetworkServiceType)

func (*NSURLSessionConfiguration) SetProtocolClasses

func (o *NSURLSessionConfiguration) SetProtocolClasses(protocolClasses *NSArray[objc.Class])

func (*NSURLSessionConfiguration) SetRequestCachePolicy

func (o *NSURLSessionConfiguration) SetRequestCachePolicy(requestCachePolicy NSURLRequestCachePolicy)

func (*NSURLSessionConfiguration) SetRequiresDNSSECValidation

func (o *NSURLSessionConfiguration) SetRequiresDNSSECValidation(requiresDNSSECValidation bool)

func (*NSURLSessionConfiguration) SetSessionSendsLaunchEvents

func (o *NSURLSessionConfiguration) SetSessionSendsLaunchEvents(sessionSendsLaunchEvents bool)

func (*NSURLSessionConfiguration) SetSharedContainerIdentifier

func (o *NSURLSessionConfiguration) SetSharedContainerIdentifier(sharedContainerIdentifier *NSString)

func (*NSURLSessionConfiguration) SetShouldUseExtendedBackgroundIdleMode deprecated

func (o *NSURLSessionConfiguration) SetShouldUseExtendedBackgroundIdleMode(shouldUseExtendedBackgroundIdleMode bool)

Deprecated: Not supported

func (*NSURLSessionConfiguration) SetTLSMaximumSupportedProtocol deprecated

func (o *NSURLSessionConfiguration) SetTLSMaximumSupportedProtocol(tLSMaximumSupportedProtocol security.SSLProtocol)

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSURLSessionConfiguration) SetTLSMaximumSupportedProtocolVersion

func (o *NSURLSessionConfiguration) SetTLSMaximumSupportedProtocolVersion(tLSMaximumSupportedProtocolVersion security.Tls_protocol_version_t)

func (*NSURLSessionConfiguration) SetTLSMinimumSupportedProtocol deprecated

func (o *NSURLSessionConfiguration) SetTLSMinimumSupportedProtocol(tLSMinimumSupportedProtocol security.SSLProtocol)

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSURLSessionConfiguration) SetTLSMinimumSupportedProtocolVersion

func (o *NSURLSessionConfiguration) SetTLSMinimumSupportedProtocolVersion(tLSMinimumSupportedProtocolVersion security.Tls_protocol_version_t)

func (*NSURLSessionConfiguration) SetTimeoutIntervalForRequest

func (o *NSURLSessionConfiguration) SetTimeoutIntervalForRequest(timeoutIntervalForRequest float64)

func (*NSURLSessionConfiguration) SetTimeoutIntervalForResource

func (o *NSURLSessionConfiguration) SetTimeoutIntervalForResource(timeoutIntervalForResource float64)

func (*NSURLSessionConfiguration) SetURLCache

func (o *NSURLSessionConfiguration) SetURLCache(uRLCache *NSURLCache)

func (*NSURLSessionConfiguration) SetURLCredentialStorage

func (o *NSURLSessionConfiguration) SetURLCredentialStorage(uRLCredentialStorage *NSURLCredentialStorage)

func (*NSURLSessionConfiguration) SetUsesClassicLoadingMode

func (o *NSURLSessionConfiguration) SetUsesClassicLoadingMode(usesClassicLoadingMode bool)

func (*NSURLSessionConfiguration) SetWaitsForConnectivity

func (o *NSURLSessionConfiguration) SetWaitsForConnectivity(waitsForConnectivity bool)

func (*NSURLSessionConfiguration) SharedContainerIdentifier

func (o *NSURLSessionConfiguration) SharedContainerIdentifier() *NSString

func (*NSURLSessionConfiguration) ShouldUseExtendedBackgroundIdleMode deprecated

func (o *NSURLSessionConfiguration) ShouldUseExtendedBackgroundIdleMode() bool

Deprecated: Not supported

func (*NSURLSessionConfiguration) TLSMaximumSupportedProtocol deprecated

func (o *NSURLSessionConfiguration) TLSMaximumSupportedProtocol() security.SSLProtocol

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSURLSessionConfiguration) TLSMaximumSupportedProtocolVersion

func (o *NSURLSessionConfiguration) TLSMaximumSupportedProtocolVersion() security.Tls_protocol_version_t

func (*NSURLSessionConfiguration) TLSMinimumSupportedProtocol deprecated

func (o *NSURLSessionConfiguration) TLSMinimumSupportedProtocol() security.SSLProtocol

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSURLSessionConfiguration) TLSMinimumSupportedProtocolVersion

func (o *NSURLSessionConfiguration) TLSMinimumSupportedProtocolVersion() security.Tls_protocol_version_t

func (*NSURLSessionConfiguration) TimeoutIntervalForRequest

func (o *NSURLSessionConfiguration) TimeoutIntervalForRequest() float64

func (*NSURLSessionConfiguration) TimeoutIntervalForResource

func (o *NSURLSessionConfiguration) TimeoutIntervalForResource() float64

func (*NSURLSessionConfiguration) URLCache

func (o *NSURLSessionConfiguration) URLCache() *NSURLCache

func (*NSURLSessionConfiguration) URLCredentialStorage

func (o *NSURLSessionConfiguration) URLCredentialStorage() *NSURLCredentialStorage

func (*NSURLSessionConfiguration) UsesClassicLoadingMode

func (o *NSURLSessionConfiguration) UsesClassicLoadingMode() bool

func (*NSURLSessionConfiguration) WaitsForConnectivity

func (o *NSURLSessionConfiguration) WaitsForConnectivity() bool

type NSURLSessionDataDelegate

type NSURLSessionDataDelegate interface {
	NSURLSessionTaskDelegate
}

NSURLSessionDataDelegate wraps the ObjC protocol NSURLSessionDataDelegate.

type NSURLSessionDataTask

type NSURLSessionDataTask struct {
	NSURLSessionTask
}

A URL session task that returns downloaded data directly to the app in memory.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessiondatatask

func NSURLSessionDataTaskFromID

func NSURLSessionDataTaskFromID(id objc.ID) *NSURLSessionDataTask

func NSURLSessionDataTaskNew deprecated

func NSURLSessionDataTaskNew() *NSURLSessionDataTask

Deprecated: Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances

func (*NSURLSessionDataTask) Init deprecated

Deprecated: Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances

type NSURLSessionDelayedRequestDisposition

type NSURLSessionDelayedRequestDisposition int64

The action to take on a delayed URL session task.

const (
	NSURLSessionDelayedRequestContinueLoading NSURLSessionDelayedRequestDisposition = 0
	NSURLSessionDelayedRequestUseNewRequest   NSURLSessionDelayedRequestDisposition = 1
	NSURLSessionDelayedRequestCancel          NSURLSessionDelayedRequestDisposition = 2
)

func (NSURLSessionDelayedRequestDisposition) String

type NSURLSessionDelegate

type NSURLSessionDelegate interface {
}

NSURLSessionDelegate wraps the ObjC protocol NSURLSessionDelegate.

type NSURLSessionDownloadDelegate

type NSURLSessionDownloadDelegate interface {
	NSURLSessionTaskDelegate
	URLSessionDownloadTaskDidFinishDownloadingToURL(session *NSURLSession, downloadTask *NSURLSessionDownloadTask, location *NSURL)
}

NSURLSessionDownloadDelegate wraps the ObjC protocol NSURLSessionDownloadDelegate.

type NSURLSessionDownloadTask

type NSURLSessionDownloadTask struct {
	NSURLSessionTask
}

A URL session task that stores downloaded data to a file.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessiondownloadtask

func NSURLSessionDownloadTaskFromID

func NSURLSessionDownloadTaskFromID(id objc.ID) *NSURLSessionDownloadTask

func NSURLSessionDownloadTaskNew deprecated

func NSURLSessionDownloadTaskNew() *NSURLSessionDownloadTask

Deprecated: Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances

func (*NSURLSessionDownloadTask) CancelByProducingResumeData

func (o *NSURLSessionDownloadTask) CancelByProducingResumeData(completionHandler func(*NSData))

func (*NSURLSessionDownloadTask) Init deprecated

Deprecated: Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances

type NSURLSessionResponseDisposition

type NSURLSessionResponseDisposition int64

Constants indicating how a data or upload session should proceed after receiving the initial headers.

const (
	NSURLSessionResponseCancel         NSURLSessionResponseDisposition = 0
	NSURLSessionResponseAllow          NSURLSessionResponseDisposition = 1
	NSURLSessionResponseBecomeDownload NSURLSessionResponseDisposition = 2
	NSURLSessionResponseBecomeStream   NSURLSessionResponseDisposition = 3
)

func (NSURLSessionResponseDisposition) String

type NSURLSessionStreamDelegate

type NSURLSessionStreamDelegate interface {
	NSURLSessionTaskDelegate
}

NSURLSessionStreamDelegate wraps the ObjC protocol NSURLSessionStreamDelegate.

type NSURLSessionStreamTask

type NSURLSessionStreamTask struct {
	NSURLSessionTask
}

A URL session task that is stream-based.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessionstreamtask

func NSURLSessionStreamTaskFromID

func NSURLSessionStreamTaskFromID(id objc.ID) *NSURLSessionStreamTask

func NSURLSessionStreamTaskNew deprecated

func NSURLSessionStreamTaskNew() *NSURLSessionStreamTask

Deprecated: Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances

func (*NSURLSessionStreamTask) CaptureStreams

func (o *NSURLSessionStreamTask) CaptureStreams()

func (*NSURLSessionStreamTask) CloseRead

func (o *NSURLSessionStreamTask) CloseRead()

func (*NSURLSessionStreamTask) CloseWrite

func (o *NSURLSessionStreamTask) CloseWrite()

func (*NSURLSessionStreamTask) Init deprecated

Deprecated: Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances

func (*NSURLSessionStreamTask) ReadDataOfMinLengthMaxLengthTimeoutCompletionHandler

func (o *NSURLSessionStreamTask) ReadDataOfMinLengthMaxLengthTimeoutCompletionHandler(minBytes uint, maxBytes uint, timeout float64, completionHandler func(unsafe.Pointer, bool, unsafe.Pointer))

func (*NSURLSessionStreamTask) StartSecureConnection

func (o *NSURLSessionStreamTask) StartSecureConnection()

func (*NSURLSessionStreamTask) StopSecureConnection deprecated

func (o *NSURLSessionStreamTask) StopSecureConnection()

Deprecated: TLS cannot be disabled once it is enabled

func (*NSURLSessionStreamTask) WriteDataTimeoutCompletionHandler

func (o *NSURLSessionStreamTask) WriteDataTimeoutCompletionHandler(data *NSData, timeout float64, completionHandler func(unsafe.Pointer))

type NSURLSessionTask

type NSURLSessionTask struct {
	NSObject
}

A task, like downloading a specific resource, performed in a URL session.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessiontask

func NSURLSessionTaskFromID

func NSURLSessionTaskFromID(id objc.ID) *NSURLSessionTask

func NSURLSessionTaskNew deprecated

func NSURLSessionTaskNew() *NSURLSessionTask

Deprecated: Not supported

func (*NSURLSessionTask) Cancel

func (o *NSURLSessionTask) Cancel()

func (*NSURLSessionTask) CountOfBytesClientExpectsToReceive

func (o *NSURLSessionTask) CountOfBytesClientExpectsToReceive() int64

func (*NSURLSessionTask) CountOfBytesClientExpectsToSend

func (o *NSURLSessionTask) CountOfBytesClientExpectsToSend() int64

func (*NSURLSessionTask) CountOfBytesExpectedToReceive

func (o *NSURLSessionTask) CountOfBytesExpectedToReceive() int64

func (*NSURLSessionTask) CountOfBytesExpectedToSend

func (o *NSURLSessionTask) CountOfBytesExpectedToSend() int64

func (*NSURLSessionTask) CountOfBytesReceived

func (o *NSURLSessionTask) CountOfBytesReceived() int64

func (*NSURLSessionTask) CountOfBytesSent

func (o *NSURLSessionTask) CountOfBytesSent() int64

func (*NSURLSessionTask) CurrentRequest

func (o *NSURLSessionTask) CurrentRequest() *NSURLRequest

func (*NSURLSessionTask) Delegate

func (*NSURLSessionTask) EarliestBeginDate

func (o *NSURLSessionTask) EarliestBeginDate() *NSDate

func (*NSURLSessionTask) Error

func (o *NSURLSessionTask) Error() unsafe.Pointer

func (*NSURLSessionTask) Init deprecated

Deprecated: Not supported

func (*NSURLSessionTask) OriginalRequest

func (o *NSURLSessionTask) OriginalRequest() *NSURLRequest

func (*NSURLSessionTask) PrefersIncrementalDelivery

func (o *NSURLSessionTask) PrefersIncrementalDelivery() bool

func (*NSURLSessionTask) Priority

func (o *NSURLSessionTask) Priority() float32

func (*NSURLSessionTask) Progress

func (o *NSURLSessionTask) Progress() *NSProgress

func (*NSURLSessionTask) Response

func (o *NSURLSessionTask) Response() *NSURLResponse

func (*NSURLSessionTask) Resume

func (o *NSURLSessionTask) Resume()

func (*NSURLSessionTask) SetCountOfBytesClientExpectsToReceive

func (o *NSURLSessionTask) SetCountOfBytesClientExpectsToReceive(countOfBytesClientExpectsToReceive int64)

func (*NSURLSessionTask) SetCountOfBytesClientExpectsToSend

func (o *NSURLSessionTask) SetCountOfBytesClientExpectsToSend(countOfBytesClientExpectsToSend int64)

func (*NSURLSessionTask) SetDelegate

func (o *NSURLSessionTask) SetDelegate(delegate NSURLSessionTaskDelegate)

func (*NSURLSessionTask) SetEarliestBeginDate

func (o *NSURLSessionTask) SetEarliestBeginDate(earliestBeginDate *NSDate)

func (*NSURLSessionTask) SetPrefersIncrementalDelivery

func (o *NSURLSessionTask) SetPrefersIncrementalDelivery(prefersIncrementalDelivery bool)

func (*NSURLSessionTask) SetPriority

func (o *NSURLSessionTask) SetPriority(priority float32)

func (*NSURLSessionTask) SetTaskDescription

func (o *NSURLSessionTask) SetTaskDescription(taskDescription *NSString)

func (*NSURLSessionTask) State

func (*NSURLSessionTask) Suspend

func (o *NSURLSessionTask) Suspend()

func (*NSURLSessionTask) TaskDescription

func (o *NSURLSessionTask) TaskDescription() *NSString

func (*NSURLSessionTask) TaskIdentifier

func (o *NSURLSessionTask) TaskIdentifier() uint

type NSURLSessionTaskDelegate

type NSURLSessionTaskDelegate interface {
	NSURLSessionDelegate
}

NSURLSessionTaskDelegate wraps the ObjC protocol NSURLSessionTaskDelegate.

type NSURLSessionTaskMetrics

type NSURLSessionTaskMetrics struct {
	NSObject
}

An object encapsulating the metrics for a session task.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessiontaskmetrics

func NSURLSessionTaskMetricsFromID

func NSURLSessionTaskMetricsFromID(id objc.ID) *NSURLSessionTaskMetrics

func NSURLSessionTaskMetricsNew deprecated

func NSURLSessionTaskMetricsNew() *NSURLSessionTaskMetrics

Deprecated: Not supported

func (*NSURLSessionTaskMetrics) Init deprecated

Deprecated: Not supported

func (*NSURLSessionTaskMetrics) RedirectCount

func (o *NSURLSessionTaskMetrics) RedirectCount() uint

func (*NSURLSessionTaskMetrics) TaskInterval

func (o *NSURLSessionTaskMetrics) TaskInterval() *NSDateInterval

func (*NSURLSessionTaskMetrics) TransactionMetrics

type NSURLSessionTaskMetricsDomainResolutionProtocol

type NSURLSessionTaskMetricsDomainResolutionProtocol int64
const (
	NSURLSessionTaskMetricsDomainResolutionProtocolUnknown NSURLSessionTaskMetricsDomainResolutionProtocol = 0
	NSURLSessionTaskMetricsDomainResolutionProtocolUDP     NSURLSessionTaskMetricsDomainResolutionProtocol = 1
	NSURLSessionTaskMetricsDomainResolutionProtocolTCP     NSURLSessionTaskMetricsDomainResolutionProtocol = 2
	NSURLSessionTaskMetricsDomainResolutionProtocolTLS     NSURLSessionTaskMetricsDomainResolutionProtocol = 3
	NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS   NSURLSessionTaskMetricsDomainResolutionProtocol = 4
)

func (NSURLSessionTaskMetricsDomainResolutionProtocol) String

type NSURLSessionTaskMetricsResourceFetchType

type NSURLSessionTaskMetricsResourceFetchType int64

The manner in which a resource is fetched.

const (
	NSURLSessionTaskMetricsResourceFetchTypeUnknown     NSURLSessionTaskMetricsResourceFetchType = 0
	NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad NSURLSessionTaskMetricsResourceFetchType = 1
	NSURLSessionTaskMetricsResourceFetchTypeServerPush  NSURLSessionTaskMetricsResourceFetchType = 2
	NSURLSessionTaskMetricsResourceFetchTypeLocalCache  NSURLSessionTaskMetricsResourceFetchType = 3
)

func (NSURLSessionTaskMetricsResourceFetchType) String

type NSURLSessionTaskState

type NSURLSessionTaskState int64

Constants for determining the current state of a task.

const (
	NSURLSessionTaskStateRunning   NSURLSessionTaskState = 0
	NSURLSessionTaskStateSuspended NSURLSessionTaskState = 1
	NSURLSessionTaskStateCanceling NSURLSessionTaskState = 2
	NSURLSessionTaskStateCompleted NSURLSessionTaskState = 3
)

func (NSURLSessionTaskState) String

func (e NSURLSessionTaskState) String() string

type NSURLSessionTaskTransactionMetrics

type NSURLSessionTaskTransactionMetrics struct {
	NSObject
}

An object that encapsualtes the performance metrics collected by the URL Loading System during the execution of a session task.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics

func NSURLSessionTaskTransactionMetricsFromID

func NSURLSessionTaskTransactionMetricsFromID(id objc.ID) *NSURLSessionTaskTransactionMetrics

func NSURLSessionTaskTransactionMetricsNew deprecated

func NSURLSessionTaskTransactionMetricsNew() *NSURLSessionTaskTransactionMetrics

Deprecated: Not supported

func (*NSURLSessionTaskTransactionMetrics) ConnectEndDate

func (o *NSURLSessionTaskTransactionMetrics) ConnectEndDate() *NSDate

func (*NSURLSessionTaskTransactionMetrics) ConnectStartDate

func (o *NSURLSessionTaskTransactionMetrics) ConnectStartDate() *NSDate

func (*NSURLSessionTaskTransactionMetrics) CountOfRequestBodyBytesBeforeEncoding

func (o *NSURLSessionTaskTransactionMetrics) CountOfRequestBodyBytesBeforeEncoding() int64

func (*NSURLSessionTaskTransactionMetrics) CountOfRequestBodyBytesSent

func (o *NSURLSessionTaskTransactionMetrics) CountOfRequestBodyBytesSent() int64

func (*NSURLSessionTaskTransactionMetrics) CountOfRequestHeaderBytesSent

func (o *NSURLSessionTaskTransactionMetrics) CountOfRequestHeaderBytesSent() int64

func (*NSURLSessionTaskTransactionMetrics) CountOfResponseBodyBytesAfterDecoding

func (o *NSURLSessionTaskTransactionMetrics) CountOfResponseBodyBytesAfterDecoding() int64

func (*NSURLSessionTaskTransactionMetrics) CountOfResponseBodyBytesReceived

func (o *NSURLSessionTaskTransactionMetrics) CountOfResponseBodyBytesReceived() int64

func (*NSURLSessionTaskTransactionMetrics) CountOfResponseHeaderBytesReceived

func (o *NSURLSessionTaskTransactionMetrics) CountOfResponseHeaderBytesReceived() int64

func (*NSURLSessionTaskTransactionMetrics) DomainLookupEndDate

func (o *NSURLSessionTaskTransactionMetrics) DomainLookupEndDate() *NSDate

func (*NSURLSessionTaskTransactionMetrics) DomainLookupStartDate

func (o *NSURLSessionTaskTransactionMetrics) DomainLookupStartDate() *NSDate

func (*NSURLSessionTaskTransactionMetrics) DomainResolutionProtocol

func (*NSURLSessionTaskTransactionMetrics) FetchStartDate

func (o *NSURLSessionTaskTransactionMetrics) FetchStartDate() *NSDate

func (*NSURLSessionTaskTransactionMetrics) Init deprecated

Deprecated: Not supported

func (*NSURLSessionTaskTransactionMetrics) IsCellular

func (o *NSURLSessionTaskTransactionMetrics) IsCellular() bool

func (*NSURLSessionTaskTransactionMetrics) IsConstrained

func (o *NSURLSessionTaskTransactionMetrics) IsConstrained() bool

func (*NSURLSessionTaskTransactionMetrics) IsExpensive

func (o *NSURLSessionTaskTransactionMetrics) IsExpensive() bool

func (*NSURLSessionTaskTransactionMetrics) IsMultipath

func (o *NSURLSessionTaskTransactionMetrics) IsMultipath() bool

func (*NSURLSessionTaskTransactionMetrics) IsProxyConnection

func (o *NSURLSessionTaskTransactionMetrics) IsProxyConnection() bool

func (*NSURLSessionTaskTransactionMetrics) IsReusedConnection

func (o *NSURLSessionTaskTransactionMetrics) IsReusedConnection() bool

func (*NSURLSessionTaskTransactionMetrics) LocalAddress

func (o *NSURLSessionTaskTransactionMetrics) LocalAddress() *NSString

func (*NSURLSessionTaskTransactionMetrics) LocalPort

func (*NSURLSessionTaskTransactionMetrics) NegotiatedTLSCipherSuite

func (o *NSURLSessionTaskTransactionMetrics) NegotiatedTLSCipherSuite() *NSNumber

func (*NSURLSessionTaskTransactionMetrics) NegotiatedTLSProtocolVersion

func (o *NSURLSessionTaskTransactionMetrics) NegotiatedTLSProtocolVersion() *NSNumber

func (*NSURLSessionTaskTransactionMetrics) NetworkProtocolName

func (o *NSURLSessionTaskTransactionMetrics) NetworkProtocolName() *NSString

func (*NSURLSessionTaskTransactionMetrics) RemoteAddress

func (o *NSURLSessionTaskTransactionMetrics) RemoteAddress() *NSString

func (*NSURLSessionTaskTransactionMetrics) RemotePort

func (*NSURLSessionTaskTransactionMetrics) Request

func (*NSURLSessionTaskTransactionMetrics) RequestEndDate

func (o *NSURLSessionTaskTransactionMetrics) RequestEndDate() *NSDate

func (*NSURLSessionTaskTransactionMetrics) RequestStartDate

func (o *NSURLSessionTaskTransactionMetrics) RequestStartDate() *NSDate

func (*NSURLSessionTaskTransactionMetrics) ResourceFetchType

func (*NSURLSessionTaskTransactionMetrics) Response

func (*NSURLSessionTaskTransactionMetrics) ResponseEndDate

func (o *NSURLSessionTaskTransactionMetrics) ResponseEndDate() *NSDate

func (*NSURLSessionTaskTransactionMetrics) ResponseStartDate

func (o *NSURLSessionTaskTransactionMetrics) ResponseStartDate() *NSDate

func (*NSURLSessionTaskTransactionMetrics) SecureConnectionEndDate

func (o *NSURLSessionTaskTransactionMetrics) SecureConnectionEndDate() *NSDate

func (*NSURLSessionTaskTransactionMetrics) SecureConnectionStartDate

func (o *NSURLSessionTaskTransactionMetrics) SecureConnectionStartDate() *NSDate

type NSURLSessionUploadTask

type NSURLSessionUploadTask struct {
	NSURLSessionDataTask
}

A URL session task that uploads data to the network in a request body.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessionuploadtask

func NSURLSessionUploadTaskFromID

func NSURLSessionUploadTaskFromID(id objc.ID) *NSURLSessionUploadTask

func NSURLSessionUploadTaskNew deprecated

func NSURLSessionUploadTaskNew() *NSURLSessionUploadTask

Deprecated: Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances

func (*NSURLSessionUploadTask) CancelByProducingResumeData

func (o *NSURLSessionUploadTask) CancelByProducingResumeData(completionHandler func(*NSData))

Cancels an upload and calls the completion handler with resume data for later use. resumeData will be nil if the server does not support the latest resumable uploads Internet-Draft from the HTTP Working Group, found at https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/ - Parameter completionHandler: The completion handler to call when the upload has been successfully canceled.

func (*NSURLSessionUploadTask) Init deprecated

Deprecated: Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances

type NSURLSessionWebSocketCloseCode

type NSURLSessionWebSocketCloseCode int64

A code that indicates why a WebSocket connection closed.

const (
	NSURLSessionWebSocketCloseCodeInvalid                   NSURLSessionWebSocketCloseCode = 0
	NSURLSessionWebSocketCloseCodeNormalClosure             NSURLSessionWebSocketCloseCode = 1000
	NSURLSessionWebSocketCloseCodeGoingAway                 NSURLSessionWebSocketCloseCode = 1001
	NSURLSessionWebSocketCloseCodeProtocolError             NSURLSessionWebSocketCloseCode = 1002
	NSURLSessionWebSocketCloseCodeUnsupportedData           NSURLSessionWebSocketCloseCode = 1003
	NSURLSessionWebSocketCloseCodeNoStatusReceived          NSURLSessionWebSocketCloseCode = 1005
	NSURLSessionWebSocketCloseCodeAbnormalClosure           NSURLSessionWebSocketCloseCode = 1006
	NSURLSessionWebSocketCloseCodeInvalidFramePayloadData   NSURLSessionWebSocketCloseCode = 1007
	NSURLSessionWebSocketCloseCodePolicyViolation           NSURLSessionWebSocketCloseCode = 1008
	NSURLSessionWebSocketCloseCodeMessageTooBig             NSURLSessionWebSocketCloseCode = 1009
	NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing NSURLSessionWebSocketCloseCode = 1010
	NSURLSessionWebSocketCloseCodeInternalServerError       NSURLSessionWebSocketCloseCode = 1011
	NSURLSessionWebSocketCloseCodeTLSHandshakeFailure       NSURLSessionWebSocketCloseCode = 1015
)

func (NSURLSessionWebSocketCloseCode) String

type NSURLSessionWebSocketDelegate

type NSURLSessionWebSocketDelegate interface {
	NSURLSessionTaskDelegate
}

NSURLSessionWebSocketDelegate wraps the ObjC protocol NSURLSessionWebSocketDelegate.

type NSURLSessionWebSocketMessage

type NSURLSessionWebSocketMessage struct {
	NSObject
}

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketmessage

func NSURLSessionWebSocketMessageFromID

func NSURLSessionWebSocketMessageFromID(id objc.ID) *NSURLSessionWebSocketMessage

func (*NSURLSessionWebSocketMessage) Data

func (*NSURLSessionWebSocketMessage) InitWithData

func (*NSURLSessionWebSocketMessage) InitWithString

func (*NSURLSessionWebSocketMessage) String

func (*NSURLSessionWebSocketMessage) Type

type NSURLSessionWebSocketMessageType

type NSURLSessionWebSocketMessageType int64

An enumeration of the types of messages sent and received.

const (
	NSURLSessionWebSocketMessageTypeData   NSURLSessionWebSocketMessageType = 0
	NSURLSessionWebSocketMessageTypeString NSURLSessionWebSocketMessageType = 1
)

func (NSURLSessionWebSocketMessageType) String

type NSURLSessionWebSocketTask

type NSURLSessionWebSocketTask struct {
	NSURLSessionTask
}

A URL session task that communicates over the WebSockets protocol standard.

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask

func NSURLSessionWebSocketTaskFromID

func NSURLSessionWebSocketTaskFromID(id objc.ID) *NSURLSessionWebSocketTask

func (*NSURLSessionWebSocketTask) CancelWithCloseCodeReason

func (o *NSURLSessionWebSocketTask) CancelWithCloseCodeReason(closeCode NSURLSessionWebSocketCloseCode, reason *NSData)

func (*NSURLSessionWebSocketTask) CloseCode

func (*NSURLSessionWebSocketTask) CloseReason

func (o *NSURLSessionWebSocketTask) CloseReason() *NSData

func (*NSURLSessionWebSocketTask) MaximumMessageSize

func (o *NSURLSessionWebSocketTask) MaximumMessageSize() int

func (*NSURLSessionWebSocketTask) ReceiveMessageWithCompletionHandler

func (o *NSURLSessionWebSocketTask) ReceiveMessageWithCompletionHandler(completionHandler func(*NSURLSessionWebSocketMessage, unsafe.Pointer))

Reads a WebSocket message once all the frames of the message are available.

func (*NSURLSessionWebSocketTask) SendMessageCompletionHandler

func (o *NSURLSessionWebSocketTask) SendMessageCompletionHandler(message *NSURLSessionWebSocketMessage, completionHandler func(unsafe.Pointer))

Sends a WebSocket message, receiving the result in a completion handler.

func (*NSURLSessionWebSocketTask) SendPingWithPongReceiveHandler

func (o *NSURLSessionWebSocketTask) SendPingWithPongReceiveHandler(pongReceiveHandler func(unsafe.Pointer))

func (*NSURLSessionWebSocketTask) SetMaximumMessageSize

func (o *NSURLSessionWebSocketTask) SetMaximumMessageSize(maximumMessageSize int)

type NSUUID

type NSUUID struct {
	NSObject
}

A universally unique value that can be used to identify types, interfaces, and other items.

Apple documentation: https://developer.apple.com/documentation/foundation/nsuuid

func NSUUIDFromID

func NSUUIDFromID(id objc.ID) *NSUUID

func NSUUIDUUID

func NSUUIDUUID() *NSUUID

Create and returns a new UUID with RFC 4122 version 4 random bytes.

func (*NSUUID) Compare

func (o *NSUUID) Compare(otherUUID *NSUUID) NSComparisonResult

Compares the receiver to another NSUUID in constant time.

func (*NSUUID) GetUUIDBytes

func (o *NSUUID) GetUUIDBytes(uuid *uint8)

Returns the UUID as bytes.

func (*NSUUID) Init

func (o *NSUUID) Init() *NSUUID

Initializes a new UUID with RFC 4122 version 4 random bytes.

func (*NSUUID) InitWithUUIDBytes

func (o *NSUUID) InitWithUUIDBytes(bytes_ *uint8) *NSUUID

Initializes a new UUID with the given bytes.

func (*NSUUID) InitWithUUIDString

func (o *NSUUID) InitWithUUIDString(string_ *NSString) *NSUUID

Initializes a new UUID with the formatted string.

func (*NSUUID) UUIDString

func (o *NSUUID) UUIDString() *NSString

type NSUbiquitousKeyValueStore

type NSUbiquitousKeyValueStore struct {
	NSObject
}

An iCloud-based container of key-value pairs you share among instances of your app running on a person’s devices.

Apple documentation: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore

func NSUbiquitousKeyValueStoreDefaultStore

func NSUbiquitousKeyValueStoreDefaultStore() *NSUbiquitousKeyValueStore

func NSUbiquitousKeyValueStoreFromID

func NSUbiquitousKeyValueStoreFromID(id objc.ID) *NSUbiquitousKeyValueStore

func (*NSUbiquitousKeyValueStore) ArrayForKey

func (o *NSUbiquitousKeyValueStore) ArrayForKey(aKey *NSString) *NSArray[objc.ID]

Returns the array associated with the specified key.

func (*NSUbiquitousKeyValueStore) BoolForKey

func (o *NSUbiquitousKeyValueStore) BoolForKey(aKey *NSString) bool

Returns the Boolean value associated with the specified key.

func (*NSUbiquitousKeyValueStore) DataForKey

func (o *NSUbiquitousKeyValueStore) DataForKey(aKey *NSString) *NSData

Returns the data object associated with the specified key.

func (*NSUbiquitousKeyValueStore) DictionaryForKey

func (o *NSUbiquitousKeyValueStore) DictionaryForKey(aKey *NSString) *NSDictionary[*NSString, objc.ID]

Returns the dictionary object associated with the specified key.

func (*NSUbiquitousKeyValueStore) DictionaryRepresentation

func (o *NSUbiquitousKeyValueStore) DictionaryRepresentation() *NSDictionary[*NSString, objc.ID]

func (*NSUbiquitousKeyValueStore) DoubleForKey

func (o *NSUbiquitousKeyValueStore) DoubleForKey(aKey *NSString) float64

Returns the double value associated with the specified key.

func (*NSUbiquitousKeyValueStore) LongLongForKey

func (o *NSUbiquitousKeyValueStore) LongLongForKey(aKey *NSString) int64

Returns the 64-bit integer value associated with the specified key.

func (*NSUbiquitousKeyValueStore) ObjectForKey

func (o *NSUbiquitousKeyValueStore) ObjectForKey(aKey *NSString) objc.ID

Returns the object associated with the specified key.

func (*NSUbiquitousKeyValueStore) RemoveObjectForKey

func (o *NSUbiquitousKeyValueStore) RemoveObjectForKey(aKey *NSString)

Removes the value for the specified key from the iCloud key-value store.

func (*NSUbiquitousKeyValueStore) SetArrayForKey

func (o *NSUbiquitousKeyValueStore) SetArrayForKey(anArray *NSArray[objc.ID], aKey *NSString)

Sets the value of the specified key to an array of property list objects.

func (*NSUbiquitousKeyValueStore) SetBoolForKey

func (o *NSUbiquitousKeyValueStore) SetBoolForKey(value bool, aKey *NSString)

Sets the value of the specified key to a Boolean value.

func (*NSUbiquitousKeyValueStore) SetDataForKey

func (o *NSUbiquitousKeyValueStore) SetDataForKey(aData *NSData, aKey *NSString)

Sets the value of the specified key to a data object.

func (*NSUbiquitousKeyValueStore) SetDictionaryForKey

func (o *NSUbiquitousKeyValueStore) SetDictionaryForKey(aDictionary *NSDictionary[*NSString, objc.ID], aKey *NSString)

Sets the value of the specified key to a dictionary of property list objects.

func (*NSUbiquitousKeyValueStore) SetDoubleForKey

func (o *NSUbiquitousKeyValueStore) SetDoubleForKey(value float64, aKey *NSString)

Sets the value of the specified key to a double value.

func (*NSUbiquitousKeyValueStore) SetLongLongForKey

func (o *NSUbiquitousKeyValueStore) SetLongLongForKey(value int64, aKey *NSString)

Sets the value of the specified key to a 64-bit integer value.

func (*NSUbiquitousKeyValueStore) SetObjectForKey

func (o *NSUbiquitousKeyValueStore) SetObjectForKey(anObject objc.ID, aKey *NSString)

Sets the value of the specified key to a property list object.

func (*NSUbiquitousKeyValueStore) SetStringForKey

func (o *NSUbiquitousKeyValueStore) SetStringForKey(aString *NSString, aKey *NSString)

Sets the value of the specified key to a string value.

func (*NSUbiquitousKeyValueStore) StringForKey

func (o *NSUbiquitousKeyValueStore) StringForKey(aKey *NSString) *NSString

Returns the string associated with the specified key.

func (*NSUbiquitousKeyValueStore) Synchronize

func (o *NSUbiquitousKeyValueStore) Synchronize() bool

Synchronizes the in-memory keys and values with the ones stored in iCloud.

type NSUnarchiver

type NSUnarchiver struct {
	NSCoder
}

A decoder that restores data from an archive.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunarchiver Deprecated: Use NSKeyedUnarchiver instead

func NSUnarchiverFromID

func NSUnarchiverFromID(id objc.ID) *NSUnarchiver

func (*NSUnarchiver) ClassNameDecodedForArchiveClassName

func (o *NSUnarchiver) ClassNameDecodedForArchiveClassName(inArchiveName *NSString) *NSString

Returns the name of the class that will be used when instantiating objects whose ostensible class, according to the archived data, is a given name.

func (*NSUnarchiver) DecodeClassNameAsClassName

func (o *NSUnarchiver) DecodeClassNameAsClassName(inArchiveName *NSString, trueName *NSString)

Instructs the receiver to use the class with a given name when instantiating objects whose ostensible class, according to the archived data, is another given name.

func (*NSUnarchiver) InitForReadingWithData

func (o *NSUnarchiver) InitForReadingWithData(data *NSData) *NSUnarchiver

Returns an NSUnarchiver object initialized to read an archive from a given data object.

func (*NSUnarchiver) IsAtEnd

func (o *NSUnarchiver) IsAtEnd() bool

func (*NSUnarchiver) ReplaceObjectWithObject

func (o *NSUnarchiver) ReplaceObjectWithObject(object objc.ID, newObject objc.ID)

Causes the receiver to substitute one given object for another whenever the latter is extracted from the archive.

type NSUndoManager

type NSUndoManager struct {
	NSObject
}

A general-purpose recorder of operations that enables undo and redo.

Apple documentation: https://developer.apple.com/documentation/foundation/nsundomanager

func NSUndoManagerFromID

func NSUndoManagerFromID(id objc.ID) *NSUndoManager

func (*NSUndoManager) BeginUndoGrouping

func (o *NSUndoManager) BeginUndoGrouping()

Marks the beginning of an undo group. All individual undo operations before a subsequent “endUndoGrouping“ message are grouped together and reversed by a later “undo“ message. By default undo groups are begun automatically at the start of the event loop, but you can begin your own undo groups with this method, and nest them within other groups. This method posts an “NSUndoManagerCheckpointNotification“ unless a top-level undo is in progress. It posts an “NSUndoManagerDidOpenUndoGroupNotification“ if a new group was successfully created.

func (*NSUndoManager) CanRedo

func (o *NSUndoManager) CanRedo() bool

Whether the receiver has any actions to redo. Because any undo operation registered clears the redo stack, this method posts an NSUndoManagerCheckpointNotification to allow clients to apply their pending operations before testing the redo stack.

func (*NSUndoManager) CanUndo

func (o *NSUndoManager) CanUndo() bool

Whether the receiver has any actions to undo. The return value does not mean you can safely invoke “undo“ or “undoNestedGroup“ — you may have to close open undo groups first.

func (*NSUndoManager) DisableUndoRegistration

func (o *NSUndoManager) DisableUndoRegistration()

Disables the recording of undo operations, whether by “registerUndoWithTarget:selector:object:“ or by invocation-based undo. This method can be invoked multiple times by multiple clients. The “enableUndoRegistration“ method must be invoked an equal number of times to re-enable undo registration.

func (*NSUndoManager) EnableUndoRegistration

func (o *NSUndoManager) EnableUndoRegistration()

Enables the recording of undo operations. Because undo registration is enabled by default, this is used to balance a prior “disableUndoRegistration“. Undo registration isn’t actually re-enabled until an enable message balances the last disable message in effect. Raises an NSInternalInconsistencyException if invoked while no disableUndoRegistration() message is in effect.

func (*NSUndoManager) EndUndoGrouping

func (o *NSUndoManager) EndUndoGrouping()

Marks the end of an undo group. All individual undo operations back to the matching “beginUndoGrouping“ message are grouped together and reversed by a later “undo“ or “undoNestedGroup“ message. Undo groups can be nested, thus providing functionality similar to nested transactions. Raises an “NSInternalInconsistencyException“ if there’s no “beginUndoGrouping“ message in effect. This method posts an “NSUndoManagerCheckpointNotification“ and an “NSUndoManagerDidCloseUndoGroupNotification“ just before the group is closed.

func (*NSUndoManager) GroupingLevel

func (o *NSUndoManager) GroupingLevel() int

The number of nested undo groups (or redo groups, if Redo was invoked last) in the current event loop. An integer indicating the number of nested groups. If `0` is returned, there is no open undo or redo group.

func (*NSUndoManager) GroupsByEvent

func (o *NSUndoManager) GroupsByEvent() bool

A Boolean value that indicates whether the receiver automatically creates undo groups around each pass of the run loop. If `true`, the receiver automatically creates undo groups around each pass of the run loop. The default is `true`. If you turn automatic grouping off, you must close groups explicitly before invoking either “undo“ or “undoNestedGroup“.

func (*NSUndoManager) IsRedoing

func (o *NSUndoManager) IsRedoing() bool

Whether the receiver is in the process of performing its “redo“ method.

func (*NSUndoManager) IsUndoRegistrationEnabled

func (o *NSUndoManager) IsUndoRegistrationEnabled() bool

Whether the recording of undo operations is enabled.

func (*NSUndoManager) IsUndoing

func (o *NSUndoManager) IsUndoing() bool

Whether the receiver is in the process of performing its “undo“ or “undoNestedGroup“ method.

func (*NSUndoManager) LevelsOfUndo

func (o *NSUndoManager) LevelsOfUndo() uint

The maximum number of top-level undo groups the receiver holds. An integer specifying the number of undo groups. A limit of 0 indicates no limit, so old undo groups are never dropped. When ending an undo group results in the number of groups exceeding this limit, the oldest groups are dropped from the stack. The default is 0. If you change the limit to a level below the prior limit, old undo groups are immediately dropped.

func (*NSUndoManager) PrepareWithInvocationTarget

func (o *NSUndoManager) PrepareWithInvocationTarget(target objc.ID) objc.ID

Prepares the undo manager for invocation-based undo with the given target as the subject of the next undo operation. For example, when called as: [[undoManager prepareWithInvocationTarget:target] setFont:oldFont color:oldColor] When undo is called, the specified target will be called with [target setFont:oldFont color:oldColor] - Parameter target: The target of the undo operation. The undo manager maintains a weak reference to `target`. - Returns: A proxy object that forwards messages to the undo manager for recording as undo actions.

func (*NSUndoManager) Redo

func (o *NSUndoManager) Redo()

Performs the operations in the last group on the redo stack, if there are any, recording them on the undo stack as a single group. Raises an “NSInternalInconsistencyException“ if the method is invoked during an undo operation. This method posts an “NSUndoManagerCheckpointNotification“ and “NSUndoManagerWillRedoChangeNotification“ before it performs the redo operation, and it posts the “NSUndoManagerDidRedoChangeNotification“ after it performs the redo operation.

func (*NSUndoManager) RedoActionIsDiscardable

func (o *NSUndoManager) RedoActionIsDiscardable() bool

Whether the next redo action is discardable. Specifies that the latest redo action may be safely discarded when a document can not be saved for any reason. These are typically actions that don’t affect persistent state. An example might be an redo action that changes the viewable area of a document.

func (*NSUndoManager) RedoActionName

func (o *NSUndoManager) RedoActionName() *NSString

The name identifying the redo action. The redo action name. Returns an empty string if no action name has been assigned or if there is nothing to redo. For example, if the menu title is “Redo Delete,” the string returned is “Delete.”

func (*NSUndoManager) RedoActionUserInfoValueForKey

func (o *NSUndoManager) RedoActionUserInfoValueForKey(key *NSString) objc.ID

Get a value from the redo action's user info - Parameter key: Which value should be retrieved

func (*NSUndoManager) RedoCount

func (o *NSUndoManager) RedoCount() uint

How many times `redo` can be invoked before there are no more actions left to be redone

func (*NSUndoManager) RedoMenuItemTitle

func (o *NSUndoManager) RedoMenuItemTitle() *NSString

The complete title of the Redo menu command, for example, “Redo Paste.” Returns “Redo” if no action name has been assigned or nil if there is nothing to redo.

func (*NSUndoManager) RedoMenuTitleForUndoActionName

func (o *NSUndoManager) RedoMenuTitleForUndoActionName(actionName *NSString) *NSString

Returns the complete, localized title of the Redo menu command for the action identified by the given name. Override this method if you want to customize the localization behaviour. This method is invoked by “redoMenuItemTitle“. - Parameter actionName: The name of the redo action. - Returns: The localized title of the redo menu item.

func (*NSUndoManager) RegisterUndoWithTargetHandler

func (o *NSUndoManager) RegisterUndoWithTargetHandler(target objc.ID, undoHandler func(objc.ID))

Records a single undo operation for a given target so that when the manager performs an undo, it executes the specified block.

func (*NSUndoManager) RegisterUndoWithTargetSelectorObject

func (o *NSUndoManager) RegisterUndoWithTargetSelectorObject(target objc.ID, selector objc.SEL, object objc.ID)

Registers the selector of the specified target to implement a single undo operation that the target receives. - Parameter target: The target of the undo operation. The undo manager maintains an unowned reference to `target` to prevent retain cycles. - Parameter selector: The selector for the undo operation. - Parameter object: The argument sent with the selector. The undo manager maintains a strong reference to `object`

func (*NSUndoManager) RemoveAllActions

func (o *NSUndoManager) RemoveAllActions()

Clears the undo and redo stacks and re-enables the receiver.

func (*NSUndoManager) RemoveAllActionsWithTarget

func (o *NSUndoManager) RemoveAllActionsWithTarget(target objc.ID)

Clears the undo and redo stacks of all operations involving the specified target as the recipient of the undo message. Doesn't re-enable the receiver if it's disabled. - Parameter target: The recepient of the undo mesages to be removed.

func (*NSUndoManager) RunLoopModes

func (o *NSUndoManager) RunLoopModes() *NSArray[*NSString]

The modes governing the types of input handled during a cycle of the run loop. An array of string constants specifying the current run-loop modes. By default, the sole run-loop mode is “NSDefaultRunLoopMode“ (which excludes data from “NSConnection“ objects). Some examples of other uses are to limit the input to data received during a mouse-tracking session by setting the mode to “NSEventTrackingRunLoopMode“, or limit it to data received from a modal panel with “NSModalPanelRunLoopMode“.

func (*NSUndoManager) SetActionIsDiscardable

func (o *NSUndoManager) SetActionIsDiscardable(discardable bool)

Sets whether the next undo or redo action is discardable. Specifies that the latest undo action may be safely discarded when a document can not be saved for any reason. An example might be an undo action that changes the viewable area of a document. To find out if an undo group contains only discardable actions, look for the “NSUndoManagerGroupIsDiscardableKey“ in the `userInfo` dictionary of the “NSUndoManagerWillCloseUndoGroupNotification“. - Parameter discardable: Specifies if the action is discardable. YES if the next undo or redo action can be discarded; NO otherwise.

func (*NSUndoManager) SetActionName

func (o *NSUndoManager) SetActionName(actionName *NSString)

Sets the name of the action associated with the Undo or Redo command. If `actionName` is an empty string, the undo manager removes the action name currently associated with the menu command. - Parameter actionName: The name of the action.

func (*NSUndoManager) SetActionUserInfoValueForKey

func (o *NSUndoManager) SetActionUserInfoValueForKey(info objc.ID, key *NSString)

Set user info for the Undo or Redo command. - Parameter info: Value to be saved in the user info - Parameter key: Key at which the object should be saved

func (*NSUndoManager) SetGroupsByEvent

func (o *NSUndoManager) SetGroupsByEvent(groupsByEvent bool)

func (*NSUndoManager) SetLevelsOfUndo

func (o *NSUndoManager) SetLevelsOfUndo(levelsOfUndo uint)

func (*NSUndoManager) SetRunLoopModes

func (o *NSUndoManager) SetRunLoopModes(runLoopModes *NSArray[*NSString])

func (*NSUndoManager) Undo

func (o *NSUndoManager) Undo()

Closes the top-level undo group if necessary and invokes “undoNestedGroup“. This method also invokes “endUndoGrouping“ if the nesting level is 1. Raises an “NSInternalInconsistencyException“ if more than one undo group is open (that is, if the last group isn’t at the top level). This method posts an “NSUndoManagerCheckpointNotification“.

func (*NSUndoManager) UndoActionIsDiscardable

func (o *NSUndoManager) UndoActionIsDiscardable() bool

Whether the next undo action is discardable. Specifies that the latest undo action may be safely discarded when a document can not be saved for any reason. These are typically actions that don’t affect persistent state. An example might be an undo action that changes the viewable area of a document.

func (*NSUndoManager) UndoActionName

func (o *NSUndoManager) UndoActionName() *NSString

The name identifying the undo action. The undo action name. Returns an empty string if no action name has been assigned or if there is nothing to undo. For example, if the menu title is “Undo Delete,” the string returned is “Delete.”

func (*NSUndoManager) UndoActionUserInfoValueForKey

func (o *NSUndoManager) UndoActionUserInfoValueForKey(key *NSString) objc.ID

Get a value from the undo action's user info - Parameter key: Which value should be retrieved

func (*NSUndoManager) UndoCount

func (o *NSUndoManager) UndoCount() uint

How many times `undo` can be invoked before there are no more actions left to be undone

func (*NSUndoManager) UndoMenuItemTitle

func (o *NSUndoManager) UndoMenuItemTitle() *NSString

The complete title of the Undo menu command, for example, “Undo Paste.” Returns “Undo” if no action name has been assigned or nil if there is nothing to undo.

func (*NSUndoManager) UndoMenuTitleForUndoActionName

func (o *NSUndoManager) UndoMenuTitleForUndoActionName(actionName *NSString) *NSString

Returns the complete, localized title of the Undo menu command for the action identified by the given name. Override this method if you want to customize the localization behaviour. This method is invoked by “undoMenuItemTitle“. - Parameter actionName: The name of the undo action. - Returns: The localized title of the undo menu item.

func (*NSUndoManager) UndoNestedGroup

func (o *NSUndoManager) UndoNestedGroup()

Performs the undo operations in the last undo group (whether top-level or nested), recording the operations on the redo stack as a single group. Raises an “NSInternalInconsistencyException“ if any undo operations have been registered since the last “enableUndoRegistration“ message. This method posts an “NSUndoManagerCheckpointNotification“ and “NSUndoManagerWillUndoChangeNotification“ before it performs the undo operation, and it posts an “NSUndoManagerDidUndoChangeNotification“ after it performs the undo operation.

type NSUniqueIDSpecifier

type NSUniqueIDSpecifier struct {
	NSScriptObjectSpecifier
}

A specifier for an object in a collection (or container) by unique ID.

Apple documentation: https://developer.apple.com/documentation/foundation/nsuniqueidspecifier

func NSUniqueIDSpecifierFromID

func NSUniqueIDSpecifierFromID(id objc.ID) *NSUniqueIDSpecifier

func (*NSUniqueIDSpecifier) InitWithCoder

func (o *NSUniqueIDSpecifier) InitWithCoder(inCoder *NSCoder) *NSUniqueIDSpecifier

func (*NSUniqueIDSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyUniqueID

func (o *NSUniqueIDSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyUniqueID(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString, uniqueID objc.ID) *NSUniqueIDSpecifier

Returns an NSUniqueIDSpecifier object, initialized with the given arguments.

func (*NSUniqueIDSpecifier) SetUniqueID

func (o *NSUniqueIDSpecifier) SetUniqueID(uniqueID objc.ID)

func (*NSUniqueIDSpecifier) UniqueID

func (o *NSUniqueIDSpecifier) UniqueID() objc.ID

type NSUnit

type NSUnit struct {
	NSObject
}

An abstract class representing a unit of measure.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunit

func NSUnitFromID

func NSUnitFromID(id objc.ID) *NSUnit

func (*NSUnit) Symbol

func (o *NSUnit) Symbol() *NSString

type NSUnitAcceleration

type NSUnitAcceleration struct {
	NSDimension
}

A unit of measure for acceleration.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitacceleration

func NSUnitAccelerationFromID

func NSUnitAccelerationFromID(id objc.ID) *NSUnitAcceleration

func NSUnitAccelerationGravity

func NSUnitAccelerationGravity() *NSUnitAcceleration

func NSUnitAccelerationMetersPerSecondSquared

func NSUnitAccelerationMetersPerSecondSquared() *NSUnitAcceleration

type NSUnitAngle

type NSUnitAngle struct {
	NSDimension
}

A unit of measure for planar angle and rotation.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitangle

func NSUnitAngleArcMinutes

func NSUnitAngleArcMinutes() *NSUnitAngle

func NSUnitAngleArcSeconds

func NSUnitAngleArcSeconds() *NSUnitAngle

func NSUnitAngleDegrees

func NSUnitAngleDegrees() *NSUnitAngle

func NSUnitAngleFromID

func NSUnitAngleFromID(id objc.ID) *NSUnitAngle

func NSUnitAngleGradians

func NSUnitAngleGradians() *NSUnitAngle

func NSUnitAngleRadians

func NSUnitAngleRadians() *NSUnitAngle

func NSUnitAngleRevolutions

func NSUnitAngleRevolutions() *NSUnitAngle

type NSUnitArea

type NSUnitArea struct {
	NSDimension
}

A unit of measure for area.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitarea

func NSUnitAreaAcres

func NSUnitAreaAcres() *NSUnitArea

func NSUnitAreaAres

func NSUnitAreaAres() *NSUnitArea

func NSUnitAreaFromID

func NSUnitAreaFromID(id objc.ID) *NSUnitArea

func NSUnitAreaHectares

func NSUnitAreaHectares() *NSUnitArea

func NSUnitAreaSquareCentimeters

func NSUnitAreaSquareCentimeters() *NSUnitArea

func NSUnitAreaSquareFeet

func NSUnitAreaSquareFeet() *NSUnitArea

func NSUnitAreaSquareInches

func NSUnitAreaSquareInches() *NSUnitArea

func NSUnitAreaSquareKilometers

func NSUnitAreaSquareKilometers() *NSUnitArea

func NSUnitAreaSquareMegameters

func NSUnitAreaSquareMegameters() *NSUnitArea

func NSUnitAreaSquareMeters

func NSUnitAreaSquareMeters() *NSUnitArea

func NSUnitAreaSquareMicrometers

func NSUnitAreaSquareMicrometers() *NSUnitArea

func NSUnitAreaSquareMiles

func NSUnitAreaSquareMiles() *NSUnitArea

func NSUnitAreaSquareMillimeters

func NSUnitAreaSquareMillimeters() *NSUnitArea

func NSUnitAreaSquareNanometers

func NSUnitAreaSquareNanometers() *NSUnitArea

func NSUnitAreaSquareYards

func NSUnitAreaSquareYards() *NSUnitArea

type NSUnitConcentrationMass

type NSUnitConcentrationMass struct {
	NSDimension
}

A unit of measure for concentration of mass.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitconcentrationmass

func NSUnitConcentrationMassFromID

func NSUnitConcentrationMassFromID(id objc.ID) *NSUnitConcentrationMass

func NSUnitConcentrationMassGramsPerLiter

func NSUnitConcentrationMassGramsPerLiter() *NSUnitConcentrationMass

func NSUnitConcentrationMassMilligramsPerDeciliter

func NSUnitConcentrationMassMilligramsPerDeciliter() *NSUnitConcentrationMass

func NSUnitConcentrationMassMillimolesPerLiterWithGramsPerMole

func NSUnitConcentrationMassMillimolesPerLiterWithGramsPerMole(gramsPerMole float64) *NSUnitConcentrationMass

type NSUnitConverter

type NSUnitConverter struct {
	NSObject
}

An abstract class that provides a description of how to convert a unit to and from the base unit of its dimension.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitconverter

func NSUnitConverterFromID

func NSUnitConverterFromID(id objc.ID) *NSUnitConverter

func (*NSUnitConverter) BaseUnitValueFromValue

func (o *NSUnitConverter) BaseUnitValueFromValue(value float64) float64

func (*NSUnitConverter) ValueFromBaseUnitValue

func (o *NSUnitConverter) ValueFromBaseUnitValue(baseUnitValue float64) float64

type NSUnitConverterLinear

type NSUnitConverterLinear struct {
	NSUnitConverter
}

A description of how to convert between units using a linear equation.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitconverterlinear

func NSUnitConverterLinearFromID

func NSUnitConverterLinearFromID(id objc.ID) *NSUnitConverterLinear

func (*NSUnitConverterLinear) Coefficient

func (o *NSUnitConverterLinear) Coefficient() float64

func (*NSUnitConverterLinear) Constant

func (o *NSUnitConverterLinear) Constant() float64

func (*NSUnitConverterLinear) InitWithCoefficient

func (o *NSUnitConverterLinear) InitWithCoefficient(coefficient float64) *NSUnitConverterLinear

func (*NSUnitConverterLinear) InitWithCoefficientConstant

func (o *NSUnitConverterLinear) InitWithCoefficientConstant(coefficient float64, constant float64) *NSUnitConverterLinear

type NSUnitDispersion

type NSUnitDispersion struct {
	NSDimension
}

A unit of measure for specific quantities of dispersion.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitdispersion

func NSUnitDispersionFromID

func NSUnitDispersionFromID(id objc.ID) *NSUnitDispersion

func NSUnitDispersionPartsPerMillion

func NSUnitDispersionPartsPerMillion() *NSUnitDispersion

type NSUnitDuration

type NSUnitDuration struct {
	NSDimension
}

A unit of measure for a duration of time.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitduration

func NSUnitDurationFromID

func NSUnitDurationFromID(id objc.ID) *NSUnitDuration

func NSUnitDurationHours

func NSUnitDurationHours() *NSUnitDuration

func NSUnitDurationMicroseconds

func NSUnitDurationMicroseconds() *NSUnitDuration

func NSUnitDurationMilliseconds

func NSUnitDurationMilliseconds() *NSUnitDuration

func NSUnitDurationMinutes

func NSUnitDurationMinutes() *NSUnitDuration

func NSUnitDurationNanoseconds

func NSUnitDurationNanoseconds() *NSUnitDuration

func NSUnitDurationPicoseconds

func NSUnitDurationPicoseconds() *NSUnitDuration

func NSUnitDurationSeconds

func NSUnitDurationSeconds() *NSUnitDuration

type NSUnitElectricCharge

type NSUnitElectricCharge struct {
	NSDimension
}

A unit of measure for electric charge.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitelectriccharge

func NSUnitElectricChargeAmpereHours

func NSUnitElectricChargeAmpereHours() *NSUnitElectricCharge

func NSUnitElectricChargeCoulombs

func NSUnitElectricChargeCoulombs() *NSUnitElectricCharge

func NSUnitElectricChargeFromID

func NSUnitElectricChargeFromID(id objc.ID) *NSUnitElectricCharge

func NSUnitElectricChargeKiloampereHours

func NSUnitElectricChargeKiloampereHours() *NSUnitElectricCharge

func NSUnitElectricChargeMegaampereHours

func NSUnitElectricChargeMegaampereHours() *NSUnitElectricCharge

func NSUnitElectricChargeMicroampereHours

func NSUnitElectricChargeMicroampereHours() *NSUnitElectricCharge

func NSUnitElectricChargeMilliampereHours

func NSUnitElectricChargeMilliampereHours() *NSUnitElectricCharge

type NSUnitElectricCurrent

type NSUnitElectricCurrent struct {
	NSDimension
}

A unit of measure for electric current.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitelectriccurrent

func NSUnitElectricCurrentAmperes

func NSUnitElectricCurrentAmperes() *NSUnitElectricCurrent

func NSUnitElectricCurrentFromID

func NSUnitElectricCurrentFromID(id objc.ID) *NSUnitElectricCurrent

func NSUnitElectricCurrentKiloamperes

func NSUnitElectricCurrentKiloamperes() *NSUnitElectricCurrent

func NSUnitElectricCurrentMegaamperes

func NSUnitElectricCurrentMegaamperes() *NSUnitElectricCurrent

func NSUnitElectricCurrentMicroamperes

func NSUnitElectricCurrentMicroamperes() *NSUnitElectricCurrent

func NSUnitElectricCurrentMilliamperes

func NSUnitElectricCurrentMilliamperes() *NSUnitElectricCurrent

type NSUnitElectricPotentialDifference

type NSUnitElectricPotentialDifference struct {
	NSDimension
}

A unit of measure for electric potential difference.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitelectricpotentialdifference

func NSUnitElectricPotentialDifferenceFromID

func NSUnitElectricPotentialDifferenceFromID(id objc.ID) *NSUnitElectricPotentialDifference

func NSUnitElectricPotentialDifferenceKilovolts

func NSUnitElectricPotentialDifferenceKilovolts() *NSUnitElectricPotentialDifference

func NSUnitElectricPotentialDifferenceMegavolts

func NSUnitElectricPotentialDifferenceMegavolts() *NSUnitElectricPotentialDifference

func NSUnitElectricPotentialDifferenceMicrovolts

func NSUnitElectricPotentialDifferenceMicrovolts() *NSUnitElectricPotentialDifference

func NSUnitElectricPotentialDifferenceMillivolts

func NSUnitElectricPotentialDifferenceMillivolts() *NSUnitElectricPotentialDifference

func NSUnitElectricPotentialDifferenceVolts

func NSUnitElectricPotentialDifferenceVolts() *NSUnitElectricPotentialDifference

type NSUnitElectricResistance

type NSUnitElectricResistance struct {
	NSDimension
}

A unit of measure for electric resistance.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitelectricresistance

func NSUnitElectricResistanceFromID

func NSUnitElectricResistanceFromID(id objc.ID) *NSUnitElectricResistance

func NSUnitElectricResistanceKiloohms

func NSUnitElectricResistanceKiloohms() *NSUnitElectricResistance

func NSUnitElectricResistanceMegaohms

func NSUnitElectricResistanceMegaohms() *NSUnitElectricResistance

func NSUnitElectricResistanceMicroohms

func NSUnitElectricResistanceMicroohms() *NSUnitElectricResistance

func NSUnitElectricResistanceMilliohms

func NSUnitElectricResistanceMilliohms() *NSUnitElectricResistance

func NSUnitElectricResistanceOhms

func NSUnitElectricResistanceOhms() *NSUnitElectricResistance

type NSUnitEnergy

type NSUnitEnergy struct {
	NSDimension
}

A unit of measure for energy.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitenergy

func NSUnitEnergyCalories

func NSUnitEnergyCalories() *NSUnitEnergy

func NSUnitEnergyFromID

func NSUnitEnergyFromID(id objc.ID) *NSUnitEnergy

func NSUnitEnergyJoules

func NSUnitEnergyJoules() *NSUnitEnergy

func NSUnitEnergyKilocalories

func NSUnitEnergyKilocalories() *NSUnitEnergy

func NSUnitEnergyKilojoules

func NSUnitEnergyKilojoules() *NSUnitEnergy

func NSUnitEnergyKilowattHours

func NSUnitEnergyKilowattHours() *NSUnitEnergy

type NSUnitFrequency

type NSUnitFrequency struct {
	NSDimension
}

A unit of measure for frequency.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitfrequency

func NSUnitFrequencyFramesPerSecond

func NSUnitFrequencyFramesPerSecond() *NSUnitFrequency

func NSUnitFrequencyFromID

func NSUnitFrequencyFromID(id objc.ID) *NSUnitFrequency

func NSUnitFrequencyGigahertz

func NSUnitFrequencyGigahertz() *NSUnitFrequency

func NSUnitFrequencyHertz

func NSUnitFrequencyHertz() *NSUnitFrequency

func NSUnitFrequencyKilohertz

func NSUnitFrequencyKilohertz() *NSUnitFrequency

func NSUnitFrequencyMegahertz

func NSUnitFrequencyMegahertz() *NSUnitFrequency

func NSUnitFrequencyMicrohertz

func NSUnitFrequencyMicrohertz() *NSUnitFrequency

func NSUnitFrequencyMillihertz

func NSUnitFrequencyMillihertz() *NSUnitFrequency

func NSUnitFrequencyNanohertz

func NSUnitFrequencyNanohertz() *NSUnitFrequency

func NSUnitFrequencyTerahertz

func NSUnitFrequencyTerahertz() *NSUnitFrequency

type NSUnitFuelEfficiency

type NSUnitFuelEfficiency struct {
	NSDimension
}

A unit of measure for fuel efficiency.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitfuelefficiency

func NSUnitFuelEfficiencyFromID

func NSUnitFuelEfficiencyFromID(id objc.ID) *NSUnitFuelEfficiency

func NSUnitFuelEfficiencyLitersPer100Kilometers

func NSUnitFuelEfficiencyLitersPer100Kilometers() *NSUnitFuelEfficiency

func NSUnitFuelEfficiencyMilesPerGallon

func NSUnitFuelEfficiencyMilesPerGallon() *NSUnitFuelEfficiency

func NSUnitFuelEfficiencyMilesPerImperialGallon

func NSUnitFuelEfficiencyMilesPerImperialGallon() *NSUnitFuelEfficiency

type NSUnitIlluminance

type NSUnitIlluminance struct {
	NSDimension
}

A unit of measure for illuminance.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitilluminance

func NSUnitIlluminanceFromID

func NSUnitIlluminanceFromID(id objc.ID) *NSUnitIlluminance

func NSUnitIlluminanceLux

func NSUnitIlluminanceLux() *NSUnitIlluminance

type NSUnitInformationStorage

type NSUnitInformationStorage struct {
	NSDimension
}

A unit of measure for quantities of information.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitinformationstorage

func NSUnitInformationStorageBits

func NSUnitInformationStorageBits() *NSUnitInformationStorage

func NSUnitInformationStorageBytes

func NSUnitInformationStorageBytes() *NSUnitInformationStorage

func NSUnitInformationStorageExabits

func NSUnitInformationStorageExabits() *NSUnitInformationStorage

func NSUnitInformationStorageExabytes

func NSUnitInformationStorageExabytes() *NSUnitInformationStorage

func NSUnitInformationStorageExbibits

func NSUnitInformationStorageExbibits() *NSUnitInformationStorage

func NSUnitInformationStorageExbibytes

func NSUnitInformationStorageExbibytes() *NSUnitInformationStorage

func NSUnitInformationStorageFromID

func NSUnitInformationStorageFromID(id objc.ID) *NSUnitInformationStorage

func NSUnitInformationStorageGibibits

func NSUnitInformationStorageGibibits() *NSUnitInformationStorage

func NSUnitInformationStorageGibibytes

func NSUnitInformationStorageGibibytes() *NSUnitInformationStorage

func NSUnitInformationStorageGigabits

func NSUnitInformationStorageGigabits() *NSUnitInformationStorage

func NSUnitInformationStorageGigabytes

func NSUnitInformationStorageGigabytes() *NSUnitInformationStorage

func NSUnitInformationStorageKibibits

func NSUnitInformationStorageKibibits() *NSUnitInformationStorage

func NSUnitInformationStorageKibibytes

func NSUnitInformationStorageKibibytes() *NSUnitInformationStorage

func NSUnitInformationStorageKilobits

func NSUnitInformationStorageKilobits() *NSUnitInformationStorage

func NSUnitInformationStorageKilobytes

func NSUnitInformationStorageKilobytes() *NSUnitInformationStorage

func NSUnitInformationStorageMebibits

func NSUnitInformationStorageMebibits() *NSUnitInformationStorage

func NSUnitInformationStorageMebibytes

func NSUnitInformationStorageMebibytes() *NSUnitInformationStorage

func NSUnitInformationStorageMegabits

func NSUnitInformationStorageMegabits() *NSUnitInformationStorage

func NSUnitInformationStorageMegabytes

func NSUnitInformationStorageMegabytes() *NSUnitInformationStorage

func NSUnitInformationStorageNibbles

func NSUnitInformationStorageNibbles() *NSUnitInformationStorage

func NSUnitInformationStoragePebibits

func NSUnitInformationStoragePebibits() *NSUnitInformationStorage

func NSUnitInformationStoragePebibytes

func NSUnitInformationStoragePebibytes() *NSUnitInformationStorage

func NSUnitInformationStoragePetabits

func NSUnitInformationStoragePetabits() *NSUnitInformationStorage

func NSUnitInformationStoragePetabytes

func NSUnitInformationStoragePetabytes() *NSUnitInformationStorage

func NSUnitInformationStorageTebibits

func NSUnitInformationStorageTebibits() *NSUnitInformationStorage

func NSUnitInformationStorageTebibytes

func NSUnitInformationStorageTebibytes() *NSUnitInformationStorage

func NSUnitInformationStorageTerabits

func NSUnitInformationStorageTerabits() *NSUnitInformationStorage

func NSUnitInformationStorageTerabytes

func NSUnitInformationStorageTerabytes() *NSUnitInformationStorage

func NSUnitInformationStorageYobibits

func NSUnitInformationStorageYobibits() *NSUnitInformationStorage

func NSUnitInformationStorageYobibytes

func NSUnitInformationStorageYobibytes() *NSUnitInformationStorage

func NSUnitInformationStorageYottabits

func NSUnitInformationStorageYottabits() *NSUnitInformationStorage

func NSUnitInformationStorageYottabytes

func NSUnitInformationStorageYottabytes() *NSUnitInformationStorage

func NSUnitInformationStorageZebibits

func NSUnitInformationStorageZebibits() *NSUnitInformationStorage

func NSUnitInformationStorageZebibytes

func NSUnitInformationStorageZebibytes() *NSUnitInformationStorage

func NSUnitInformationStorageZettabits

func NSUnitInformationStorageZettabits() *NSUnitInformationStorage

func NSUnitInformationStorageZettabytes

func NSUnitInformationStorageZettabytes() *NSUnitInformationStorage

type NSUnitLength

type NSUnitLength struct {
	NSDimension
}

A unit of measure for length.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitlength

func NSUnitLengthAstronomicalUnits

func NSUnitLengthAstronomicalUnits() *NSUnitLength

func NSUnitLengthCentimeters

func NSUnitLengthCentimeters() *NSUnitLength

func NSUnitLengthDecameters

func NSUnitLengthDecameters() *NSUnitLength

func NSUnitLengthDecimeters

func NSUnitLengthDecimeters() *NSUnitLength

func NSUnitLengthFathoms

func NSUnitLengthFathoms() *NSUnitLength

func NSUnitLengthFeet

func NSUnitLengthFeet() *NSUnitLength

func NSUnitLengthFromID

func NSUnitLengthFromID(id objc.ID) *NSUnitLength

func NSUnitLengthFurlongs

func NSUnitLengthFurlongs() *NSUnitLength

func NSUnitLengthHectometers

func NSUnitLengthHectometers() *NSUnitLength

func NSUnitLengthInches

func NSUnitLengthInches() *NSUnitLength

func NSUnitLengthKilometers

func NSUnitLengthKilometers() *NSUnitLength

func NSUnitLengthLightyears

func NSUnitLengthLightyears() *NSUnitLength

func NSUnitLengthMegameters

func NSUnitLengthMegameters() *NSUnitLength

func NSUnitLengthMeters

func NSUnitLengthMeters() *NSUnitLength

func NSUnitLengthMicrometers

func NSUnitLengthMicrometers() *NSUnitLength

func NSUnitLengthMiles

func NSUnitLengthMiles() *NSUnitLength

func NSUnitLengthMillimeters

func NSUnitLengthMillimeters() *NSUnitLength

func NSUnitLengthNanometers

func NSUnitLengthNanometers() *NSUnitLength

func NSUnitLengthNauticalMiles

func NSUnitLengthNauticalMiles() *NSUnitLength

func NSUnitLengthParsecs

func NSUnitLengthParsecs() *NSUnitLength

func NSUnitLengthPicometers

func NSUnitLengthPicometers() *NSUnitLength

func NSUnitLengthScandinavianMiles

func NSUnitLengthScandinavianMiles() *NSUnitLength

func NSUnitLengthYards

func NSUnitLengthYards() *NSUnitLength

type NSUnitMass

type NSUnitMass struct {
	NSDimension
}

A unit of measure for mass.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitmass

func NSUnitMassCarats

func NSUnitMassCarats() *NSUnitMass

func NSUnitMassCentigrams

func NSUnitMassCentigrams() *NSUnitMass

func NSUnitMassDecigrams

func NSUnitMassDecigrams() *NSUnitMass

func NSUnitMassFromID

func NSUnitMassFromID(id objc.ID) *NSUnitMass

func NSUnitMassGrams

func NSUnitMassGrams() *NSUnitMass

func NSUnitMassKilograms

func NSUnitMassKilograms() *NSUnitMass

func NSUnitMassMetricTons

func NSUnitMassMetricTons() *NSUnitMass

func NSUnitMassMicrograms

func NSUnitMassMicrograms() *NSUnitMass

func NSUnitMassMilligrams

func NSUnitMassMilligrams() *NSUnitMass

func NSUnitMassNanograms

func NSUnitMassNanograms() *NSUnitMass

func NSUnitMassOunces

func NSUnitMassOunces() *NSUnitMass

func NSUnitMassOuncesTroy

func NSUnitMassOuncesTroy() *NSUnitMass

func NSUnitMassPicograms

func NSUnitMassPicograms() *NSUnitMass

func NSUnitMassPoundsMass

func NSUnitMassPoundsMass() *NSUnitMass

func NSUnitMassShortTons

func NSUnitMassShortTons() *NSUnitMass

func NSUnitMassSlugs

func NSUnitMassSlugs() *NSUnitMass

func NSUnitMassStones

func NSUnitMassStones() *NSUnitMass

type NSUnitPower

type NSUnitPower struct {
	NSDimension
}

A unit of measure for power.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitpower

func NSUnitPowerFemtowatts

func NSUnitPowerFemtowatts() *NSUnitPower

func NSUnitPowerFromID

func NSUnitPowerFromID(id objc.ID) *NSUnitPower

func NSUnitPowerGigawatts

func NSUnitPowerGigawatts() *NSUnitPower

func NSUnitPowerHorsepower

func NSUnitPowerHorsepower() *NSUnitPower

func NSUnitPowerKilowatts

func NSUnitPowerKilowatts() *NSUnitPower

func NSUnitPowerMegawatts

func NSUnitPowerMegawatts() *NSUnitPower

func NSUnitPowerMicrowatts

func NSUnitPowerMicrowatts() *NSUnitPower

func NSUnitPowerMilliwatts

func NSUnitPowerMilliwatts() *NSUnitPower

func NSUnitPowerNanowatts

func NSUnitPowerNanowatts() *NSUnitPower

func NSUnitPowerPicowatts

func NSUnitPowerPicowatts() *NSUnitPower

func NSUnitPowerTerawatts

func NSUnitPowerTerawatts() *NSUnitPower

func NSUnitPowerWatts

func NSUnitPowerWatts() *NSUnitPower

type NSUnitPressure

type NSUnitPressure struct {
	NSDimension
}

A unit of measure for pressure.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitpressure

func NSUnitPressureBars

func NSUnitPressureBars() *NSUnitPressure

func NSUnitPressureFromID

func NSUnitPressureFromID(id objc.ID) *NSUnitPressure

func NSUnitPressureGigapascals

func NSUnitPressureGigapascals() *NSUnitPressure

func NSUnitPressureHectopascals

func NSUnitPressureHectopascals() *NSUnitPressure

func NSUnitPressureInchesOfMercury

func NSUnitPressureInchesOfMercury() *NSUnitPressure

func NSUnitPressureKilopascals

func NSUnitPressureKilopascals() *NSUnitPressure

func NSUnitPressureMegapascals

func NSUnitPressureMegapascals() *NSUnitPressure

func NSUnitPressureMillibars

func NSUnitPressureMillibars() *NSUnitPressure

func NSUnitPressureMillimetersOfMercury

func NSUnitPressureMillimetersOfMercury() *NSUnitPressure

func NSUnitPressureNewtonsPerMetersSquared

func NSUnitPressureNewtonsPerMetersSquared() *NSUnitPressure

func NSUnitPressurePoundsForcePerSquareInch

func NSUnitPressurePoundsForcePerSquareInch() *NSUnitPressure

type NSUnitSpeed

type NSUnitSpeed struct {
	NSDimension
}

A unit of measure for speed.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitspeed

func NSUnitSpeedFromID

func NSUnitSpeedFromID(id objc.ID) *NSUnitSpeed

func NSUnitSpeedKilometersPerHour

func NSUnitSpeedKilometersPerHour() *NSUnitSpeed

func NSUnitSpeedKnots

func NSUnitSpeedKnots() *NSUnitSpeed

func NSUnitSpeedMetersPerSecond

func NSUnitSpeedMetersPerSecond() *NSUnitSpeed

func NSUnitSpeedMilesPerHour

func NSUnitSpeedMilesPerHour() *NSUnitSpeed

type NSUnitTemperature

type NSUnitTemperature struct {
	NSDimension
}

A unit of measure for temperature.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunittemperature

func NSUnitTemperatureCelsius

func NSUnitTemperatureCelsius() *NSUnitTemperature

func NSUnitTemperatureFahrenheit

func NSUnitTemperatureFahrenheit() *NSUnitTemperature

func NSUnitTemperatureFromID

func NSUnitTemperatureFromID(id objc.ID) *NSUnitTemperature

func NSUnitTemperatureKelvin

func NSUnitTemperatureKelvin() *NSUnitTemperature

type NSUnitVolume

type NSUnitVolume struct {
	NSDimension
}

A unit of measure for volume.

Apple documentation: https://developer.apple.com/documentation/foundation/nsunitvolume

func NSUnitVolumeAcreFeet

func NSUnitVolumeAcreFeet() *NSUnitVolume

func NSUnitVolumeBushels

func NSUnitVolumeBushels() *NSUnitVolume

func NSUnitVolumeCentiliters

func NSUnitVolumeCentiliters() *NSUnitVolume

func NSUnitVolumeCubicCentimeters

func NSUnitVolumeCubicCentimeters() *NSUnitVolume

func NSUnitVolumeCubicDecimeters

func NSUnitVolumeCubicDecimeters() *NSUnitVolume

func NSUnitVolumeCubicFeet

func NSUnitVolumeCubicFeet() *NSUnitVolume

func NSUnitVolumeCubicInches

func NSUnitVolumeCubicInches() *NSUnitVolume

func NSUnitVolumeCubicKilometers

func NSUnitVolumeCubicKilometers() *NSUnitVolume

func NSUnitVolumeCubicMeters

func NSUnitVolumeCubicMeters() *NSUnitVolume

func NSUnitVolumeCubicMiles

func NSUnitVolumeCubicMiles() *NSUnitVolume

func NSUnitVolumeCubicMillimeters

func NSUnitVolumeCubicMillimeters() *NSUnitVolume

func NSUnitVolumeCubicYards

func NSUnitVolumeCubicYards() *NSUnitVolume

func NSUnitVolumeCups

func NSUnitVolumeCups() *NSUnitVolume

func NSUnitVolumeDeciliters

func NSUnitVolumeDeciliters() *NSUnitVolume

func NSUnitVolumeFluidOunces

func NSUnitVolumeFluidOunces() *NSUnitVolume

func NSUnitVolumeFromID

func NSUnitVolumeFromID(id objc.ID) *NSUnitVolume

func NSUnitVolumeGallons

func NSUnitVolumeGallons() *NSUnitVolume

func NSUnitVolumeImperialFluidOunces

func NSUnitVolumeImperialFluidOunces() *NSUnitVolume

func NSUnitVolumeImperialGallons

func NSUnitVolumeImperialGallons() *NSUnitVolume

func NSUnitVolumeImperialPints

func NSUnitVolumeImperialPints() *NSUnitVolume

func NSUnitVolumeImperialQuarts

func NSUnitVolumeImperialQuarts() *NSUnitVolume

func NSUnitVolumeImperialTablespoons

func NSUnitVolumeImperialTablespoons() *NSUnitVolume

func NSUnitVolumeImperialTeaspoons

func NSUnitVolumeImperialTeaspoons() *NSUnitVolume

func NSUnitVolumeKiloliters

func NSUnitVolumeKiloliters() *NSUnitVolume

func NSUnitVolumeLiters

func NSUnitVolumeLiters() *NSUnitVolume

func NSUnitVolumeMegaliters

func NSUnitVolumeMegaliters() *NSUnitVolume

func NSUnitVolumeMetricCups

func NSUnitVolumeMetricCups() *NSUnitVolume

func NSUnitVolumeMilliliters

func NSUnitVolumeMilliliters() *NSUnitVolume

func NSUnitVolumePints

func NSUnitVolumePints() *NSUnitVolume

func NSUnitVolumeQuarts

func NSUnitVolumeQuarts() *NSUnitVolume

func NSUnitVolumeTablespoons

func NSUnitVolumeTablespoons() *NSUnitVolume

func NSUnitVolumeTeaspoons

func NSUnitVolumeTeaspoons() *NSUnitVolume

type NSUserActivity

type NSUserActivity struct {
	NSObject
}

A representation of the state of your app at a moment in time.

Apple documentation: https://developer.apple.com/documentation/foundation/nsuseractivity

func NSUserActivityFromID

func NSUserActivityFromID(id objc.ID) *NSUserActivity

func (*NSUserActivity) ActivityType deprecated

func (o *NSUserActivity) ActivityType() *NSString

Deprecated: Use initWithActivityType: with a specific activity type string

func (*NSUserActivity) AddUserInfoEntriesFromDictionary

func (o *NSUserActivity) AddUserInfoEntriesFromDictionary(otherDictionary *NSDictionary[objc.ID, objc.ID])

Adds the contents of the specified dictionary to the user info dictionary.

func (*NSUserActivity) BecomeCurrent

func (o *NSUserActivity) BecomeCurrent()

Marks the activity as currently in use by the user.

func (*NSUserActivity) Delegate

func (o *NSUserActivity) Delegate() NSUserActivityDelegate

func (*NSUserActivity) ExpirationDate

func (o *NSUserActivity) ExpirationDate() *NSDate

func (*NSUserActivity) GetContinuationStreamsWithCompletionHandler

func (o *NSUserActivity) GetContinuationStreamsWithCompletionHandler(completionHandler func(*NSInputStream, *NSOutputStream, unsafe.Pointer))

Requests streams back to the originating app.

func (*NSUserActivity) Init

func (o *NSUserActivity) Init() *NSUserActivity

Creates a user activity object using the first activity type declared in the app’s information property list file. Deprecated: Use initWithActivityType: with a specific activity type string

func (*NSUserActivity) InitWithActivityType

func (o *NSUserActivity) InitWithActivityType(activityType *NSString) *NSUserActivity

Creates a user activity object with the specified type.

func (*NSUserActivity) Invalidate

func (o *NSUserActivity) Invalidate()

Invalidates an activity and marks it as no longer eligible for continuation.

func (*NSUserActivity) IsEligibleForHandoff

func (o *NSUserActivity) IsEligibleForHandoff() bool

func (*NSUserActivity) IsEligibleForPublicIndexing

func (o *NSUserActivity) IsEligibleForPublicIndexing() bool

func (*NSUserActivity) IsEligibleForSearch

func (o *NSUserActivity) IsEligibleForSearch() bool

func (*NSUserActivity) Keywords

func (o *NSUserActivity) Keywords() *NSSet[*NSString]

func (*NSUserActivity) NeedsSave

func (o *NSUserActivity) NeedsSave() bool

func (*NSUserActivity) PersistentIdentifier

func (o *NSUserActivity) PersistentIdentifier() *NSString

func (*NSUserActivity) ReferrerURL

func (o *NSUserActivity) ReferrerURL() *NSURL

func (*NSUserActivity) RequiredUserInfoKeys

func (o *NSUserActivity) RequiredUserInfoKeys() *NSSet[*NSString]

func (*NSUserActivity) ResignCurrent

func (o *NSUserActivity) ResignCurrent()

Marks this activity object as inactive without invalidating it.

func (*NSUserActivity) SetDelegate

func (o *NSUserActivity) SetDelegate(delegate NSUserActivityDelegate)

func (*NSUserActivity) SetEligibleForHandoff

func (o *NSUserActivity) SetEligibleForHandoff(eligibleForHandoff bool)

func (*NSUserActivity) SetEligibleForPublicIndexing

func (o *NSUserActivity) SetEligibleForPublicIndexing(eligibleForPublicIndexing bool)

func (*NSUserActivity) SetEligibleForSearch

func (o *NSUserActivity) SetEligibleForSearch(eligibleForSearch bool)

func (*NSUserActivity) SetExpirationDate

func (o *NSUserActivity) SetExpirationDate(expirationDate *NSDate)

func (*NSUserActivity) SetKeywords

func (o *NSUserActivity) SetKeywords(keywords *NSSet[*NSString])

func (*NSUserActivity) SetNeedsSave

func (o *NSUserActivity) SetNeedsSave(needsSave bool)

func (*NSUserActivity) SetPersistentIdentifier

func (o *NSUserActivity) SetPersistentIdentifier(persistentIdentifier *NSString)

func (*NSUserActivity) SetReferrerURL

func (o *NSUserActivity) SetReferrerURL(referrerURL *NSURL)

func (*NSUserActivity) SetRequiredUserInfoKeys

func (o *NSUserActivity) SetRequiredUserInfoKeys(requiredUserInfoKeys *NSSet[*NSString])

func (*NSUserActivity) SetSupportsContinuationStreams

func (o *NSUserActivity) SetSupportsContinuationStreams(supportsContinuationStreams bool)

func (*NSUserActivity) SetTargetContentIdentifier

func (o *NSUserActivity) SetTargetContentIdentifier(targetContentIdentifier *NSString)

func (*NSUserActivity) SetTitle

func (o *NSUserActivity) SetTitle(title *NSString)

func (*NSUserActivity) SetUserInfo

func (o *NSUserActivity) SetUserInfo(userInfo *NSDictionary[objc.ID, objc.ID])

func (*NSUserActivity) SetWebpageURL

func (o *NSUserActivity) SetWebpageURL(webpageURL *NSURL)

func (*NSUserActivity) SupportsContinuationStreams

func (o *NSUserActivity) SupportsContinuationStreams() bool

func (*NSUserActivity) TargetContentIdentifier

func (o *NSUserActivity) TargetContentIdentifier() *NSString

func (*NSUserActivity) Title

func (o *NSUserActivity) Title() *NSString

func (*NSUserActivity) UserInfo

func (o *NSUserActivity) UserInfo() *NSDictionary[objc.ID, objc.ID]

func (*NSUserActivity) WebpageURL

func (o *NSUserActivity) WebpageURL() *NSURL

type NSUserActivityDelegate

type NSUserActivityDelegate interface {
}

NSUserActivityDelegate wraps the ObjC protocol NSUserActivityDelegate.

type NSUserAppleScriptTask

type NSUserAppleScriptTask struct {
	NSUserScriptTask
}

An object that executes AppleScript scripts.

Apple documentation: https://developer.apple.com/documentation/foundation/nsuserapplescripttask

func NSUserAppleScriptTaskFromID

func NSUserAppleScriptTaskFromID(id objc.ID) *NSUserAppleScriptTask

func (*NSUserAppleScriptTask) ExecuteWithAppleEventCompletionHandler

func (o *NSUserAppleScriptTask) ExecuteWithAppleEventCompletionHandler(event *NSAppleEventDescriptor, handler func(*NSAppleEventDescriptor, unsafe.Pointer))

Execute the AppleScript script by sending it the specified Apple event.

type NSUserAutomatorTask

type NSUserAutomatorTask struct {
	NSUserScriptTask
}

An object that executes Automator workflows.

Apple documentation: https://developer.apple.com/documentation/foundation/nsuserautomatortask

func NSUserAutomatorTaskFromID

func NSUserAutomatorTaskFromID(id objc.ID) *NSUserAutomatorTask

func (*NSUserAutomatorTask) ExecuteWithInputCompletionHandler

func (o *NSUserAutomatorTask) ExecuteWithInputCompletionHandler(input NSSecureCoding, handler func(objc.ID, unsafe.Pointer))

Execute the Automator workflow by providing it as securely coded input.

func (*NSUserAutomatorTask) SetVariables

func (o *NSUserAutomatorTask) SetVariables(variables *NSDictionary[*NSString, objc.ID])

func (*NSUserAutomatorTask) Variables

func (o *NSUserAutomatorTask) Variables() *NSDictionary[*NSString, objc.ID]

type NSUserDefaults

type NSUserDefaults struct {
	NSObject
}

An interface to the user’s defaults database, which stores system-wide and app-specific settings.

Apple documentation: https://developer.apple.com/documentation/foundation/nsuserdefaults

func NSUserDefaultsFromID

func NSUserDefaultsFromID(id objc.ID) *NSUserDefaults

func NSUserDefaultsStandardUserDefaults

func NSUserDefaultsStandardUserDefaults() *NSUserDefaults

+standardUserDefaults returns a global instance of NSUserDefaults configured to search the current application's search list.

func (*NSUserDefaults) AddSuiteNamed

func (o *NSUserDefaults) AddSuiteNamed(suiteName *NSString)

-addSuiteNamed: adds the full search list for 'suiteName' as a sub-search-list of the receiver's. The additional search lists are searched after the current domain, but before global defaults. Passing NSGlobalDomain or the current application's bundle identifier is unsupported.

func (*NSUserDefaults) ArrayForKey

func (o *NSUserDefaults) ArrayForKey(defaultName *NSString) *NSArray[objc.ID]

-arrayForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSArray.

func (*NSUserDefaults) BoolForKey

func (o *NSUserDefaults) BoolForKey(defaultName *NSString) bool

-boolForKey: is equivalent to -objectForKey:, except that it converts the returned value to a BOOL. If the value is an NSNumber, NO will be returned if the value is 0, YES otherwise. If the value is an NSString, values of "YES" or "1" will return YES, and values of "NO", "0", or any other string will return NO. If the value is absent or can't be converted to a BOOL, NO will be returned.

func (*NSUserDefaults) DataForKey

func (o *NSUserDefaults) DataForKey(defaultName *NSString) *NSData

-dataForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSData.

func (*NSUserDefaults) DictionaryForKey

func (o *NSUserDefaults) DictionaryForKey(defaultName *NSString) *NSDictionary[*NSString, objc.ID]

-dictionaryForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSDictionary.

func (*NSUserDefaults) DictionaryRepresentation

func (o *NSUserDefaults) DictionaryRepresentation() *NSDictionary[*NSString, objc.ID]

-dictionaryRepresentation returns a composite snapshot of the values in the receiver's search list, such that [[receiver dictionaryRepresentation] objectForKey:x] will return the same thing as [receiver objectForKey:x].

func (*NSUserDefaults) DoubleForKey

func (o *NSUserDefaults) DoubleForKey(defaultName *NSString) float64

-doubleForKey: is similar to -integerForKey:, except that it returns a double, and boolean values will not be converted.

func (*NSUserDefaults) FloatForKey

func (o *NSUserDefaults) FloatForKey(defaultName *NSString) float32

-floatForKey: is similar to -integerForKey:, except that it returns a float, and boolean values will not be converted.

func (*NSUserDefaults) Init

func (o *NSUserDefaults) Init() *NSUserDefaults

-init is equivalent to -initWithSuiteName:nil

func (*NSUserDefaults) InitWithSuiteName

func (o *NSUserDefaults) InitWithSuiteName(suitename *NSString) *NSUserDefaults

-initWithSuiteName: initializes an instance of NSUserDefaults that searches the shared preferences search list for the domain 'suitename'. For example, using the identifier of an application group will cause the receiver to search the preferences for that group. Passing the current application's bundle identifier, NSGlobalDomain, or the corresponding CFPreferences constants is an error. Passing nil will search the default search list.

func (*NSUserDefaults) InitWithUser

func (o *NSUserDefaults) InitWithUser(username *NSString) objc.ID

-initWithUser: is equivalent to -init Deprecated: Use -init instead

func (*NSUserDefaults) IntegerForKey

func (o *NSUserDefaults) IntegerForKey(defaultName *NSString) int

-integerForKey: is equivalent to -objectForKey:, except that it converts the returned value to an NSInteger. If the value is an NSNumber, the result of -integerValue will be returned. If the value is an NSString, it will be converted to NSInteger if possible. If the value is a boolean, it will be converted to either 1 for YES or 0 for NO. If the value is absent or can't be converted to an integer, 0 will be returned.

func (*NSUserDefaults) ObjectForKey

func (o *NSUserDefaults) ObjectForKey(defaultName *NSString) objc.ID

-objectForKey: will search the receiver's search list for a default with the key 'defaultName' and return it. If another process has changed defaults in the search list, NSUserDefaults will automatically update to the latest values. If the key in question has been marked as ubiquitous via a Defaults Configuration File, the latest value may not be immediately available, and the registered value will be returned instead.

func (*NSUserDefaults) ObjectIsForcedForKey

func (o *NSUserDefaults) ObjectIsForcedForKey(key *NSString) bool

func (*NSUserDefaults) ObjectIsForcedForKeyInDomain

func (o *NSUserDefaults) ObjectIsForcedForKeyInDomain(key *NSString, domain *NSString) bool

func (*NSUserDefaults) PersistentDomainForName

func (o *NSUserDefaults) PersistentDomainForName(domainName *NSString) *NSDictionary[*NSString, objc.ID]

-persistentDomainForName: returns a dictionary representation of the search list entry specified by 'domainName', the current user, and any host. Deprecated: Not recommended

func (*NSUserDefaults) PersistentDomainNames

func (o *NSUserDefaults) PersistentDomainNames() *NSArray[objc.ID]

-persistentDomainNames returns an incomplete list of domains that have preferences stored in them. Deprecated: Not recommended

func (*NSUserDefaults) RegisterDefaults

func (o *NSUserDefaults) RegisterDefaults(registrationDictionary *NSDictionary[*NSString, objc.ID])

-registerDefaults: adds the registrationDictionary to the last item in every search list. This means that after NSUserDefaults has looked for a value in every other valid location, it will look in registered defaults, making them useful as a "fallback" value. Registered defaults are never stored between runs of an application, and are visible only to the application that registers them. Default values from Defaults Configuration Files will automatically be registered.

func (*NSUserDefaults) RemoveObjectForKey

func (o *NSUserDefaults) RemoveObjectForKey(defaultName *NSString)

-removeObjectForKey: is equivalent to -[... setObject:nil forKey:defaultName]

func (*NSUserDefaults) RemovePersistentDomainForName

func (o *NSUserDefaults) RemovePersistentDomainForName(domainName *NSString)

-removePersistentDomainForName: removes all values from the search list entry specified by 'domainName', the current user, and any host. The change is persistent.

func (*NSUserDefaults) RemoveSuiteNamed

func (o *NSUserDefaults) RemoveSuiteNamed(suiteName *NSString)

-removeSuiteNamed: removes a sub-searchlist added via -addSuiteNamed:.

func (*NSUserDefaults) RemoveVolatileDomainForName

func (o *NSUserDefaults) RemoveVolatileDomainForName(domainName *NSString)

func (*NSUserDefaults) SetBoolForKey

func (o *NSUserDefaults) SetBoolForKey(value bool, defaultName *NSString)

-setBool:forKey: is equivalent to -setObject:forKey: except that the value is converted from a BOOL to an NSNumber.

func (*NSUserDefaults) SetDoubleForKey

func (o *NSUserDefaults) SetDoubleForKey(value float64, defaultName *NSString)

-setDouble:forKey: is equivalent to -setObject:forKey: except that the value is converted from a double to an NSNumber.

func (*NSUserDefaults) SetFloatForKey

func (o *NSUserDefaults) SetFloatForKey(value float32, defaultName *NSString)

-setFloat:forKey: is equivalent to -setObject:forKey: except that the value is converted from a float to an NSNumber.

func (*NSUserDefaults) SetIntegerForKey

func (o *NSUserDefaults) SetIntegerForKey(value int, defaultName *NSString)

-setInteger:forKey: is equivalent to -setObject:forKey: except that the value is converted from an NSInteger to an NSNumber.

func (*NSUserDefaults) SetObjectForKey

func (o *NSUserDefaults) SetObjectForKey(value objc.ID, defaultName *NSString)

-setObject:forKey: immediately stores a value (or removes the value if nil is passed as the value) for the provided key in the search list entry for the receiver's suite name in the current user and any host, then asynchronously stores the value persistently, where it is made available to other processes.

func (*NSUserDefaults) SetPersistentDomainForName

func (o *NSUserDefaults) SetPersistentDomainForName(domain *NSDictionary[*NSString, objc.ID], domainName *NSString)

-setPersistentDomain:forName: replaces all values in the search list entry specified by 'domainName', the current user, and any host, with the values in 'domain'. The change will be persisted.

func (*NSUserDefaults) SetURLForKey

func (o *NSUserDefaults) SetURLForKey(url *NSURL, defaultName *NSString)

-setURL:forKey is equivalent to -setObject:forKey: except that the value is archived to an NSData. Use -URLForKey: to retrieve values set this way.

func (*NSUserDefaults) SetVolatileDomainForName

func (o *NSUserDefaults) SetVolatileDomainForName(domain *NSDictionary[*NSString, objc.ID], domainName *NSString)

func (*NSUserDefaults) StringArrayForKey

func (o *NSUserDefaults) StringArrayForKey(defaultName *NSString) *NSArray[*NSString]

-stringForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSArray<NSString *>. Note that unlike -stringForKey:, NSNumbers are not converted to NSStrings.

func (*NSUserDefaults) StringForKey

func (o *NSUserDefaults) StringForKey(defaultName *NSString) *NSString

-stringForKey: is equivalent to -objectForKey:, except that it will convert NSNumber values to their NSString representation. If a non-string non-number value is found, nil will be returned.

func (*NSUserDefaults) Synchronize

func (o *NSUserDefaults) Synchronize() bool

-synchronize is deprecated and will be marked with the API_DEPRECATED macro in a future release. -synchronize blocks the calling thread until all in-progress set operations have completed. This is no longer necessary. Replacements for previous uses of -synchronize depend on what the intent of calling synchronize was. If you synchronized... - ...before reading in order to fetch updated values: remove the synchronize call - ...after writing in order to notify another program to read: the other program can use KVO to observe the default without needing to notify - ...before exiting in a non-app (command line tool, agent, or daemon) process: call CFPreferencesAppSynchronize(kCFPreferencesCurrentApplication) - ...for any other reason: remove the synchronize call

func (*NSUserDefaults) URLForKey

func (o *NSUserDefaults) URLForKey(defaultName *NSString) *NSURL

-URLForKey: is equivalent to -objectForKey: except that it converts the returned value to an NSURL. If the value is an NSString path, then it will construct a file URL to that path. If the value is an archived URL from -setURL:forKey: it will be unarchived. If the value is absent or can't be converted to an NSURL, nil will be returned.

func (*NSUserDefaults) VolatileDomainForName

func (o *NSUserDefaults) VolatileDomainForName(domainName *NSString) *NSDictionary[*NSString, objc.ID]

func (*NSUserDefaults) VolatileDomainNames

func (o *NSUserDefaults) VolatileDomainNames() *NSArray[*NSString]

type NSUserNotification

type NSUserNotification struct {
	NSObject
}

A notification that can be scheduled for display in the notification center.

Apple documentation: https://developer.apple.com/documentation/foundation/nsusernotification Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API

func NSUserNotificationFromID

func NSUserNotificationFromID(id objc.ID) *NSUserNotification

func (*NSUserNotification) ActionButtonTitle

func (o *NSUserNotification) ActionButtonTitle() *NSString

func (*NSUserNotification) ActivationType

func (*NSUserNotification) ActualDeliveryDate

func (o *NSUserNotification) ActualDeliveryDate() *NSDate

func (*NSUserNotification) AdditionalActions

func (o *NSUserNotification) AdditionalActions() *NSArray[*NSUserNotificationAction]

func (*NSUserNotification) AdditionalActivationAction

func (o *NSUserNotification) AdditionalActivationAction() *NSUserNotificationAction

func (*NSUserNotification) ContentImage

func (o *NSUserNotification) ContentImage() objc.ID

func (*NSUserNotification) DeliveryDate

func (o *NSUserNotification) DeliveryDate() *NSDate

func (*NSUserNotification) DeliveryRepeatInterval

func (o *NSUserNotification) DeliveryRepeatInterval() *NSDateComponents

func (*NSUserNotification) DeliveryTimeZone

func (o *NSUserNotification) DeliveryTimeZone() *NSTimeZone

func (*NSUserNotification) HasActionButton

func (o *NSUserNotification) HasActionButton() bool

func (*NSUserNotification) HasReplyButton

func (o *NSUserNotification) HasReplyButton() bool

func (*NSUserNotification) Identifier

func (o *NSUserNotification) Identifier() *NSString

func (*NSUserNotification) InformativeText

func (o *NSUserNotification) InformativeText() *NSString

func (*NSUserNotification) Init

func (*NSUserNotification) IsPresented

func (o *NSUserNotification) IsPresented() bool

func (*NSUserNotification) IsRemote

func (o *NSUserNotification) IsRemote() bool

func (*NSUserNotification) OtherButtonTitle

func (o *NSUserNotification) OtherButtonTitle() *NSString

func (*NSUserNotification) Response

func (o *NSUserNotification) Response() *NSAttributedString

func (*NSUserNotification) ResponsePlaceholder

func (o *NSUserNotification) ResponsePlaceholder() *NSString

func (*NSUserNotification) SetActionButtonTitle

func (o *NSUserNotification) SetActionButtonTitle(actionButtonTitle *NSString)

func (*NSUserNotification) SetAdditionalActions

func (o *NSUserNotification) SetAdditionalActions(additionalActions *NSArray[*NSUserNotificationAction])

func (*NSUserNotification) SetContentImage

func (o *NSUserNotification) SetContentImage(contentImage objc.ID)

func (*NSUserNotification) SetDeliveryDate

func (o *NSUserNotification) SetDeliveryDate(deliveryDate *NSDate)

func (*NSUserNotification) SetDeliveryRepeatInterval

func (o *NSUserNotification) SetDeliveryRepeatInterval(deliveryRepeatInterval *NSDateComponents)

func (*NSUserNotification) SetDeliveryTimeZone

func (o *NSUserNotification) SetDeliveryTimeZone(deliveryTimeZone *NSTimeZone)

func (*NSUserNotification) SetHasActionButton

func (o *NSUserNotification) SetHasActionButton(hasActionButton bool)

func (*NSUserNotification) SetHasReplyButton

func (o *NSUserNotification) SetHasReplyButton(hasReplyButton bool)

func (*NSUserNotification) SetIdentifier

func (o *NSUserNotification) SetIdentifier(identifier *NSString)

func (*NSUserNotification) SetInformativeText

func (o *NSUserNotification) SetInformativeText(informativeText *NSString)

func (*NSUserNotification) SetOtherButtonTitle

func (o *NSUserNotification) SetOtherButtonTitle(otherButtonTitle *NSString)

func (*NSUserNotification) SetResponsePlaceholder

func (o *NSUserNotification) SetResponsePlaceholder(responsePlaceholder *NSString)

func (*NSUserNotification) SetSoundName

func (o *NSUserNotification) SetSoundName(soundName *NSString)

func (*NSUserNotification) SetSubtitle

func (o *NSUserNotification) SetSubtitle(subtitle *NSString)

func (*NSUserNotification) SetTitle

func (o *NSUserNotification) SetTitle(title *NSString)

func (*NSUserNotification) SetUserInfo

func (o *NSUserNotification) SetUserInfo(userInfo *NSDictionary[*NSString, objc.ID])

func (*NSUserNotification) SoundName

func (o *NSUserNotification) SoundName() *NSString

func (*NSUserNotification) Subtitle

func (o *NSUserNotification) Subtitle() *NSString

func (*NSUserNotification) Title

func (o *NSUserNotification) Title() *NSString

func (*NSUserNotification) UserInfo

func (o *NSUserNotification) UserInfo() *NSDictionary[*NSString, objc.ID]

type NSUserNotificationAction

type NSUserNotificationAction struct {
	NSObject
}

An action that the user can take in response to receiving a notification.

Apple documentation: https://developer.apple.com/documentation/foundation/nsusernotificationaction Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API

func NSUserNotificationActionActionWithIdentifierTitle

func NSUserNotificationActionActionWithIdentifierTitle(identifier *NSString, title *NSString) *NSUserNotificationAction

Creates a user notification action with a specified identifier and title. Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API

func NSUserNotificationActionFromID

func NSUserNotificationActionFromID(id objc.ID) *NSUserNotificationAction

func (*NSUserNotificationAction) Identifier

func (o *NSUserNotificationAction) Identifier() *NSString

func (*NSUserNotificationAction) Title

func (o *NSUserNotificationAction) Title() *NSString

type NSUserNotificationActivationType

type NSUserNotificationActivationType int64

These constants describe how the user notification was activated. Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API

const (
	NSUserNotificationActivationTypeNone                    NSUserNotificationActivationType = 0
	NSUserNotificationActivationTypeContentsClicked         NSUserNotificationActivationType = 1
	NSUserNotificationActivationTypeActionButtonClicked     NSUserNotificationActivationType = 2
	NSUserNotificationActivationTypeReplied                 NSUserNotificationActivationType = 3
	NSUserNotificationActivationTypeAdditionalActionClicked NSUserNotificationActivationType = 4
)

func (NSUserNotificationActivationType) String

type NSUserNotificationCenter

type NSUserNotificationCenter struct {
	NSObject
}

An object that delivers notifications from apps to the user.

Apple documentation: https://developer.apple.com/documentation/foundation/nsusernotificationcenter Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API

func NSUserNotificationCenterDefaultUserNotificationCenter

func NSUserNotificationCenterDefaultUserNotificationCenter() *NSUserNotificationCenter

func NSUserNotificationCenterFromID

func NSUserNotificationCenterFromID(id objc.ID) *NSUserNotificationCenter

func (*NSUserNotificationCenter) Delegate

func (*NSUserNotificationCenter) DeliverNotification

func (o *NSUserNotificationCenter) DeliverNotification(notification *NSUserNotification)

Deliver the specified user notification.

func (*NSUserNotificationCenter) DeliveredNotifications

func (o *NSUserNotificationCenter) DeliveredNotifications() *NSArray[*NSUserNotification]

func (*NSUserNotificationCenter) RemoveAllDeliveredNotifications

func (o *NSUserNotificationCenter) RemoveAllDeliveredNotifications()

Remove all delivered user notifications from the user notification center.

func (*NSUserNotificationCenter) RemoveDeliveredNotification

func (o *NSUserNotificationCenter) RemoveDeliveredNotification(notification *NSUserNotification)

Remove a delivered user notification from the user notification center.

func (*NSUserNotificationCenter) RemoveScheduledNotification

func (o *NSUserNotificationCenter) RemoveScheduledNotification(notification *NSUserNotification)

Removes the specified user notification for the scheduled notifications.

func (*NSUserNotificationCenter) ScheduleNotification

func (o *NSUserNotificationCenter) ScheduleNotification(notification *NSUserNotification)

Schedules the specified user notification.

func (*NSUserNotificationCenter) ScheduledNotifications

func (o *NSUserNotificationCenter) ScheduledNotifications() *NSArray[*NSUserNotification]

func (*NSUserNotificationCenter) SetDelegate

func (*NSUserNotificationCenter) SetScheduledNotifications

func (o *NSUserNotificationCenter) SetScheduledNotifications(scheduledNotifications *NSArray[*NSUserNotification])

type NSUserNotificationCenterDelegate

type NSUserNotificationCenterDelegate interface {
}

NSUserNotificationCenterDelegate wraps the ObjC protocol NSUserNotificationCenterDelegate.

type NSUserScriptTask

type NSUserScriptTask struct {
	NSObject
}

An object that executes scripts.

Apple documentation: https://developer.apple.com/documentation/foundation/nsuserscripttask

func NSUserScriptTaskFromID

func NSUserScriptTaskFromID(id objc.ID) *NSUserScriptTask

func (*NSUserScriptTask) ExecuteWithCompletionHandler

func (o *NSUserScriptTask) ExecuteWithCompletionHandler(handler func(unsafe.Pointer))

Executes the script with no input and ignoring any result.

func (*NSUserScriptTask) InitWithURLError

func (o *NSUserScriptTask) InitWithURLError(url *NSURL) (*NSUserScriptTask, error)

Return a user script task instance given a URL for a script file.

func (*NSUserScriptTask) ScriptURL

func (o *NSUserScriptTask) ScriptURL() *NSURL

type NSUserUnixTask

type NSUserUnixTask struct {
	NSUserScriptTask
}

An object that executes unix applications.

Apple documentation: https://developer.apple.com/documentation/foundation/nsuserunixtask

func NSUserUnixTaskFromID

func NSUserUnixTaskFromID(id objc.ID) *NSUserUnixTask

func (*NSUserUnixTask) ExecuteWithArgumentsCompletionHandler

func (o *NSUserUnixTask) ExecuteWithArgumentsCompletionHandler(arguments *NSArray[*NSString], handler func(unsafe.Pointer))

Execute the unix script with the specified arguments.

func (*NSUserUnixTask) SetStandardError

func (o *NSUserUnixTask) SetStandardError(standardError *NSFileHandle)

func (*NSUserUnixTask) SetStandardInput

func (o *NSUserUnixTask) SetStandardInput(standardInput *NSFileHandle)

func (*NSUserUnixTask) SetStandardOutput

func (o *NSUserUnixTask) SetStandardOutput(standardOutput *NSFileHandle)

func (*NSUserUnixTask) StandardError

func (o *NSUserUnixTask) StandardError() *NSFileHandle

func (*NSUserUnixTask) StandardInput

func (o *NSUserUnixTask) StandardInput() *NSFileHandle

func (*NSUserUnixTask) StandardOutput

func (o *NSUserUnixTask) StandardOutput() *NSFileHandle

type NSValue

type NSValue struct {
	NSObject
}

A simple container for a single C or Objective-C data item.

Apple documentation: https://developer.apple.com/documentation/foundation/nsvalue

func NSValueFromID

func NSValueFromID(id objc.ID) *NSValue

func NSValueValueWithBytesObjCType

func NSValueValueWithBytesObjCType(value unsafe.Pointer, type_ string) *NSValue

Creates a value object containing the specified value, interpreted with the specified Objective-C type.

func NSValueValueWithEdgeInsets

func NSValueValueWithEdgeInsets(insets NSEdgeInsets) *NSValue

Creates a new value object containing the specified edge insets structure.

func NSValueValueWithNonretainedObject

func NSValueValueWithNonretainedObject(anObject objc.ID) *NSValue

Creates a value object containing the specified object.

func NSValueValueWithObjCType

func NSValueValueWithObjCType(value unsafe.Pointer, type_ string) *NSValue

Creates a value object containing the specified value, interpreted with the specified Objective-C type.

func NSValueValueWithPoint

func NSValueValueWithPoint(point corefoundation.CGPoint) *NSValue

Creates a new value object containing the specified Foundation point structure.

func NSValueValueWithPointer

func NSValueValueWithPointer(pointer unsafe.Pointer) *NSValue

Creates a value object containing the specified pointer.

func NSValueValueWithRange

func NSValueValueWithRange(range_ NSRange) *NSValue

Creates a new value object containing the specified Foundation range structure.

func NSValueValueWithRect

func NSValueValueWithRect(rect corefoundation.CGRect) *NSValue

Creates a new value object containing the specified Foundation rectangle structure.

func NSValueValueWithSize

func NSValueValueWithSize(size corefoundation.CGSize) *NSValue

Creates a new value object containing the specified Foundation size structure.

func (*NSValue) EdgeInsetsValue

func (o *NSValue) EdgeInsetsValue() NSEdgeInsets

func (*NSValue) GetValue

func (o *NSValue) GetValue(value unsafe.Pointer)

Copies the value into the specified buffer. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSValue) GetValueSize

func (o *NSValue) GetValueSize(value unsafe.Pointer, size uint)

Copies the value into the specified buffer.

func (*NSValue) InitWithBytesObjCType

func (o *NSValue) InitWithBytesObjCType(value unsafe.Pointer, type_ string) *NSValue

Initializes a value object to contain the specified value, interpreted with the specified Objective-C type.

func (*NSValue) InitWithCoder

func (o *NSValue) InitWithCoder(coder *NSCoder) *NSValue

func (*NSValue) IsEqualToValue

func (o *NSValue) IsEqualToValue(value *NSValue) bool

Returns a Boolean value that indicates whether the value object and another value object are equal.

func (*NSValue) NonretainedObjectValue

func (o *NSValue) NonretainedObjectValue() objc.ID

func (*NSValue) ObjCType

func (o *NSValue) ObjCType() unsafe.Pointer

func (*NSValue) PointValue

func (o *NSValue) PointValue() corefoundation.CGPoint

func (*NSValue) PointerValue

func (o *NSValue) PointerValue() unsafe.Pointer

func (*NSValue) RangeValue

func (o *NSValue) RangeValue() NSRange

func (*NSValue) RectValue

func (o *NSValue) RectValue() corefoundation.CGRect

func (*NSValue) SizeValue

func (o *NSValue) SizeValue() corefoundation.CGSize

type NSValueTransformer

type NSValueTransformer struct {
	NSObject
}

An abstract class used to transform values from one representation to another.

Apple documentation: https://developer.apple.com/documentation/foundation/nsvaluetransformer

func NSValueTransformerFromID

func NSValueTransformerFromID(id objc.ID) *NSValueTransformer

func NSValueTransformerValueTransformerForName

func NSValueTransformerValueTransformerForName(name *NSString) *NSValueTransformer

func (*NSValueTransformer) ReverseTransformedValue

func (o *NSValueTransformer) ReverseTransformedValue(value objc.ID) objc.ID

func (*NSValueTransformer) TransformedValue

func (o *NSValueTransformer) TransformedValue(value objc.ID) objc.ID

type NSVolumeEnumerationOptions

type NSVolumeEnumerationOptions uint64
const (
	NSVolumeEnumerationSkipHiddenVolumes        NSVolumeEnumerationOptions = 2
	NSVolumeEnumerationProduceFileReferenceURLs NSVolumeEnumerationOptions = 4
)

func (NSVolumeEnumerationOptions) String

type NSWhoseSpecifier

type NSWhoseSpecifier struct {
	NSScriptObjectSpecifier
}

A specifier that indicates every object in a collection matching a condition.

Apple documentation: https://developer.apple.com/documentation/foundation/nswhosespecifier

func NSWhoseSpecifierFromID

func NSWhoseSpecifierFromID(id objc.ID) *NSWhoseSpecifier

func (*NSWhoseSpecifier) EndSubelementIdentifier

func (o *NSWhoseSpecifier) EndSubelementIdentifier() NSWhoseSubelementIdentifier

func (*NSWhoseSpecifier) EndSubelementIndex

func (o *NSWhoseSpecifier) EndSubelementIndex() int

func (*NSWhoseSpecifier) InitWithCoder

func (o *NSWhoseSpecifier) InitWithCoder(inCoder *NSCoder) *NSWhoseSpecifier

func (*NSWhoseSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyTest

func (o *NSWhoseSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyTest(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString, test *NSScriptWhoseTest) *NSWhoseSpecifier

Returns an NSWhoseSpecifier object initialized with the given attributes.

func (*NSWhoseSpecifier) SetEndSubelementIdentifier

func (o *NSWhoseSpecifier) SetEndSubelementIdentifier(endSubelementIdentifier NSWhoseSubelementIdentifier)

func (*NSWhoseSpecifier) SetEndSubelementIndex

func (o *NSWhoseSpecifier) SetEndSubelementIndex(endSubelementIndex int)

func (*NSWhoseSpecifier) SetStartSubelementIdentifier

func (o *NSWhoseSpecifier) SetStartSubelementIdentifier(startSubelementIdentifier NSWhoseSubelementIdentifier)

func (*NSWhoseSpecifier) SetStartSubelementIndex

func (o *NSWhoseSpecifier) SetStartSubelementIndex(startSubelementIndex int)

func (*NSWhoseSpecifier) SetTest

func (o *NSWhoseSpecifier) SetTest(test *NSScriptWhoseTest)

func (*NSWhoseSpecifier) StartSubelementIdentifier

func (o *NSWhoseSpecifier) StartSubelementIdentifier() NSWhoseSubelementIdentifier

func (*NSWhoseSpecifier) StartSubelementIndex

func (o *NSWhoseSpecifier) StartSubelementIndex() int

func (*NSWhoseSpecifier) Test

type NSWhoseSubelementIdentifier

type NSWhoseSubelementIdentifier uint64

NSWhoseSpecifier uses these constants to specify sub-elements within the collection of objects being tested that pass the specifier’s test.

const (
	NSIndexSubelement  NSWhoseSubelementIdentifier = 0
	NSEverySubelement  NSWhoseSubelementIdentifier = 1
	NSMiddleSubelement NSWhoseSubelementIdentifier = 2
	NSRandomSubelement NSWhoseSubelementIdentifier = 3
	NSNoSubelement     NSWhoseSubelementIdentifier = 4
)

func (NSWhoseSubelementIdentifier) String

type NSXMLDTD

type NSXMLDTD struct {
	NSXMLNode
}

A representation of a Document Type Definition.

Apple documentation: https://developer.apple.com/documentation/foundation/nsxmldtd

func NSXMLDTDFromID

func NSXMLDTDFromID(id objc.ID) *NSXMLDTD

func (*NSXMLDTD) AddChild

func (o *NSXMLDTD) AddChild(child *NSXMLNode)

@method addChild: @abstract Adds a child to the end of the existing children.

func (*NSXMLDTD) AttributeDeclarationForNameElementName

func (o *NSXMLDTD) AttributeDeclarationForNameElementName(name *NSString, elementName *NSString) *NSXMLDTDNode

@method attributeDeclarationForName: @abstract Returns the attribute declaration matching this name.

func (*NSXMLDTD) ElementDeclarationForName

func (o *NSXMLDTD) ElementDeclarationForName(name *NSString) *NSXMLDTDNode

@method elementDeclarationForName: @abstract Returns the element declaration matching this name.

func (*NSXMLDTD) EntityDeclarationForName

func (o *NSXMLDTD) EntityDeclarationForName(name *NSString) *NSXMLDTDNode

@method entityDeclarationForName: @abstract Returns the entity declaration matching this name.

func (*NSXMLDTD) Init

func (o *NSXMLDTD) Init() *NSXMLDTD

func (*NSXMLDTD) InsertChildAtIndex

func (o *NSXMLDTD) InsertChildAtIndex(child *NSXMLNode, index uint)

@method insertChild:atIndex: @abstract Inserts a child at a particular index.

func (*NSXMLDTD) InsertChildrenAtIndex

func (o *NSXMLDTD) InsertChildrenAtIndex(children *NSArray[*NSXMLNode], index uint)

@method insertChildren:atIndex: @abstract Insert several children at a particular index.

func (*NSXMLDTD) NotationDeclarationForName

func (o *NSXMLDTD) NotationDeclarationForName(name *NSString) *NSXMLDTDNode

@method notationDeclarationForName: @abstract Returns the notation declaration matching this name.

func (*NSXMLDTD) PublicID

func (o *NSXMLDTD) PublicID() *NSString

@abstract Sets the public id. This identifier should be in the default catalog in /etc/xml/catalog or in a path specified by the environment variable XML_CATALOG_FILES. When the public id is set the system id must also be set.

func (*NSXMLDTD) RemoveChildAtIndex

func (o *NSXMLDTD) RemoveChildAtIndex(index uint)

@method removeChildAtIndex: @abstract Removes a child at a particular index.

func (*NSXMLDTD) ReplaceChildAtIndexWithNode

func (o *NSXMLDTD) ReplaceChildAtIndexWithNode(index uint, node *NSXMLNode)

@method replaceChildAtIndex:withNode: @abstract Replaces a child at a particular index with another child.

func (*NSXMLDTD) SetChildren

func (o *NSXMLDTD) SetChildren(children *NSArray[*NSXMLNode])

@method setChildren: @abstract Removes all existing children and replaces them with the new children. Set children to nil to simply remove all children.

func (*NSXMLDTD) SetPublicID

func (o *NSXMLDTD) SetPublicID(publicID *NSString)

func (*NSXMLDTD) SetSystemID

func (o *NSXMLDTD) SetSystemID(systemID *NSString)

func (*NSXMLDTD) SystemID

func (o *NSXMLDTD) SystemID() *NSString

@abstract Sets the system id. This should be a URL that points to a valid DTD.

type NSXMLDTDNode

type NSXMLDTDNode struct {
	NSXMLNode
}

A representation of element, attribute-list, entity, and notation declarations in a Document Type Definition.

Apple documentation: https://developer.apple.com/documentation/foundation/nsxmldtdnode

func NSXMLDTDNodeFromID

func NSXMLDTDNodeFromID(id objc.ID) *NSXMLDTDNode

func NSXMLDTDPredefinedEntityDeclarationForName

func NSXMLDTDPredefinedEntityDeclarationForName(name *NSString) *NSXMLDTDNode

@method predefinedEntityDeclarationForName: @abstract Returns the predefined entity declaration matching this name. @discussion The five predefined entities are <ul><li>&amp;lt; - &lt;</li><li>&amp;gt; - &gt;</li><li>&amp;amp; - &amp;</li><li>&amp;quot; - &quot;</li><li>&amp;apos; - &amp;</li></ul>

func (*NSXMLDTDNode) DTDKind

func (o *NSXMLDTDNode) DTDKind() NSXMLDTDNodeKind

@abstract Sets the DTD sub kind.

func (*NSXMLDTDNode) Init

func (o *NSXMLDTDNode) Init() *NSXMLDTDNode

func (*NSXMLDTDNode) InitWithKindOptions

func (o *NSXMLDTDNode) InitWithKindOptions(kind NSXMLNodeKind, options NSXMLNodeOptions) *NSXMLDTDNode

func (*NSXMLDTDNode) InitWithXMLString

func (o *NSXMLDTDNode) InitWithXMLString(string_ *NSString) *NSXMLDTDNode

@method initWithXMLString: @abstract Returns an element, attribute, entity, or notation DTD node based on the full XML string.

func (*NSXMLDTDNode) IsExternal

func (o *NSXMLDTDNode) IsExternal() bool

@abstract True if the system id is set. Valid for entities and notations.

func (*NSXMLDTDNode) NotationName

func (o *NSXMLDTDNode) NotationName() *NSString

@abstract Set the notation name. Valid for entities only.

func (*NSXMLDTDNode) PublicID

func (o *NSXMLDTDNode) PublicID() *NSString

@abstract Sets the public id. This identifier should be in the default catalog in /etc/xml/catalog or in a path specified by the environment variable XML_CATALOG_FILES. When the public id is set the system id must also be set. Valid for entities and notations.

func (*NSXMLDTDNode) SetDTDKind

func (o *NSXMLDTDNode) SetDTDKind(dTDKind NSXMLDTDNodeKind)

func (*NSXMLDTDNode) SetNotationName

func (o *NSXMLDTDNode) SetNotationName(notationName *NSString)

func (*NSXMLDTDNode) SetPublicID

func (o *NSXMLDTDNode) SetPublicID(publicID *NSString)

func (*NSXMLDTDNode) SetSystemID

func (o *NSXMLDTDNode) SetSystemID(systemID *NSString)

func (*NSXMLDTDNode) SystemID

func (o *NSXMLDTDNode) SystemID() *NSString

@abstract Sets the system id. This should be a URL that points to a valid DTD. Valid for entities and notations.

type NSXMLDTDNodeKind

type NSXMLDTDNodeKind uint64

The type defined for the constants that specify the kind and subkind of DTD declaration represented by an NSXMLDTDNode object. You set the DTD-node kind using the doc:nsxmldtdnode/1806486-setdtdkind method.

const (
	NSXMLEntityGeneralKind               NSXMLDTDNodeKind = 1
	NSXMLEntityParsedKind                NSXMLDTDNodeKind = 2
	NSXMLEntityUnparsedKind              NSXMLDTDNodeKind = 3
	NSXMLEntityParameterKind             NSXMLDTDNodeKind = 4
	NSXMLEntityPredefined                NSXMLDTDNodeKind = 5
	NSXMLAttributeCDATAKind              NSXMLDTDNodeKind = 6
	NSXMLAttributeIDKind                 NSXMLDTDNodeKind = 7
	NSXMLAttributeIDRefKind              NSXMLDTDNodeKind = 8
	NSXMLAttributeIDRefsKind             NSXMLDTDNodeKind = 9
	NSXMLAttributeEntityKind             NSXMLDTDNodeKind = 10
	NSXMLAttributeEntitiesKind           NSXMLDTDNodeKind = 11
	NSXMLAttributeNMTokenKind            NSXMLDTDNodeKind = 12
	NSXMLAttributeNMTokensKind           NSXMLDTDNodeKind = 13
	NSXMLAttributeEnumerationKind        NSXMLDTDNodeKind = 14
	NSXMLAttributeNotationKind           NSXMLDTDNodeKind = 15
	NSXMLElementDeclarationUndefinedKind NSXMLDTDNodeKind = 16
	NSXMLElementDeclarationEmptyKind     NSXMLDTDNodeKind = 17
	NSXMLElementDeclarationAnyKind       NSXMLDTDNodeKind = 18
	NSXMLElementDeclarationMixedKind     NSXMLDTDNodeKind = 19
	NSXMLElementDeclarationElementKind   NSXMLDTDNodeKind = 20
)

func (NSXMLDTDNodeKind) String

func (e NSXMLDTDNodeKind) String() string

type NSXMLDocument

type NSXMLDocument struct {
	NSXMLNode
}

An XML document as internalized into a logical tree structure.

Apple documentation: https://developer.apple.com/documentation/foundation/nsxmldocument

func NSXMLDocumentFromID

func NSXMLDocumentFromID(id objc.ID) *NSXMLDocument

func (*NSXMLDocument) AddChild

func (o *NSXMLDocument) AddChild(child *NSXMLNode)

@method addChild: @abstract Adds a child to the end of the existing children.

func (*NSXMLDocument) CharacterEncoding

func (o *NSXMLDocument) CharacterEncoding() *NSString

@abstract Sets the character encoding to an IANA type.

func (*NSXMLDocument) DTD

func (o *NSXMLDocument) DTD() *NSXMLDTD

@abstract Set the associated DTD. This DTD will be output with the document.

func (*NSXMLDocument) DocumentContentKind

func (o *NSXMLDocument) DocumentContentKind() NSXMLDocumentContentKind

@abstract The kind of document.

func (*NSXMLDocument) Init

func (o *NSXMLDocument) Init() *NSXMLDocument

func (*NSXMLDocument) InitWithContentsOfURLOptionsError

func (o *NSXMLDocument) InitWithContentsOfURLOptionsError(url *NSURL, mask NSXMLNodeOptions) (*NSXMLDocument, error)

@method initWithContentsOfURL:options:error: @abstract Returns a document created from the contents of an XML or HTML URL. Connection problems such as 404, parse errors are returned in <tt>error</tt>.

func (*NSXMLDocument) InitWithDataOptionsError

func (o *NSXMLDocument) InitWithDataOptionsError(data *NSData, mask NSXMLNodeOptions) (*NSXMLDocument, error)

@method initWithData:options:error: @abstract Returns a document created from data. Parse errors are returned in <tt>error</tt>.

func (*NSXMLDocument) InitWithRootElement

func (o *NSXMLDocument) InitWithRootElement(element *NSXMLElement) *NSXMLDocument

@method initWithRootElement: @abstract Returns a document with a single child, the root element.

func (*NSXMLDocument) InitWithXMLStringOptionsError

func (o *NSXMLDocument) InitWithXMLStringOptionsError(string_ *NSString, mask NSXMLNodeOptions) (*NSXMLDocument, error)

@method initWithXMLString:options:error: @abstract Returns a document created from either XML or HTML, if the HTMLTidy option is set. Parse errors are returned in <tt>error</tt>.

func (*NSXMLDocument) InsertChildAtIndex

func (o *NSXMLDocument) InsertChildAtIndex(child *NSXMLNode, index uint)

@method insertChild:atIndex: @abstract Inserts a child at a particular index.

func (*NSXMLDocument) InsertChildrenAtIndex

func (o *NSXMLDocument) InsertChildrenAtIndex(children *NSArray[*NSXMLNode], index uint)

@method insertChildren:atIndex: @abstract Insert several children at a particular index.

func (*NSXMLDocument) IsStandalone

func (o *NSXMLDocument) IsStandalone() bool

@abstract Set whether this document depends on an external DTD. If this option is set the standalone declaration will appear on output.

func (*NSXMLDocument) MIMEType

func (o *NSXMLDocument) MIMEType() *NSString

@abstract Set the MIME type, eg text/xml.

func (*NSXMLDocument) ObjectByApplyingXSLTArgumentsError

func (o *NSXMLDocument) ObjectByApplyingXSLTArgumentsError(xslt *NSData, arguments *NSDictionary[*NSString, *NSString]) (objc.ID, error)

@method objectByApplyingXSLT:arguments:error: @abstract Applies XSLT with arguments (NSString key/value pairs) to this document, returning a new document.

func (*NSXMLDocument) ObjectByApplyingXSLTAtURLArgumentsError

func (o *NSXMLDocument) ObjectByApplyingXSLTAtURLArgumentsError(xsltURL *NSURL, argument *NSDictionary[*NSString, *NSString]) (objc.ID, error)

@method objectByApplyingXSLTAtURL:arguments:error: @abstract Applies the XSLT at a URL with arguments (NSString key/value pairs) to this document, returning a new document. Error may contain a connection error from the URL.

func (*NSXMLDocument) ObjectByApplyingXSLTStringArgumentsError

func (o *NSXMLDocument) ObjectByApplyingXSLTStringArgumentsError(xslt *NSString, arguments *NSDictionary[*NSString, *NSString]) (objc.ID, error)

@method objectByApplyingXSLTString:arguments:error: @abstract Applies XSLT as expressed by a string with arguments (NSString key/value pairs) to this document, returning a new document.

func (*NSXMLDocument) RemoveChildAtIndex

func (o *NSXMLDocument) RemoveChildAtIndex(index uint)

@method removeChildAtIndex:atIndex: @abstract Removes a child at a particular index.

func (*NSXMLDocument) ReplaceChildAtIndexWithNode

func (o *NSXMLDocument) ReplaceChildAtIndexWithNode(index uint, node *NSXMLNode)

@method replaceChildAtIndex:withNode: @abstract Replaces a child at a particular index with another child.

func (*NSXMLDocument) RootElement

func (o *NSXMLDocument) RootElement() *NSXMLElement

@method rootElement @abstract The root element.

func (*NSXMLDocument) SetCharacterEncoding

func (o *NSXMLDocument) SetCharacterEncoding(characterEncoding *NSString)

func (*NSXMLDocument) SetChildren

func (o *NSXMLDocument) SetChildren(children *NSArray[*NSXMLNode])

@method setChildren: @abstract Removes all existing children and replaces them with the new children. Set children to nil to simply remove all children.

func (*NSXMLDocument) SetDTD

func (o *NSXMLDocument) SetDTD(dTD *NSXMLDTD)

func (*NSXMLDocument) SetDocumentContentKind

func (o *NSXMLDocument) SetDocumentContentKind(documentContentKind NSXMLDocumentContentKind)

func (*NSXMLDocument) SetMIMEType

func (o *NSXMLDocument) SetMIMEType(mIMEType *NSString)

func (*NSXMLDocument) SetRootElement

func (o *NSXMLDocument) SetRootElement(root *NSXMLElement)

@method setRootElement: @abstract Set the root element. Removes all other children including comments and processing-instructions.

func (*NSXMLDocument) SetStandalone

func (o *NSXMLDocument) SetStandalone(standalone bool)

func (*NSXMLDocument) ValidateAndReturnError

func (o *NSXMLDocument) ValidateAndReturnError() (bool, error)

func (*NSXMLDocument) XMLData

func (o *NSXMLDocument) XMLData() *NSData

@abstract Invokes XMLDataWithOptions with NSXMLNodeOptionsNone.

func (*NSXMLDocument) XMLDataWithOptions

func (o *NSXMLDocument) XMLDataWithOptions(options NSXMLNodeOptions) *NSData

@method XMLDataWithOptions: @abstract The representation of this node as it would appear in an XML document, encoded based on characterEncoding.

type NSXMLDocumentContentKind

type NSXMLDocumentContentKind uint64

Type used to define the kind of document content.

const (
	NSXMLDocumentXMLKind   NSXMLDocumentContentKind = 0
	NSXMLDocumentXHTMLKind NSXMLDocumentContentKind = 1
	NSXMLDocumentHTMLKind  NSXMLDocumentContentKind = 2
	NSXMLDocumentTextKind  NSXMLDocumentContentKind = 3
)

func (NSXMLDocumentContentKind) String

func (e NSXMLDocumentContentKind) String() string

type NSXMLElement

type NSXMLElement struct {
	NSXMLNode
}

The element nodes in an XML tree structure.

Apple documentation: https://developer.apple.com/documentation/foundation/nsxmlelement

func NSXMLElementFromID

func NSXMLElementFromID(id objc.ID) *NSXMLElement

func (*NSXMLElement) AddAttribute

func (o *NSXMLElement) AddAttribute(attribute *NSXMLNode)

@method addAttribute: @abstract Adds an attribute. Attributes with duplicate names are not added.

func (*NSXMLElement) AddChild

func (o *NSXMLElement) AddChild(child *NSXMLNode)

@method addChild: @abstract Adds a child to the end of the existing children.

func (*NSXMLElement) AddNamespace

func (o *NSXMLElement) AddNamespace(aNamespace *NSXMLNode)

@method addNamespace:URI: @abstract Adds a namespace. Namespaces with duplicate names are not added.

func (*NSXMLElement) AttributeForLocalNameURI

func (o *NSXMLElement) AttributeForLocalNameURI(localName *NSString, uRI *NSString) *NSXMLNode

@method attributeForLocalName:URI: @abstract Returns an attribute matching this localname URI pair.

func (*NSXMLElement) AttributeForName

func (o *NSXMLElement) AttributeForName(name *NSString) *NSXMLNode

@method attributeForName: @abstract Returns an attribute matching this name.

func (*NSXMLElement) Attributes

func (o *NSXMLElement) Attributes() *NSArray[*NSXMLNode]

@abstract Set the attributes. In the case of duplicate names, the first attribute with the name is used.

func (*NSXMLElement) ElementsForLocalNameURI

func (o *NSXMLElement) ElementsForLocalNameURI(localName *NSString, uRI *NSString) *NSArray[*NSXMLElement]

@method elementsForLocalName:URI @abstract Returns all of the child elements that match this localname URI pair.

func (*NSXMLElement) ElementsForName

func (o *NSXMLElement) ElementsForName(name *NSString) *NSArray[*NSXMLElement]

@method elementsForName: @abstract Returns all of the child elements that match this name.

func (*NSXMLElement) InitWithKindOptions

func (o *NSXMLElement) InitWithKindOptions(kind NSXMLNodeKind, options NSXMLNodeOptions) *NSXMLElement

func (*NSXMLElement) InitWithName

func (o *NSXMLElement) InitWithName(name *NSString) *NSXMLElement

@method initWithName: @abstract Returns an element <tt>&lt;name>&lt;/name></tt>.

func (*NSXMLElement) InitWithNameStringValue

func (o *NSXMLElement) InitWithNameStringValue(name *NSString, string_ *NSString) *NSXMLElement

@method initWithName:stringValue: @abstract Returns an element with a single text node child <tt>&lt;name>string&lt;/name></tt>.

func (*NSXMLElement) InitWithNameURI

func (o *NSXMLElement) InitWithNameURI(name *NSString, uRI *NSString) *NSXMLElement

@method initWithName:URI: @abstract Returns an element whose full QName is specified.

func (*NSXMLElement) InitWithXMLStringError

func (o *NSXMLElement) InitWithXMLStringError(string_ *NSString) (*NSXMLElement, error)

@method initWithXMLString:error: @abstract Returns an element created from a string. Parse errors are collected in <tt>error</tt>.

func (*NSXMLElement) InsertChildAtIndex

func (o *NSXMLElement) InsertChildAtIndex(child *NSXMLNode, index uint)

@method insertChild:atIndex: @abstract Inserts a child at a particular index.

func (*NSXMLElement) InsertChildrenAtIndex

func (o *NSXMLElement) InsertChildrenAtIndex(children *NSArray[*NSXMLNode], index uint)

@method insertChildren:atIndex: @abstract Insert several children at a particular index.

func (*NSXMLElement) NamespaceForPrefix

func (o *NSXMLElement) NamespaceForPrefix(name *NSString) *NSXMLNode

@method namespaceForPrefix: @abstract Returns the namespace matching this prefix.

func (*NSXMLElement) Namespaces

func (o *NSXMLElement) Namespaces() *NSArray[*NSXMLNode]

@abstract Set the namespaces. In the case of duplicate names, the first namespace with the name is used.

func (*NSXMLElement) NormalizeAdjacentTextNodesPreservingCDATA

func (o *NSXMLElement) NormalizeAdjacentTextNodesPreservingCDATA(preserve bool)

@method normalizeAdjacentTextNodesPreservingCDATA: @abstract Adjacent text nodes are coalesced. If the node's value is the empty string, it is removed. This should be called with a value of NO before using XQuery or XPath.

func (*NSXMLElement) RemoveAttributeForName

func (o *NSXMLElement) RemoveAttributeForName(name *NSString)

@method removeAttributeForName: @abstract Removes an attribute based on its name.

func (*NSXMLElement) RemoveChildAtIndex

func (o *NSXMLElement) RemoveChildAtIndex(index uint)

@method removeChildAtIndex:atIndex: @abstract Removes a child at a particular index.

func (*NSXMLElement) RemoveNamespaceForPrefix

func (o *NSXMLElement) RemoveNamespaceForPrefix(name *NSString)

@method addNamespace:URI: @abstract Removes a namespace with a particular name.

func (*NSXMLElement) ReplaceChildAtIndexWithNode

func (o *NSXMLElement) ReplaceChildAtIndexWithNode(index uint, node *NSXMLNode)

@method replaceChildAtIndex:withNode: @abstract Replaces a child at a particular index with another child.

func (*NSXMLElement) ResolveNamespaceForName

func (o *NSXMLElement) ResolveNamespaceForName(name *NSString) *NSXMLNode

@method resolveNamespaceForName: @abstract Returns the namespace who matches the prefix of the name given. Looks in the entire namespace chain.

func (*NSXMLElement) ResolvePrefixForNamespaceURI

func (o *NSXMLElement) ResolvePrefixForNamespaceURI(namespaceURI *NSString) *NSString

@method resolvePrefixForNamespaceURI: @abstract Returns the URI of this prefix. Looks in the entire namespace chain.

func (*NSXMLElement) SetAttributes

func (o *NSXMLElement) SetAttributes(attributes *NSArray[*NSXMLNode])

func (*NSXMLElement) SetAttributesAsDictionary

func (o *NSXMLElement) SetAttributesAsDictionary(attributes *NSDictionary[objc.ID, objc.ID])

@method setAttributesAsDictionary: @abstract Set the attributes base on a name-value dictionary. @discussion This method is deprecated and does not function correctly. Use -setAttributesWithDictionary: instead. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSXMLElement) SetAttributesWithDictionary

func (o *NSXMLElement) SetAttributesWithDictionary(attributes *NSDictionary[*NSString, *NSString])

@method setAttributesWithDictionary: @abstract Set the attributes based on a name-value dictionary.

func (*NSXMLElement) SetChildren

func (o *NSXMLElement) SetChildren(children *NSArray[*NSXMLNode])

@method setChildren: @abstract Removes all existing children and replaces them with the new children. Set children to nil to simply remove all children.

func (*NSXMLElement) SetNamespaces

func (o *NSXMLElement) SetNamespaces(namespaces *NSArray[*NSXMLNode])

type NSXMLNode

type NSXMLNode struct {
	NSObject
}

The nodes in the abstract, logical tree structure that represents an XML document.

Apple documentation: https://developer.apple.com/documentation/foundation/nsxmlnode

func NSXMLNodeFromID

func NSXMLNodeFromID(id objc.ID) *NSXMLNode

func NSXMLNodePredefinedNamespaceForPrefix

func NSXMLNodePredefinedNamespaceForPrefix(name *NSString) *NSXMLNode

@method predefinedNamespaceForPrefix: @abstract Returns the namespace belonging to one of the predefined namespaces xml, xs, or xsi

func (*NSXMLNode) CanonicalXMLStringPreservingComments

func (o *NSXMLNode) CanonicalXMLStringPreservingComments(comments bool) *NSString

@method canonicalXMLStringPreservingComments: @abstract W3 canonical form (http://www.w3.org/TR/xml-c14n). The input option NSXMLNodePreserveWhitespace should be set for true canonical form.

func (*NSXMLNode) ChildAtIndex

func (o *NSXMLNode) ChildAtIndex(index uint) *NSXMLNode

@method childAtIndex: @abstract Returns the child node at a particular index.

func (*NSXMLNode) ChildCount

func (o *NSXMLNode) ChildCount() uint

@abstract The amount of children, relevant for documents, elements, and document type declarations. Use this instead of [[self children] count].

func (*NSXMLNode) Children

func (o *NSXMLNode) Children() *NSArray[*NSXMLNode]

@abstract An immutable array of child nodes. Relevant for documents, elements, and document type declarations.

func (*NSXMLNode) Detach

func (o *NSXMLNode) Detach()

@method detach: @abstract Detaches this node from its parent.

func (*NSXMLNode) Index

func (o *NSXMLNode) Index() uint

@abstract A node's index amongst its siblings.

func (*NSXMLNode) Init

func (o *NSXMLNode) Init() *NSXMLNode

func (*NSXMLNode) InitWithKind

func (o *NSXMLNode) InitWithKind(kind NSXMLNodeKind) *NSXMLNode

@method initWithKind: @abstract Invokes @link initWithKind:options: @/link with options set to NSXMLNodeOptionsNone

func (*NSXMLNode) InitWithKindOptions

func (o *NSXMLNode) InitWithKindOptions(kind NSXMLNodeKind, options NSXMLNodeOptions) *NSXMLNode

@method initWithKind:options: @abstract Inits a node with fidelity options as description NSXMLNodeOptions.h

func (*NSXMLNode) Kind

func (o *NSXMLNode) Kind() NSXMLNodeKind

@abstract Returns an element, attribute, entity, or notation DTD node based on the full XML string.

func (*NSXMLNode) Level

func (o *NSXMLNode) Level() uint

@abstract The depth of the node within the tree. Documents and standalone nodes are level 0.

func (*NSXMLNode) LocalName

func (o *NSXMLNode) LocalName() *NSString

@abstract Returns the local name bar if this attribute or element's name is foo:bar

func (*NSXMLNode) Name

func (o *NSXMLNode) Name() *NSString

@abstract Sets the nodes name. Applicable for element, attribute, namespace, processing-instruction, document type declaration, element declaration, attribute declaration, entity declaration, and notation declaration.

func (*NSXMLNode) NextNode

func (o *NSXMLNode) NextNode() *NSXMLNode

@abstract Returns the next node in document order. This can be used to walk the tree forwards.

func (*NSXMLNode) NextSibling

func (o *NSXMLNode) NextSibling() *NSXMLNode

@abstract Returns the next sibling, or nil if there isn't one.

func (*NSXMLNode) NodesForXPathError

func (o *NSXMLNode) NodesForXPathError(xpath *NSString) (*NSArray[*NSXMLNode], error)

@method nodesForXPath:error: @abstract Returns the nodes resulting from applying an XPath to this node using the node as the context item ("."). normalizeAdjacentTextNodesPreservingCDATA:NO should be called if there are adjacent text nodes since they are not allowed under the XPath/XQuery Data Model. @returns An array whose elements are a kind of NSXMLNode.

func (*NSXMLNode) ObjectValue

func (o *NSXMLNode) ObjectValue() objc.ID

@abstract Sets the content of the node. Setting the objectValue removes all existing children including processing instructions and comments. Setting the object value on an element creates a single text node child.

func (*NSXMLNode) ObjectsForXQueryConstantsError

func (o *NSXMLNode) ObjectsForXQueryConstantsError(xquery *NSString, constants *NSDictionary[*NSString, objc.ID]) (*NSArray[objc.ID], error)

@method objectsForXQuery:constants:error: @abstract Returns the objects resulting from applying an XQuery to this node using the node as the context item ("."). Constants are a name-value dictionary for constants declared "external" in the query. normalizeAdjacentTextNodesPreservingCDATA:NO should be called if there are adjacent text nodes since they are not allowed under the XPath/XQuery Data Model. @returns An array whose elements are kinds of NSArray, NSData, NSDate, NSNumber, NSString, NSURL, or NSXMLNode.

func (*NSXMLNode) ObjectsForXQueryError

func (o *NSXMLNode) ObjectsForXQueryError(xquery *NSString) (*NSArray[objc.ID], error)

func (*NSXMLNode) Parent

func (o *NSXMLNode) Parent() *NSXMLNode

@abstract The parent of this node. Documents and standalone Nodes have a nil parent; there is not a 1-to-1 relationship between parent and children, eg a namespace cannot be a child but has a parent element.

func (*NSXMLNode) Prefix

func (o *NSXMLNode) Prefix() *NSString

@abstract Returns the prefix foo if this attribute or element's name if foo:bar

func (*NSXMLNode) PreviousNode

func (o *NSXMLNode) PreviousNode() *NSXMLNode

@abstract Returns the previous node in document order. This can be used to walk the tree backwards.

func (*NSXMLNode) PreviousSibling

func (o *NSXMLNode) PreviousSibling() *NSXMLNode

@abstract Returns the previous sibling, or nil if there isn't one.

func (*NSXMLNode) RootDocument

func (o *NSXMLNode) RootDocument() *NSXMLDocument

@abstract The encompassing document or nil.

func (*NSXMLNode) SetName

func (o *NSXMLNode) SetName(name *NSString)

func (*NSXMLNode) SetObjectValue

func (o *NSXMLNode) SetObjectValue(objectValue objc.ID)

func (*NSXMLNode) SetStringValue

func (o *NSXMLNode) SetStringValue(stringValue *NSString)

func (*NSXMLNode) SetStringValueResolvingEntities

func (o *NSXMLNode) SetStringValueResolvingEntities(string_ *NSString, resolve bool)

@method setStringValue:resolvingEntities: @abstract Sets the content as with @link setStringValue: @/link, but when "resolve" is true, character references, predefined entities and user entities available in the document's dtd are resolved. Entities not available in the dtd remain in their entity form.

func (*NSXMLNode) SetURI

func (o *NSXMLNode) SetURI(uRI *NSString)

func (*NSXMLNode) StringValue

func (o *NSXMLNode) StringValue() *NSString

@abstract Sets the content of the node. Setting the stringValue removes all existing children including processing instructions and comments. Setting the string value on an element creates a single text node child. The getter returns the string value of the node, which may be either its content or child text nodes, depending on the type of node. Elements are recursed and text nodes concatenated in document order with no intervening spaces.

func (*NSXMLNode) URI

func (o *NSXMLNode) URI() *NSString

@abstract Set the URI of this element, attribute, or document. For documents it is the URI of document origin. Getter returns the URI of this element, attribute, or document. For documents it is the URI of document origin and is automatically set when using initWithContentsOfURL.

func (*NSXMLNode) XMLString

func (o *NSXMLNode) XMLString() *NSString

@abstract The representation of this node as it would appear in an XML document.

func (*NSXMLNode) XMLStringWithOptions

func (o *NSXMLNode) XMLStringWithOptions(options NSXMLNodeOptions) *NSString

@method XMLStringWithOptions: @abstract The representation of this node as it would appear in an XML document, with various output options available.

func (*NSXMLNode) XPath

func (o *NSXMLNode) XPath() *NSString

@abstract Returns the XPath to this node, for example foo/bar[2]/baz.

type NSXMLNodeKind

type NSXMLNodeKind uint64

NSXMLNode declares the following constants of type NSXMLNodeKind for specifying a node’s kind in the initializer methods initWithKind: and initWithKind:options::

const (
	NSXMLInvalidKind               NSXMLNodeKind = 0
	NSXMLDocumentKind              NSXMLNodeKind = 1
	NSXMLElementKind               NSXMLNodeKind = 2
	NSXMLAttributeKind             NSXMLNodeKind = 3
	NSXMLNamespaceKind             NSXMLNodeKind = 4
	NSXMLProcessingInstructionKind NSXMLNodeKind = 5
	NSXMLCommentKind               NSXMLNodeKind = 6
	NSXMLTextKind                  NSXMLNodeKind = 7
	NSXMLDTDKind                   NSXMLNodeKind = 8
	NSXMLEntityDeclarationKind     NSXMLNodeKind = 9
	NSXMLAttributeDeclarationKind  NSXMLNodeKind = 10
	NSXMLElementDeclarationKind    NSXMLNodeKind = 11
	NSXMLNotationDeclarationKind   NSXMLNodeKind = 12
)

func (NSXMLNodeKind) String

func (e NSXMLNodeKind) String() string

type NSXMLNodeOptions

type NSXMLNodeOptions uint64

These constants are input and output options for all NSXMLNode objects (unless otherwise indicated), including NSXMLDocument objects. You can specify these options in the NSXMLNode methods initWithKind:options: and XMLStringWithOptions:.

const (
	// No options are requested for this input or output action.
	NSXMLNodeOptionsNone                        NSXMLNodeOptions = 0
	NSXMLNodeIsCDATA                            NSXMLNodeOptions = 1
	NSXMLNodeExpandEmptyElement                 NSXMLNodeOptions = 2
	NSXMLNodeCompactEmptyElement                NSXMLNodeOptions = 4
	NSXMLNodeUseSingleQuotes                    NSXMLNodeOptions = 8
	NSXMLNodeUseDoubleQuotes                    NSXMLNodeOptions = 16
	NSXMLNodeNeverEscapeContents                NSXMLNodeOptions = 32
	NSXMLDocumentTidyHTML                       NSXMLNodeOptions = 512
	NSXMLDocumentTidyXML                        NSXMLNodeOptions = 1024
	NSXMLDocumentValidate                       NSXMLNodeOptions = 8192
	NSXMLNodeLoadExternalEntitiesAlways         NSXMLNodeOptions = 16384
	NSXMLNodeLoadExternalEntitiesSameOriginOnly NSXMLNodeOptions = 32768
	NSXMLNodeLoadExternalEntitiesNever          NSXMLNodeOptions = 524288
	NSXMLDocumentXInclude                       NSXMLNodeOptions = 65536
	NSXMLNodePrettyPrint                        NSXMLNodeOptions = 131072
	NSXMLDocumentIncludeContentTypeDeclaration  NSXMLNodeOptions = 262144
	NSXMLNodePreserveNamespaceOrder             NSXMLNodeOptions = 1048576
	NSXMLNodePreserveAttributeOrder             NSXMLNodeOptions = 2097152
	NSXMLNodePreserveEntities                   NSXMLNodeOptions = 4194304
	NSXMLNodePreservePrefixes                   NSXMLNodeOptions = 8388608
	NSXMLNodePreserveCDATA                      NSXMLNodeOptions = 16777216
	NSXMLNodePreserveWhitespace                 NSXMLNodeOptions = 33554432
	NSXMLNodePreserveDTD                        NSXMLNodeOptions = 67108864
	NSXMLNodePreserveCharacterReferences        NSXMLNodeOptions = 134217728
	NSXMLNodePromoteSignificantWhitespace       NSXMLNodeOptions = 268435456
	NSXMLNodePreserveEmptyElements              NSXMLNodeOptions = 6
	NSXMLNodePreserveQuotes                     NSXMLNodeOptions = 24
	NSXMLNodePreserveAll                        NSXMLNodeOptions = 4293918750
)

func (NSXMLNodeOptions) String

func (e NSXMLNodeOptions) String() string

type NSXMLParser

type NSXMLParser struct {
	NSObject
}

An event driven parser of XML documents (including DTD declarations).

Apple documentation: https://developer.apple.com/documentation/foundation/nsxmlparser

func NSXMLParserFromID

func NSXMLParserFromID(id objc.ID) *NSXMLParser

func (*NSXMLParser) AbortParsing

func (o *NSXMLParser) AbortParsing()

func (*NSXMLParser) AllowedExternalEntityURLs

func (o *NSXMLParser) AllowedExternalEntityURLs() *NSSet[*NSURL]

func (*NSXMLParser) ColumnNumber

func (o *NSXMLParser) ColumnNumber() int

func (*NSXMLParser) Delegate

func (o *NSXMLParser) Delegate() NSXMLParserDelegate

func (*NSXMLParser) ExternalEntityResolvingPolicy

func (o *NSXMLParser) ExternalEntityResolvingPolicy() NSXMLParserExternalEntityResolvingPolicy

func (*NSXMLParser) InitWithContentsOfURL

func (o *NSXMLParser) InitWithContentsOfURL(url *NSURL) *NSXMLParser

func (*NSXMLParser) InitWithData

func (o *NSXMLParser) InitWithData(data *NSData) *NSXMLParser

func (*NSXMLParser) InitWithStream

func (o *NSXMLParser) InitWithStream(stream *NSInputStream) *NSXMLParser

func (*NSXMLParser) LineNumber

func (o *NSXMLParser) LineNumber() int

func (*NSXMLParser) Parse

func (o *NSXMLParser) Parse() bool

func (*NSXMLParser) ParserError

func (o *NSXMLParser) ParserError() unsafe.Pointer

func (*NSXMLParser) PublicID

func (o *NSXMLParser) PublicID() *NSString

func (*NSXMLParser) SetAllowedExternalEntityURLs

func (o *NSXMLParser) SetAllowedExternalEntityURLs(allowedExternalEntityURLs *NSSet[*NSURL])

func (*NSXMLParser) SetDelegate

func (o *NSXMLParser) SetDelegate(delegate NSXMLParserDelegate)

func (*NSXMLParser) SetExternalEntityResolvingPolicy

func (o *NSXMLParser) SetExternalEntityResolvingPolicy(externalEntityResolvingPolicy NSXMLParserExternalEntityResolvingPolicy)

func (*NSXMLParser) SetShouldProcessNamespaces

func (o *NSXMLParser) SetShouldProcessNamespaces(shouldProcessNamespaces bool)

func (*NSXMLParser) SetShouldReportNamespacePrefixes

func (o *NSXMLParser) SetShouldReportNamespacePrefixes(shouldReportNamespacePrefixes bool)

func (*NSXMLParser) SetShouldResolveExternalEntities

func (o *NSXMLParser) SetShouldResolveExternalEntities(shouldResolveExternalEntities bool)

func (*NSXMLParser) ShouldProcessNamespaces

func (o *NSXMLParser) ShouldProcessNamespaces() bool

func (*NSXMLParser) ShouldReportNamespacePrefixes

func (o *NSXMLParser) ShouldReportNamespacePrefixes() bool

func (*NSXMLParser) ShouldResolveExternalEntities

func (o *NSXMLParser) ShouldResolveExternalEntities() bool

func (*NSXMLParser) SystemID

func (o *NSXMLParser) SystemID() *NSString

type NSXMLParserDelegate

type NSXMLParserDelegate interface {
}

NSXMLParserDelegate wraps the ObjC protocol NSXMLParserDelegate.

type NSXMLParserError

type NSXMLParserError int64

The following error codes are defined by NSXMLParser. For error codes not listed here, see the <libxml/xmlerror.h> header file.

const (
	NSXMLParserInternalError                         NSXMLParserError = 1
	NSXMLParserOutOfMemoryError                      NSXMLParserError = 2
	NSXMLParserDocumentStartError                    NSXMLParserError = 3
	NSXMLParserEmptyDocumentError                    NSXMLParserError = 4
	NSXMLParserPrematureDocumentEndError             NSXMLParserError = 5
	NSXMLParserInvalidHexCharacterRefError           NSXMLParserError = 6
	NSXMLParserInvalidDecimalCharacterRefError       NSXMLParserError = 7
	NSXMLParserInvalidCharacterRefError              NSXMLParserError = 8
	NSXMLParserInvalidCharacterError                 NSXMLParserError = 9
	NSXMLParserCharacterRefAtEOFError                NSXMLParserError = 10
	NSXMLParserCharacterRefInPrologError             NSXMLParserError = 11
	NSXMLParserCharacterRefInEpilogError             NSXMLParserError = 12
	NSXMLParserCharacterRefInDTDError                NSXMLParserError = 13
	NSXMLParserEntityRefAtEOFError                   NSXMLParserError = 14
	NSXMLParserEntityRefInPrologError                NSXMLParserError = 15
	NSXMLParserEntityRefInEpilogError                NSXMLParserError = 16
	NSXMLParserEntityRefInDTDError                   NSXMLParserError = 17
	NSXMLParserParsedEntityRefAtEOFError             NSXMLParserError = 18
	NSXMLParserParsedEntityRefInPrologError          NSXMLParserError = 19
	NSXMLParserParsedEntityRefInEpilogError          NSXMLParserError = 20
	NSXMLParserParsedEntityRefInInternalSubsetError  NSXMLParserError = 21
	NSXMLParserEntityReferenceWithoutNameError       NSXMLParserError = 22
	NSXMLParserEntityReferenceMissingSemiError       NSXMLParserError = 23
	NSXMLParserParsedEntityRefNoNameError            NSXMLParserError = 24
	NSXMLParserParsedEntityRefMissingSemiError       NSXMLParserError = 25
	NSXMLParserUndeclaredEntityError                 NSXMLParserError = 26
	NSXMLParserUnparsedEntityError                   NSXMLParserError = 28
	NSXMLParserEntityIsExternalError                 NSXMLParserError = 29
	NSXMLParserEntityIsParameterError                NSXMLParserError = 30
	NSXMLParserUnknownEncodingError                  NSXMLParserError = 31
	NSXMLParserEncodingNotSupportedError             NSXMLParserError = 32
	NSXMLParserStringNotStartedError                 NSXMLParserError = 33
	NSXMLParserStringNotClosedError                  NSXMLParserError = 34
	NSXMLParserNamespaceDeclarationError             NSXMLParserError = 35
	NSXMLParserEntityNotStartedError                 NSXMLParserError = 36
	NSXMLParserEntityNotFinishedError                NSXMLParserError = 37
	NSXMLParserLessThanSymbolInAttributeError        NSXMLParserError = 38
	NSXMLParserAttributeNotStartedError              NSXMLParserError = 39
	NSXMLParserAttributeNotFinishedError             NSXMLParserError = 40
	NSXMLParserAttributeHasNoValueError              NSXMLParserError = 41
	NSXMLParserAttributeRedefinedError               NSXMLParserError = 42
	NSXMLParserLiteralNotStartedError                NSXMLParserError = 43
	NSXMLParserLiteralNotFinishedError               NSXMLParserError = 44
	NSXMLParserCommentNotFinishedError               NSXMLParserError = 45
	NSXMLParserProcessingInstructionNotStartedError  NSXMLParserError = 46
	NSXMLParserProcessingInstructionNotFinishedError NSXMLParserError = 47
	NSXMLParserNotationNotStartedError               NSXMLParserError = 48
	NSXMLParserNotationNotFinishedError              NSXMLParserError = 49
	NSXMLParserAttributeListNotStartedError          NSXMLParserError = 50
	NSXMLParserAttributeListNotFinishedError         NSXMLParserError = 51
	NSXMLParserMixedContentDeclNotStartedError       NSXMLParserError = 52
	NSXMLParserMixedContentDeclNotFinishedError      NSXMLParserError = 53
	NSXMLParserElementContentDeclNotStartedError     NSXMLParserError = 54
	NSXMLParserElementContentDeclNotFinishedError    NSXMLParserError = 55
	NSXMLParserXMLDeclNotStartedError                NSXMLParserError = 56
	NSXMLParserXMLDeclNotFinishedError               NSXMLParserError = 57
	NSXMLParserConditionalSectionNotStartedError     NSXMLParserError = 58
	NSXMLParserConditionalSectionNotFinishedError    NSXMLParserError = 59
	NSXMLParserExternalSubsetNotFinishedError        NSXMLParserError = 60
	NSXMLParserDOCTYPEDeclNotFinishedError           NSXMLParserError = 61
	NSXMLParserMisplacedCDATAEndStringError          NSXMLParserError = 62
	NSXMLParserCDATANotFinishedError                 NSXMLParserError = 63
	NSXMLParserMisplacedXMLDeclarationError          NSXMLParserError = 64
	NSXMLParserSpaceRequiredError                    NSXMLParserError = 65
	NSXMLParserSeparatorRequiredError                NSXMLParserError = 66
	NSXMLParserNMTOKENRequiredError                  NSXMLParserError = 67
	NSXMLParserNAMERequiredError                     NSXMLParserError = 68
	NSXMLParserPCDATARequiredError                   NSXMLParserError = 69
	NSXMLParserURIRequiredError                      NSXMLParserError = 70
	NSXMLParserPublicIdentifierRequiredError         NSXMLParserError = 71
	NSXMLParserLTRequiredError                       NSXMLParserError = 72
	NSXMLParserGTRequiredError                       NSXMLParserError = 73
	NSXMLParserLTSlashRequiredError                  NSXMLParserError = 74
	NSXMLParserEqualExpectedError                    NSXMLParserError = 75
	NSXMLParserTagNameMismatchError                  NSXMLParserError = 76
	NSXMLParserUnfinishedTagError                    NSXMLParserError = 77
	NSXMLParserStandaloneValueError                  NSXMLParserError = 78
	NSXMLParserInvalidEncodingNameError              NSXMLParserError = 79
	NSXMLParserCommentContainsDoubleHyphenError      NSXMLParserError = 80
	NSXMLParserInvalidEncodingError                  NSXMLParserError = 81
	NSXMLParserExternalStandaloneEntityError         NSXMLParserError = 82
	NSXMLParserInvalidConditionalSectionError        NSXMLParserError = 83
	NSXMLParserEntityValueRequiredError              NSXMLParserError = 84
	NSXMLParserNotWellBalancedError                  NSXMLParserError = 85
	NSXMLParserExtraContentError                     NSXMLParserError = 86
	NSXMLParserInvalidCharacterInEntityError         NSXMLParserError = 87
	NSXMLParserParsedEntityRefInInternalError        NSXMLParserError = 88
	NSXMLParserEntityRefLoopError                    NSXMLParserError = 89
	NSXMLParserEntityBoundaryError                   NSXMLParserError = 90
	NSXMLParserInvalidURIError                       NSXMLParserError = 91
	NSXMLParserURIFragmentError                      NSXMLParserError = 92
	NSXMLParserNoDTDError                            NSXMLParserError = 94
	NSXMLParserDelegateAbortedParseError             NSXMLParserError = 512
)

func (NSXMLParserError) String

func (e NSXMLParserError) String() string

type NSXMLParserExternalEntityResolvingPolicy

type NSXMLParserExternalEntityResolvingPolicy uint64

Defines the external entity resolving policy used by an NSXMLParser instance.

const (
	NSXMLParserResolveExternalEntitiesNever          NSXMLParserExternalEntityResolvingPolicy = 0
	NSXMLParserResolveExternalEntitiesNoNetwork      NSXMLParserExternalEntityResolvingPolicy = 1
	NSXMLParserResolveExternalEntitiesSameOriginOnly NSXMLParserExternalEntityResolvingPolicy = 2
	NSXMLParserResolveExternalEntitiesAlways         NSXMLParserExternalEntityResolvingPolicy = 3
)

func (NSXMLParserExternalEntityResolvingPolicy) String

type NSXPCCoder

type NSXPCCoder struct {
	NSCoder
}

A coder that encodes and decodes objects that your app sends over an XPC connection.

Apple documentation: https://developer.apple.com/documentation/foundation/nsxpccoder

func NSXPCCoderFromID

func NSXPCCoderFromID(id objc.ID) *NSXPCCoder

func (*NSXPCCoder) Connection

func (o *NSXPCCoder) Connection() *NSXPCConnection

func (*NSXPCCoder) DecodeXPCObjectOfTypeForKey

func (o *NSXPCCoder) DecodeXPCObjectOfTypeForKey(type_ unsafe.Pointer, key *NSString) *NSObject

Decodes an object and validates that its type matches the type a service provides over XPC.

func (*NSXPCCoder) EncodeXPCObjectForKey

func (o *NSXPCCoder) EncodeXPCObjectForKey(xpcObject *NSObject, key *NSString)

Encodes an object to send over an XPC connection.

func (*NSXPCCoder) SetUserInfo

func (o *NSXPCCoder) SetUserInfo(userInfo NSObjectProtocol)

func (*NSXPCCoder) UserInfo

func (o *NSXPCCoder) UserInfo() NSObjectProtocol

type NSXPCConnection

type NSXPCConnection struct {
	NSObject
}

A bidirectional communication channel between two processes.

Apple documentation: https://developer.apple.com/documentation/foundation/nsxpcconnection

func NSXPCConnectionCurrentConnection

func NSXPCConnectionCurrentConnection() *NSXPCConnection

Returns the current connection, in the context of a call to a method on your exported object.

func NSXPCConnectionFromID

func NSXPCConnectionFromID(id objc.ID) *NSXPCConnection

func (*NSXPCConnection) Activate

func (o *NSXPCConnection) Activate()

Activates the connection.

func (*NSXPCConnection) AuditSessionIdentifier

func (o *NSXPCConnection) AuditSessionIdentifier() int

func (*NSXPCConnection) EffectiveGroupIdentifier

func (o *NSXPCConnection) EffectiveGroupIdentifier() uint

func (*NSXPCConnection) EffectiveUserIdentifier

func (o *NSXPCConnection) EffectiveUserIdentifier() uint

func (*NSXPCConnection) Endpoint

func (o *NSXPCConnection) Endpoint() *NSXPCListenerEndpoint

func (*NSXPCConnection) ExportedInterface

func (o *NSXPCConnection) ExportedInterface() *NSXPCInterface

func (*NSXPCConnection) ExportedObject

func (o *NSXPCConnection) ExportedObject() objc.ID

func (*NSXPCConnection) InitWithListenerEndpoint

func (o *NSXPCConnection) InitWithListenerEndpoint(endpoint *NSXPCListenerEndpoint) *NSXPCConnection

Initializes an NSXPCConnection object to connect to an NSXPCListener object in another process, identified by an NSXPCListenerEndpoint object.

func (*NSXPCConnection) InitWithMachServiceNameOptions

func (o *NSXPCConnection) InitWithMachServiceNameOptions(name *NSString, options NSXPCConnectionOptions) *NSXPCConnection

Initializes an NSXPCConnection object to connect to a LaunchAgent or LaunchDaemon with a name advertised in a launchd.plist.

func (*NSXPCConnection) InitWithServiceName

func (o *NSXPCConnection) InitWithServiceName(serviceName *NSString) *NSXPCConnection

Initializes an NSXPCConnection object to connect to an NSXPCListener object in an XPC service, identified by a service name.

func (*NSXPCConnection) InterruptionHandler

func (o *NSXPCConnection) InterruptionHandler() objc.Block

func (*NSXPCConnection) Invalidate

func (o *NSXPCConnection) Invalidate()

Invalidates the connection.

func (*NSXPCConnection) InvalidationHandler

func (o *NSXPCConnection) InvalidationHandler() objc.Block

func (*NSXPCConnection) ProcessIdentifier

func (o *NSXPCConnection) ProcessIdentifier() int

func (*NSXPCConnection) RemoteObjectInterface

func (o *NSXPCConnection) RemoteObjectInterface() *NSXPCInterface

func (*NSXPCConnection) RemoteObjectProxy

func (o *NSXPCConnection) RemoteObjectProxy() objc.ID

func (*NSXPCConnection) RemoteObjectProxyWithErrorHandler

func (o *NSXPCConnection) RemoteObjectProxyWithErrorHandler(handler func(unsafe.Pointer)) objc.ID

Returns a proxy for the remote object (that is, the object exported from the other side of this connection) with the specified error handler.

func (*NSXPCConnection) Resume

func (o *NSXPCConnection) Resume()

Starts or resumes handling of messages on a connection.

func (*NSXPCConnection) ScheduleSendBarrierBlock

func (o *NSXPCConnection) ScheduleSendBarrierBlock(block func())

Add a barrier block to execute on the connection.

func (*NSXPCConnection) ServiceName

func (o *NSXPCConnection) ServiceName() *NSString

func (*NSXPCConnection) SetCodeSigningRequirement

func (o *NSXPCConnection) SetCodeSigningRequirement(requirement *NSString)

Sets the code signing requirement for this connection.

func (*NSXPCConnection) SetExportedInterface

func (o *NSXPCConnection) SetExportedInterface(exportedInterface *NSXPCInterface)

func (*NSXPCConnection) SetExportedObject

func (o *NSXPCConnection) SetExportedObject(exportedObject objc.ID)

func (*NSXPCConnection) SetInterruptionHandler

func (o *NSXPCConnection) SetInterruptionHandler(interruptionHandler func())

func (*NSXPCConnection) SetInvalidationHandler

func (o *NSXPCConnection) SetInvalidationHandler(invalidationHandler func())

func (*NSXPCConnection) SetRemoteObjectInterface

func (o *NSXPCConnection) SetRemoteObjectInterface(remoteObjectInterface *NSXPCInterface)

func (*NSXPCConnection) Suspend

func (o *NSXPCConnection) Suspend()

Suspends the connection.

func (*NSXPCConnection) SynchronousRemoteObjectProxyWithErrorHandler

func (o *NSXPCConnection) SynchronousRemoteObjectProxyWithErrorHandler(handler func(unsafe.Pointer)) objc.ID

Returns a proxy that makes a synchronous IPC call instead of the default async behavior.

type NSXPCConnectionOptions

type NSXPCConnectionOptions uint64

Options that you can pass to a connection.

const (
	NSXPCConnectionPrivileged NSXPCConnectionOptions = 4096
)

func (NSXPCConnectionOptions) String

func (e NSXPCConnectionOptions) String() string

type NSXPCInterface

type NSXPCInterface struct {
	NSObject
}

An interface that may be sent to an exported object or remote object proxy.

Apple documentation: https://developer.apple.com/documentation/foundation/nsxpcinterface

func NSXPCInterfaceFromID

func NSXPCInterfaceFromID(id objc.ID) *NSXPCInterface

func NSXPCInterfaceInterfaceWithProtocol

func NSXPCInterfaceInterfaceWithProtocol(protocol unsafe.Pointer) *NSXPCInterface

Returns an NSXPCInterface instance for a given protocol.

func (*NSXPCInterface) ClassesForSelectorArgumentIndexOfReply

func (o *NSXPCInterface) ClassesForSelectorArgumentIndexOfReply(sel objc.SEL, arg uint, ofReply bool) *NSSet[objc.Class]

Returns the current list of allowed classes that can appear within the specified collection object argument to the specified method.

func (*NSXPCInterface) InterfaceForSelectorArgumentIndexOfReply

func (o *NSXPCInterface) InterfaceForSelectorArgumentIndexOfReply(sel objc.SEL, arg uint, ofReply bool) *NSXPCInterface

Returns the interface previously set for the specified selector and parameter.

func (*NSXPCInterface) Protocol

func (o *NSXPCInterface) Protocol() unsafe.Pointer

func (*NSXPCInterface) SetClassesForSelectorArgumentIndexOfReply

func (o *NSXPCInterface) SetClassesForSelectorArgumentIndexOfReply(classes *NSSet[objc.Class], sel objc.SEL, arg uint, ofReply bool)

Sets the classes that can appear within the (numerically) specified collection object argument to the specified method.

func (*NSXPCInterface) SetInterfaceForSelectorArgumentIndexOfReply

func (o *NSXPCInterface) SetInterfaceForSelectorArgumentIndexOfReply(ifc *NSXPCInterface, sel objc.SEL, arg uint, ofReply bool)

Configures a specific parameter of a method to be sent as a proxy object instead of copied.

func (*NSXPCInterface) SetProtocol

func (o *NSXPCInterface) SetProtocol(protocol unsafe.Pointer)

func (*NSXPCInterface) SetXPCTypeForSelectorArgumentIndexOfReply

func (o *NSXPCInterface) SetXPCTypeForSelectorArgumentIndexOfReply(type_ unsafe.Pointer, sel objc.SEL, arg uint, ofReply bool)

func (*NSXPCInterface) XPCTypeForSelectorArgumentIndexOfReply

func (o *NSXPCInterface) XPCTypeForSelectorArgumentIndexOfReply(sel objc.SEL, arg uint, ofReply bool) unsafe.Pointer

type NSXPCListener

type NSXPCListener struct {
	NSObject
}

A listener that waits for new incoming connections, configures them, and accepts or rejects them.

Apple documentation: https://developer.apple.com/documentation/foundation/nsxpclistener

func NSXPCListenerAnonymousListener

func NSXPCListenerAnonymousListener() *NSXPCListener

Returns a new anonymous listener connection.

func NSXPCListenerFromID

func NSXPCListenerFromID(id objc.ID) *NSXPCListener

func NSXPCListenerServiceListener

func NSXPCListenerServiceListener() *NSXPCListener

Returns the singleton listener used to listen for incoming connections in an XPC service.

func (*NSXPCListener) Activate

func (o *NSXPCListener) Activate()

Activates the listener.

func (*NSXPCListener) Delegate

func (o *NSXPCListener) Delegate() NSXPCListenerDelegate

func (*NSXPCListener) Endpoint

func (o *NSXPCListener) Endpoint() *NSXPCListenerEndpoint

func (*NSXPCListener) InitWithMachServiceName

func (o *NSXPCListener) InitWithMachServiceName(name *NSString) *NSXPCListener

Initializes a listener in a LaunchAgent or LaunchDaemon which has a name advertised in a launchd.plist file.

func (*NSXPCListener) Invalidate

func (o *NSXPCListener) Invalidate()

Invalidates the listener.

func (*NSXPCListener) Resume

func (o *NSXPCListener) Resume()

Starts processing of incoming requests.

func (*NSXPCListener) SetConnectionCodeSigningRequirement

func (o *NSXPCListener) SetConnectionCodeSigningRequirement(requirement *NSString)

Sets the code signing requirement for connections to this listener.

func (*NSXPCListener) SetDelegate

func (o *NSXPCListener) SetDelegate(delegate NSXPCListenerDelegate)

func (*NSXPCListener) Suspend

func (o *NSXPCListener) Suspend()

Suspends the listener.

type NSXPCListenerDelegate

type NSXPCListenerDelegate interface {
}

NSXPCListenerDelegate wraps the ObjC protocol NSXPCListenerDelegate.

type NSXPCListenerEndpoint

type NSXPCListenerEndpoint struct {
	NSObject
}

An object that names a specific XPC listener.

Apple documentation: https://developer.apple.com/documentation/foundation/nsxpclistenerendpoint

func NSXPCListenerEndpointFromID

func NSXPCListenerEndpointFromID(id objc.ID) *NSXPCListenerEndpoint

type NSXPCProxyCreating

type NSXPCProxyCreating interface {
	RemoteObjectProxy() objc.ID
	RemoteObjectProxyWithErrorHandler(handler func(unsafe.Pointer)) objc.ID
}

NSXPCProxyCreating wraps the ObjC protocol NSXPCProxyCreating.

type NSZone

type NSZone struct{}

C struct: _NSZone NSZone is an opaque type.

type ObjcClass

type ObjcClass struct{}

An opaque type that represents an Objective-C class. C struct: objc_class ObjcClass is an opaque type.

type ObjcObject

type ObjcObject struct {
	Isa unsafe.Pointer
}

Represents an instance of a class. C struct: objc_object

type ObjcSelector

type ObjcSelector struct{}

An opaque type that represents a method selector. C struct: objc_selector ObjcSelector is an opaque type.

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type Ptrauth_key

type Ptrauth_key int64
const (
	Ptrauth_key_none                     Ptrauth_key = -1
	Ptrauth_key_asia                     Ptrauth_key = 0
	Ptrauth_key_asib                     Ptrauth_key = 1
	Ptrauth_key_asda                     Ptrauth_key = 2
	Ptrauth_key_asdb                     Ptrauth_key = 3
	Ptrauth_key_process_independent_code Ptrauth_key = 0
	Ptrauth_key_process_dependent_code   Ptrauth_key = 1
	Ptrauth_key_process_independent_data Ptrauth_key = 2
	Ptrauth_key_process_dependent_data   Ptrauth_key = 3
	Ptrauth_key_return_address           Ptrauth_key = 1
	Ptrauth_key_frame_pointer            Ptrauth_key = 3
	Ptrauth_key_function_pointer         Ptrauth_key = 0
	Ptrauth_key_block_function           Ptrauth_key = 0
	Ptrauth_key_cxx_vtable_pointer       Ptrauth_key = 2
	Ptrauth_key_method_list_pointer      Ptrauth_key = 2
	Ptrauth_key_objc_isa_pointer         Ptrauth_key = 2
	Ptrauth_key_objc_super_pointer       Ptrauth_key = 2
	Ptrauth_key_objc_sel_pointer         Ptrauth_key = 3
	Ptrauth_key_objc_class_ro_pointer    Ptrauth_key = 2
	Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2
	Ptrauth_key_init_fini_pointer        Ptrauth_key = 0
)

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

type Virtual_memory_guard_exception_code_t

type Virtual_memory_guard_exception_code_t int64
const (
	KGUARD_EXC_DEALLOC_GAP                   Virtual_memory_guard_exception_code_t = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        Virtual_memory_guard_exception_code_t = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         Virtual_memory_guard_exception_code_t = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    Virtual_memory_guard_exception_code_t = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    Virtual_memory_guard_exception_code_t = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         Virtual_memory_guard_exception_code_t = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         Virtual_memory_guard_exception_code_t = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  Virtual_memory_guard_exception_code_t = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    Virtual_memory_guard_exception_code_t = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              Virtual_memory_guard_exception_code_t = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        Virtual_memory_guard_exception_code_t = 99
	KGUARD_EXC_SEC_COPY_DENIED               Virtual_memory_guard_exception_code_t = 100
	KGUARD_EXC_SEC_SHARING_DENIED            Virtual_memory_guard_exception_code_t = 101
	KGUARD_EXC_MTE_SYNC_FAULT                Virtual_memory_guard_exception_code_t = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          Virtual_memory_guard_exception_code_t = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          Virtual_memory_guard_exception_code_t = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204
)

func (Virtual_memory_guard_exception_code_t) String

type Xpc_listener_create_flags_t

type Xpc_listener_create_flags_t int64
const (
	XPC_LISTENER_CREATE_NONE             Xpc_listener_create_flags_t = 0
	XPC_LISTENER_CREATE_INACTIVE         Xpc_listener_create_flags_t = 1
	XPC_LISTENER_CREATE_FORCE_MACH       Xpc_listener_create_flags_t = 2
	XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4
)

func (Xpc_listener_create_flags_t) String

type Xpc_session_create_flags_t

type Xpc_session_create_flags_t int64
const (
	XPC_SESSION_CREATE_NONE            Xpc_session_create_flags_t = 0
	XPC_SESSION_CREATE_INACTIVE        Xpc_session_create_flags_t = 1
	XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2
)

func (Xpc_session_create_flags_t) String

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL