foundation

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 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

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)

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()

func NSClassDescriptionRegisterClassDescriptionForClass ¶

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

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

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 deprecated

func NSDataDataWithContentsOfMappedFile(path *NSString) objc.ID

Deprecated: Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.

func NSDateDateWithNaturalLanguageString deprecated

func NSDateDateWithNaturalLanguageString(string_ *NSString) objc.ID

Deprecated: Create an NSDateFormatter with `init` and set the dateFormat property instead.

func NSDateDateWithNaturalLanguageStringLocale deprecated

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

Deprecated: Create an NSDateFormatter with `init` and set the dateFormat property instead.

func NSDateDateWithString deprecated

func NSDateDateWithString(aString *NSString) objc.ID

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

func NSDistantObjectProxyWithLocalConnection ¶

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

func NSDistantObjectProxyWithTargetConnection ¶

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

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)

func NSErrorUserInfoValueProviderForDomain ¶

func NSErrorUserInfoValueProviderForDomain(errorDomain *NSString) objc.Block

func NSExceptionRaiseFormat ¶

func NSExceptionRaiseFormat(name *NSString, format *NSString)

func NSExceptionRaiseFormatArguments ¶

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

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)

func NSFileCoordinatorRemoveFilePresenter ¶

func NSFileCoordinatorRemoveFilePresenter(filePresenter NSFilePresenter)

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))

func NSFileVersionRemoveOtherVersionsOfItemAtURLError ¶

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

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

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 deprecated

func NSHashTableHashTableWithWeakObjects() objc.ID

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 deprecated

func NSHostFlushHostCache()

Deprecated: Caching no longer supported

func NSHostIsHostCacheEnabled deprecated

func NSHostIsHostCacheEnabled() bool

Deprecated: Caching no longer supported

func NSHostSetHostCacheEnabled deprecated

func NSHostSetHostCacheEnabled(flag bool)

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

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 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 deprecated

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

Deprecated: Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead

func NSKeyedArchiverSetClassNameForClass ¶

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

func NSKeyedUnarchiverClassForClassName ¶

func NSKeyedUnarchiverClassForClassName(codedName *NSString) objc.Class

func NSKeyedUnarchiverSetClassForClassName ¶

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

func NSKeyedUnarchiverUnarchiveObjectWithData deprecated

func NSKeyedUnarchiverUnarchiveObjectWithData(data *NSData) objc.ID

Deprecated: Use +unarchivedObjectOfClass:fromData:error: instead

func NSKeyedUnarchiverUnarchiveObjectWithFile deprecated

func NSKeyedUnarchiverUnarchiveObjectWithFile(path *NSString) objc.ID

Deprecated: Use +unarchivedObjectOfClass:fromData:error: instead

func NSKeyedUnarchiverUnarchiveTopLevelObjectWithDataError deprecated

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

Deprecated: Use +unarchivedObjectOfClass:fromData:error: instead

func NSKeyedUnarchiverUnarchivedObjectOfClassFromDataError ¶

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

Decodes the root object of the given class from the given archive, previously encoded by \c NSKeyedArchiver. Enables \c requiresSecureCoding and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. Returns \c nil if the given data is not valid or cannot be decoded, and sets the \c error out parameter.

func NSKeyedUnarchiverUnarchivedObjectOfClassesFromDataError ¶

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

Decodes the root object of one of the given classes from the given archive, previously encoded by \c NSKeyedArchiver. Enables \c requiresSecureCoding and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. Returns \c nil if the given data is not valid or cannot be decoded, and sets the \c error out parameter.

func NSLanguageIdentifierAttributeName ¶

func NSLanguageIdentifierAttributeName() uintptr

func NSLaterTimeDesignations deprecated

func NSLaterTimeDesignations() uintptr

Deprecated: since macOS 10.5.

func NSLinguisticTaggerEnumerateTagsForStringRangeUnitSchemeOptionsOrthographyUsing deprecated

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

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

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

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 deprecated

func NSMapTableMapTableWithStrongToStrongObjects() objc.ID

Deprecated: GC no longer supported

func NSMapTableMapTableWithStrongToWeakObjects deprecated

func NSMapTableMapTableWithStrongToWeakObjects() objc.ID

Deprecated: GC no longer supported

func NSMapTableMapTableWithWeakToStrongObjects deprecated

func NSMapTableMapTableWithWeakToStrongObjects() objc.ID

Deprecated: GC no longer supported

func NSMapTableMapTableWithWeakToWeakObjects deprecated

func NSMapTableMapTableWithWeakToWeakObjects() objc.ID

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

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 deprecated

func NSMorphologyCustomPronounIsSupportedForLanguage(language *NSString) bool

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 deprecated

func NSPointerArrayPointerArrayWithStrongObjects() objc.ID

Deprecated: GC no longer supported

func NSPointerArrayPointerArrayWithWeakObjects deprecated

func NSPointerArrayPointerArrayWithWeakObjects() objc.ID

Deprecated: GC no longer supported

func NSPortCoderPortCoderWithReceivePortSendPortComponents deprecated

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

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

func NSProxyAllocWithZone ¶

func NSProxyAllocWithZone(zone unsafe.Pointer) objc.ID

func NSProxyClass ¶

func NSProxyClass() objc.Class

func NSProxyRespondsToSelector ¶

func NSProxyRespondsToSelector(aSelector objc.SEL) bool

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)

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

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

func NSStringStringWithCString deprecated

func NSStringStringWithCString(bytes_ string) objc.ID

Deprecated: Use +stringWithCString:encoding: instead

func NSStringStringWithCStringLength deprecated

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

Deprecated: Use +stringWithCString:encoding:

func NSStringStringWithContentsOfFile deprecated

func NSStringStringWithContentsOfFile(path *NSString) objc.ID

Deprecated: Use +stringWithContentsOfFile:encoding:error: instead

func NSStringStringWithContentsOfURL deprecated

func NSStringStringWithContentsOfURL(url *NSURL) objc.ID

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()

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

@method canHandleRequest: @abstract Performs a "preflight" operation that performs some speculative checks to see if a connection can be initialized, and the associated I/O that is started in the initializer methods can begin. @discussion The result of this method is valid only as long as no protocols are registered or unregistered, and as long as the request is not mutated (if the request is mutable). Hence, clients should be prepared to handle failures even if they have performed request preflighting by calling this method. @param request The request to preflight. @result YES if it is likely that the given request can be used to initialize a connection and the associated I/O can be started, NO otherwise.

func NSURLConnectionSendAsynchronousRequestQueueCompletionHandler ¶

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

@method sendAsynchronousRequest:queue:completionHandler: @abstract Performs an asynchronous load of the given request. When the request has completed or failed, the block will be executed from the context of the specified NSOperationQueue. @discussion This is a convenience routine that allows for asynchronous loading of a url-based resource. If the resource load is successful, the data parameter to the callback will contain the resource data and the error parameter will be nil. If the resource load fails, the data parameter will be nil and the error will contain information about the failure. @param request The request to load. Note that the request is deep-copied as part of the initialization process. Changes made to the request argument after this method returns do not affect the request that is used for the loading process. @param queue An NSOperationQueue upon which the handler block will be dispatched. @param handler A block which receives the results of the resource load. Deprecated: Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h

func NSURLCredentialStorageRemoveSynchronizableCredentials ¶

func NSURLCredentialStorageRemoveSynchronizableCredentials() uintptr

func NSURLDownloadCanResumeDownloadDecodedWithEncodingMIMEType ¶

func NSURLDownloadCanResumeDownloadDecodedWithEncodingMIMEType(mIMEType *NSString) bool

@method canResumeDownloadDecodedWithEncodingMIMEType: @abstract Returns whether or not NSURLDownload can resume a download that was decoded with a given encoding MIME type. @param MIMEType The encoding MIME type. @description canResumeDownloadDecodedWithEncodingMIMEType: returns whether or not NSURLDownload can resume a download that was decoded with a given encoding MIME type. NSURLDownload cannot resume a download that was partially decoded in the gzip format for example. In order to ensure that a download can be later resumed, canResumeDownloadDecodedWithEncodingMIMEType: should be used when download:shouldDecodeSourceDataOfMIMEType: is called.

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 deprecated

func NSURLHandleCanInitWithURL(anURL *NSURL) bool

Deprecated: since macOS 10.4.

func NSURLHandleRegisterURLHandleClass deprecated

func NSURLHandleRegisterURLHandleClass(anURLHandleSubclass objc.Class)

Deprecated: since macOS 10.4.

func NSURLHandleURLHandleClassForURL deprecated

func NSURLHandleURLHandleClassForURL(anURL *NSURL) objc.Class

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)

func NSUbiquitousKeyValueStoreChangeReasonKey ¶

func NSUbiquitousKeyValueStoreChangeReasonKey() uintptr

func NSUbiquitousKeyValueStoreChangedKeysKey ¶

func NSUbiquitousKeyValueStoreChangedKeysKey() uintptr

func NSUnarchiverDecodeClassNameAsClassName ¶

func NSUnarchiverDecodeClassNameAsClassName(inArchiveName *NSString, trueName *NSString)

func NSUnarchiverUnarchiveObjectWithData ¶

func NSUnarchiverUnarchiveObjectWithData(data *NSData) objc.ID

func NSUnarchiverUnarchiveObjectWithFile ¶

func NSUnarchiverUnarchiveObjectWithFile(path *NSString) objc.ID

func NSUndoManagerGroupIsDiscardableKey ¶

func NSUndoManagerGroupIsDiscardableKey() uintptr

func NSUserActivityDeleteAllSavedUserActivitiesWithCompletionHandler ¶

func NSUserActivityDeleteAllSavedUserActivitiesWithCompletionHandler(handler func())

func NSUserActivityDeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler ¶

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

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
}

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

func NSAffineTransformFromID ¶

func NSAffineTransformFromID(id objc.ID) *NSAffineTransform

func NSAffineTransformTransform ¶

func NSAffineTransformTransform() *NSAffineTransform

func (*NSAffineTransform) AppendTransform ¶

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

func (*NSAffineTransform) Init ¶

func (*NSAffineTransform) InitWithTransform ¶

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

func (*NSAffineTransform) Invert ¶

func (o *NSAffineTransform) Invert()

func (*NSAffineTransform) PrependTransform ¶

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

func (*NSAffineTransform) RotateByDegrees ¶

func (o *NSAffineTransform) RotateByDegrees(angle float64)

func (*NSAffineTransform) RotateByRadians ¶

func (o *NSAffineTransform) RotateByRadians(angle float64)

func (*NSAffineTransform) ScaleBy ¶

func (o *NSAffineTransform) ScaleBy(scale float64)

func (*NSAffineTransform) ScaleXByYBy ¶

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

func (*NSAffineTransform) SetTransformStruct ¶

func (o *NSAffineTransform) SetTransformStruct(transformStruct NSAffineTransformStruct)

func (*NSAffineTransform) TransformPoint ¶

func (*NSAffineTransform) TransformSize ¶

func (*NSAffineTransform) TransformStruct ¶

func (o *NSAffineTransform) TransformStruct() NSAffineTransformStruct

func (*NSAffineTransform) TranslateXByYBy ¶

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

type NSAffineTransformStruct ¶

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

type NSAlignmentOptions ¶

type NSAlignmentOptions uint64
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
}

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

func NSAppleEventDescriptorAppleEventWithEventClassEventIDTargetDescriptorReturnIDTransactionID ¶

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

func NSAppleEventDescriptorCurrentProcessDescriptor ¶

func NSAppleEventDescriptorCurrentProcessDescriptor() *NSAppleEventDescriptor

func NSAppleEventDescriptorDescriptorWithApplicationURL ¶

func NSAppleEventDescriptorDescriptorWithApplicationURL(applicationURL *NSURL) *NSAppleEventDescriptor

func NSAppleEventDescriptorDescriptorWithBoolean ¶

func NSAppleEventDescriptorDescriptorWithBoolean(boolean uint8) *NSAppleEventDescriptor

func NSAppleEventDescriptorDescriptorWithBundleIdentifier ¶

func NSAppleEventDescriptorDescriptorWithBundleIdentifier(bundleIdentifier *NSString) *NSAppleEventDescriptor

func NSAppleEventDescriptorDescriptorWithDate ¶

func NSAppleEventDescriptorDescriptorWithDate(date *NSDate) *NSAppleEventDescriptor

func NSAppleEventDescriptorDescriptorWithDescriptorTypeBytesLength ¶

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

func NSAppleEventDescriptorDescriptorWithDescriptorTypeData ¶

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

func NSAppleEventDescriptorDescriptorWithDouble ¶

func NSAppleEventDescriptorDescriptorWithDouble(doubleValue float64) *NSAppleEventDescriptor

func NSAppleEventDescriptorDescriptorWithEnumCode ¶

func NSAppleEventDescriptorDescriptorWithEnumCode(enumerator uint) *NSAppleEventDescriptor

func NSAppleEventDescriptorDescriptorWithFileURL ¶

func NSAppleEventDescriptorDescriptorWithFileURL(fileURL *NSURL) *NSAppleEventDescriptor

func NSAppleEventDescriptorDescriptorWithInt32 ¶

func NSAppleEventDescriptorDescriptorWithInt32(signedInt int) *NSAppleEventDescriptor

func NSAppleEventDescriptorDescriptorWithProcessIdentifier ¶

func NSAppleEventDescriptorDescriptorWithProcessIdentifier(processIdentifier int) *NSAppleEventDescriptor

func NSAppleEventDescriptorDescriptorWithString ¶

func NSAppleEventDescriptorDescriptorWithString(string_ *NSString) *NSAppleEventDescriptor

func NSAppleEventDescriptorDescriptorWithTypeCode ¶

func NSAppleEventDescriptorDescriptorWithTypeCode(typeCode uint) *NSAppleEventDescriptor

func NSAppleEventDescriptorFromID ¶

func NSAppleEventDescriptorFromID(id objc.ID) *NSAppleEventDescriptor

func NSAppleEventDescriptorListDescriptor ¶

func NSAppleEventDescriptorListDescriptor() *NSAppleEventDescriptor

func NSAppleEventDescriptorNullDescriptor ¶

func NSAppleEventDescriptorNullDescriptor() *NSAppleEventDescriptor

func NSAppleEventDescriptorRecordDescriptor ¶

func NSAppleEventDescriptorRecordDescriptor() *NSAppleEventDescriptor

func (*NSAppleEventDescriptor) AeDesc ¶

func (*NSAppleEventDescriptor) AttributeDescriptorForKeyword ¶

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

func (*NSAppleEventDescriptor) BooleanValue ¶

func (o *NSAppleEventDescriptor) BooleanValue() uint8

func (*NSAppleEventDescriptor) CoerceToDescriptorType ¶

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

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

func (*NSAppleEventDescriptor) DescriptorForKeyword ¶

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

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

func (*NSAppleEventDescriptor) InitRecordDescriptor ¶

func (o *NSAppleEventDescriptor) InitRecordDescriptor() *NSAppleEventDescriptor

func (*NSAppleEventDescriptor) InitWithAEDescNoCopy ¶

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

func (*NSAppleEventDescriptor) InitWithDescriptorTypeBytesLength ¶

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

func (*NSAppleEventDescriptor) InitWithDescriptorTypeData ¶

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

func (*NSAppleEventDescriptor) InitWithEventClassEventIDTargetDescriptorReturnIDTransactionID ¶

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

func (*NSAppleEventDescriptor) InsertDescriptorAtIndex ¶

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

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

func (*NSAppleEventDescriptor) NumberOfItems ¶

func (o *NSAppleEventDescriptor) NumberOfItems() int

func (*NSAppleEventDescriptor) ParamDescriptorForKeyword ¶

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

func (*NSAppleEventDescriptor) RemoveDescriptorAtIndex ¶

func (o *NSAppleEventDescriptor) RemoveDescriptorAtIndex(index int)

func (*NSAppleEventDescriptor) RemoveDescriptorWithKeyword ¶

func (o *NSAppleEventDescriptor) RemoveDescriptorWithKeyword(keyword uint)

func (*NSAppleEventDescriptor) RemoveParamDescriptorWithKeyword ¶

func (o *NSAppleEventDescriptor) RemoveParamDescriptorWithKeyword(keyword uint)

func (*NSAppleEventDescriptor) ReturnID ¶

func (o *NSAppleEventDescriptor) ReturnID() int16

func (*NSAppleEventDescriptor) SendEventWithOptionsTimeoutError ¶

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

func (*NSAppleEventDescriptor) SetAttributeDescriptorForKeyword ¶

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

func (*NSAppleEventDescriptor) SetDescriptorForKeyword ¶

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

func (*NSAppleEventDescriptor) SetParamDescriptorForKeyword ¶

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

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
}

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

func NSAppleEventManagerFromID ¶

func NSAppleEventManagerFromID(id objc.ID) *NSAppleEventManager

func NSAppleEventManagerSharedAppleEventManager ¶

func NSAppleEventManagerSharedAppleEventManager() *NSAppleEventManager

func (*NSAppleEventManager) AppleEventForSuspensionID ¶

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

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

func (*NSAppleEventManager) RemoveEventHandlerForEventClassAndEventID ¶

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

func (*NSAppleEventManager) ReplyAppleEventForSuspensionID ¶

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

func (*NSAppleEventManager) ResumeWithSuspensionID ¶

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

func (*NSAppleEventManager) SetCurrentAppleEventAndReplyEventWithSuspensionID ¶

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

func (*NSAppleEventManager) SetEventHandlerAndSelectorForEventClassAndEventID ¶

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

func (*NSAppleEventManager) SuspendCurrentAppleEvent ¶

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

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
}

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

func (*NSAppleScript) ExecuteAndReturnError ¶

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

func (*NSAppleScript) ExecuteAppleEventError ¶

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

func (*NSAppleScript) InitWithContentsOfURLError ¶

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

func (*NSAppleScript) InitWithSource ¶

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

func (*NSAppleScript) IsCompiled ¶

func (o *NSAppleScript) IsCompiled() bool

func (*NSAppleScript) Source ¶

func (o *NSAppleScript) Source() *NSString

type NSArchiver ¶

type NSArchiver struct {
	NSCoder
}

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

func (*NSArchiver) EncodeClassNameIntoClassName ¶

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

func (*NSArchiver) InitForWritingWithMutableData ¶

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

func (*NSArchiver) ReplaceObjectWithObject ¶

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

type NSArray ¶

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

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]

func NSArrayArrayWithArray ¶

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

func NSArrayArrayWithContentsOfFile deprecated

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

Deprecated: since macOS API_TO_BE_DEPRECATED.

func NSArrayArrayWithContentsOfURL deprecated

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

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]

func NSArrayArrayWithObjectsCount ¶

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

func NSArrayFromID ¶

func NSArrayFromID[ObjectType pureobjc.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]

func NSFileCoordinatorFilePresenters ¶

func NSFileCoordinatorFilePresenters() *NSArray[NSFilePresenter]

func NSFileVersionOtherVersionsOfItemAtURL ¶

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

func NSFileVersionUnresolvedConflictVersionsOfItemAtURL ¶

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

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<cls> containing the given non-collection class (no nested arrays or arrays of dictionaries, etc) from the given archive, previously encoded by \c NSKeyedArchiver. Enables \c requiresSecureCoding and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. Returns \c nil if the given data is not valid or cannot be decoded, and sets the \c error out parameter.

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. Enables \c requiresSecureCoding and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. Returns \c nil if the given data is not valid or cannot be decoded, and sets the \c error out parameter.

func NSLinguisticTaggerAvailableTagSchemesForLanguage deprecated

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

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTaggerAvailableTagSchemesForUnitLanguage deprecated

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

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTaggerTagsForStringRangeUnitSchemeOptionsOrthographyTokenRanges deprecated

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

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]

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)

func (*NSArray[ObjectType]) ArrayByAddingObject ¶

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

func (*NSArray[ObjectType]) ArrayByAddingObjectsFromArray ¶

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

func (*NSArray[ObjectType]) ArrayByApplyingDifference ¶

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

func (*NSArray[ObjectType]) ComponentsJoinedByString ¶

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

func (*NSArray[ObjectType]) ContainsObject ¶

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

func (*NSArray[ObjectType]) Count ¶

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

func (*NSArray[ObjectType]) DescriptionWithLocale ¶

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

func (*NSArray[ObjectType]) DescriptionWithLocaleIndent ¶

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

func (*NSArray[ObjectType]) DifferenceFromArray ¶

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

func (*NSArray[ObjectType]) DifferenceFromArrayWithOptions ¶

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

func (*NSArray[ObjectType]) DifferenceFromArrayWithOptionsUsingEquivalenceTest ¶

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

func (*NSArray[ObjectType]) EnumerateObjectsAtIndexesOptionsUsing ¶

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

func (*NSArray[ObjectType]) EnumerateObjectsUsing ¶

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

func (*NSArray[ObjectType]) EnumerateObjectsWithOptionsUsing ¶

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

func (*NSArray[ObjectType]) FilteredArrayUsingPredicate ¶

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

func (*NSArray[ObjectType]) FirstObject ¶

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

func (*NSArray[ObjectType]) FirstObjectCommonWithArray ¶

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

func (*NSArray[ObjectType]) GetObjects deprecated

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

Deprecated: Use -getObjects:range: instead

func (*NSArray[ObjectType]) GetObjectsRange ¶

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

func (*NSArray[ObjectType]) IndexOfObject ¶

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

func (*NSArray[ObjectType]) IndexOfObjectAtIndexesOptionsPassingTest ¶

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

func (*NSArray[ObjectType]) IndexOfObjectIdenticalTo ¶

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

func (*NSArray[ObjectType]) IndexOfObjectIdenticalToInRange ¶

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

func (*NSArray[ObjectType]) IndexOfObjectInRange ¶

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

func (*NSArray[ObjectType]) IndexOfObjectInSortedRangeOptionsUsingComparator ¶

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

func (*NSArray[ObjectType]) IndexOfObjectPassingTest ¶

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

func (*NSArray[ObjectType]) IndexOfObjectWithOptionsPassingTest ¶

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

func (*NSArray[ObjectType]) IndexesOfObjectsAtIndexesOptionsPassingTest ¶

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

func (*NSArray[ObjectType]) IndexesOfObjectsPassingTest ¶

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

func (*NSArray[ObjectType]) IndexesOfObjectsWithOptionsPassingTest ¶

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

func (*NSArray[ObjectType]) Init ¶

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

func (*NSArray[ObjectType]) InitWithArray ¶

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

func (*NSArray[ObjectType]) InitWithArrayCopyItems ¶

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

func (*NSArray[ObjectType]) InitWithCoder ¶

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

func (*NSArray[ObjectType]) InitWithContentsOfFile deprecated

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

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSArray[ObjectType]) InitWithContentsOfURL deprecated

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

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]

func (*NSArray[ObjectType]) IsEqualToArray ¶

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

func (*NSArray[ObjectType]) LastObject ¶

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

func (*NSArray[ObjectType]) MakeObjectsPerformSelector ¶

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

func (*NSArray[ObjectType]) MakeObjectsPerformSelectorWithObject ¶

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

func (*NSArray[ObjectType]) ObjectAtIndex ¶

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

func (*NSArray[ObjectType]) ObjectAtIndexedSubscript ¶

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

func (*NSArray[ObjectType]) ObjectEnumerator ¶

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

func (*NSArray[ObjectType]) ObjectsAtIndexes ¶

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

func (*NSArray[ObjectType]) PathsMatchingExtensions ¶

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

func (*NSArray[ObjectType]) RemoveObserverFromObjectsAtIndexesForKeyPath ¶

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

func (*NSArray[ObjectType]) RemoveObserverFromObjectsAtIndexesForKeyPathContext ¶

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

func (*NSArray[ObjectType]) ReverseObjectEnumerator ¶

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

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]

func (*NSArray[ObjectType]) SortedArrayUsingDescriptors ¶

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

func (*NSArray[ObjectType]) SortedArrayUsingFunctionContext ¶

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

func (*NSArray[ObjectType]) SortedArrayUsingFunctionContextHint ¶

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

func (*NSArray[ObjectType]) SortedArrayUsingSelector ¶

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

func (*NSArray[ObjectType]) SortedArrayWithOptionsUsingComparator ¶

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

func (*NSArray[ObjectType]) SubarrayWithRange ¶

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

func (*NSArray[ObjectType]) WriteToFileAtomically deprecated

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

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSArray[ObjectType]) WriteToURLAtomically deprecated

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

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
}

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
}

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

func (*NSAttributedString) AttributeAtIndexLongestEffectiveRangeInRange ¶

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

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

func (*NSAttributedString) AttributesAtIndexEffectiveRange ¶

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

func (*NSAttributedString) AttributesAtIndexLongestEffectiveRangeInRange ¶

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

func (*NSAttributedString) EnumerateAttributeInRangeOptionsUsing ¶

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

func (*NSAttributedString) EnumerateAttributesInRangeOptionsUsing ¶

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

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

func (*NSAttributedString) Length ¶

func (o *NSAttributedString) Length() uint

func (*NSAttributedString) String ¶

func (o *NSAttributedString) String() *NSString

type NSAttributedStringEnumerationOptions ¶

type NSAttributedStringEnumerationOptions uint64
const (
	NSAttributedStringEnumerationReverse                          NSAttributedStringEnumerationOptions = 2
	NSAttributedStringEnumerationLongestEffectiveRangeNotRequired NSAttributedStringEnumerationOptions = 1048576
)

func (NSAttributedStringEnumerationOptions) String ¶

type NSAttributedStringFormattingOptions ¶

type NSAttributedStringFormattingOptions uint64
const (
	NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging NSAttributedStringFormattingOptions = 1
	NSAttributedStringFormattingApplyReplacementIndexAttribute         NSAttributedStringFormattingOptions = 2
)

func (NSAttributedStringFormattingOptions) String ¶

type NSAttributedStringMarkdownInterpretedSyntax ¶

type NSAttributedStringMarkdownInterpretedSyntax int64
const (
	NSAttributedStringMarkdownInterpretedSyntaxFull                           NSAttributedStringMarkdownInterpretedSyntax = 0
	NSAttributedStringMarkdownInterpretedSyntaxInlineOnly                     NSAttributedStringMarkdownInterpretedSyntax = 1
	NSAttributedStringMarkdownInterpretedSyntaxInlineOnlyPreservingWhitespace NSAttributedStringMarkdownInterpretedSyntax = 2
)

func (NSAttributedStringMarkdownInterpretedSyntax) String ¶

type NSAttributedStringMarkdownParsingFailurePolicy ¶

type NSAttributedStringMarkdownParsingFailurePolicy int64
const (
	NSAttributedStringMarkdownParsingFailureReturnError                     NSAttributedStringMarkdownParsingFailurePolicy = 0
	NSAttributedStringMarkdownParsingFailureReturnPartiallyParsedIfPossible NSAttributedStringMarkdownParsingFailurePolicy = 1
)

func (NSAttributedStringMarkdownParsingFailurePolicy) String ¶

type NSAttributedStringMarkdownParsingOptions ¶

type NSAttributedStringMarkdownParsingOptions struct {
	NSObject
}

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 ¶

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
}

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

func (*NSAttributedStringMarkdownSourcePosition) RangeInString ¶

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

func (*NSAttributedStringMarkdownSourcePosition) StartColumn ¶

func (*NSAttributedStringMarkdownSourcePosition) StartLine ¶

type NSAutoreleasePool ¶

type NSAutoreleasePool struct {
	NSObject
}

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)

func (*NSAutoreleasePool) Drain ¶

func (o *NSAutoreleasePool) Drain()

type NSBackgroundActivityResult ¶

type NSBackgroundActivityResult int64
const (
	NSBackgroundActivityResultFinished NSBackgroundActivityResult = 1
	NSBackgroundActivityResultDeferred NSBackgroundActivityResult = 2
)

func (NSBackgroundActivityResult) String ¶

type NSBackgroundActivityScheduler ¶

type NSBackgroundActivityScheduler struct {
	NSObject
}

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

func (*NSBackgroundActivityScheduler) Interval ¶

func (o *NSBackgroundActivityScheduler) Interval() float64

func (*NSBackgroundActivityScheduler) Invalidate ¶

func (o *NSBackgroundActivityScheduler) Invalidate()

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))

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
const (
	NSBinarySearchingFirstEqual     NSBinarySearchingOptions = 256
	NSBinarySearchingLastEqual      NSBinarySearchingOptions = 512
	NSBinarySearchingInsertionIndex NSBinarySearchingOptions = 1024
)

func (NSBinarySearchingOptions) String ¶

func (e NSBinarySearchingOptions) String() string

type NSBlockOperation ¶

type NSBlockOperation struct {
	NSOperation
}

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
}

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

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. - Parameters: - key: The key for the localized string to retrieve. - value: A default value to return if a localized string for “key“ cannot be found. - tableName: The name of the strings file to search. If `nil`, the method uses tables in `Localizable.strings`. - localizations: An array of BCP 47 language codes corresponding to available localizations. Bundle compares the array against its available localizations, and uses the best result to retrieve the localized string. If empty, we treat it as no localization is available, and may return a fallback. - Returns: A localized version of the string designated by “key“ in table “tableName“.

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
}

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
const (
	NSByteCountFormatterCountStyleFile    NSByteCountFormatterCountStyle = 0
	NSByteCountFormatterCountStyleMemory  NSByteCountFormatterCountStyle = 1
	NSByteCountFormatterCountStyleDecimal NSByteCountFormatterCountStyle = 2
	NSByteCountFormatterCountStyleBinary  NSByteCountFormatterCountStyle = 3
)

func (NSByteCountFormatterCountStyle) String ¶

type NSByteCountFormatterUnits ¶

type NSByteCountFormatterUnits uint64
const (
	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 pureobjc.AnyObject, ObjectType pureobjc.AnyObject] struct {
	NSObject
}

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

func NSCacheFromID ¶

func NSCacheFromID[KeyType pureobjc.AnyObject, ObjectType pureobjc.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

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

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

func (*NSCache[KeyType, ObjectType]) RemoveObjectForKey ¶

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

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)

func (*NSCache[KeyType, ObjectType]) SetObjectForKeyCost ¶

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

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
}

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
}

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

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

func (*NSCalendar) ComponentFromDate ¶

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

func (*NSCalendar) ComponentsFromDate ¶

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

func (*NSCalendar) ComponentsFromDateComponentsToDateComponentsOptions ¶

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

func (*NSCalendar) ComponentsFromDateToDateOptions ¶

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

func (*NSCalendar) ComponentsInTimeZoneFromDate ¶

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

func (*NSCalendar) DateByAddingComponentsToDateOptions ¶

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

func (*NSCalendar) DateByAddingUnitValueToDateOptions ¶

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

func (*NSCalendar) DateBySettingHourMinuteSecondOfDateOptions ¶

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

func (*NSCalendar) DateBySettingUnitValueOfDateOptions ¶

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

func (*NSCalendar) DateFromComponents ¶

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

func (*NSCalendar) DateMatchesComponents ¶

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

func (*NSCalendar) DateWithEraYearForWeekOfYearWeekOfYearWeekdayHourMinuteSecondNanosecond ¶

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

func (*NSCalendar) DateWithEraYearMonthDayHourMinuteSecondNanosecond ¶

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

func (*NSCalendar) EnumerateDatesStartingAfterDateMatchingComponentsOptionsUsing ¶

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

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)

func (*NSCalendar) GetEraYearMonthDayFromDate ¶

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

func (*NSCalendar) GetHourMinuteSecondNanosecondFromDate ¶

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

func (*NSCalendar) InitWithCalendarIdentifier ¶

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

func (*NSCalendar) IsDateEqualToDateToUnitGranularity ¶

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

func (*NSCalendar) IsDateInSameDayAsDate ¶

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

func (*NSCalendar) IsDateInToday ¶

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

func (*NSCalendar) IsDateInTomorrow ¶

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

func (*NSCalendar) IsDateInWeekend ¶

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

func (*NSCalendar) IsDateInYesterday ¶

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

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

func (*NSCalendar) MinimumDaysInFirstWeek ¶

func (o *NSCalendar) MinimumDaysInFirstWeek() uint

func (*NSCalendar) MinimumRangeOfUnit ¶

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

func (*NSCalendar) MonthSymbols ¶

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

func (*NSCalendar) NextDateAfterDateMatchingComponentsOptions ¶

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

func (*NSCalendar) NextDateAfterDateMatchingHourMinuteSecondOptions ¶

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

func (*NSCalendar) NextDateAfterDateMatchingUnitValueOptions ¶

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

func (*NSCalendar) NextWeekendStartDateIntervalOptionsAfterDate ¶

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

func (*NSCalendar) OrdinalityOfUnitInUnitForDate ¶

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

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

func (*NSCalendar) RangeOfUnitStartDateIntervalForDate ¶

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

func (*NSCalendar) RangeOfWeekendStartDateIntervalContainingDate ¶

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

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

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
}

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
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
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
}

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

func NSCharacterSetCharacterSetWithCharactersInString ¶

func NSCharacterSetCharacterSetWithCharactersInString(aString *NSString) *NSCharacterSet

func NSCharacterSetCharacterSetWithContentsOfFile ¶

func NSCharacterSetCharacterSetWithContentsOfFile(fName *NSString) *NSCharacterSet

func NSCharacterSetCharacterSetWithRange ¶

func NSCharacterSetCharacterSetWithRange(aRange NSRange) *NSCharacterSet

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

func (*NSCharacterSet) HasMemberInPlane ¶

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

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

func (*NSCharacterSet) LongCharacterIsMember ¶

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

type NSClassDescription ¶

type NSClassDescription struct {
	NSObject
}

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

func NSClassDescriptionClassDescriptionForClass ¶

func NSClassDescriptionClassDescriptionForClass(aClass objc.Class) *NSClassDescription

func NSClassDescriptionFromID ¶

func NSClassDescriptionFromID(id objc.ID) *NSClassDescription

type NSCloneCommand ¶

type NSCloneCommand struct {
	NSScriptCommand
}

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
}

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
}

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

func (*NSCoder) DecodeArrayOfObjCTypeCountAt ¶

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

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<cls>, containing the given non-collection class (no nested arrays or arrays of dictionaries, etc) from the coder. Requires \c NSSecureCoding otherwise an exception is thrown and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. Returns \c nil if the object for \c key is not of the expected types, or cannot be decoded, and sets the \c error on the decoder.

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. Requires \c NSSecureCoding otherwise an exception is thrown and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. Returns \c nil if the object for \c key is not of the expected types, or cannot be decoded, and sets the \c error on the decoder.

func (*NSCoder) DecodeBoolForKey ¶

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

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

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

func (*NSCoder) DecodeDataObject ¶

func (o *NSCoder) DecodeDataObject() *NSData

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. Requires \c NSSecureCoding otherwise an exception is thrown and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. Returns \c nil if the object for \c key is not of the expected types, or cannot be decoded, and sets the \c error on the decoder.

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. Requires \c NSSecureCoding otherwise an exception is thrown and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. Returns \c nil if the object for \c key is not of the expected types, or cannot be decoded, and sets the \c error on the decoder.

func (*NSCoder) DecodeDoubleForKey ¶

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

func (*NSCoder) DecodeFloatForKey ¶

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

func (*NSCoder) DecodeInt32ForKey ¶

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

func (*NSCoder) DecodeInt64ForKey ¶

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

func (*NSCoder) DecodeIntForKey ¶

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

func (*NSCoder) DecodeIntegerForKey ¶

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

func (*NSCoder) DecodeNXObject deprecated

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

Deprecated: Not supported

func (*NSCoder) DecodeObject ¶

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

func (*NSCoder) DecodeObjectForKey ¶

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

func (*NSCoder) DecodeObjectOfClassForKey ¶

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

func (*NSCoder) DecodeObjectOfClassesForKey ¶

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

func (*NSCoder) DecodePoint ¶

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

func (*NSCoder) DecodePointForKey ¶

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

func (*NSCoder) DecodePropertyList ¶

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

func (*NSCoder) DecodePropertyListForKey ¶

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

func (*NSCoder) DecodeRect ¶

func (o *NSCoder) DecodeRect() corefoundation.CGRect

func (*NSCoder) DecodeRectForKey ¶

func (o *NSCoder) DecodeRectForKey(key *NSString) corefoundation.CGRect

func (*NSCoder) DecodeSize ¶

func (o *NSCoder) DecodeSize() corefoundation.CGSize

func (*NSCoder) DecodeSizeForKey ¶

func (o *NSCoder) DecodeSizeForKey(key *NSString) corefoundation.CGSize

func (*NSCoder) DecodeTopLevelObjectAndReturnError ¶

func (o *NSCoder) DecodeTopLevelObjectAndReturnError() (objc.ID, error)

func (*NSCoder) DecodeTopLevelObjectForKeyError ¶

func (o *NSCoder) DecodeTopLevelObjectForKeyError(key *NSString) (objc.ID, error)

func (*NSCoder) DecodeTopLevelObjectOfClassForKeyError ¶

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

func (*NSCoder) DecodeTopLevelObjectOfClassesForKeyError ¶

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

func (*NSCoder) DecodeValueOfObjCTypeAt deprecated

func (o *NSCoder) DecodeValueOfObjCTypeAt(type_ string, data unsafe.Pointer)

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSCoder) DecodeValueOfObjCTypeAtSize ¶

func (o *NSCoder) DecodeValueOfObjCTypeAtSize(type_ string, data unsafe.Pointer, size uint)

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)

func (*NSCoder) EncodeBoolForKey ¶

func (o *NSCoder) EncodeBoolForKey(value bool, key *NSString)

func (*NSCoder) EncodeBycopyObject ¶

func (o *NSCoder) EncodeBycopyObject(anObject objc.ID)

func (*NSCoder) EncodeByrefObject ¶

func (o *NSCoder) EncodeByrefObject(anObject objc.ID)

func (*NSCoder) EncodeBytesLength ¶

func (o *NSCoder) EncodeBytesLength(byteaddr unsafe.Pointer, length uint)

func (*NSCoder) EncodeBytesLengthForKey ¶

func (o *NSCoder) EncodeBytesLengthForKey(bytes_ *uint8, length uint, key *NSString)

func (*NSCoder) EncodeConditionalObject ¶

func (o *NSCoder) EncodeConditionalObject(object objc.ID)

func (*NSCoder) EncodeConditionalObjectForKey ¶

func (o *NSCoder) EncodeConditionalObjectForKey(object objc.ID, key *NSString)

func (*NSCoder) EncodeDataObject ¶

func (o *NSCoder) EncodeDataObject(data *NSData)

func (*NSCoder) EncodeDoubleForKey ¶

func (o *NSCoder) EncodeDoubleForKey(value float64, key *NSString)

func (*NSCoder) EncodeFloatForKey ¶

func (o *NSCoder) EncodeFloatForKey(value float32, key *NSString)

func (*NSCoder) EncodeInt32ForKey ¶

func (o *NSCoder) EncodeInt32ForKey(value int32, key *NSString)

func (*NSCoder) EncodeInt64ForKey ¶

func (o *NSCoder) EncodeInt64ForKey(value int64, key *NSString)

func (*NSCoder) EncodeIntForKey ¶

func (o *NSCoder) EncodeIntForKey(value int, key *NSString)

func (*NSCoder) EncodeIntegerForKey ¶

func (o *NSCoder) EncodeIntegerForKey(value int, key *NSString)

func (*NSCoder) EncodeNXObject deprecated

func (o *NSCoder) EncodeNXObject(object objc.ID)

Deprecated: Not supported

func (*NSCoder) EncodeObject ¶

func (o *NSCoder) EncodeObject(object objc.ID)

func (*NSCoder) EncodeObjectForKey ¶

func (o *NSCoder) EncodeObjectForKey(object objc.ID, key *NSString)

func (*NSCoder) EncodePoint ¶

func (o *NSCoder) EncodePoint(point corefoundation.CGPoint)

func (*NSCoder) EncodePointForKey ¶

func (o *NSCoder) EncodePointForKey(point corefoundation.CGPoint, key *NSString)

func (*NSCoder) EncodePropertyList ¶

func (o *NSCoder) EncodePropertyList(aPropertyList objc.ID)

func (*NSCoder) EncodeRect ¶

func (o *NSCoder) EncodeRect(rect corefoundation.CGRect)

func (*NSCoder) EncodeRectForKey ¶

func (o *NSCoder) EncodeRectForKey(rect corefoundation.CGRect, key *NSString)

func (*NSCoder) EncodeRootObject ¶

func (o *NSCoder) EncodeRootObject(rootObject objc.ID)

func (*NSCoder) EncodeSize ¶

func (o *NSCoder) EncodeSize(size corefoundation.CGSize)

func (*NSCoder) EncodeSizeForKey ¶

func (o *NSCoder) EncodeSizeForKey(size corefoundation.CGSize, key *NSString)

func (*NSCoder) EncodeValueOfObjCTypeAt ¶

func (o *NSCoder) EncodeValueOfObjCTypeAt(type_ string, addr unsafe.Pointer)

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)

@abstract Signals to this coder that the decode has failed. @parameter non-nil error that describes the reason why the decode failed @discussion Sets an error on this NSCoder once per TopLevel decode; calling it repeatedly will have no effect until the call stack unwinds to one of the TopLevel decode entry-points. This method is only meaningful to call for decodes. Typically, you would want to call this method in your -initWithCoder: implementation when you detect situations like: - lack of secure coding - corruption of your data - domain validation failures After calling -failWithError: within your -initWithCoder: implementation, you should clean up and return nil as early as possible. Once an error has been signaled to a decoder, it remains set until it has handed off to the first TopLevel decode invocation above it. For example, consider the following call graph: A -decodeTopLevelObjectForKey:error: B -initWithCoder: C -decodeObjectForKey: D -initWithCoder: E -decodeObjectForKey: F -failWithError: In this case the error provided in stack-frame F will be returned via the outError in stack-frame A. Furthermore the result object from decodeTopLevelObjectForKey:error: will be nil, regardless of the result of stack-frame B. NSCoder implementations support two mechanisms for the stack-unwinding from F to A: - forced (NSException based) - particpatory (error based) The kind of unwinding you get is determined by the decodingFailurePolicy property of this NSCoder (which defaults to NSDecodingFailurePolicyRaiseException to match historical behavior).

func (*NSCoder) ObjectZone ¶

func (o *NSCoder) ObjectZone() unsafe.Pointer

func (*NSCoder) RequiresSecureCoding ¶

func (o *NSCoder) RequiresSecureCoding() bool

func (*NSCoder) SetObjectZone ¶

func (o *NSCoder) SetObjectZone(zone unsafe.Pointer)

func (*NSCoder) SystemVersion ¶

func (o *NSCoder) SystemVersion() uint

func (*NSCoder) VersionForClassName ¶

func (o *NSCoder) VersionForClassName(className *NSString) int

type NSCoding ¶

type NSCoding interface {
	EncodeWithCoder(coder *NSCoder)
	InitWithCoder(coder *NSCoder) unsafe.Pointer
}

NSCoding wraps the ObjC protocol NSCoding.

type NSCollectionChangeType ¶

type NSCollectionChangeType int64
const (
	NSCollectionChangeInsert NSCollectionChangeType = 0
	NSCollectionChangeRemove NSCollectionChangeType = 1
)

func (NSCollectionChangeType) String ¶

func (e NSCollectionChangeType) String() string

type NSComparisonPredicate ¶

type NSComparisonPredicate struct {
	NSPredicate
}

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

func NSComparisonPredicatePredicateWithLeftExpressionRightExpressionModifierTypeOptions ¶

func NSComparisonPredicatePredicateWithLeftExpressionRightExpressionModifierTypeOptions(lhs *NSExpression, rhs *NSExpression, modifier NSComparisonPredicateModifier, type_ NSPredicateOperatorType, options NSComparisonPredicateOptions) *NSComparisonPredicate

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

func (*NSComparisonPredicate) InitWithLeftExpressionRightExpressionCustomSelector ¶

func (o *NSComparisonPredicate) InitWithLeftExpressionRightExpressionCustomSelector(lhs *NSExpression, rhs *NSExpression, selector objc.SEL) *NSComparisonPredicate

func (*NSComparisonPredicate) InitWithLeftExpressionRightExpressionModifierTypeOptions ¶

func (o *NSComparisonPredicate) InitWithLeftExpressionRightExpressionModifierTypeOptions(lhs *NSExpression, rhs *NSExpression, modifier NSComparisonPredicateModifier, type_ NSPredicateOperatorType, options NSComparisonPredicateOptions) *NSComparisonPredicate

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
const (
	NSDirectPredicateModifier NSComparisonPredicateModifier = 0
	NSAllPredicateModifier    NSComparisonPredicateModifier = 1
	NSAnyPredicateModifier    NSComparisonPredicateModifier = 2
)

func (NSComparisonPredicateModifier) String ¶

type NSComparisonPredicateOptions ¶

type NSComparisonPredicateOptions uint64
const (
	NSCaseInsensitivePredicateOption      NSComparisonPredicateOptions = 1
	NSDiacriticInsensitivePredicateOption NSComparisonPredicateOptions = 2
	NSNormalizedPredicateOption           NSComparisonPredicateOptions = 4
)

func (NSComparisonPredicateOptions) String ¶

type NSComparisonResult ¶

type NSComparisonResult int64
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
}

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

func NSCompoundPredicateAndPredicateWithSubpredicates ¶

func NSCompoundPredicateAndPredicateWithSubpredicates(subpredicates *NSArray[*NSPredicate]) *NSCompoundPredicate

* Convenience Methods **

func NSCompoundPredicateFromID ¶

func NSCompoundPredicateFromID(id objc.ID) *NSCompoundPredicate

func NSCompoundPredicateNotPredicateWithSubpredicate ¶

func NSCompoundPredicateNotPredicateWithSubpredicate(predicate *NSPredicate) *NSCompoundPredicate

func NSCompoundPredicateOrPredicateWithSubpredicates ¶

func NSCompoundPredicateOrPredicateWithSubpredicates(subpredicates *NSArray[*NSPredicate]) *NSCompoundPredicate

func (*NSCompoundPredicate) CompoundPredicateType ¶

func (o *NSCompoundPredicate) CompoundPredicateType() NSCompoundPredicateType

func (*NSCompoundPredicate) InitWithCoder ¶

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

func (*NSCompoundPredicate) InitWithTypeSubpredicates ¶

func (o *NSCompoundPredicate) InitWithTypeSubpredicates(type_ NSCompoundPredicateType, subpredicates *NSArray[*NSPredicate]) *NSCompoundPredicate

func (*NSCompoundPredicate) Subpredicates ¶

func (o *NSCompoundPredicate) Subpredicates() *NSArray[objc.ID]

type NSCompoundPredicateType ¶

type NSCompoundPredicateType uint64
const (
	NSNotPredicateType NSCompoundPredicateType = 0
	NSAndPredicateType NSCompoundPredicateType = 1
	NSOrPredicateType  NSCompoundPredicateType = 2
)

func (NSCompoundPredicateType) String ¶

func (e NSCompoundPredicateType) String() string

type NSCondition ¶

type NSCondition struct {
	NSObject
}

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

func NSConditionFromID ¶

func NSConditionFromID(id objc.ID) *NSCondition

func (*NSCondition) Broadcast ¶

func (o *NSCondition) Broadcast()

func (*NSCondition) Name ¶

func (o *NSCondition) Name() *NSString

func (*NSCondition) SetName ¶

func (o *NSCondition) SetName(name *NSString)

func (*NSCondition) Signal ¶

func (o *NSCondition) Signal()

func (*NSCondition) Wait ¶

func (o *NSCondition) Wait()

func (*NSCondition) WaitUntilDate ¶

func (o *NSCondition) WaitUntilDate(limit *NSDate) bool

type NSConditionLock ¶

type NSConditionLock struct {
	NSObject
}

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

func (*NSConditionLock) LockBeforeDate ¶

func (o *NSConditionLock) LockBeforeDate(limit *NSDate) bool

func (*NSConditionLock) LockWhenCondition ¶

func (o *NSConditionLock) LockWhenCondition(condition int)

func (*NSConditionLock) LockWhenConditionBeforeDate ¶

func (o *NSConditionLock) LockWhenConditionBeforeDate(condition int, limit *NSDate) bool

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

func (*NSConditionLock) TryLockWhenCondition ¶

func (o *NSConditionLock) TryLockWhenCondition(condition int) bool

func (*NSConditionLock) UnlockWithCondition ¶

func (o *NSConditionLock) UnlockWithCondition(condition int)

type NSConnection ¶

type NSConnection struct {
	NSObject
}

Apple documentation: https://developer.apple.com/documentation/foundation/nsconnection Deprecated: Use NSXPCConnection instead

func NSConnectionConnectionWithReceivePortSendPort ¶

func NSConnectionConnectionWithReceivePortSendPort(receivePort *NSPort, sendPort *NSPort) *NSConnection

func NSConnectionConnectionWithRegisteredNameHost deprecated

func NSConnectionConnectionWithRegisteredNameHost(name *NSString, hostName *NSString) *NSConnection

Deprecated: since macOS 10.6.

func NSConnectionConnectionWithRegisteredNameHostUsingNameServer deprecated

func NSConnectionConnectionWithRegisteredNameHostUsingNameServer(name *NSString, hostName *NSString, server *NSPortNameServer) *NSConnection

Deprecated: since macOS 10.6.

func NSConnectionDefaultConnection deprecated

func NSConnectionDefaultConnection() *NSConnection

Deprecated: since macOS 10.6.

func NSConnectionFromID ¶

func NSConnectionFromID(id objc.ID) *NSConnection

func NSConnectionServiceConnectionWithNameRootObject ¶

func NSConnectionServiceConnectionWithNameRootObject(name *NSString, root objc.ID) *NSConnection

func NSConnectionServiceConnectionWithNameRootObjectUsingNameServer ¶

func NSConnectionServiceConnectionWithNameRootObjectUsingNameServer(name *NSString, root objc.ID, server *NSPortNameServer) *NSConnection

func (*NSConnection) AddRequestMode ¶

func (o *NSConnection) AddRequestMode(rmode *NSString)

func (*NSConnection) AddRunLoop ¶

func (o *NSConnection) AddRunLoop(runloop *NSRunLoop)

func (*NSConnection) Delegate ¶

func (o *NSConnection) Delegate() NSConnectionDelegate

func (*NSConnection) DispatchWithComponents ¶

func (o *NSConnection) DispatchWithComponents(components *NSArray[objc.ID])

func (*NSConnection) EnableMultipleThreads ¶

func (o *NSConnection) EnableMultipleThreads()

func (*NSConnection) IndependentConversationQueueing ¶

func (o *NSConnection) IndependentConversationQueueing() bool

func (*NSConnection) InitWithReceivePortSendPort ¶

func (o *NSConnection) InitWithReceivePortSendPort(receivePort *NSPort, sendPort *NSPort) *NSConnection

func (*NSConnection) Invalidate ¶

func (o *NSConnection) Invalidate()

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

func (*NSConnection) RegisterNameWithNameServer ¶

func (o *NSConnection) RegisterNameWithNameServer(name *NSString, server *NSPortNameServer) bool

func (*NSConnection) RemoteObjects ¶

func (o *NSConnection) RemoteObjects() *NSArray[objc.ID]

func (*NSConnection) RemoveRequestMode ¶

func (o *NSConnection) RemoveRequestMode(rmode *NSString)

func (*NSConnection) RemoveRunLoop ¶

func (o *NSConnection) RemoveRunLoop(runloop *NSRunLoop)

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()

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 pureobjc.AnyObject] struct {
	NSMutableSet[ObjectType]
}

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

func NSCountedSetFromID ¶

func NSCountedSetFromID[ObjectType pureobjc.AnyObject](id objc.ID) *NSCountedSet[ObjectType]

func (*NSCountedSet[ObjectType]) CountForObject ¶

func (o *NSCountedSet[ObjectType]) CountForObject(object ObjectType) uint

func (*NSCountedSet[ObjectType]) InitWithArray ¶

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

func (*NSCountedSet[ObjectType]) InitWithCapacity ¶

func (o *NSCountedSet[ObjectType]) InitWithCapacity(numItems uint) *NSCountedSet[ObjectType]

func (*NSCountedSet[ObjectType]) InitWithSet ¶

func (o *NSCountedSet[ObjectType]) InitWithSet(set *NSSet[ObjectType]) *NSCountedSet[ObjectType]

type NSCreateCommand ¶

type NSCreateCommand struct {
	NSScriptCommand
}

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
}

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

func NSArchiverArchivedDataWithRootObject ¶

func NSArchiverArchivedDataWithRootObject(rootObject objc.ID) *NSData

func NSDataData ¶

func NSDataData() *NSData

func NSDataDataWithBytesLength ¶

func NSDataDataWithBytesLength(bytes_ unsafe.Pointer, length uint) *NSData

func NSDataDataWithBytesNoCopyLength ¶

func NSDataDataWithBytesNoCopyLength(bytes_ unsafe.Pointer, length uint) *NSData

func NSDataDataWithBytesNoCopyLengthFreeWhenDone ¶

func NSDataDataWithBytesNoCopyLengthFreeWhenDone(bytes_ unsafe.Pointer, length uint, b bool) *NSData

func NSDataDataWithContentsOfFile ¶

func NSDataDataWithContentsOfFile(path *NSString) *NSData

func NSDataDataWithContentsOfFileOptionsError ¶

func NSDataDataWithContentsOfFileOptionsError(path *NSString, readOptionsMask NSDataReadingOptions) (*NSData, error)

func NSDataDataWithContentsOfURL ¶

func NSDataDataWithContentsOfURL(url *NSURL) *NSData

func NSDataDataWithContentsOfURLOptionsError ¶

func NSDataDataWithContentsOfURLOptionsError(url *NSURL, readOptionsMask NSDataReadingOptions) (*NSData, error)

func NSDataDataWithData ¶

func NSDataDataWithData(data *NSData) *NSData

func NSDataFromID ¶

func NSDataFromID(id objc.ID) *NSData

func NSJSONSerializationDataWithJSONObjectOptionsError ¶

func NSJSONSerializationDataWithJSONObjectOptionsError(obj objc.ID, opt NSJSONWritingOptions) (*NSData, error)

func NSKeyedArchiverArchivedDataWithRootObject deprecated

func NSKeyedArchiverArchivedDataWithRootObject(rootObject objc.ID) *NSData

Deprecated: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead

func NSKeyedArchiverArchivedDataWithRootObjectRequiringSecureCodingError ¶

func NSKeyedArchiverArchivedDataWithRootObjectRequiringSecureCodingError(object objc.ID, requiresSecureCoding bool) (*NSData, error)

Returns an \c NSData object containing the encoded form of the object graph whose root object is given, optionally disabling secure coding. If \c NSSecureCoding cannot be used, \c requiresSecureCoding may be turned off here; for improved security, however, \c requiresSecureCoding should be left enabled whenever possible. \c requiresSecureCoding ensures that all encoded objects conform to \c NSSecureCoding, preventing the possibility of encoding objects which cannot be decoded later. If the object graph cannot be encoded, returns \c nil and sets the \c error out parameter.

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)

func NSURLConnectionSendSynchronousRequestReturningResponseError ¶

func NSURLConnectionSendSynchronousRequestReturningResponseError(request *NSURLRequest, response *NSURLResponse) (*NSData, error)

@method sendSynchronousRequest:returningResponse:error: @abstract Performs a synchronous load of the given request, returning an NSURLResponse in the given out parameter. @discussion A synchronous load for the given request is built on top of the asynchronous loading code made available by the class. The calling thread is blocked while the asynchronous loading system performs the URL load on a thread spawned specifically for this load request. No special threading or run loop configuration is necessary in the calling thread in order to perform a synchronous load. For instance, the calling thread need not be running its run loop. @param request The request to load. Note that the request is deep-copied as part of the initialization process. Changes made to the request argument after this method returns do not affect the request that is used for the loading process. @param response An out parameter which is filled in with the response generated by performing the load. @param error Out parameter (may be NULL) used if an error occurs while processing the request. Will not be modified if the load succeeds. @result The content of the URL resulting from performing the load, or nil if the load failed. Deprecated: Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h

func (*NSData) Base64EncodedDataWithOptions ¶

func (o *NSData) Base64EncodedDataWithOptions(options NSDataBase64EncodingOptions) *NSData

func (*NSData) Base64EncodedStringWithOptions ¶

func (o *NSData) Base64EncodedStringWithOptions(options NSDataBase64EncodingOptions) *NSString

func (*NSData) Base64Encoding deprecated

func (o *NSData) Base64Encoding() *NSString

Deprecated: Use base64EncodedStringWithOptions: instead

func (*NSData) Bytes ¶

func (o *NSData) Bytes() unsafe.Pointer

func (*NSData) CompressedDataUsingAlgorithmError ¶

func (o *NSData) CompressedDataUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (*NSData, error)

func (*NSData) DecompressedDataUsingAlgorithmError ¶

func (o *NSData) DecompressedDataUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (*NSData, error)

func (*NSData) EnumerateByteRangesUsing ¶

func (o *NSData) EnumerateByteRangesUsing(block objc.Block)

func (*NSData) GetBytes deprecated

func (o *NSData) GetBytes(buffer unsafe.Pointer)

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)

func (*NSData) GetBytesRange ¶

func (o *NSData) GetBytesRange(buffer unsafe.Pointer, range_ NSRange)

func (*NSData) InitWithBase64EncodedDataOptions ¶

func (o *NSData) InitWithBase64EncodedDataOptions(base64Data *NSData, options NSDataBase64DecodingOptions) *NSData

func (*NSData) InitWithBase64EncodedStringOptions ¶

func (o *NSData) InitWithBase64EncodedStringOptions(base64String *NSString, options NSDataBase64DecodingOptions) *NSData

func (*NSData) InitWithBase64Encoding deprecated

func (o *NSData) InitWithBase64Encoding(base64String *NSString) objc.ID

Deprecated: Use initWithBase64EncodedString:options: instead

func (*NSData) InitWithBytesLength ¶

func (o *NSData) InitWithBytesLength(bytes_ unsafe.Pointer, length uint) *NSData

func (*NSData) InitWithBytesNoCopyLength ¶

func (o *NSData) InitWithBytesNoCopyLength(bytes_ unsafe.Pointer, length uint) *NSData

func (*NSData) InitWithBytesNoCopyLengthDeallocator ¶

func (o *NSData) InitWithBytesNoCopyLengthDeallocator(bytes_ unsafe.Pointer, length uint, deallocator func(unsafe.Pointer, uint)) *NSData

func (*NSData) InitWithBytesNoCopyLengthFreeWhenDone ¶

func (o *NSData) InitWithBytesNoCopyLengthFreeWhenDone(bytes_ unsafe.Pointer, length uint, b bool) *NSData

func (*NSData) InitWithContentsOfFile ¶

func (o *NSData) InitWithContentsOfFile(path *NSString) *NSData

func (*NSData) InitWithContentsOfFileOptionsError ¶

func (o *NSData) InitWithContentsOfFileOptionsError(path *NSString, readOptionsMask NSDataReadingOptions) (*NSData, error)

func (*NSData) InitWithContentsOfMappedFile deprecated

func (o *NSData) InitWithContentsOfMappedFile(path *NSString) objc.ID

Deprecated: Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.

func (*NSData) InitWithContentsOfURL ¶

func (o *NSData) InitWithContentsOfURL(url *NSURL) *NSData

func (*NSData) InitWithContentsOfURLOptionsError ¶

func (o *NSData) InitWithContentsOfURLOptionsError(url *NSURL, readOptionsMask NSDataReadingOptions) (*NSData, error)

func (*NSData) InitWithData ¶

func (o *NSData) InitWithData(data *NSData) *NSData

func (*NSData) IsEqualToData ¶

func (o *NSData) IsEqualToData(other *NSData) bool

func (*NSData) Length ¶

func (o *NSData) Length() uint

func (*NSData) RangeOfDataOptionsRange ¶

func (o *NSData) RangeOfDataOptionsRange(dataToFind *NSData, mask NSDataSearchOptions, searchRange NSRange) NSRange

func (*NSData) SubdataWithRange ¶

func (o *NSData) SubdataWithRange(range_ NSRange) *NSData

func (*NSData) WriteToFileAtomically ¶

func (o *NSData) WriteToFileAtomically(path *NSString, useAuxiliaryFile bool) bool

func (*NSData) WriteToFileOptionsError ¶

func (o *NSData) WriteToFileOptionsError(path *NSString, writeOptionsMask NSDataWritingOptions) (bool, error)

func (*NSData) WriteToURLAtomically ¶

func (o *NSData) WriteToURLAtomically(url *NSURL, atomically bool) bool

func (*NSData) WriteToURLOptionsError ¶

func (o *NSData) WriteToURLOptionsError(url *NSURL, writeOptionsMask NSDataWritingOptions) (bool, error)

type NSDataBase64DecodingOptions ¶

type NSDataBase64DecodingOptions uint64
const (
	NSDataBase64DecodingIgnoreUnknownCharacters NSDataBase64DecodingOptions = 1
)

func (NSDataBase64DecodingOptions) String ¶

type NSDataBase64EncodingOptions ¶

type NSDataBase64EncodingOptions uint64
const (
	NSDataBase64Encoding64CharacterLineLength     NSDataBase64EncodingOptions = 1
	NSDataBase64Encoding76CharacterLineLength     NSDataBase64EncodingOptions = 2
	NSDataBase64EncodingEndLineWithCarriageReturn NSDataBase64EncodingOptions = 16
	NSDataBase64EncodingEndLineWithLineFeed       NSDataBase64EncodingOptions = 32
)

func (NSDataBase64EncodingOptions) String ¶

type NSDataCompressionAlgorithm ¶

type NSDataCompressionAlgorithm int64
const (
	NSDataCompressionAlgorithmLZFSE NSDataCompressionAlgorithm = 0
	NSDataCompressionAlgorithmLZ4   NSDataCompressionAlgorithm = 1
	NSDataCompressionAlgorithmLZMA  NSDataCompressionAlgorithm = 2
	NSDataCompressionAlgorithmZlib  NSDataCompressionAlgorithm = 3
)

func (NSDataCompressionAlgorithm) String ¶

type NSDataDetector ¶

type NSDataDetector struct {
	NSRegularExpression
}

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

func NSDataDetectorDataDetectorWithTypesError ¶

func NSDataDetectorDataDetectorWithTypesError(checkingTypes uint64) (*NSDataDetector, error)

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)

type NSDataReadingOptions ¶

type NSDataReadingOptions uint64
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
const (
	NSDataSearchBackwards NSDataSearchOptions = 1
	NSDataSearchAnchored  NSDataSearchOptions = 2
)

func (NSDataSearchOptions) String ¶

func (e NSDataSearchOptions) String() string

type NSDataWritingOptions ¶

type NSDataWritingOptions uint64
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
}

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

func NSDateDate ¶

func NSDateDate() *NSDate

func NSDateDateWithTimeIntervalSince1970 ¶

func NSDateDateWithTimeIntervalSince1970(secs float64) *NSDate

func NSDateDateWithTimeIntervalSinceDate ¶

func NSDateDateWithTimeIntervalSinceDate(secsToBeAdded float64, date *NSDate) *NSDate

func NSDateDateWithTimeIntervalSinceNow ¶

func NSDateDateWithTimeIntervalSinceNow(secs float64) *NSDate

func NSDateDateWithTimeIntervalSinceReferenceDate ¶

func NSDateDateWithTimeIntervalSinceReferenceDate(ti float64) *NSDate

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 deprecated

func (o *NSDate) AddTimeInterval(seconds float64) objc.ID

Deprecated: Use dateByAddingTimeInterval instead

func (*NSDate) Compare ¶

func (o *NSDate) Compare(other *NSDate) NSComparisonResult

func (*NSDate) DateByAddingTimeInterval ¶

func (o *NSDate) DateByAddingTimeInterval(ti float64) *NSDate

func (*NSDate) DateWithCalendarFormatTimeZone deprecated

func (o *NSDate) DateWithCalendarFormatTimeZone(format *NSString, aTimeZone *NSTimeZone) *NSCalendarDate

Deprecated: since macOS 10.10.

func (*NSDate) DescriptionWithCalendarFormatTimeZoneLocale deprecated

func (o *NSDate) DescriptionWithCalendarFormatTimeZoneLocale(format *NSString, aTimeZone *NSTimeZone, locale objc.ID) *NSString

Deprecated: since macOS 10.10.

func (*NSDate) DescriptionWithLocale ¶

func (o *NSDate) DescriptionWithLocale(locale objc.ID) *NSString

func (*NSDate) EarlierDate ¶

func (o *NSDate) EarlierDate(anotherDate *NSDate) *NSDate

func (*NSDate) Init ¶

func (o *NSDate) Init() *NSDate

func (*NSDate) InitWithCoder ¶

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

func (*NSDate) InitWithString deprecated

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

Deprecated: Use NSDateFormatter instead

func (*NSDate) InitWithTimeIntervalSince1970 ¶

func (o *NSDate) InitWithTimeIntervalSince1970(secs float64) *NSDate

func (*NSDate) InitWithTimeIntervalSinceDate ¶

func (o *NSDate) InitWithTimeIntervalSinceDate(secsToBeAdded float64, date *NSDate) *NSDate

func (*NSDate) InitWithTimeIntervalSinceNow ¶

func (o *NSDate) InitWithTimeIntervalSinceNow(secs float64) *NSDate

func (*NSDate) InitWithTimeIntervalSinceReferenceDate ¶

func (o *NSDate) InitWithTimeIntervalSinceReferenceDate(ti float64) *NSDate

func (*NSDate) IsEqualToDate ¶

func (o *NSDate) IsEqualToDate(otherDate *NSDate) bool

func (*NSDate) LaterDate ¶

func (o *NSDate) LaterDate(anotherDate *NSDate) *NSDate

func (*NSDate) TimeIntervalSince1970 ¶

func (o *NSDate) TimeIntervalSince1970() float64

func (*NSDate) TimeIntervalSinceDate ¶

func (o *NSDate) TimeIntervalSinceDate(anotherDate *NSDate) float64

func (*NSDate) TimeIntervalSinceNow ¶

func (o *NSDate) TimeIntervalSinceNow() float64

func (*NSDate) TimeIntervalSinceReferenceDate ¶

func (o *NSDate) TimeIntervalSinceReferenceDate() float64

type NSDateComponents ¶

type NSDateComponents struct {
	NSObject
}

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

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)

func (*NSDateComponents) SetWeek deprecated

func (o *NSDateComponents) SetWeek(v int)

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

func (*NSDateComponents) Week deprecated

func (o *NSDateComponents) Week() int

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
}

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
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
const (
	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
}

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 deprecated

func (o *NSDateFormatter) AllowsNaturalLanguage() bool

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 deprecated

func (o *NSDateFormatter) InitWithDateFormatAllowNaturalLanguage(format *NSString, flag bool) objc.ID

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
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
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
}

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

func (*NSDateInterval) ContainsDate ¶

func (o *NSDateInterval) ContainsDate(date *NSDate) bool

func (*NSDateInterval) Duration ¶

func (o *NSDateInterval) Duration() float64

func (*NSDateInterval) EndDate ¶

func (o *NSDateInterval) EndDate() *NSDate

func (*NSDateInterval) Init ¶

func (o *NSDateInterval) Init() *NSDateInterval

func (*NSDateInterval) InitWithCoder ¶

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

func (*NSDateInterval) InitWithStartDateDuration ¶

func (o *NSDateInterval) InitWithStartDateDuration(startDate *NSDate, duration float64) *NSDateInterval

func (*NSDateInterval) InitWithStartDateEndDate ¶

func (o *NSDateInterval) InitWithStartDateEndDate(startDate *NSDate, endDate *NSDate) *NSDateInterval

func (*NSDateInterval) IntersectionWithDateInterval ¶

func (o *NSDateInterval) IntersectionWithDateInterval(dateInterval *NSDateInterval) *NSDateInterval

func (*NSDateInterval) IntersectsDateInterval ¶

func (o *NSDateInterval) IntersectsDateInterval(dateInterval *NSDateInterval) bool

func (*NSDateInterval) IsEqualToDateInterval ¶

func (o *NSDateInterval) IsEqualToDateInterval(dateInterval *NSDateInterval) bool

func (*NSDateInterval) StartDate ¶

func (o *NSDateInterval) StartDate() *NSDate

type NSDateIntervalFormatter ¶

type NSDateIntervalFormatter struct {
	NSFormatter
}

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
const (
	NSDateIntervalFormatterNoStyle     NSDateIntervalFormatterStyle = 0
	NSDateIntervalFormatterShortStyle  NSDateIntervalFormatterStyle = 1
	NSDateIntervalFormatterMediumStyle NSDateIntervalFormatterStyle = 2
	NSDateIntervalFormatterLongStyle   NSDateIntervalFormatterStyle = 3
	NSDateIntervalFormatterFullStyle   NSDateIntervalFormatterStyle = 4
)

func (NSDateIntervalFormatterStyle) String ¶

type NSDecimal ¶

type NSDecimal struct {
}

type NSDecimalNumber ¶

type NSDecimalNumber struct {
	NSNumber
}

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

func NSDecimalNumberDecimalNumberWithDecimal ¶

func NSDecimalNumberDecimalNumberWithDecimal(dcm NSDecimal) *NSDecimalNumber

func NSDecimalNumberDecimalNumberWithMantissaExponentIsNegative ¶

func NSDecimalNumberDecimalNumberWithMantissaExponentIsNegative(mantissa uint64, exponent int16, flag bool) *NSDecimalNumber

func NSDecimalNumberDecimalNumberWithString ¶

func NSDecimalNumberDecimalNumberWithString(numberValue *NSString) *NSDecimalNumber

func NSDecimalNumberDecimalNumberWithStringLocale ¶

func NSDecimalNumberDecimalNumberWithStringLocale(numberValue *NSString, locale objc.ID) *NSDecimalNumber

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

func (*NSDecimalNumber) DecimalNumberByAddingWithBehavior ¶

func (o *NSDecimalNumber) DecimalNumberByAddingWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber

func (*NSDecimalNumber) DecimalNumberByDividingBy ¶

func (o *NSDecimalNumber) DecimalNumberByDividingBy(decimalNumber *NSDecimalNumber) *NSDecimalNumber

func (*NSDecimalNumber) DecimalNumberByDividingByWithBehavior ¶

func (o *NSDecimalNumber) DecimalNumberByDividingByWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber

func (*NSDecimalNumber) DecimalNumberByMultiplyingBy ¶

func (o *NSDecimalNumber) DecimalNumberByMultiplyingBy(decimalNumber *NSDecimalNumber) *NSDecimalNumber

func (*NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10 ¶

func (o *NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10(power int16) *NSDecimalNumber

func (*NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10WithBehavior ¶

func (o *NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10WithBehavior(power int16, behavior NSDecimalNumberBehaviors) *NSDecimalNumber

func (*NSDecimalNumber) DecimalNumberByMultiplyingByWithBehavior ¶

func (o *NSDecimalNumber) DecimalNumberByMultiplyingByWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber

func (*NSDecimalNumber) DecimalNumberByRaisingToPower ¶

func (o *NSDecimalNumber) DecimalNumberByRaisingToPower(power uint) *NSDecimalNumber

func (*NSDecimalNumber) DecimalNumberByRaisingToPowerWithBehavior ¶

func (o *NSDecimalNumber) DecimalNumberByRaisingToPowerWithBehavior(power uint, behavior NSDecimalNumberBehaviors) *NSDecimalNumber

func (*NSDecimalNumber) DecimalNumberByRoundingAccordingToBehavior ¶

func (o *NSDecimalNumber) DecimalNumberByRoundingAccordingToBehavior(behavior NSDecimalNumberBehaviors) *NSDecimalNumber

func (*NSDecimalNumber) DecimalNumberBySubtracting ¶

func (o *NSDecimalNumber) DecimalNumberBySubtracting(decimalNumber *NSDecimalNumber) *NSDecimalNumber

func (*NSDecimalNumber) DecimalNumberBySubtractingWithBehavior ¶

func (o *NSDecimalNumber) DecimalNumberBySubtractingWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber

func (*NSDecimalNumber) InitWithDecimal ¶

func (o *NSDecimalNumber) InitWithDecimal(dcm NSDecimal) *NSDecimalNumber

func (*NSDecimalNumber) InitWithMantissaExponentIsNegative ¶

func (o *NSDecimalNumber) InitWithMantissaExponentIsNegative(mantissa uint64, exponent int16, flag bool) *NSDecimalNumber

func (*NSDecimalNumber) InitWithString ¶

func (o *NSDecimalNumber) InitWithString(numberValue *NSString) *NSDecimalNumber

func (*NSDecimalNumber) InitWithStringLocale ¶

func (o *NSDecimalNumber) InitWithStringLocale(numberValue *NSString, locale objc.ID) *NSDecimalNumber

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
}

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

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

type NSDecodingFailurePolicy ¶

type NSDecodingFailurePolicy int64
const (
	NSDecodingFailurePolicyRaiseException    NSDecodingFailurePolicy = 0
	NSDecodingFailurePolicySetErrorAndReturn NSDecodingFailurePolicy = 1
)

func (NSDecodingFailurePolicy) String ¶

func (e NSDecodingFailurePolicy) String() string

type NSDeleteCommand ¶

type NSDeleteCommand struct {
	NSScriptCommand
}

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 pureobjc.AnyObject, ObjectType pureobjc.AnyObject] struct {
	NSObject
}

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

func NSDictionaryDictionary ¶

func NSDictionaryDictionary() *NSDictionary[objc.ID, objc.ID]

func NSDictionaryDictionaryWithContentsOfFile deprecated

func NSDictionaryDictionaryWithContentsOfFile(path *NSString) *NSDictionary[objc.ID, objc.ID]

Deprecated: since macOS API_TO_BE_DEPRECATED.

func NSDictionaryDictionaryWithContentsOfURL deprecated

func NSDictionaryDictionaryWithContentsOfURL(url *NSURL) *NSDictionary[objc.ID, objc.ID]

Deprecated: since macOS API_TO_BE_DEPRECATED.

func NSDictionaryDictionaryWithContentsOfURLError ¶

func NSDictionaryDictionaryWithContentsOfURLError(url *NSURL) (*NSDictionary[*NSString, objc.ID], error)

func NSDictionaryDictionaryWithDictionary ¶

func NSDictionaryDictionaryWithDictionary(dict *NSDictionary[objc.ID, objc.ID]) *NSDictionary[objc.ID, objc.ID]

func NSDictionaryDictionaryWithObjectForKey ¶

func NSDictionaryDictionaryWithObjectForKey(object objc.ID, key NSCopying) *NSDictionary[objc.ID, objc.ID]

func NSDictionaryDictionaryWithObjectsForKeys ¶

func NSDictionaryDictionaryWithObjectsForKeys(objects *NSArray[objc.ID], keys *NSArray[NSCopying]) *NSDictionary[objc.ID, objc.ID]

func NSDictionaryDictionaryWithObjectsForKeysCount ¶

func NSDictionaryDictionaryWithObjectsForKeysCount(objects unsafe.Pointer, keys NSCopying, cnt uint) *NSDictionary[objc.ID, objc.ID]

func NSDictionaryFromID ¶

func NSDictionaryFromID[KeyType pureobjc.AnyObject, ObjectType pureobjc.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. Enables \c requiresSecureCoding and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. Returns \c nil if the given data is not valid or cannot be decoded, and sets the \c error out parameter.

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. Enables \c requiresSecureCoding and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. Returns \c nil if the given data is not valid or cannot be decoded, and sets the \c error out parameter.

func NSLocaleComponentsFromLocaleIdentifier ¶

func NSLocaleComponentsFromLocaleIdentifier(string_ *NSString) *NSDictionary[*NSString, *NSString]

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]

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]

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

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

func (*NSDictionary[KeyType, ObjectType]) DescriptionWithLocaleIndent ¶

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

func (*NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsUsing ¶

func (o *NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsUsing(block objc.Block)

func (*NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsWithOptionsUsing ¶

func (o *NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)

func (*NSDictionary[KeyType, ObjectType]) FileCreationDate ¶

func (o *NSDictionary[KeyType, ObjectType]) FileCreationDate() *NSDate

func (*NSDictionary[KeyType, ObjectType]) FileExtensionHidden ¶

func (o *NSDictionary[KeyType, ObjectType]) FileExtensionHidden() bool

func (*NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountID ¶

func (o *NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountID() *NSNumber

func (*NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountName ¶

func (o *NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountName() *NSString

func (*NSDictionary[KeyType, ObjectType]) FileHFSCreatorCode ¶

func (o *NSDictionary[KeyType, ObjectType]) FileHFSCreatorCode() uint

func (*NSDictionary[KeyType, ObjectType]) FileHFSTypeCode ¶

func (o *NSDictionary[KeyType, ObjectType]) FileHFSTypeCode() uint

func (*NSDictionary[KeyType, ObjectType]) FileIsAppendOnly ¶

func (o *NSDictionary[KeyType, ObjectType]) FileIsAppendOnly() bool

func (*NSDictionary[KeyType, ObjectType]) FileIsImmutable ¶

func (o *NSDictionary[KeyType, ObjectType]) FileIsImmutable() bool

func (*NSDictionary[KeyType, ObjectType]) FileModificationDate ¶

func (o *NSDictionary[KeyType, ObjectType]) FileModificationDate() *NSDate

func (*NSDictionary[KeyType, ObjectType]) FileOwnerAccountID ¶

func (o *NSDictionary[KeyType, ObjectType]) FileOwnerAccountID() *NSNumber

func (*NSDictionary[KeyType, ObjectType]) FileOwnerAccountName ¶

func (o *NSDictionary[KeyType, ObjectType]) FileOwnerAccountName() *NSString

func (*NSDictionary[KeyType, ObjectType]) FilePosixPermissions ¶

func (o *NSDictionary[KeyType, ObjectType]) FilePosixPermissions() uint

func (*NSDictionary[KeyType, ObjectType]) FileSize ¶

func (o *NSDictionary[KeyType, ObjectType]) FileSize() uint64

func (*NSDictionary[KeyType, ObjectType]) FileSystemFileNumber ¶

func (o *NSDictionary[KeyType, ObjectType]) FileSystemFileNumber() uint

func (*NSDictionary[KeyType, ObjectType]) FileSystemNumber ¶

func (o *NSDictionary[KeyType, ObjectType]) FileSystemNumber() int

func (*NSDictionary[KeyType, ObjectType]) FileType ¶

func (o *NSDictionary[KeyType, ObjectType]) FileType() *NSString

func (*NSDictionary[KeyType, ObjectType]) GetObjectsAndKeys ¶

func (o *NSDictionary[KeyType, ObjectType]) GetObjectsAndKeys(objects unsafe.Pointer, keys unsafe.Pointer)

This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:andKeys:count: 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)

func (*NSDictionary[KeyType, ObjectType]) Init ¶

func (o *NSDictionary[KeyType, ObjectType]) Init() *NSDictionary[KeyType, ObjectType]

func (*NSDictionary[KeyType, ObjectType]) InitWithCoder ¶

func (o *NSDictionary[KeyType, ObjectType]) InitWithCoder(coder *NSCoder) *NSDictionary[KeyType, ObjectType]

func (*NSDictionary[KeyType, ObjectType]) InitWithContentsOfFile deprecated

func (o *NSDictionary[KeyType, ObjectType]) InitWithContentsOfFile(path *NSString) *NSDictionary[KeyType, ObjectType]

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSDictionary[KeyType, ObjectType]) InitWithContentsOfURL deprecated

func (o *NSDictionary[KeyType, ObjectType]) InitWithContentsOfURL(url *NSURL) *NSDictionary[KeyType, ObjectType]

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSDictionary[KeyType, ObjectType]) InitWithContentsOfURLError ¶

func (o *NSDictionary[KeyType, ObjectType]) InitWithContentsOfURLError(url *NSURL) (*NSDictionary[*NSString, ObjectType], error)

func (*NSDictionary[KeyType, ObjectType]) InitWithDictionary ¶

func (o *NSDictionary[KeyType, ObjectType]) InitWithDictionary(otherDictionary *NSDictionary[KeyType, ObjectType]) *NSDictionary[KeyType, ObjectType]

func (*NSDictionary[KeyType, ObjectType]) InitWithDictionaryCopyItems ¶

func (o *NSDictionary[KeyType, ObjectType]) InitWithDictionaryCopyItems(otherDictionary *NSDictionary[KeyType, ObjectType], flag bool) *NSDictionary[KeyType, ObjectType]

func (*NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeys ¶

func (o *NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeys(objects *NSArray[ObjectType], keys *NSArray[NSCopying]) *NSDictionary[KeyType, ObjectType]

func (*NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeysCount ¶

func (o *NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeysCount(objects unsafe.Pointer, keys NSCopying, cnt uint) *NSDictionary[KeyType, ObjectType]

func (*NSDictionary[KeyType, ObjectType]) IsEqualToDictionary ¶

func (o *NSDictionary[KeyType, ObjectType]) IsEqualToDictionary(otherDictionary *NSDictionary[KeyType, ObjectType]) bool

func (*NSDictionary[KeyType, ObjectType]) KeyEnumerator ¶

func (o *NSDictionary[KeyType, ObjectType]) KeyEnumerator() *NSEnumerator[KeyType]

func (*NSDictionary[KeyType, ObjectType]) KeysOfEntriesPassingTest ¶

func (o *NSDictionary[KeyType, ObjectType]) KeysOfEntriesPassingTest(predicate objc.Block) *NSSet[KeyType]

func (*NSDictionary[KeyType, ObjectType]) KeysOfEntriesWithOptionsPassingTest ¶

func (o *NSDictionary[KeyType, ObjectType]) KeysOfEntriesWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSSet[KeyType]

func (*NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingComparator ¶

func (o *NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[KeyType]

func (*NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingSelector ¶

func (o *NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingSelector(comparator objc.SEL) *NSArray[KeyType]

func (*NSDictionary[KeyType, ObjectType]) KeysSortedByValueWithOptionsUsingComparator ¶

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

func (*NSDictionary[KeyType, ObjectType]) ObjectEnumerator ¶

func (o *NSDictionary[KeyType, ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]

func (*NSDictionary[KeyType, ObjectType]) ObjectForKey ¶

func (o *NSDictionary[KeyType, ObjectType]) ObjectForKey(aKey KeyType) ObjectType

func (*NSDictionary[KeyType, ObjectType]) ObjectForKeyedSubscript ¶

func (o *NSDictionary[KeyType, ObjectType]) ObjectForKeyedSubscript(key KeyType) ObjectType

func (*NSDictionary[KeyType, ObjectType]) ObjectsForKeysNotFoundMarker ¶

func (o *NSDictionary[KeyType, ObjectType]) ObjectsForKeysNotFoundMarker(keys *NSArray[KeyType], marker ObjectType) *NSArray[ObjectType]

func (*NSDictionary[KeyType, ObjectType]) WriteToFileAtomically deprecated

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

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSDictionary[KeyType, ObjectType]) WriteToURLAtomically deprecated

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

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSDictionary[KeyType, ObjectType]) WriteToURLError ¶

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

type NSDimension ¶

type NSDimension struct {
	NSUnit
}

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
const (
	NSDirectoryEnumerationSkipsSubdirectoryDescendants NSDirectoryEnumerationOptions = 1
	NSDirectoryEnumerationSkipsPackageDescendants      NSDirectoryEnumerationOptions = 2
	NSDirectoryEnumerationSkipsHiddenFiles             NSDirectoryEnumerationOptions = 4
	NSDirectoryEnumerationIncludesDirectoriesPostOrder NSDirectoryEnumerationOptions = 8
	NSDirectoryEnumerationProducesRelativePathURLs     NSDirectoryEnumerationOptions = 16
)

func (NSDirectoryEnumerationOptions) String ¶

type NSDirectoryEnumerator ¶

type NSDirectoryEnumerator[ObjectType pureobjc.AnyObject] struct {
	NSEnumerator[ObjectType]
}

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

func NSDirectoryEnumeratorFromID ¶

func NSDirectoryEnumeratorFromID[ObjectType pureobjc.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
}

Apple documentation: https://developer.apple.com/documentation/foundation/nsdistantobject Deprecated: Use NSXPCConnection instead

func NSConnectionRootProxyForConnectionWithRegisteredNameHost deprecated

func NSConnectionRootProxyForConnectionWithRegisteredNameHost(name *NSString, hostName *NSString) *NSDistantObject

Deprecated: since macOS 10.6.

func NSConnectionRootProxyForConnectionWithRegisteredNameHostUsingNameServer ¶

func NSConnectionRootProxyForConnectionWithRegisteredNameHostUsingNameServer(name *NSString, hostName *NSString, server *NSPortNameServer) *NSDistantObject

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

func (*NSDistantObject) InitWithTargetConnection ¶

func (o *NSDistantObject) InitWithTargetConnection(target objc.ID, connection *NSConnection) *NSDistantObject

func (*NSDistantObject) SetProtocolForProxy ¶

func (o *NSDistantObject) SetProtocolForProxy(proto unsafe.Pointer)

type NSDistantObjectRequest ¶

type NSDistantObjectRequest struct {
	NSObject
}

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)

type NSDistributedLock ¶

type NSDistributedLock struct {
	NSObject
}

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

func NSDistributedLockFromID ¶

func NSDistributedLockFromID(id objc.ID) *NSDistributedLock

func NSDistributedLockLockWithPath ¶

func NSDistributedLockLockWithPath(path *NSString) *NSDistributedLock

func (*NSDistributedLock) BreakLock ¶

func (o *NSDistributedLock) BreakLock()

func (*NSDistributedLock) InitWithPath ¶

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

func (*NSDistributedLock) LockDate ¶

func (o *NSDistributedLock) LockDate() *NSDate

func (*NSDistributedLock) TryLock ¶

func (o *NSDistributedLock) TryLock() bool

func (*NSDistributedLock) Unlock ¶

func (o *NSDistributedLock) Unlock()

type NSDistributedNotificationCenter ¶

type NSDistributedNotificationCenter struct {
	NSNotificationCenter
}

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
}

func NSEdgeInsetsMake ¶

func NSEdgeInsetsMake(top float64, left float64, bottom float64, right float64) NSEdgeInsets

func NSEdgeInsetsZero ¶

func NSEdgeInsetsZero() NSEdgeInsets

type NSEnergyFormatter ¶

type NSEnergyFormatter struct {
	NSFormatter
}

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
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
const (
	NSEnumerationConcurrent NSEnumerationOptions = 1
	NSEnumerationReverse    NSEnumerationOptions = 2
)

func (NSEnumerationOptions) String ¶

func (e NSEnumerationOptions) String() string

type NSEnumerator ¶

type NSEnumerator[ObjectType pureobjc.AnyObject] struct {
	NSObject
}

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

func NSEnumeratorFromID ¶

func NSEnumeratorFromID[ObjectType pureobjc.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

type NSError ¶

type NSError struct {
	NSObject
}

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

func NSErrorErrorWithDomainCodeUserInfo ¶

func NSErrorErrorWithDomainCodeUserInfo(domain *NSString, code int, dict *NSDictionary[*NSString, objc.ID]) *NSError

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

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
}

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

func NSExceptionExceptionWithNameReasonUserInfo ¶

func NSExceptionExceptionWithNameReasonUserInfo(name *NSString, reason *NSString, userInfo *NSDictionary[objc.ID, objc.ID]) *NSException

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

func (*NSException) Name ¶

func (o *NSException) Name() *NSString

func (*NSException) Raise ¶

func (o *NSException) Raise()

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
}

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

func NSExpressionExpressionForAggregate ¶

func NSExpressionExpressionForAggregate(subexpressions *NSArray[*NSExpression]) *NSExpression

func NSExpressionExpressionForAnyKey ¶

func NSExpressionExpressionForAnyKey() *NSExpression

func NSExpressionExpressionForBlockArguments ¶

func NSExpressionExpressionForBlockArguments(block objc.Block, arguments *NSArray[*NSExpression]) *NSExpression

func NSExpressionExpressionForConditionalTrueExpressionFalseExpression ¶

func NSExpressionExpressionForConditionalTrueExpressionFalseExpression(predicate *NSPredicate, trueExpression *NSExpression, falseExpression *NSExpression) *NSExpression

func NSExpressionExpressionForConstantValue ¶

func NSExpressionExpressionForConstantValue(obj objc.ID) *NSExpression

func NSExpressionExpressionForEvaluatedObject ¶

func NSExpressionExpressionForEvaluatedObject() *NSExpression

func NSExpressionExpressionForFunctionArguments ¶

func NSExpressionExpressionForFunctionArguments(name *NSString, parameters *NSArray[objc.ID]) *NSExpression

func NSExpressionExpressionForFunctionSelectorNameArguments ¶

func NSExpressionExpressionForFunctionSelectorNameArguments(target *NSExpression, name *NSString, parameters *NSArray[objc.ID]) *NSExpression

func NSExpressionExpressionForIntersectSetWith ¶

func NSExpressionExpressionForIntersectSetWith(left *NSExpression, right *NSExpression) *NSExpression

func NSExpressionExpressionForKeyPath ¶

func NSExpressionExpressionForKeyPath(keyPath *NSString) *NSExpression

func NSExpressionExpressionForMinusSetWith ¶

func NSExpressionExpressionForMinusSetWith(left *NSExpression, right *NSExpression) *NSExpression

func NSExpressionExpressionForSubqueryUsingIteratorVariablePredicate ¶

func NSExpressionExpressionForSubqueryUsingIteratorVariablePredicate(expression *NSExpression, variable *NSString, predicate *NSPredicate) *NSExpression

func NSExpressionExpressionForUnionSetWith ¶

func NSExpressionExpressionForUnionSetWith(left *NSExpression, right *NSExpression) *NSExpression

func NSExpressionExpressionForVariable ¶

func NSExpressionExpressionForVariable(string_ *NSString) *NSExpression

func NSExpressionExpressionWithFormat ¶

func NSExpressionExpressionWithFormat(expressionFormat *NSString) *NSExpression

func NSExpressionExpressionWithFormatArgumentArray ¶

func NSExpressionExpressionWithFormatArgumentArray(expressionFormat *NSString, arguments *NSArray[objc.ID]) *NSExpression

func NSExpressionExpressionWithFormatArguments ¶

func NSExpressionExpressionWithFormatArguments(expressionFormat *NSString, argList string) *NSExpression

func NSExpressionFromID ¶

func NSExpressionFromID(id objc.ID) *NSExpression

func (*NSExpression) AllowEvaluation ¶

func (o *NSExpression) AllowEvaluation()

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

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

func (*NSExpression) InitWithExpressionType ¶

func (o *NSExpression) InitWithExpressionType(type_ NSExpressionType) *NSExpression

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
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
}

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)

func (*NSExtensionContext) CompleteRequestReturningItemsCompletionHandler ¶

func (o *NSExtensionContext) CompleteRequestReturningItemsCompletionHandler(items *NSArray[objc.ID], completionHandler func(bool))

func (*NSExtensionContext) InputItems ¶

func (o *NSExtensionContext) InputItems() *NSArray[objc.ID]

func (*NSExtensionContext) OpenURLCompletionHandler ¶

func (o *NSExtensionContext) OpenURLCompletionHandler(uRL *NSURL, completionHandler func(bool))

type NSExtensionItem ¶

type NSExtensionItem struct {
	NSObject
}

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
}

type NSFileAccessIntent ¶

type NSFileAccessIntent struct {
	NSObject
}

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

func NSFileAccessIntentWritingIntentWithURLOptions ¶

func NSFileAccessIntentWritingIntentWithURLOptions(url *NSURL, options NSFileCoordinatorWritingOptions) *NSFileAccessIntent

func (*NSFileAccessIntent) URL ¶

func (o *NSFileAccessIntent) URL() *NSURL

type NSFileCoordinator ¶

type NSFileCoordinator struct {
	NSObject
}

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

func NSFileCoordinatorFromID ¶

func NSFileCoordinatorFromID(id objc.ID) *NSFileCoordinator

func (*NSFileCoordinator) Cancel ¶

func (o *NSFileCoordinator) Cancel()

func (*NSFileCoordinator) CoordinateAccessWithIntentsQueueByAccessor ¶

func (o *NSFileCoordinator) CoordinateAccessWithIntentsQueueByAccessor(intents *NSArray[*NSFileAccessIntent], queue *NSOperationQueue, accessor func(unsafe.Pointer))

func (*NSFileCoordinator) CoordinateReadingItemAtURLOptionsErrorByAccessor ¶

func (o *NSFileCoordinator) CoordinateReadingItemAtURLOptionsErrorByAccessor(url *NSURL, options NSFileCoordinatorReadingOptions, outError unsafe.Pointer, reader func(*NSURL))

func (*NSFileCoordinator) CoordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor ¶

func (o *NSFileCoordinator) CoordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(readingURL *NSURL, readingOptions NSFileCoordinatorReadingOptions, writingURL *NSURL, writingOptions NSFileCoordinatorWritingOptions, outError unsafe.Pointer, readerWriter func(*NSURL, *NSURL))

func (*NSFileCoordinator) CoordinateWritingItemAtURLOptionsErrorByAccessor ¶

func (o *NSFileCoordinator) CoordinateWritingItemAtURLOptionsErrorByAccessor(url *NSURL, options NSFileCoordinatorWritingOptions, outError unsafe.Pointer, writer func(*NSURL))

func (*NSFileCoordinator) CoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor ¶

func (o *NSFileCoordinator) CoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(url1 *NSURL, options1 NSFileCoordinatorWritingOptions, url2 *NSURL, options2 NSFileCoordinatorWritingOptions, outError unsafe.Pointer, writer func(*NSURL, *NSURL))

func (*NSFileCoordinator) InitWithFilePresenter ¶

func (o *NSFileCoordinator) InitWithFilePresenter(filePresenterOrNil NSFilePresenter) *NSFileCoordinator

func (*NSFileCoordinator) ItemAtURLDidChangeUbiquityAttributes ¶

func (o *NSFileCoordinator) ItemAtURLDidChangeUbiquityAttributes(url *NSURL, attributes *NSSet[*NSString])

func (*NSFileCoordinator) ItemAtURLDidMoveToURL ¶

func (o *NSFileCoordinator) ItemAtURLDidMoveToURL(oldURL *NSURL, newURL *NSURL)

func (*NSFileCoordinator) ItemAtURLWillMoveToURL ¶

func (o *NSFileCoordinator) ItemAtURLWillMoveToURL(oldURL *NSURL, newURL *NSURL)

func (*NSFileCoordinator) PrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor ¶

func (o *NSFileCoordinator) PrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor(readingURLs *NSArray[*NSURL], readingOptions NSFileCoordinatorReadingOptions, writingURLs *NSArray[*NSURL], writingOptions NSFileCoordinatorWritingOptions, outError unsafe.Pointer, batchAccessor func(objc.Block))

func (*NSFileCoordinator) PurposeIdentifier ¶

func (o *NSFileCoordinator) PurposeIdentifier() *NSString

func (*NSFileCoordinator) SetPurposeIdentifier ¶

func (o *NSFileCoordinator) SetPurposeIdentifier(purposeIdentifier *NSString)

type NSFileCoordinatorReadingOptions ¶

type NSFileCoordinatorReadingOptions uint64
const (
	NSFileCoordinatorReadingWithoutChanges                   NSFileCoordinatorReadingOptions = 1
	NSFileCoordinatorReadingResolvesSymbolicLink             NSFileCoordinatorReadingOptions = 2
	NSFileCoordinatorReadingImmediatelyAvailableMetadataOnly NSFileCoordinatorReadingOptions = 4
	NSFileCoordinatorReadingForUploading                     NSFileCoordinatorReadingOptions = 8
)

func (NSFileCoordinatorReadingOptions) String ¶

type NSFileCoordinatorWritingOptions ¶

type NSFileCoordinatorWritingOptions uint64
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
}

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)

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)

func (*NSFileHandle) ReadDataUpToLengthError ¶

func (o *NSFileHandle) ReadDataUpToLengthError(length uint) (*NSData, error)

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)

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)

func (*NSFileHandle) WriteabilityHandler ¶

func (o *NSFileHandle) WriteabilityHandler() objc.Block

type NSFileManager ¶

type NSFileManager struct {
	NSObject
}

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 deprecated

func (o *NSFileManager) CopyPathToPathHandler(src *NSString, dest *NSString, handler objc.ID) bool

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]

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 deprecated

func (o *NSFileManager) LinkPathToPathHandler(src *NSString, dest *NSString, handler objc.ID) bool

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 deprecated

func (o *NSFileManager) MovePathToPathHandler(src *NSString, dest *NSString, handler objc.ID) bool

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 deprecated

func (o *NSFileManager) RemoveFileAtPathHandler(path *NSString, handler objc.ID) bool

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
const (
	NSFileManagerItemReplacementUsingNewMetadataOnly      NSFileManagerItemReplacementOptions = 1
	NSFileManagerItemReplacementWithoutDeletingBackupItem NSFileManagerItemReplacementOptions = 2
)

func (NSFileManagerItemReplacementOptions) String ¶

type NSFileManagerResumeSyncBehavior ¶

type NSFileManagerResumeSyncBehavior int64
const (
	// Resumes synchronizing by uploading the local version of the file. If the server has a newer version, the server may create a conflict copy of the file, or may automatically pick the winner of the conflict. Apps can choose to implement conflict handling themselves by passing `NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict`.
	NSFileManagerResumeSyncBehaviorPreserveLocalChanges NSFileManagerResumeSyncBehavior = 0
	// Resumes sync by first uploading the local version of the file, failing if the provider detects a conflict. If the upload succeeds, the sync resumes with the “preserveLocalChanges“ behavior. If the provider detects a conflict, the upload fails with an  “NSFileWriteUnknownError-enum.case“, with the underlying error of <doc://com.apple.documentation/documentation/FileProvider/NSFileProviderError/localVersionConflictingWithServer>. In this case, the app needs to call “FileManager/fetchLatestRemoteVersionOfItem(at:completionHandler:)“, rebase local changes on top of the newly fetched version to resolve the conflict, and try again to resume sync. This scenario is only available on paused items for which the file provider supports the fail-on-conflict behavior. To check that the file provider supports the behavior, get the “NSURLUbiquitousItemSupportedSyncControlsKey“ URL resource and verify that “NSFileManagerSupportedSyncControls/failUploadOnConflict“ is `true`.
	NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict NSFileManagerResumeSyncBehavior = 1
	// Resumes synchronizing by overwriting any local changes with the remote version of the file. If a conflict occurs, the file manager stores the local changes as an alternate version. Only use this behavior if you provide a separate means of resolving and merging conflicts.
	NSFileManagerResumeSyncBehaviorDropLocalChanges NSFileManagerResumeSyncBehavior = 2
)

func (NSFileManagerResumeSyncBehavior) String ¶

type NSFileManagerSupportedSyncControls ¶

type NSFileManagerSupportedSyncControls uint64
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
const (
	// Resolves the conflict using the policy defined by the file provider.
	NSFileManagerUploadConflictPolicyDefault NSFileManagerUploadLocalVersionConflictPolicy = 0
	// Resolves the conflict by causing the upload to fail. This policy causes an upload to fail if the local version of a file, with any local changes applied, doesn't match the server version. In this scenario, call “FileManager/fetchLatestRemoteVersionOfItem(at:completionHandler:)“, rebase local changes on top of the newly fetched version, and retry the upload. This policy is only available on paused items for which the file provider supports the fail-on-conflict behavior. To check that the file provider supports the behavior, get the “NSURLUbiquitousItemSupportedSyncControlsKey“ URL resource and verify that “NSFileManagerSupportedSyncControls/failUploadOnConflict“ is `true`.
	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
}

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))

func (*NSFileProviderService) Name ¶

func (o *NSFileProviderService) Name() *NSString

type NSFileSecurity ¶

type NSFileSecurity struct {
	NSObject
}

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
}

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

func NSFileVersionAddVersionOfItemAtURLWithContentsOfURLOptionsError ¶

func NSFileVersionAddVersionOfItemAtURLWithContentsOfURLOptionsError(url *NSURL, contentsURL *NSURL, options NSFileVersionAddingOptions) (*NSFileVersion, error)

func NSFileVersionCurrentVersionOfItemAtURL ¶

func NSFileVersionCurrentVersionOfItemAtURL(url *NSURL) *NSFileVersion

func NSFileVersionFromID ¶

func NSFileVersionFromID(id objc.ID) *NSFileVersion

func NSFileVersionVersionOfItemAtURLForPersistentIdentifier ¶

func NSFileVersionVersionOfItemAtURLForPersistentIdentifier(url *NSURL, persistentIdentifier objc.ID) *NSFileVersion

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)

func (*NSFileVersion) ReplaceItemAtURLOptionsError ¶

func (o *NSFileVersion) ReplaceItemAtURLOptionsError(url *NSURL, options NSFileVersionReplacingOptions) (*NSURL, error)

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
const (
	NSFileVersionAddingByMoving NSFileVersionAddingOptions = 1
)

func (NSFileVersionAddingOptions) String ¶

type NSFileVersionReplacingOptions ¶

type NSFileVersionReplacingOptions uint64
const (
	NSFileVersionReplacingByMoving NSFileVersionReplacingOptions = 1
)

func (NSFileVersionReplacingOptions) String ¶

type NSFileWrapper ¶

type NSFileWrapper struct {
	NSObject
}

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
const (
	NSFileWrapperReadingImmediate      NSFileWrapperReadingOptions = 1
	NSFileWrapperReadingWithoutMapping NSFileWrapperReadingOptions = 2
)

func (NSFileWrapperReadingOptions) String ¶

type NSFileWrapperWritingOptions ¶

type NSFileWrapperWritingOptions uint64
const (
	NSFileWrapperWritingAtomic           NSFileWrapperWritingOptions = 1
	NSFileWrapperWritingWithNameUpdating NSFileWrapperWritingOptions = 2
)

func (NSFileWrapperWritingOptions) String ¶

type NSFormatter ¶

type NSFormatter struct {
	NSObject
}

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
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
const (
	NSFormattingUnitStyleShort  NSFormattingUnitStyle = 1
	NSFormattingUnitStyleMedium NSFormattingUnitStyle = 2
	NSFormattingUnitStyleLong   NSFormattingUnitStyle = 3
)

func (NSFormattingUnitStyle) String ¶

func (e NSFormattingUnitStyle) String() string

type NSGarbageCollector ¶

type NSGarbageCollector struct {
	NSObject
}

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()

func (*NSGarbageCollector) CollectIfNeeded ¶

func (o *NSGarbageCollector) CollectIfNeeded()

func (*NSGarbageCollector) Disable deprecated

func (o *NSGarbageCollector) Disable()

Deprecated: since macOS 10.6.

func (*NSGarbageCollector) DisableCollectorForPointer ¶

func (o *NSGarbageCollector) DisableCollectorForPointer(ptr unsafe.Pointer)

func (*NSGarbageCollector) Enable deprecated

func (o *NSGarbageCollector) Enable()

Deprecated: since macOS 10.6.

func (*NSGarbageCollector) EnableCollectorForPointer ¶

func (o *NSGarbageCollector) EnableCollectorForPointer(ptr unsafe.Pointer)

func (*NSGarbageCollector) IsCollecting deprecated

func (o *NSGarbageCollector) IsCollecting() bool

Deprecated: since macOS 10.6.

func (*NSGarbageCollector) IsEnabled deprecated

func (o *NSGarbageCollector) IsEnabled() bool

Deprecated: since macOS 10.6.

func (*NSGarbageCollector) Zone ¶

func (o *NSGarbageCollector) Zone() unsafe.Pointer

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
const (
	NSGrammaticalGenderNotSet    NSGrammaticalGender = 0
	NSGrammaticalGenderFeminine  NSGrammaticalGender = 1
	NSGrammaticalGenderMasculine NSGrammaticalGender = 2
	NSGrammaticalGenderNeuter    NSGrammaticalGender = 3
)

func (NSGrammaticalGender) String ¶

func (e NSGrammaticalGender) String() string

type NSGrammaticalNumber ¶

type NSGrammaticalNumber int64
const (
	NSGrammaticalNumberNotSet     NSGrammaticalNumber = 0
	NSGrammaticalNumberSingular   NSGrammaticalNumber = 1
	NSGrammaticalNumberZero       NSGrammaticalNumber = 2
	NSGrammaticalNumberPlural     NSGrammaticalNumber = 3
	NSGrammaticalNumberPluralTwo  NSGrammaticalNumber = 4
	NSGrammaticalNumberPluralFew  NSGrammaticalNumber = 5
	NSGrammaticalNumberPluralMany NSGrammaticalNumber = 6
)

func (NSGrammaticalNumber) String ¶

func (e NSGrammaticalNumber) String() string

type NSGrammaticalPartOfSpeech ¶

type NSGrammaticalPartOfSpeech int64
const (
	NSGrammaticalPartOfSpeechNotSet       NSGrammaticalPartOfSpeech = 0
	NSGrammaticalPartOfSpeechDeterminer   NSGrammaticalPartOfSpeech = 1
	NSGrammaticalPartOfSpeechPronoun      NSGrammaticalPartOfSpeech = 2
	NSGrammaticalPartOfSpeechLetter       NSGrammaticalPartOfSpeech = 3
	NSGrammaticalPartOfSpeechAdverb       NSGrammaticalPartOfSpeech = 4
	NSGrammaticalPartOfSpeechParticle     NSGrammaticalPartOfSpeech = 5
	NSGrammaticalPartOfSpeechAdjective    NSGrammaticalPartOfSpeech = 6
	NSGrammaticalPartOfSpeechAdposition   NSGrammaticalPartOfSpeech = 7
	NSGrammaticalPartOfSpeechVerb         NSGrammaticalPartOfSpeech = 8
	NSGrammaticalPartOfSpeechNoun         NSGrammaticalPartOfSpeech = 9
	NSGrammaticalPartOfSpeechConjunction  NSGrammaticalPartOfSpeech = 10
	NSGrammaticalPartOfSpeechNumeral      NSGrammaticalPartOfSpeech = 11
	NSGrammaticalPartOfSpeechInterjection NSGrammaticalPartOfSpeech = 12
	NSGrammaticalPartOfSpeechPreposition  NSGrammaticalPartOfSpeech = 13
	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
}

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

func NSHTTPCookieCookieWithProperties ¶

func NSHTTPCookieCookieWithProperties(properties *NSDictionary[*NSString, objc.ID]) *NSHTTPCookie

@method cookieWithProperties: @abstract Allocates and initializes an NSHTTPCookie with the given dictionary. @discussion 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. @param properties The dictionary to use to initialize this cookie. @result A newly-created and autoreleased NSHTTPCookie instance, 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 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
const (
	NSHTTPCookieAcceptPolicyAlways                     NSHTTPCookieAcceptPolicy = 0
	NSHTTPCookieAcceptPolicyNever                      NSHTTPCookieAcceptPolicy = 1
	NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain NSHTTPCookieAcceptPolicy = 2
)

func (NSHTTPCookieAcceptPolicy) String ¶

func (e NSHTTPCookieAcceptPolicy) String() string

type NSHTTPCookieStorage ¶

type NSHTTPCookieStorage struct {
	NSObject
}

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
}

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 {
}

func NSEnumerateHashTable ¶

func NSEnumerateHashTable(table *NSHashTable[objc.ID]) NSHashEnumerator

type NSHashTable ¶

type NSHashTable[ObjectType pureobjc.AnyObject] struct {
	NSObject
}

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 pureobjc.AnyObject](id objc.ID) *NSHashTable[ObjectType]

func NSHashTableHashTableWithOptions ¶

func NSHashTableHashTableWithOptions(options NSPointerFunctionsOptions) *NSHashTable[objc.ID]

func NSHashTableWeakObjectsHashTable ¶

func NSHashTableWeakObjectsHashTable() *NSHashTable[objc.ID]

func (*NSHashTable[ObjectType]) AddObject ¶

func (o *NSHashTable[ObjectType]) AddObject(object ObjectType)

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

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]

func (*NSHashTable[ObjectType]) InitWithPointerFunctionsCapacity ¶

func (o *NSHashTable[ObjectType]) InitWithPointerFunctionsCapacity(functions *NSPointerFunctions, initialCapacity uint) *NSHashTable[ObjectType]

func (*NSHashTable[ObjectType]) IntersectHashTable ¶

func (o *NSHashTable[ObjectType]) IntersectHashTable(other *NSHashTable[ObjectType])

func (*NSHashTable[ObjectType]) IntersectsHashTable ¶

func (o *NSHashTable[ObjectType]) IntersectsHashTable(other *NSHashTable[ObjectType]) bool

func (*NSHashTable[ObjectType]) IsEqualToHashTable ¶

func (o *NSHashTable[ObjectType]) IsEqualToHashTable(other *NSHashTable[ObjectType]) bool

func (*NSHashTable[ObjectType]) IsSubsetOfHashTable ¶

func (o *NSHashTable[ObjectType]) IsSubsetOfHashTable(other *NSHashTable[ObjectType]) bool

func (*NSHashTable[ObjectType]) Member ¶

func (o *NSHashTable[ObjectType]) Member(object ObjectType) ObjectType

func (*NSHashTable[ObjectType]) MinusHashTable ¶

func (o *NSHashTable[ObjectType]) MinusHashTable(other *NSHashTable[ObjectType])

func (*NSHashTable[ObjectType]) ObjectEnumerator ¶

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

func (*NSHashTable[ObjectType]) PointerFunctions ¶

func (o *NSHashTable[ObjectType]) PointerFunctions() *NSPointerFunctions

func (*NSHashTable[ObjectType]) RemoveAllObjects ¶

func (o *NSHashTable[ObjectType]) RemoveAllObjects()

func (*NSHashTable[ObjectType]) RemoveObject ¶

func (o *NSHashTable[ObjectType]) RemoveObject(object ObjectType)

func (*NSHashTable[ObjectType]) SetRepresentation ¶

func (o *NSHashTable[ObjectType]) SetRepresentation() *NSSet[ObjectType]

func (*NSHashTable[ObjectType]) UnionHashTable ¶

func (o *NSHashTable[ObjectType]) UnionHashTable(other *NSHashTable[ObjectType])

type NSHashTableCallBacks ¶

type NSHashTableCallBacks struct {
	Hash     unsafe.Pointer
	IsEqual  unsafe.Pointer
	Retain   unsafe.Pointer
	Release  unsafe.Pointer
	Describe unsafe.Pointer
}

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
}

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
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
}

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
}

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

func NSIndexPathFromID ¶

func NSIndexPathFromID(id objc.ID) *NSIndexPath

func NSIndexPathIndexPathWithIndex ¶

func NSIndexPathIndexPathWithIndex(index uint) *NSIndexPath

func NSIndexPathIndexPathWithIndexesLength ¶

func NSIndexPathIndexPathWithIndexesLength(indexes *uint, length uint) *NSIndexPath

func (*NSIndexPath) Compare ¶

func (o *NSIndexPath) Compare(otherObject *NSIndexPath) NSComparisonResult

func (*NSIndexPath) GetIndexes ¶

func (o *NSIndexPath) GetIndexes(indexes *uint)

This method is unsafe because it could potentially cause buffer overruns. You should use -getIndexes:range: instead. Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSIndexPath) GetIndexesRange ¶

func (o *NSIndexPath) GetIndexesRange(indexes *uint, positionRange NSRange)

@abstract Copies the indexes stored in this index path from the positions specified by positionRange into indexes. @param indexes Buffer of at least as many NSUIntegers as specified by the length of positionRange. On return, this memory will hold the index path's indexes. @param positionRange A range of valid positions within this index path. If the location plus the length of positionRange is greater than the length of this index path, this method raises an NSRangeException. @discussion It is the developer’s responsibility to allocate the memory for the C array.

func (*NSIndexPath) IndexAtPosition ¶

func (o *NSIndexPath) IndexAtPosition(position uint) uint

func (*NSIndexPath) IndexPathByAddingIndex ¶

func (o *NSIndexPath) IndexPathByAddingIndex(index uint) *NSIndexPath

func (*NSIndexPath) IndexPathByRemovingLastIndex ¶

func (o *NSIndexPath) IndexPathByRemovingLastIndex() *NSIndexPath

func (*NSIndexPath) InitWithIndex ¶

func (o *NSIndexPath) InitWithIndex(index uint) *NSIndexPath

func (*NSIndexPath) InitWithIndexesLength ¶

func (o *NSIndexPath) InitWithIndexesLength(indexes *uint, length uint) *NSIndexPath

func (*NSIndexPath) Length ¶

func (o *NSIndexPath) Length() uint

type NSIndexSet ¶

type NSIndexSet struct {
	NSObject
}

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

func NSIndexSetFromID ¶

func NSIndexSetFromID(id objc.ID) *NSIndexSet

func NSIndexSetIndexSet ¶

func NSIndexSetIndexSet() *NSIndexSet

func NSIndexSetIndexSetWithIndex ¶

func NSIndexSetIndexSetWithIndex(value uint) *NSIndexSet

func NSIndexSetIndexSetWithIndexesInRange ¶

func NSIndexSetIndexSetWithIndexesInRange(range_ NSRange) *NSIndexSet

func (*NSIndexSet) ContainsIndex ¶

func (o *NSIndexSet) ContainsIndex(value uint) bool

func (*NSIndexSet) ContainsIndexes ¶

func (o *NSIndexSet) ContainsIndexes(indexSet *NSIndexSet) bool

func (*NSIndexSet) ContainsIndexesInRange ¶

func (o *NSIndexSet) ContainsIndexesInRange(range_ NSRange) bool

func (*NSIndexSet) Count ¶

func (o *NSIndexSet) Count() uint

func (*NSIndexSet) CountOfIndexesInRange ¶

func (o *NSIndexSet) CountOfIndexesInRange(range_ NSRange) uint

func (*NSIndexSet) EnumerateIndexesInRangeOptionsUsing ¶

func (o *NSIndexSet) EnumerateIndexesInRangeOptionsUsing(range_ NSRange, opts NSEnumerationOptions, block func(uint, *bool))

func (*NSIndexSet) EnumerateIndexesUsing ¶

func (o *NSIndexSet) EnumerateIndexesUsing(block func(uint, *bool))

func (*NSIndexSet) EnumerateIndexesWithOptionsUsing ¶

func (o *NSIndexSet) EnumerateIndexesWithOptionsUsing(opts NSEnumerationOptions, block func(uint, *bool))

func (*NSIndexSet) EnumerateRangesInRangeOptionsUsing ¶

func (o *NSIndexSet) EnumerateRangesInRangeOptionsUsing(range_ NSRange, opts NSEnumerationOptions, block objc.Block)

func (*NSIndexSet) EnumerateRangesUsing ¶

func (o *NSIndexSet) EnumerateRangesUsing(block objc.Block)

func (*NSIndexSet) EnumerateRangesWithOptionsUsing ¶

func (o *NSIndexSet) EnumerateRangesWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)

func (*NSIndexSet) FirstIndex ¶

func (o *NSIndexSet) FirstIndex() uint

func (*NSIndexSet) GetIndexesMaxCountInIndexRange ¶

func (o *NSIndexSet) GetIndexesMaxCountInIndexRange(indexBuffer *uint, bufferSize uint, range_ *NSRange) uint

func (*NSIndexSet) IndexGreaterThanIndex ¶

func (o *NSIndexSet) IndexGreaterThanIndex(value uint) uint

func (*NSIndexSet) IndexGreaterThanOrEqualToIndex ¶

func (o *NSIndexSet) IndexGreaterThanOrEqualToIndex(value uint) uint

func (*NSIndexSet) IndexInRangeOptionsPassingTest ¶

func (o *NSIndexSet) IndexInRangeOptionsPassingTest(range_ NSRange, opts NSEnumerationOptions, predicate func(uint, *bool) bool) uint

func (*NSIndexSet) IndexLessThanIndex ¶

func (o *NSIndexSet) IndexLessThanIndex(value uint) uint

func (*NSIndexSet) IndexLessThanOrEqualToIndex ¶

func (o *NSIndexSet) IndexLessThanOrEqualToIndex(value uint) uint

func (*NSIndexSet) IndexPassingTest ¶

func (o *NSIndexSet) IndexPassingTest(predicate func(uint, *bool) bool) uint

func (*NSIndexSet) IndexWithOptionsPassingTest ¶

func (o *NSIndexSet) IndexWithOptionsPassingTest(opts NSEnumerationOptions, predicate func(uint, *bool) bool) uint

func (*NSIndexSet) IndexesInRangeOptionsPassingTest ¶

func (o *NSIndexSet) IndexesInRangeOptionsPassingTest(range_ NSRange, opts NSEnumerationOptions, predicate func(uint, *bool) bool) *NSIndexSet

func (*NSIndexSet) IndexesPassingTest ¶

func (o *NSIndexSet) IndexesPassingTest(predicate func(uint, *bool) bool) *NSIndexSet

func (*NSIndexSet) IndexesWithOptionsPassingTest ¶

func (o *NSIndexSet) IndexesWithOptionsPassingTest(opts NSEnumerationOptions, predicate func(uint, *bool) bool) *NSIndexSet

func (*NSIndexSet) InitWithIndex ¶

func (o *NSIndexSet) InitWithIndex(value uint) *NSIndexSet

func (*NSIndexSet) InitWithIndexSet ¶

func (o *NSIndexSet) InitWithIndexSet(indexSet *NSIndexSet) *NSIndexSet

func (*NSIndexSet) InitWithIndexesInRange ¶

func (o *NSIndexSet) InitWithIndexesInRange(range_ NSRange) *NSIndexSet

func (*NSIndexSet) IntersectsIndexesInRange ¶

func (o *NSIndexSet) IntersectsIndexesInRange(range_ NSRange) bool

func (*NSIndexSet) IsEqualToIndexSet ¶

func (o *NSIndexSet) IsEqualToIndexSet(indexSet *NSIndexSet) bool

func (*NSIndexSet) LastIndex ¶

func (o *NSIndexSet) LastIndex() uint

type NSIndexSpecifier ¶

type NSIndexSpecifier struct {
	NSScriptObjectSpecifier
}

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

func (*NSIndexSpecifier) SetIndex ¶

func (o *NSIndexSpecifier) SetIndex(index int)

type NSInflectionRule ¶

type NSInflectionRule struct {
	NSObject
}

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
}

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

func (*NSInflectionRuleExplicit) Morphology ¶

func (o *NSInflectionRuleExplicit) Morphology() *NSMorphology

type NSInlinePresentationIntent ¶

type NSInlinePresentationIntent uint64
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
}

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

func NSInputStreamFromID ¶

func NSInputStreamFromID(id objc.ID) *NSInputStream

func NSInputStreamInputStreamWithData ¶

func NSInputStreamInputStreamWithData(data *NSData) *NSInputStream

func NSInputStreamInputStreamWithFileAtPath ¶

func NSInputStreamInputStreamWithFileAtPath(path *NSString) *NSInputStream

func NSInputStreamInputStreamWithURL ¶

func NSInputStreamInputStreamWithURL(url *NSURL) *NSInputStream

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
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
}

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

func NSInvocationFromID ¶

func NSInvocationFromID(id objc.ID) *NSInvocation

func NSInvocationInvocationWithMethodSignature ¶

func NSInvocationInvocationWithMethodSignature(sig *NSMethodSignature) *NSInvocation

func (*NSInvocation) ArgumentsRetained ¶

func (o *NSInvocation) ArgumentsRetained() bool

func (*NSInvocation) GetArgumentAtIndex ¶

func (o *NSInvocation) GetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int)

func (*NSInvocation) GetReturnValue ¶

func (o *NSInvocation) GetReturnValue(retLoc unsafe.Pointer)

func (*NSInvocation) Invoke ¶

func (o *NSInvocation) Invoke()

func (*NSInvocation) InvokeUsingIMP ¶

func (o *NSInvocation) InvokeUsingIMP(imp unsafe.Pointer)

func (*NSInvocation) InvokeWithTarget ¶

func (o *NSInvocation) InvokeWithTarget(target objc.ID)

func (*NSInvocation) MethodSignature ¶

func (o *NSInvocation) MethodSignature() *NSMethodSignature

func (*NSInvocation) RetainArguments ¶

func (o *NSInvocation) RetainArguments()

func (*NSInvocation) Selector ¶

func (o *NSInvocation) Selector() objc.SEL

func (*NSInvocation) SetArgumentAtIndex ¶

func (o *NSInvocation) SetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int)

func (*NSInvocation) SetReturnValue ¶

func (o *NSInvocation) SetReturnValue(retLoc unsafe.Pointer)

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
}

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

func (*NSInvocationOperation) InitWithTargetSelectorObject ¶

func (o *NSInvocationOperation) InitWithTargetSelectorObject(target objc.ID, sel objc.SEL, arg objc.ID) *NSInvocationOperation

func (*NSInvocationOperation) Invocation ¶

func (o *NSInvocationOperation) Invocation() *NSInvocation

func (*NSInvocationOperation) Result ¶

func (o *NSInvocationOperation) Result() objc.ID

type NSItemProvider ¶

type NSItemProvider struct {
	NSObject
}

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

func (*NSItemProvider) HasItemConformingToTypeIdentifier ¶

func (o *NSItemProvider) HasItemConformingToTypeIdentifier(typeIdentifier *NSString) bool

func (*NSItemProvider) HasRepresentationConformingToTypeIdentifierFileOptions ¶

func (o *NSItemProvider) HasRepresentationConformingToTypeIdentifierFileOptions(typeIdentifier *NSString, fileOptions NSItemProviderFileOptions) bool

func (*NSItemProvider) Init ¶

func (o *NSItemProvider) Init() *NSItemProvider

func (*NSItemProvider) InitWithContentsOfURL ¶

func (o *NSItemProvider) InitWithContentsOfURL(fileURL *NSURL) *NSItemProvider

func (*NSItemProvider) InitWithItemTypeIdentifier ¶

func (o *NSItemProvider) InitWithItemTypeIdentifier(item NSSecureCoding, typeIdentifier *NSString) *NSItemProvider

func (*NSItemProvider) InitWithObject ¶

func (o *NSItemProvider) InitWithObject(object NSItemProviderWriting) *NSItemProvider

func (*NSItemProvider) LoadDataRepresentationForTypeIdentifierCompletionHandler ¶

func (o *NSItemProvider) LoadDataRepresentationForTypeIdentifierCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSData, unsafe.Pointer)) *NSProgress

func (*NSItemProvider) LoadFileRepresentationForTypeIdentifierCompletionHandler ¶

func (o *NSItemProvider) LoadFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSURL, unsafe.Pointer)) *NSProgress

func (*NSItemProvider) LoadInPlaceFileRepresentationForTypeIdentifierCompletionHandler ¶

func (o *NSItemProvider) LoadInPlaceFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSURL, bool, unsafe.Pointer)) *NSProgress

func (*NSItemProvider) LoadItemForTypeIdentifierOptionsCompletionHandler ¶

func (o *NSItemProvider) LoadItemForTypeIdentifierOptionsCompletionHandler(typeIdentifier *NSString, options *NSDictionary[objc.ID, objc.ID], completionHandler func(objc.ID, unsafe.Pointer))

func (*NSItemProvider) LoadObjectOfClassCompletionHandler ¶

func (o *NSItemProvider) LoadObjectOfClassCompletionHandler(aClass unsafe.Pointer, completionHandler func(objc.ID, unsafe.Pointer)) *NSProgress

func (*NSItemProvider) LoadPreviewImageWithOptionsCompletionHandler ¶

func (o *NSItemProvider) LoadPreviewImageWithOptionsCompletionHandler(options *NSDictionary[objc.ID, objc.ID], completionHandler func(objc.ID, unsafe.Pointer))

func (*NSItemProvider) PreviewImageHandler ¶

func (o *NSItemProvider) PreviewImageHandler() objc.Block

func (*NSItemProvider) RegisterDataRepresentationForTypeIdentifierVisibilityLoadHandler ¶

func (o *NSItemProvider) RegisterDataRepresentationForTypeIdentifierVisibilityLoadHandler(typeIdentifier *NSString, visibility NSItemProviderRepresentationVisibility, loadHandler objc.Block)

func (*NSItemProvider) RegisterFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler ¶

func (o *NSItemProvider) RegisterFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler(typeIdentifier *NSString, fileOptions NSItemProviderFileOptions, visibility NSItemProviderRepresentationVisibility, loadHandler objc.Block)

func (*NSItemProvider) RegisterItemForTypeIdentifierLoadHandler ¶

func (o *NSItemProvider) RegisterItemForTypeIdentifierLoadHandler(typeIdentifier *NSString, loadHandler objc.Block)

func (*NSItemProvider) RegisterObjectOfClassVisibilityLoadHandler ¶

func (o *NSItemProvider) RegisterObjectOfClassVisibilityLoadHandler(aClass unsafe.Pointer, visibility NSItemProviderRepresentationVisibility, loadHandler objc.Block)

func (*NSItemProvider) RegisterObjectVisibility ¶

func (o *NSItemProvider) RegisterObjectVisibility(object NSItemProviderWriting, visibility NSItemProviderRepresentationVisibility)

func (*NSItemProvider) RegisteredTypeIdentifiers ¶

func (o *NSItemProvider) RegisteredTypeIdentifiers() *NSArray[*NSString]

func (*NSItemProvider) RegisteredTypeIdentifiersWithFileOptions ¶

func (o *NSItemProvider) RegisteredTypeIdentifiersWithFileOptions(fileOptions NSItemProviderFileOptions) *NSArray[*NSString]

func (*NSItemProvider) SetPreviewImageHandler ¶

func (o *NSItemProvider) SetPreviewImageHandler(previewImageHandler objc.Block)

func (*NSItemProvider) SetSuggestedName ¶

func (o *NSItemProvider) SetSuggestedName(suggestedName *NSString)

func (*NSItemProvider) SuggestedName ¶

func (o *NSItemProvider) SuggestedName() *NSString

type NSItemProviderErrorCode ¶

type NSItemProviderErrorCode int64
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
const (
	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
const (
	NSItemProviderRepresentationVisibilityAll        NSItemProviderRepresentationVisibility = 0
	NSItemProviderRepresentationVisibilityGroup      NSItemProviderRepresentationVisibility = 2
	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
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
}

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

func NSJSONSerializationFromID ¶

func NSJSONSerializationFromID(id objc.ID) *NSJSONSerialization

type NSJSONWritingOptions ¶

type NSJSONWritingOptions uint64
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
const (
	NSKeyValueChangeSetting     NSKeyValueChange = 1
	NSKeyValueChangeInsertion   NSKeyValueChange = 2
	NSKeyValueChangeRemoval     NSKeyValueChange = 3
	NSKeyValueChangeReplacement NSKeyValueChange = 4
)

func (NSKeyValueChange) String ¶

func (e NSKeyValueChange) String() string

type NSKeyValueObservingOptions ¶

type NSKeyValueObservingOptions uint64
const (
	NSKeyValueObservingOptionNew     NSKeyValueObservingOptions = 1
	NSKeyValueObservingOptionOld     NSKeyValueObservingOptions = 2
	NSKeyValueObservingOptionInitial NSKeyValueObservingOptions = 4
	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
}

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. This method works like `-[NSObject addObserver: forKey: options: context:]`, but observations on nested and computed properties are disallowed. Observers are not registered until `setSharedObservers` is called on the observable. - Parameter observer: The observer object to register for KVO notifications. The observer must implement the key-value observing method “observeValue: forKeyPath: of: change: context:“ - Parameter key: key of the property being observed. This cannot be a nested key path or a computed property - Parameter options: A combination of NSKeyValueObservingOptions values that specify what is included in observation notifications. For possible values see NSKeyValueObservingOptions. - Parameter context: Arbitrary data which is passed to the observer object

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 NSKeyedArchiver ¶

type NSKeyedArchiver struct {
	NSCoder
}

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

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()

func (*NSKeyedArchiver) Init ¶

func (o *NSKeyedArchiver) Init() *NSKeyedArchiver

Initialize the archiver with empty data, ready for writing. Deprecated: Use -initRequiringSecureCoding: instead

func (*NSKeyedArchiver) InitForWritingWithMutableData deprecated

func (o *NSKeyedArchiver) InitForWritingWithMutableData(data *NSMutableData) *NSKeyedArchiver

Deprecated: Use -initRequiringSecureCoding: instead

func (*NSKeyedArchiver) InitRequiringSecureCoding ¶

func (o *NSKeyedArchiver) InitRequiringSecureCoding(requiresSecureCoding bool) *NSKeyedArchiver

Initializes the receiver for encoding an archive, optionally disabling secure coding. If \c NSSecureCoding cannot be used, \c requiresSecureCoding may be turned off here; for improved security, however, \c requiresSecureCoding should be left enabled whenever possible. \c requiresSecureCoding ensures that all encoded objects conform to \c NSSecureCoding, preventing the possibility of encoding objects which cannot be decoded later. To produce archives whose structure matches those previously encoded using \c +archivedDataWithRootObject, encode the top-level object in your archive for the \c NSKeyedArchiveRootObjectKey.

func (*NSKeyedArchiver) OutputFormat ¶

func (o *NSKeyedArchiver) OutputFormat() NSPropertyListFormat

func (*NSKeyedArchiver) SetClassNameForClass ¶

func (o *NSKeyedArchiver) SetClassNameForClass(codedName *NSString, cls objc.Class)

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
}

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

func (*NSKeyedUnarchiver) Delegate deprecated

Deprecated: Use +unarchivedObjectOfClass:fromData:error: instead

func (*NSKeyedUnarchiver) FinishDecoding ¶

func (o *NSKeyedUnarchiver) FinishDecoding()

func (*NSKeyedUnarchiver) Init deprecated

Deprecated: Use -initForReadingFromData:error: instead

func (*NSKeyedUnarchiver) InitForReadingFromDataError ¶

func (o *NSKeyedUnarchiver) InitForReadingFromDataError(data *NSData) (*NSKeyedUnarchiver, error)

Initializes the receiver for decoding an archive previously encoded by \c NSKeyedUnarchiver. Enables \c requiresSecureCoding by default. If \c NSSecureCoding cannot be used, \c requiresSecureCoding may be turned off manually; for improved security, \c requiresSecureCoding should be left enabled whenever possible. Sets the unarchiver's \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn. Returns \c nil if the given data is not valid, and sets the \c error out parameter.

func (*NSKeyedUnarchiver) InitForReadingWithData deprecated

func (o *NSKeyedUnarchiver) InitForReadingWithData(data *NSData) *NSKeyedUnarchiver

Deprecated: Use -initForReadingFromData:error: instead

func (*NSKeyedUnarchiver) SetClassForClassName ¶

func (o *NSKeyedUnarchiver) SetClassForClassName(cls objc.Class, codedName *NSString)

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
}

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
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
}

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 deprecated

func (o *NSLinguisticTagger) EnumerateTagsInRangeSchemeOptionsUsing(range_ NSRange, tagScheme *NSString, opts NSLinguisticTaggerOptions, block objc.Block)

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) EnumerateTagsInRangeUnitSchemeOptionsUsing deprecated

func (o *NSLinguisticTagger) EnumerateTagsInRangeUnitSchemeOptionsUsing(range_ NSRange, unit NSLinguisticTaggerUnit, scheme *NSString, options NSLinguisticTaggerOptions, block objc.Block)

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) InitWithTagSchemesOptions deprecated

func (o *NSLinguisticTagger) InitWithTagSchemesOptions(tagSchemes *NSArray[*NSString], opts uint) *NSLinguisticTagger

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) OrthographyAtIndexEffectiveRange deprecated

func (o *NSLinguisticTagger) OrthographyAtIndexEffectiveRange(charIndex uint, effectiveRange *NSRange) *NSOrthography

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) PossibleTagsAtIndexSchemeTokenRangeSentenceRangeScores deprecated

func (o *NSLinguisticTagger) PossibleTagsAtIndexSchemeTokenRangeSentenceRangeScores(charIndex uint, tagScheme *NSString, tokenRange *NSRange, sentenceRange *NSRange, scores *NSArray[*NSValue]) *NSArray[*NSString]

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) SentenceRangeForRange deprecated

func (o *NSLinguisticTagger) SentenceRangeForRange(range_ NSRange) NSRange

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) SetOrthographyRange deprecated

func (o *NSLinguisticTagger) SetOrthographyRange(orthography *NSOrthography, range_ NSRange)

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 deprecated

func (o *NSLinguisticTagger) StringEditedInRangeChangeInLength(newRange NSRange, delta int)

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) TagAtIndexSchemeTokenRangeSentenceRange deprecated

func (o *NSLinguisticTagger) TagAtIndexSchemeTokenRangeSentenceRange(charIndex uint, scheme *NSString, tokenRange *NSRange, sentenceRange *NSRange) *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) TagAtIndexUnitSchemeTokenRange deprecated

func (o *NSLinguisticTagger) TagAtIndexUnitSchemeTokenRange(charIndex uint, unit NSLinguisticTaggerUnit, scheme *NSString, tokenRange *NSRange) *NSString

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 deprecated

func (o *NSLinguisticTagger) TagsInRangeSchemeOptionsTokenRanges(range_ NSRange, tagScheme *NSString, opts NSLinguisticTaggerOptions, tokenRanges *NSArray[*NSValue]) *NSArray[*NSString]

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) TagsInRangeUnitSchemeOptionsTokenRanges deprecated

func (o *NSLinguisticTagger) TagsInRangeUnitSchemeOptionsTokenRanges(range_ NSRange, unit NSLinguisticTaggerUnit, scheme *NSString, options NSLinguisticTaggerOptions, tokenRanges *NSArray[*NSValue]) *NSArray[*NSString]

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func (*NSLinguisticTagger) TokenRangeAtIndexUnit deprecated

func (o *NSLinguisticTagger) TokenRangeAtIndexUnit(charIndex uint, unit NSLinguisticTaggerUnit) NSRange

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

type NSLinguisticTaggerOptions ¶

type NSLinguisticTaggerOptions uint64
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
const (
	NSLinguisticTaggerUnitWord      NSLinguisticTaggerUnit = 0
	NSLinguisticTaggerUnitSentence  NSLinguisticTaggerUnit = 1
	NSLinguisticTaggerUnitParagraph NSLinguisticTaggerUnit = 2
	NSLinguisticTaggerUnitDocument  NSLinguisticTaggerUnit = 3
)

func (NSLinguisticTaggerUnit) String ¶

func (e NSLinguisticTaggerUnit) String() string

type NSListFormatter ¶

type NSListFormatter struct {
	NSFormatter
}

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
}

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

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

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

func (*NSLocale) InitWithLocaleIdentifier ¶

func (o *NSLocale) InitWithLocaleIdentifier(string_ *NSString) *NSLocale

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

func (*NSLocale) LocalizedStringForCollationIdentifier ¶

func (o *NSLocale) LocalizedStringForCollationIdentifier(collationIdentifier *NSString) *NSString

func (*NSLocale) LocalizedStringForCollatorIdentifier ¶

func (o *NSLocale) LocalizedStringForCollatorIdentifier(collatorIdentifier *NSString) *NSString

func (*NSLocale) LocalizedStringForCountryCode ¶

func (o *NSLocale) LocalizedStringForCountryCode(countryCode *NSString) *NSString

func (*NSLocale) LocalizedStringForCurrencyCode ¶

func (o *NSLocale) LocalizedStringForCurrencyCode(currencyCode *NSString) *NSString

func (*NSLocale) LocalizedStringForLanguageCode ¶

func (o *NSLocale) LocalizedStringForLanguageCode(languageCode *NSString) *NSString

func (*NSLocale) LocalizedStringForLocaleIdentifier ¶

func (o *NSLocale) LocalizedStringForLocaleIdentifier(localeIdentifier *NSString) *NSString

func (*NSLocale) LocalizedStringForScriptCode ¶

func (o *NSLocale) LocalizedStringForScriptCode(scriptCode *NSString) *NSString

func (*NSLocale) LocalizedStringForVariantCode ¶

func (o *NSLocale) LocalizedStringForVariantCode(variantCode *NSString) *NSString

func (*NSLocale) ObjectForKey ¶

func (o *NSLocale) ObjectForKey(key *NSString) objc.ID

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
const (
	NSLocaleLanguageDirectionUnknown     NSLocaleLanguageDirection = 0
	NSLocaleLanguageDirectionLeftToRight NSLocaleLanguageDirection = 1
	NSLocaleLanguageDirectionRightToLeft NSLocaleLanguageDirection = 2
	NSLocaleLanguageDirectionTopToBottom NSLocaleLanguageDirection = 3
	NSLocaleLanguageDirectionBottomToTop NSLocaleLanguageDirection = 4
)

func NSLocaleCharacterDirectionForLanguage ¶

func NSLocaleCharacterDirectionForLanguage(isoLangCode *NSString) NSLocaleLanguageDirection

func NSLocaleLineDirectionForLanguage ¶

func NSLocaleLineDirectionForLanguage(isoLangCode *NSString) NSLocaleLanguageDirection

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
}

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

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

type NSLocking ¶

type NSLocking interface {
	Lock()
	Unlock()
}

NSLocking wraps the ObjC protocol NSLocking.

type NSLogicalTest ¶

type NSLogicalTest struct {
	NSScriptWhoseTest
}

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

func (*NSLogicalTest) InitNotTestWithTest ¶

func (o *NSLogicalTest) InitNotTestWithTest(subTest *NSScriptWhoseTest) *NSLogicalTest

func (*NSLogicalTest) InitOrTestWithTests ¶

func (o *NSLogicalTest) InitOrTestWithTests(subTests *NSArray[*NSSpecifierTest]) *NSLogicalTest

type NSMachBootstrapServer ¶

type NSMachBootstrapServer struct {
	NSPortNameServer
}

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

type NSMachPort ¶

type NSMachPort struct {
	NSPort
}

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

func (*NSMachPort) InitWithMachPortOptions ¶

func (o *NSMachPort) InitWithMachPortOptions(machPort uint32, f NSMachPortOptions) *NSMachPort

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
const (
	NSMachPortDeallocateNone         NSMachPortOptions = 0
	NSMachPortDeallocateSendRight    NSMachPortOptions = 1
	NSMachPortDeallocateReceiveRight NSMachPortOptions = 2
)

func (NSMachPortOptions) String ¶

func (e NSMachPortOptions) String() string

type NSMapEnumerator ¶

type NSMapEnumerator struct {
}

func NSEnumerateMapTable ¶

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

type NSMapTable ¶

type NSMapTable[KeyType pureobjc.AnyObject, ObjectType pureobjc.AnyObject] struct {
	NSObject
}

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

func NSMapTableFromID ¶

func NSMapTableFromID[KeyType pureobjc.AnyObject, ObjectType pureobjc.AnyObject](id objc.ID) *NSMapTable[KeyType, ObjectType]

func NSMapTableMapTableWithKeyOptionsValueOptions ¶

func NSMapTableMapTableWithKeyOptionsValueOptions(keyOptions NSPointerFunctionsOptions, valueOptions NSPointerFunctionsOptions) *NSMapTable[objc.ID, objc.ID]

func NSMapTableStrongToStrongObjectsMapTable ¶

func NSMapTableStrongToStrongObjectsMapTable() *NSMapTable[objc.ID, objc.ID]

func NSMapTableStrongToWeakObjectsMapTable ¶

func NSMapTableStrongToWeakObjectsMapTable() *NSMapTable[objc.ID, objc.ID]

func NSMapTableWeakToStrongObjectsMapTable ¶

func NSMapTableWeakToStrongObjectsMapTable() *NSMapTable[objc.ID, objc.ID]

func NSMapTableWeakToWeakObjectsMapTable ¶

func NSMapTableWeakToWeakObjectsMapTable() *NSMapTable[objc.ID, objc.ID]

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]

func (*NSMapTable[KeyType, ObjectType]) InitWithKeyOptionsValueOptionsCapacity ¶

func (o *NSMapTable[KeyType, ObjectType]) InitWithKeyOptionsValueOptionsCapacity(keyOptions NSPointerFunctionsOptions, valueOptions NSPointerFunctionsOptions, initialCapacity uint) *NSMapTable[KeyType, ObjectType]

func (*NSMapTable[KeyType, ObjectType]) InitWithKeyPointerFunctionsValuePointerFunctionsCapacity ¶

func (o *NSMapTable[KeyType, ObjectType]) InitWithKeyPointerFunctionsValuePointerFunctionsCapacity(keyFunctions *NSPointerFunctions, valueFunctions *NSPointerFunctions, initialCapacity uint) *NSMapTable[KeyType, ObjectType]

func (*NSMapTable[KeyType, ObjectType]) KeyEnumerator ¶

func (o *NSMapTable[KeyType, ObjectType]) KeyEnumerator() *NSEnumerator[KeyType]

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]

func (*NSMapTable[KeyType, ObjectType]) ObjectForKey ¶

func (o *NSMapTable[KeyType, ObjectType]) ObjectForKey(aKey KeyType) ObjectType

func (*NSMapTable[KeyType, ObjectType]) RemoveAllObjects ¶

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

func (*NSMapTable[KeyType, ObjectType]) RemoveObjectForKey ¶

func (o *NSMapTable[KeyType, ObjectType]) RemoveObjectForKey(aKey KeyType)

func (*NSMapTable[KeyType, ObjectType]) SetObjectForKey ¶

func (o *NSMapTable[KeyType, ObjectType]) SetObjectForKey(anObject ObjectType, aKey KeyType)

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
}

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
}

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
}

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
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
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 pureobjc.AnyObject] struct {
	NSObject
}

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

func NSMeasurementFromID ¶

func NSMeasurementFromID[UnitType pureobjc.AnyObject](id objc.ID) *NSMeasurement[UnitType]

func (*NSMeasurement[UnitType]) CanBeConvertedToUnit ¶

func (o *NSMeasurement[UnitType]) CanBeConvertedToUnit(unit *NSUnit) bool

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]

func (*NSMeasurement[UnitType]) MeasurementByAddingMeasurement ¶

func (o *NSMeasurement[UnitType]) MeasurementByAddingMeasurement(measurement *NSMeasurement[UnitType]) *NSMeasurement[UnitType]

func (*NSMeasurement[UnitType]) MeasurementByConvertingToUnit ¶

func (o *NSMeasurement[UnitType]) MeasurementByConvertingToUnit(unit *NSUnit) *NSMeasurement[objc.ID]

func (*NSMeasurement[UnitType]) MeasurementBySubtractingMeasurement ¶

func (o *NSMeasurement[UnitType]) MeasurementBySubtractingMeasurement(measurement *NSMeasurement[UnitType]) *NSMeasurement[UnitType]

func (*NSMeasurement[UnitType]) Unit ¶

func (o *NSMeasurement[UnitType]) Unit() UnitType

type NSMeasurementFormatter ¶

type NSMeasurementFormatter struct {
	NSFormatter
}

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
const (
	NSMeasurementFormatterUnitOptionsProvidedUnit           NSMeasurementFormatterUnitOptions = 1
	NSMeasurementFormatterUnitOptionsNaturalScale           NSMeasurementFormatterUnitOptions = 2
	NSMeasurementFormatterUnitOptionsTemperatureWithoutUnit NSMeasurementFormatterUnitOptions = 4
)

func (NSMeasurementFormatterUnitOptions) String ¶

type NSMessagePort ¶

type NSMessagePort struct {
	NSPort
}

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

func NSMessagePortFromID ¶

func NSMessagePortFromID(id objc.ID) *NSMessagePort

type NSMessagePortNameServer ¶

type NSMessagePortNameServer struct {
	NSPortNameServer
}

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
}

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

func (*NSMetadataItem) ValueForAttribute ¶

func (o *NSMetadataItem) ValueForAttribute(key *NSString) objc.ID

func (*NSMetadataItem) ValuesForAttributes ¶

func (o *NSMetadataItem) ValuesForAttributes(keys *NSArray[*NSString]) *NSDictionary[*NSString, objc.ID]

type NSMetadataQuery ¶

type NSMetadataQuery struct {
	NSObject
}

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()

func (*NSMetadataQuery) EnableUpdates ¶

func (o *NSMetadataQuery) EnableUpdates()

func (*NSMetadataQuery) EnumerateResultsUsing ¶

func (o *NSMetadataQuery) EnumerateResultsUsing(block func(objc.ID, uint, *bool))

func (*NSMetadataQuery) EnumerateResultsWithOptionsUsing ¶

func (o *NSMetadataQuery) EnumerateResultsWithOptionsUsing(opts NSEnumerationOptions, block func(objc.ID, uint, *bool))

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

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

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

func (*NSMetadataQuery) StopQuery ¶

func (o *NSMetadataQuery) StopQuery()

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

type NSMetadataQueryAttributeValueTuple ¶

type NSMetadataQueryAttributeValueTuple struct {
	NSObject
}

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
}

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

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
}

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

func NSMethodSignatureFromID ¶

func NSMethodSignatureFromID(id objc.ID) *NSMethodSignature

func NSMethodSignatureSignatureWithObjCTypes ¶

func NSMethodSignatureSignatureWithObjCTypes(types string) *NSMethodSignature

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

func (*NSMethodSignature) IsOneway ¶

func (o *NSMethodSignature) IsOneway() bool

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
}

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 deprecated

func (o *NSMorphology) CustomPronounForLanguage(language *NSString) *NSMorphologyCustomPronoun

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 deprecated

func (o *NSMorphology) SetCustomPronounForLanguageError(features *NSMorphologyCustomPronoun, language *NSString) (bool, error)

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
}

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
}

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
}

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 pureobjc.AnyObject] struct {
	NSArray[ObjectType]
}

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

func NSMutableArrayArrayWithCapacity ¶

func NSMutableArrayArrayWithCapacity(numItems uint) *NSMutableArray[objc.ID]

func NSMutableArrayArrayWithContentsOfFile ¶

func NSMutableArrayArrayWithContentsOfFile(path *NSString) *NSMutableArray[objc.ID]

func NSMutableArrayArrayWithContentsOfURL ¶

func NSMutableArrayArrayWithContentsOfURL(url *NSURL) *NSMutableArray[objc.ID]

func NSMutableArrayFromID ¶

func NSMutableArrayFromID[ObjectType pureobjc.AnyObject](id objc.ID) *NSMutableArray[ObjectType]

func (*NSMutableArray[ObjectType]) AddObject ¶

func (o *NSMutableArray[ObjectType]) AddObject(anObject ObjectType)

func (*NSMutableArray[ObjectType]) AddObjectsFromArray ¶

func (o *NSMutableArray[ObjectType]) AddObjectsFromArray(otherArray *NSArray[ObjectType])

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)

func (*NSMutableArray[ObjectType]) FilterUsingPredicate ¶

func (o *NSMutableArray[ObjectType]) FilterUsingPredicate(predicate *NSPredicate)

func (*NSMutableArray[ObjectType]) Init ¶

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

func (*NSMutableArray[ObjectType]) InitWithCapacity ¶

func (o *NSMutableArray[ObjectType]) InitWithCapacity(numItems uint) *NSMutableArray[ObjectType]

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]

func (*NSMutableArray[ObjectType]) InitWithContentsOfURL ¶

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

func (*NSMutableArray[ObjectType]) InsertObjectAtIndex ¶

func (o *NSMutableArray[ObjectType]) InsertObjectAtIndex(anObject ObjectType, index uint)

func (*NSMutableArray[ObjectType]) InsertObjectsAtIndexes ¶

func (o *NSMutableArray[ObjectType]) InsertObjectsAtIndexes(objects *NSArray[ObjectType], indexes *NSIndexSet)

func (*NSMutableArray[ObjectType]) RemoveAllObjects ¶

func (o *NSMutableArray[ObjectType]) RemoveAllObjects()

func (*NSMutableArray[ObjectType]) RemoveLastObject ¶

func (o *NSMutableArray[ObjectType]) RemoveLastObject()

func (*NSMutableArray[ObjectType]) RemoveObject ¶

func (o *NSMutableArray[ObjectType]) RemoveObject(anObject ObjectType)

func (*NSMutableArray[ObjectType]) RemoveObjectAtIndex ¶

func (o *NSMutableArray[ObjectType]) RemoveObjectAtIndex(index uint)

func (*NSMutableArray[ObjectType]) RemoveObjectIdenticalTo ¶

func (o *NSMutableArray[ObjectType]) RemoveObjectIdenticalTo(anObject ObjectType)

func (*NSMutableArray[ObjectType]) RemoveObjectIdenticalToInRange ¶

func (o *NSMutableArray[ObjectType]) RemoveObjectIdenticalToInRange(anObject ObjectType, range_ NSRange)

func (*NSMutableArray[ObjectType]) RemoveObjectInRange ¶

func (o *NSMutableArray[ObjectType]) RemoveObjectInRange(anObject ObjectType, range_ NSRange)

func (*NSMutableArray[ObjectType]) RemoveObjectsAtIndexes ¶

func (o *NSMutableArray[ObjectType]) RemoveObjectsAtIndexes(indexes *NSIndexSet)

func (*NSMutableArray[ObjectType]) RemoveObjectsFromIndicesNumIndices deprecated

func (o *NSMutableArray[ObjectType]) RemoveObjectsFromIndicesNumIndices(indices *uint, cnt uint)

Deprecated: Not supported

func (*NSMutableArray[ObjectType]) RemoveObjectsInArray deprecated

func (o *NSMutableArray[ObjectType]) RemoveObjectsInArray(otherArray *NSArray[ObjectType])

Deprecated: Not supported

func (*NSMutableArray[ObjectType]) RemoveObjectsInRange deprecated

func (o *NSMutableArray[ObjectType]) RemoveObjectsInRange(range_ NSRange)

Deprecated: Not supported

func (*NSMutableArray[ObjectType]) ReplaceObjectAtIndexWithObject ¶

func (o *NSMutableArray[ObjectType]) ReplaceObjectAtIndexWithObject(index uint, anObject ObjectType)

func (*NSMutableArray[ObjectType]) ReplaceObjectsAtIndexesWithObjects ¶

func (o *NSMutableArray[ObjectType]) ReplaceObjectsAtIndexesWithObjects(indexes *NSIndexSet, objects *NSArray[ObjectType])

func (*NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArray deprecated

func (o *NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArray(range_ NSRange, otherArray *NSArray[ObjectType])

Deprecated: Not supported

func (*NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArrayRange deprecated

func (o *NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArrayRange(range_ NSRange, otherArray *NSArray[ObjectType], otherRange NSRange)

Deprecated: Not supported

func (*NSMutableArray[ObjectType]) SetArray ¶

func (o *NSMutableArray[ObjectType]) SetArray(otherArray *NSArray[ObjectType])

func (*NSMutableArray[ObjectType]) SetObjectAtIndexedSubscript ¶

func (o *NSMutableArray[ObjectType]) SetObjectAtIndexedSubscript(obj ObjectType, idx uint)

func (*NSMutableArray[ObjectType]) SortUsingComparator ¶

func (o *NSMutableArray[ObjectType]) SortUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult)

func (*NSMutableArray[ObjectType]) SortUsingDescriptors ¶

func (o *NSMutableArray[ObjectType]) SortUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor])

func (*NSMutableArray[ObjectType]) SortUsingFunctionContext ¶

func (o *NSMutableArray[ObjectType]) SortUsingFunctionContext(compare unsafe.Pointer, context_ unsafe.Pointer)

func (*NSMutableArray[ObjectType]) SortUsingSelector ¶

func (o *NSMutableArray[ObjectType]) SortUsingSelector(comparator objc.SEL)

func (*NSMutableArray[ObjectType]) SortWithOptionsUsingComparator ¶

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

type NSMutableAttributedString ¶

type NSMutableAttributedString struct {
	NSAttributedString
}

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)

func (*NSMutableAttributedString) AddAttributesRange ¶

func (o *NSMutableAttributedString) AddAttributesRange(attrs *NSDictionary[*NSString, objc.ID], range_ NSRange)

func (*NSMutableAttributedString) AppendAttributedString ¶

func (o *NSMutableAttributedString) AppendAttributedString(attrString *NSAttributedString)

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()

func (*NSMutableAttributedString) DeleteCharactersInRange ¶

func (o *NSMutableAttributedString) DeleteCharactersInRange(range_ NSRange)

func (*NSMutableAttributedString) EndEditing ¶

func (o *NSMutableAttributedString) EndEditing()

func (*NSMutableAttributedString) InsertAttributedStringAtIndex ¶

func (o *NSMutableAttributedString) InsertAttributedStringAtIndex(attrString *NSAttributedString, loc uint)

func (*NSMutableAttributedString) MutableString ¶

func (o *NSMutableAttributedString) MutableString() *NSMutableString

func (*NSMutableAttributedString) RemoveAttributeRange ¶

func (o *NSMutableAttributedString) RemoveAttributeRange(name *NSString, range_ NSRange)

func (*NSMutableAttributedString) ReplaceCharactersInRangeWithAttributedString ¶

func (o *NSMutableAttributedString) ReplaceCharactersInRangeWithAttributedString(range_ NSRange, attrString *NSAttributedString)

func (*NSMutableAttributedString) ReplaceCharactersInRangeWithString ¶

func (o *NSMutableAttributedString) ReplaceCharactersInRangeWithString(range_ NSRange, str *NSString)

func (*NSMutableAttributedString) SetAttributedString ¶

func (o *NSMutableAttributedString) SetAttributedString(attrString *NSAttributedString)

func (*NSMutableAttributedString) SetAttributesRange ¶

func (o *NSMutableAttributedString) SetAttributesRange(attrs *NSDictionary[*NSString, objc.ID], range_ NSRange)

type NSMutableCharacterSet ¶

type NSMutableCharacterSet struct {
	NSCharacterSet
}

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

func NSMutableCharacterSetAlphanumericCharacterSet ¶

func NSMutableCharacterSetAlphanumericCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetCapitalizedLetterCharacterSet ¶

func NSMutableCharacterSetCapitalizedLetterCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetCharacterSetWithBitmapRepresentation ¶

func NSMutableCharacterSetCharacterSetWithBitmapRepresentation(data *NSData) *NSMutableCharacterSet

func NSMutableCharacterSetCharacterSetWithCharactersInString ¶

func NSMutableCharacterSetCharacterSetWithCharactersInString(aString *NSString) *NSMutableCharacterSet

func NSMutableCharacterSetCharacterSetWithContentsOfFile ¶

func NSMutableCharacterSetCharacterSetWithContentsOfFile(fName *NSString) *NSMutableCharacterSet

func NSMutableCharacterSetCharacterSetWithRange ¶

func NSMutableCharacterSetCharacterSetWithRange(aRange NSRange) *NSMutableCharacterSet

func NSMutableCharacterSetControlCharacterSet ¶

func NSMutableCharacterSetControlCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetDecimalDigitCharacterSet ¶

func NSMutableCharacterSetDecimalDigitCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetDecomposableCharacterSet ¶

func NSMutableCharacterSetDecomposableCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetFromID ¶

func NSMutableCharacterSetFromID(id objc.ID) *NSMutableCharacterSet

func NSMutableCharacterSetIllegalCharacterSet ¶

func NSMutableCharacterSetIllegalCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetLetterCharacterSet ¶

func NSMutableCharacterSetLetterCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetLowercaseLetterCharacterSet ¶

func NSMutableCharacterSetLowercaseLetterCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetNewlineCharacterSet ¶

func NSMutableCharacterSetNewlineCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetNonBaseCharacterSet ¶

func NSMutableCharacterSetNonBaseCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetPunctuationCharacterSet ¶

func NSMutableCharacterSetPunctuationCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetSymbolCharacterSet ¶

func NSMutableCharacterSetSymbolCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetUppercaseLetterCharacterSet ¶

func NSMutableCharacterSetUppercaseLetterCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetWhitespaceAndNewlineCharacterSet ¶

func NSMutableCharacterSetWhitespaceAndNewlineCharacterSet() *NSMutableCharacterSet

func NSMutableCharacterSetWhitespaceCharacterSet ¶

func NSMutableCharacterSetWhitespaceCharacterSet() *NSMutableCharacterSet

func (*NSMutableCharacterSet) AddCharactersInRange ¶

func (o *NSMutableCharacterSet) AddCharactersInRange(aRange NSRange)

func (*NSMutableCharacterSet) AddCharactersInString ¶

func (o *NSMutableCharacterSet) AddCharactersInString(aString *NSString)

func (*NSMutableCharacterSet) FormIntersectionWithCharacterSet ¶

func (o *NSMutableCharacterSet) FormIntersectionWithCharacterSet(otherSet *NSCharacterSet)

func (*NSMutableCharacterSet) FormUnionWithCharacterSet ¶

func (o *NSMutableCharacterSet) FormUnionWithCharacterSet(otherSet *NSCharacterSet)

func (*NSMutableCharacterSet) Invert ¶

func (o *NSMutableCharacterSet) Invert()

func (*NSMutableCharacterSet) RemoveCharactersInRange ¶

func (o *NSMutableCharacterSet) RemoveCharactersInRange(aRange NSRange)

func (*NSMutableCharacterSet) RemoveCharactersInString ¶

func (o *NSMutableCharacterSet) RemoveCharactersInString(aString *NSString)

type NSMutableCopying ¶

type NSMutableCopying interface {
	MutableCopyWithZone(zone unsafe.Pointer) objc.ID
}

NSMutableCopying wraps the ObjC protocol NSMutableCopying.

type NSMutableData ¶

type NSMutableData struct {
	NSData
}

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

func NSMutableDataDataWithCapacity ¶

func NSMutableDataDataWithCapacity(aNumItems uint) *NSMutableData

func NSMutableDataDataWithLength ¶

func NSMutableDataDataWithLength(length uint) *NSMutableData

func NSMutableDataFromID ¶

func NSMutableDataFromID(id objc.ID) *NSMutableData

func (*NSMutableData) AppendBytesLength ¶

func (o *NSMutableData) AppendBytesLength(bytes_ unsafe.Pointer, length uint)

func (*NSMutableData) AppendData ¶

func (o *NSMutableData) AppendData(other *NSData)

func (*NSMutableData) CompressUsingAlgorithmError ¶

func (o *NSMutableData) CompressUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (bool, error)

func (*NSMutableData) DecompressUsingAlgorithmError ¶

func (o *NSMutableData) DecompressUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (bool, error)

func (*NSMutableData) IncreaseLengthBy ¶

func (o *NSMutableData) IncreaseLengthBy(extraLength uint)

func (*NSMutableData) InitWithCapacity ¶

func (o *NSMutableData) InitWithCapacity(capacity uint) *NSMutableData

func (*NSMutableData) InitWithLength ¶

func (o *NSMutableData) InitWithLength(length uint) *NSMutableData

func (*NSMutableData) MutableBytes ¶

func (o *NSMutableData) MutableBytes() unsafe.Pointer

func (*NSMutableData) ReplaceBytesInRangeWithBytes ¶

func (o *NSMutableData) ReplaceBytesInRangeWithBytes(range_ NSRange, bytes_ unsafe.Pointer)

func (*NSMutableData) ReplaceBytesInRangeWithBytesLength ¶

func (o *NSMutableData) ReplaceBytesInRangeWithBytesLength(range_ NSRange, replacementBytes unsafe.Pointer, replacementLength uint)

func (*NSMutableData) ResetBytesInRange ¶

func (o *NSMutableData) ResetBytesInRange(range_ NSRange)

func (*NSMutableData) SetData ¶

func (o *NSMutableData) SetData(data *NSData)

func (*NSMutableData) SetLength ¶

func (o *NSMutableData) SetLength(length uint)

type NSMutableDictionary ¶

type NSMutableDictionary[KeyType pureobjc.AnyObject, ObjectType pureobjc.AnyObject] struct {
	NSDictionary[KeyType, ObjectType]
}

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

func NSMutableDictionaryDictionaryWithCapacity ¶

func NSMutableDictionaryDictionaryWithCapacity(numItems uint) *NSMutableDictionary[objc.ID, objc.ID]

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]

func NSMutableDictionaryFromID ¶

func NSMutableDictionaryFromID[KeyType pureobjc.AnyObject, ObjectType pureobjc.AnyObject](id objc.ID) *NSMutableDictionary[KeyType, ObjectType]

func (*NSMutableDictionary[KeyType, ObjectType]) AddEntriesFromDictionary ¶

func (o *NSMutableDictionary[KeyType, ObjectType]) AddEntriesFromDictionary(otherDictionary *NSDictionary[KeyType, ObjectType])

func (*NSMutableDictionary[KeyType, ObjectType]) Init ¶

func (o *NSMutableDictionary[KeyType, ObjectType]) Init() *NSMutableDictionary[KeyType, ObjectType]

func (*NSMutableDictionary[KeyType, ObjectType]) InitWithCapacity ¶

func (o *NSMutableDictionary[KeyType, ObjectType]) InitWithCapacity(numItems uint) *NSMutableDictionary[KeyType, ObjectType]

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()

func (*NSMutableDictionary[KeyType, ObjectType]) RemoveObjectForKey ¶

func (o *NSMutableDictionary[KeyType, ObjectType]) RemoveObjectForKey(aKey KeyType)

func (*NSMutableDictionary[KeyType, ObjectType]) RemoveObjectsForKeys ¶

func (o *NSMutableDictionary[KeyType, ObjectType]) RemoveObjectsForKeys(keyArray *NSArray[KeyType])

func (*NSMutableDictionary[KeyType, ObjectType]) SetDictionary ¶

func (o *NSMutableDictionary[KeyType, ObjectType]) SetDictionary(otherDictionary *NSDictionary[KeyType, ObjectType])

func (*NSMutableDictionary[KeyType, ObjectType]) SetObjectForKey ¶

func (o *NSMutableDictionary[KeyType, ObjectType]) SetObjectForKey(anObject ObjectType, aKey NSCopying)

func (*NSMutableDictionary[KeyType, ObjectType]) SetObjectForKeyedSubscript ¶

func (o *NSMutableDictionary[KeyType, ObjectType]) SetObjectForKeyedSubscript(obj ObjectType, key NSCopying)

type NSMutableIndexSet ¶

type NSMutableIndexSet struct {
	NSIndexSet
}

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)

func (*NSMutableIndexSet) AddIndexes ¶

func (o *NSMutableIndexSet) AddIndexes(indexSet *NSIndexSet)

func (*NSMutableIndexSet) AddIndexesInRange ¶

func (o *NSMutableIndexSet) AddIndexesInRange(range_ NSRange)

func (*NSMutableIndexSet) RemoveAllIndexes ¶

func (o *NSMutableIndexSet) RemoveAllIndexes()

func (*NSMutableIndexSet) RemoveIndex ¶

func (o *NSMutableIndexSet) RemoveIndex(value uint)

func (*NSMutableIndexSet) RemoveIndexes ¶

func (o *NSMutableIndexSet) RemoveIndexes(indexSet *NSIndexSet)

func (*NSMutableIndexSet) RemoveIndexesInRange ¶

func (o *NSMutableIndexSet) RemoveIndexesInRange(range_ NSRange)

func (*NSMutableIndexSet) ShiftIndexesStartingAtIndexBy ¶

func (o *NSMutableIndexSet) ShiftIndexesStartingAtIndexBy(index uint, delta int)

type NSMutableOrderedSet ¶

type NSMutableOrderedSet[ObjectType pureobjc.AnyObject] struct {
	NSOrderedSet[ObjectType]
}

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

func NSMutableOrderedSetFromID ¶

func NSMutableOrderedSetFromID[ObjectType pureobjc.AnyObject](id objc.ID) *NSMutableOrderedSet[ObjectType]

func NSMutableOrderedSetOrderedSetWithCapacity ¶

func NSMutableOrderedSetOrderedSetWithCapacity(numItems uint) *NSMutableOrderedSet[objc.ID]

func (*NSMutableOrderedSet[ObjectType]) AddObject ¶

func (o *NSMutableOrderedSet[ObjectType]) AddObject(object ObjectType)

func (*NSMutableOrderedSet[ObjectType]) AddObjectsCount ¶

func (o *NSMutableOrderedSet[ObjectType]) AddObjectsCount(objects unsafe.Pointer, count uint)

func (*NSMutableOrderedSet[ObjectType]) AddObjectsFromArray ¶

func (o *NSMutableOrderedSet[ObjectType]) AddObjectsFromArray(array *NSArray[ObjectType])

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)

func (*NSMutableOrderedSet[ObjectType]) FilterUsingPredicate ¶

func (o *NSMutableOrderedSet[ObjectType]) FilterUsingPredicate(p *NSPredicate)

func (*NSMutableOrderedSet[ObjectType]) Init ¶

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

func (*NSMutableOrderedSet[ObjectType]) InitWithCapacity ¶

func (o *NSMutableOrderedSet[ObjectType]) InitWithCapacity(numItems uint) *NSMutableOrderedSet[ObjectType]

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)

func (*NSMutableOrderedSet[ObjectType]) InsertObjectsAtIndexes ¶

func (o *NSMutableOrderedSet[ObjectType]) InsertObjectsAtIndexes(objects *NSArray[ObjectType], indexes *NSIndexSet)

func (*NSMutableOrderedSet[ObjectType]) IntersectOrderedSet ¶

func (o *NSMutableOrderedSet[ObjectType]) IntersectOrderedSet(other *NSOrderedSet[ObjectType])

func (*NSMutableOrderedSet[ObjectType]) IntersectSet ¶

func (o *NSMutableOrderedSet[ObjectType]) IntersectSet(other *NSSet[ObjectType])

func (*NSMutableOrderedSet[ObjectType]) MinusOrderedSet ¶

func (o *NSMutableOrderedSet[ObjectType]) MinusOrderedSet(other *NSOrderedSet[ObjectType])

func (*NSMutableOrderedSet[ObjectType]) MinusSet ¶

func (o *NSMutableOrderedSet[ObjectType]) MinusSet(other *NSSet[ObjectType])

func (*NSMutableOrderedSet[ObjectType]) MoveObjectsAtIndexesToIndex ¶

func (o *NSMutableOrderedSet[ObjectType]) MoveObjectsAtIndexesToIndex(indexes *NSIndexSet, idx uint)

func (*NSMutableOrderedSet[ObjectType]) RemoveAllObjects ¶

func (o *NSMutableOrderedSet[ObjectType]) RemoveAllObjects()

func (*NSMutableOrderedSet[ObjectType]) RemoveObject ¶

func (o *NSMutableOrderedSet[ObjectType]) RemoveObject(object ObjectType)

func (*NSMutableOrderedSet[ObjectType]) RemoveObjectAtIndex ¶

func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectAtIndex(idx uint)

func (*NSMutableOrderedSet[ObjectType]) RemoveObjectsAtIndexes ¶

func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectsAtIndexes(indexes *NSIndexSet)

func (*NSMutableOrderedSet[ObjectType]) RemoveObjectsInArray ¶

func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectsInArray(array *NSArray[ObjectType])

func (*NSMutableOrderedSet[ObjectType]) RemoveObjectsInRange ¶

func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectsInRange(range_ NSRange)

func (*NSMutableOrderedSet[ObjectType]) ReplaceObjectAtIndexWithObject ¶

func (o *NSMutableOrderedSet[ObjectType]) ReplaceObjectAtIndexWithObject(idx uint, object ObjectType)

func (*NSMutableOrderedSet[ObjectType]) ReplaceObjectsAtIndexesWithObjects ¶

func (o *NSMutableOrderedSet[ObjectType]) ReplaceObjectsAtIndexesWithObjects(indexes *NSIndexSet, objects *NSArray[ObjectType])

func (*NSMutableOrderedSet[ObjectType]) ReplaceObjectsInRangeWithObjectsCount ¶

func (o *NSMutableOrderedSet[ObjectType]) ReplaceObjectsInRangeWithObjectsCount(range_ NSRange, objects unsafe.Pointer, count uint)

func (*NSMutableOrderedSet[ObjectType]) SetObjectAtIndex ¶

func (o *NSMutableOrderedSet[ObjectType]) SetObjectAtIndex(obj ObjectType, idx uint)

func (*NSMutableOrderedSet[ObjectType]) SetObjectAtIndexedSubscript ¶

func (o *NSMutableOrderedSet[ObjectType]) SetObjectAtIndexedSubscript(obj ObjectType, idx uint)

func (*NSMutableOrderedSet[ObjectType]) SortRangeOptionsUsingComparator ¶

func (o *NSMutableOrderedSet[ObjectType]) SortRangeOptionsUsingComparator(range_ NSRange, opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult)

func (*NSMutableOrderedSet[ObjectType]) SortUsingComparator ¶

func (o *NSMutableOrderedSet[ObjectType]) SortUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult)

func (*NSMutableOrderedSet[ObjectType]) SortUsingDescriptors ¶

func (o *NSMutableOrderedSet[ObjectType]) SortUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor])

func (*NSMutableOrderedSet[ObjectType]) SortWithOptionsUsingComparator ¶

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

func (*NSMutableOrderedSet[ObjectType]) UnionOrderedSet ¶

func (o *NSMutableOrderedSet[ObjectType]) UnionOrderedSet(other *NSOrderedSet[ObjectType])

func (*NSMutableOrderedSet[ObjectType]) UnionSet ¶

func (o *NSMutableOrderedSet[ObjectType]) UnionSet(other *NSSet[ObjectType])

type NSMutableSet ¶

type NSMutableSet[ObjectType pureobjc.AnyObject] struct {
	NSSet[ObjectType]
}

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

func NSMutableSetFromID ¶

func NSMutableSetFromID[ObjectType pureobjc.AnyObject](id objc.ID) *NSMutableSet[ObjectType]

func NSMutableSetSetWithCapacity ¶

func NSMutableSetSetWithCapacity(numItems uint) *NSMutableSet[objc.ID]

func (*NSMutableSet[ObjectType]) AddObject ¶

func (o *NSMutableSet[ObjectType]) AddObject(object ObjectType)

func (*NSMutableSet[ObjectType]) AddObjectsFromArray ¶

func (o *NSMutableSet[ObjectType]) AddObjectsFromArray(array *NSArray[ObjectType])

func (*NSMutableSet[ObjectType]) FilterUsingPredicate ¶

func (o *NSMutableSet[ObjectType]) FilterUsingPredicate(predicate *NSPredicate)

func (*NSMutableSet[ObjectType]) Init ¶

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

func (*NSMutableSet[ObjectType]) InitWithCapacity ¶

func (o *NSMutableSet[ObjectType]) InitWithCapacity(numItems uint) *NSMutableSet[ObjectType]

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])

func (*NSMutableSet[ObjectType]) MinusSet ¶

func (o *NSMutableSet[ObjectType]) MinusSet(otherSet *NSSet[ObjectType])

func (*NSMutableSet[ObjectType]) RemoveAllObjects ¶

func (o *NSMutableSet[ObjectType]) RemoveAllObjects()

func (*NSMutableSet[ObjectType]) RemoveObject ¶

func (o *NSMutableSet[ObjectType]) RemoveObject(object ObjectType)

func (*NSMutableSet[ObjectType]) SetSet ¶

func (o *NSMutableSet[ObjectType]) SetSet(otherSet *NSSet[ObjectType])

func (*NSMutableSet[ObjectType]) UnionSet ¶

func (o *NSMutableSet[ObjectType]) UnionSet(otherSet *NSSet[ObjectType])

type NSMutableString ¶

type NSMutableString struct {
	NSString
}

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

func NSMutableStringFromID ¶

func NSMutableStringFromID(id objc.ID) *NSMutableString

func NSMutableStringStringWithCapacity ¶

func NSMutableStringStringWithCapacity(capacity uint) *NSMutableString

func (*NSMutableString) AppendFormat ¶

func (o *NSMutableString) AppendFormat(format *NSString)

func (*NSMutableString) AppendString ¶

func (o *NSMutableString) AppendString(aString *NSString)

func (*NSMutableString) ApplyTransformReverseRangeUpdatedRange ¶

func (o *NSMutableString) ApplyTransformReverseRangeUpdatedRange(transform *NSString, reverse bool, range_ NSRange, resultingRange *NSRange) bool

func (*NSMutableString) DeleteCharactersInRange ¶

func (o *NSMutableString) DeleteCharactersInRange(range_ NSRange)

func (*NSMutableString) InitWithCapacity ¶

func (o *NSMutableString) InitWithCapacity(capacity uint) *NSMutableString

func (*NSMutableString) InsertStringAtIndex ¶

func (o *NSMutableString) InsertStringAtIndex(aString *NSString, loc uint)

func (*NSMutableString) ReplaceCharactersInRangeWithString ¶

func (o *NSMutableString) ReplaceCharactersInRangeWithString(range_ NSRange, aString *NSString)

func (*NSMutableString) ReplaceOccurrencesOfStringWithStringOptionsRange ¶

func (o *NSMutableString) ReplaceOccurrencesOfStringWithStringOptionsRange(target *NSString, replacement *NSString, options NSStringCompareOptions, searchRange NSRange) uint

func (*NSMutableString) SetString ¶

func (o *NSMutableString) SetString(aString *NSString)

type NSMutableURLRequest ¶

type NSMutableURLRequest struct {
	NSURLRequest
}

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)

@method addValue:forHTTPHeaderField: @abstract Adds an HTTP header field in the current header dictionary. @discussion This method provides a way to add values to header fields incrementally. If a value was previously set for the given header field, the given value is appended to the previously-existing value. The appropriate field delimiter, a comma in the case of HTTP, is added by the implementation, and should not be added to the given value by the caller. Note that, in keeping with the HTTP RFC, HTTP header field names are case-insensitive. @param value the header field value. @param field the header field name (case-insensitive).

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)

@method setValue:forHTTPHeaderField: @abstract Sets the value of the given HTTP header field. @discussion If a value was previously set for the given header field, that value is replaced with the given value. Note that, in keeping with the HTTP RFC, HTTP header field names are case-insensitive. @param value the header field value. @param field the header field name (case-insensitive).

type NSNameSpecifier ¶

type NSNameSpecifier struct {
	NSScriptObjectSpecifier
}

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

func (*NSNameSpecifier) Name ¶

func (o *NSNameSpecifier) Name() *NSString

func (*NSNameSpecifier) SetName ¶

func (o *NSNameSpecifier) SetName(name *NSString)

type NSNetService ¶

type NSNetService struct {
	NSObject
}

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
}

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
const (
	NSNetServiceNoAutoRename         NSNetServiceOptions = 1
	NSNetServiceListenForConnections NSNetServiceOptions = 2
)

func (NSNetServiceOptions) String ¶

func (e NSNetServiceOptions) String() string

type NSNetServicesError ¶

type NSNetServicesError int64
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
}

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

func NSNotificationNotificationWithNameObjectUserInfo ¶

func NSNotificationNotificationWithNameObjectUserInfo(aName *NSString, anObject objc.ID, aUserInfo *NSDictionary[objc.ID, objc.ID]) *NSNotification

func (*NSNotification) InitWithCoder ¶

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

func (*NSNotification) InitWithNameObjectUserInfo ¶

func (o *NSNotification) InitWithNameObjectUserInfo(name *NSString, object objc.ID, userInfo *NSDictionary[objc.ID, objc.ID]) *NSNotification

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
}

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
const (
	NSNotificationNoCoalescing       NSNotificationCoalescing = 0
	NSNotificationCoalescingOnName   NSNotificationCoalescing = 1
	NSNotificationCoalescingOnSender NSNotificationCoalescing = 2
)

func (NSNotificationCoalescing) String ¶

func (e NSNotificationCoalescing) String() string

type NSNotificationQueue ¶

type NSNotificationQueue struct {
	NSObject
}

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
const (
	NSNotificationSuspensionBehaviorDrop               NSNotificationSuspensionBehavior = 1
	NSNotificationSuspensionBehaviorCoalesce           NSNotificationSuspensionBehavior = 2
	NSNotificationSuspensionBehaviorHold               NSNotificationSuspensionBehavior = 3
	NSNotificationSuspensionBehaviorDeliverImmediately NSNotificationSuspensionBehavior = 4
)

func (NSNotificationSuspensionBehavior) String ¶

type NSNull ¶

type NSNull struct {
	NSObject
}

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

func NSNullFromID ¶

func NSNullFromID(id objc.ID) *NSNull

func NSNullNull ¶

func NSNullNull() *NSNull

type NSNumber ¶

type NSNumber struct {
	NSValue
}

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

func NSNumberFromID ¶

func NSNumberFromID(id objc.ID) *NSNumber

func NSNumberNumberWithBool ¶

func NSNumberNumberWithBool(value bool) *NSNumber

func NSNumberNumberWithChar ¶

func NSNumberNumberWithChar(value int8) *NSNumber

func NSNumberNumberWithDouble ¶

func NSNumberNumberWithDouble(value float64) *NSNumber

func NSNumberNumberWithFloat ¶

func NSNumberNumberWithFloat(value float32) *NSNumber

func NSNumberNumberWithInt ¶

func NSNumberNumberWithInt(value int) *NSNumber

func NSNumberNumberWithInteger ¶

func NSNumberNumberWithInteger(value int) *NSNumber

func NSNumberNumberWithLong ¶

func NSNumberNumberWithLong(value int) *NSNumber

func NSNumberNumberWithLongLong ¶

func NSNumberNumberWithLongLong(value int64) *NSNumber

func NSNumberNumberWithShort ¶

func NSNumberNumberWithShort(value int16) *NSNumber

func NSNumberNumberWithUnsignedChar ¶

func NSNumberNumberWithUnsignedChar(value uint8) *NSNumber

func NSNumberNumberWithUnsignedInt ¶

func NSNumberNumberWithUnsignedInt(value uint) *NSNumber

func NSNumberNumberWithUnsignedInteger ¶

func NSNumberNumberWithUnsignedInteger(value uint) *NSNumber

func NSNumberNumberWithUnsignedLong ¶

func NSNumberNumberWithUnsignedLong(value uint) *NSNumber

func NSNumberNumberWithUnsignedLongLong ¶

func NSNumberNumberWithUnsignedLongLong(value uint64) *NSNumber

func NSNumberNumberWithUnsignedShort ¶

func NSNumberNumberWithUnsignedShort(value uint16) *NSNumber

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

func (*NSNumber) DecimalValue ¶

func (o *NSNumber) DecimalValue() NSDecimal

func (*NSNumber) DescriptionWithLocale ¶

func (o *NSNumber) DescriptionWithLocale(locale objc.ID) *NSString

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

func (*NSNumber) InitWithChar ¶

func (o *NSNumber) InitWithChar(value int8) *NSNumber

func (*NSNumber) InitWithCoder ¶

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

func (*NSNumber) InitWithDouble ¶

func (o *NSNumber) InitWithDouble(value float64) *NSNumber

func (*NSNumber) InitWithFloat ¶

func (o *NSNumber) InitWithFloat(value float32) *NSNumber

func (*NSNumber) InitWithInt ¶

func (o *NSNumber) InitWithInt(value int) *NSNumber

func (*NSNumber) InitWithInteger ¶

func (o *NSNumber) InitWithInteger(value int) *NSNumber

func (*NSNumber) InitWithLong ¶

func (o *NSNumber) InitWithLong(value int) *NSNumber

func (*NSNumber) InitWithLongLong ¶

func (o *NSNumber) InitWithLongLong(value int64) *NSNumber

func (*NSNumber) InitWithShort ¶

func (o *NSNumber) InitWithShort(value int16) *NSNumber

func (*NSNumber) InitWithUnsignedChar ¶

func (o *NSNumber) InitWithUnsignedChar(value uint8) *NSNumber

func (*NSNumber) InitWithUnsignedInt ¶

func (o *NSNumber) InitWithUnsignedInt(value uint) *NSNumber

func (*NSNumber) InitWithUnsignedInteger ¶

func (o *NSNumber) InitWithUnsignedInteger(value uint) *NSNumber

func (*NSNumber) InitWithUnsignedLong ¶

func (o *NSNumber) InitWithUnsignedLong(value uint) *NSNumber

func (*NSNumber) InitWithUnsignedLongLong ¶

func (o *NSNumber) InitWithUnsignedLongLong(value uint64) *NSNumber

func (*NSNumber) InitWithUnsignedShort ¶

func (o *NSNumber) InitWithUnsignedShort(value uint16) *NSNumber

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

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
}

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
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
const (
	NSNumberFormatterPadBeforePrefix NSNumberFormatterPadPosition = 0
	NSNumberFormatterPadAfterPrefix  NSNumberFormatterPadPosition = 1
	NSNumberFormatterPadBeforeSuffix NSNumberFormatterPadPosition = 2
	NSNumberFormatterPadAfterSuffix  NSNumberFormatterPadPosition = 3
)

func (NSNumberFormatterPadPosition) String ¶

type NSNumberFormatterRoundingMode ¶

type NSNumberFormatterRoundingMode uint64
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
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 deprecated

type NSOperatingSystemVersion struct {
	MajorVersion int
	MinorVersion int
	PatchVersion int
}

Deprecated: Not supported

type NSOperation ¶

type NSOperation struct {
	NSObject
}

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
}

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
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 pureobjc.AnyObject] struct {
	NSObject
}

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

func NSOrderedCollectionChangeChangeWithObjectTypeIndex ¶

func NSOrderedCollectionChangeChangeWithObjectTypeIndex(anObject objc.ID, type_ NSCollectionChangeType, index uint) *NSOrderedCollectionChange[objc.ID]

func NSOrderedCollectionChangeChangeWithObjectTypeIndexAssociatedIndex ¶

func NSOrderedCollectionChangeChangeWithObjectTypeIndexAssociatedIndex(anObject objc.ID, type_ NSCollectionChangeType, index uint, associatedIndex uint) *NSOrderedCollectionChange[objc.ID]

func NSOrderedCollectionChangeFromID ¶

func NSOrderedCollectionChangeFromID[ObjectType pureobjc.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]

func (*NSOrderedCollectionChange[ObjectType]) InitWithObjectTypeIndexAssociatedIndex ¶

func (o *NSOrderedCollectionChange[ObjectType]) InitWithObjectTypeIndexAssociatedIndex(anObject ObjectType, type_ NSCollectionChangeType, index uint, associatedIndex uint) *NSOrderedCollectionChange[ObjectType]

func (*NSOrderedCollectionChange[ObjectType]) Object ¶

func (o *NSOrderedCollectionChange[ObjectType]) Object() ObjectType

type NSOrderedCollectionDifference ¶

type NSOrderedCollectionDifference[ObjectType pureobjc.AnyObject] struct {
	NSObject
}

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

func NSOrderedCollectionDifferenceFromID ¶

func NSOrderedCollectionDifferenceFromID[ObjectType pureobjc.AnyObject](id objc.ID) *NSOrderedCollectionDifference[ObjectType]

func (*NSOrderedCollectionDifference[ObjectType]) DifferenceByTransformingChangesWith ¶

func (o *NSOrderedCollectionDifference[ObjectType]) DifferenceByTransformingChangesWith(block objc.Block) *NSOrderedCollectionDifference[objc.ID]

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 a new difference representing the changes in the parameter. For clients interested in the difference between two collections, the collection's differenceFrom method should be used instead. To guarantee that instances are unambiguous and safe for compatible base states, this method requires that its parameter conform to the following requirements: 1) All insertion offsets are unique 2) All removal offsets are unique 3) All associated indexes match a change with the opposite parity.

func (*NSOrderedCollectionDifference[ObjectType]) InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjects ¶

func (o *NSOrderedCollectionDifference[ObjectType]) InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjects(inserts *NSIndexSet, insertedObjects *NSArray[ObjectType], removes *NSIndexSet, removedObjects *NSArray[ObjectType]) *NSOrderedCollectionDifference[ObjectType]

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]

func (*NSOrderedCollectionDifference[ObjectType]) Insertions ¶

func (o *NSOrderedCollectionDifference[ObjectType]) Insertions() *NSArray[objc.ID]

func (*NSOrderedCollectionDifference[ObjectType]) InverseDifference ¶

func (o *NSOrderedCollectionDifference[ObjectType]) InverseDifference() *NSOrderedCollectionDifference[ObjectType]

func (*NSOrderedCollectionDifference[ObjectType]) Removals ¶

func (o *NSOrderedCollectionDifference[ObjectType]) Removals() *NSArray[objc.ID]

type NSOrderedCollectionDifferenceCalculationOptions ¶

type NSOrderedCollectionDifferenceCalculationOptions uint64
const (
	// Insertion changes do not store a reference to the inserted object.
	NSOrderedCollectionDifferenceCalculationOmitInsertedObjects NSOrderedCollectionDifferenceCalculationOptions = 1
	// Insertion changes do not store a reference to the removed object.
	NSOrderedCollectionDifferenceCalculationOmitRemovedObjects NSOrderedCollectionDifferenceCalculationOptions = 2
	// Assume objects that were uniquely removed and inserted were moved. This is useful when diffing based on identity instead of equality.
	NSOrderedCollectionDifferenceCalculationInferMoves NSOrderedCollectionDifferenceCalculationOptions = 4
)

func (NSOrderedCollectionDifferenceCalculationOptions) String ¶

type NSOrderedSet ¶

type NSOrderedSet[ObjectType pureobjc.AnyObject] struct {
	NSObject
}

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

func NSOrderedSetFromID ¶

func NSOrderedSetFromID[ObjectType pureobjc.AnyObject](id objc.ID) *NSOrderedSet[ObjectType]

func NSOrderedSetOrderedSet ¶

func NSOrderedSetOrderedSet() *NSOrderedSet[objc.ID]

func NSOrderedSetOrderedSetWithArray ¶

func NSOrderedSetOrderedSetWithArray(array *NSArray[objc.ID]) *NSOrderedSet[objc.ID]

func NSOrderedSetOrderedSetWithArrayRangeCopyItems ¶

func NSOrderedSetOrderedSetWithArrayRangeCopyItems(array *NSArray[objc.ID], range_ NSRange, flag bool) *NSOrderedSet[objc.ID]

func NSOrderedSetOrderedSetWithObject ¶

func NSOrderedSetOrderedSetWithObject(object objc.ID) *NSOrderedSet[objc.ID]

func NSOrderedSetOrderedSetWithObjectsCount ¶

func NSOrderedSetOrderedSetWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSOrderedSet[objc.ID]

func NSOrderedSetOrderedSetWithOrderedSet ¶

func NSOrderedSetOrderedSetWithOrderedSet(set *NSOrderedSet[objc.ID]) *NSOrderedSet[objc.ID]

func NSOrderedSetOrderedSetWithOrderedSetRangeCopyItems ¶

func NSOrderedSetOrderedSetWithOrderedSetRangeCopyItems(set *NSOrderedSet[objc.ID], range_ NSRange, flag bool) *NSOrderedSet[objc.ID]

func NSOrderedSetOrderedSetWithSet ¶

func NSOrderedSetOrderedSetWithSet(set *NSSet[objc.ID]) *NSOrderedSet[objc.ID]

func NSOrderedSetOrderedSetWithSetCopyItems ¶

func NSOrderedSetOrderedSetWithSetCopyItems(set *NSSet[objc.ID], flag bool) *NSOrderedSet[objc.ID]

func (*NSOrderedSet[ObjectType]) Array ¶

func (o *NSOrderedSet[ObjectType]) Array() *NSArray[ObjectType]

func (*NSOrderedSet[ObjectType]) ContainsObject ¶

func (o *NSOrderedSet[ObjectType]) ContainsObject(object ObjectType) bool

func (*NSOrderedSet[ObjectType]) Count ¶

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

func (*NSOrderedSet[ObjectType]) DescriptionWithLocale ¶

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

func (*NSOrderedSet[ObjectType]) DescriptionWithLocaleIndent ¶

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

func (*NSOrderedSet[ObjectType]) DifferenceFromOrderedSet ¶

func (o *NSOrderedSet[ObjectType]) DifferenceFromOrderedSet(other *NSOrderedSet[ObjectType]) *NSOrderedCollectionDifference[ObjectType]

func (*NSOrderedSet[ObjectType]) DifferenceFromOrderedSetWithOptions ¶

func (o *NSOrderedSet[ObjectType]) DifferenceFromOrderedSetWithOptions(other *NSOrderedSet[ObjectType], options NSOrderedCollectionDifferenceCalculationOptions) *NSOrderedCollectionDifference[ObjectType]

func (*NSOrderedSet[ObjectType]) DifferenceFromOrderedSetWithOptionsUsingEquivalenceTest ¶

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

func (*NSOrderedSet[ObjectType]) EnumerateObjectsAtIndexesOptionsUsing ¶

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

func (*NSOrderedSet[ObjectType]) EnumerateObjectsUsing ¶

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

func (*NSOrderedSet[ObjectType]) EnumerateObjectsWithOptionsUsing ¶

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

func (*NSOrderedSet[ObjectType]) FilteredOrderedSetUsingPredicate ¶

func (o *NSOrderedSet[ObjectType]) FilteredOrderedSetUsingPredicate(p *NSPredicate) *NSOrderedSet[ObjectType]

func (*NSOrderedSet[ObjectType]) FirstObject ¶

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

func (*NSOrderedSet[ObjectType]) GetObjectsRange ¶

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

func (*NSOrderedSet[ObjectType]) IndexOfObject ¶

func (o *NSOrderedSet[ObjectType]) IndexOfObject(object ObjectType) uint

func (*NSOrderedSet[ObjectType]) IndexOfObjectAtIndexesOptionsPassingTest ¶

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

func (*NSOrderedSet[ObjectType]) IndexOfObjectInSortedRangeOptionsUsingComparator ¶

func (o *NSOrderedSet[ObjectType]) IndexOfObjectInSortedRangeOptionsUsingComparator(object ObjectType, range_ NSRange, opts NSBinarySearchingOptions, cmp func(objc.ID, objc.ID) NSComparisonResult) uint

func (*NSOrderedSet[ObjectType]) IndexOfObjectPassingTest ¶

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

func (*NSOrderedSet[ObjectType]) IndexOfObjectWithOptionsPassingTest ¶

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

func (*NSOrderedSet[ObjectType]) IndexesOfObjectsAtIndexesOptionsPassingTest ¶

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

func (*NSOrderedSet[ObjectType]) IndexesOfObjectsPassingTest ¶

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

func (*NSOrderedSet[ObjectType]) IndexesOfObjectsWithOptionsPassingTest ¶

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

func (*NSOrderedSet[ObjectType]) Init ¶

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

func (*NSOrderedSet[ObjectType]) InitWithArray ¶

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

func (*NSOrderedSet[ObjectType]) InitWithArrayCopyItems ¶

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

func (*NSOrderedSet[ObjectType]) InitWithArrayRangeCopyItems ¶

func (o *NSOrderedSet[ObjectType]) InitWithArrayRangeCopyItems(set *NSArray[ObjectType], range_ NSRange, flag bool) *NSOrderedSet[ObjectType]

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]

func (*NSOrderedSet[ObjectType]) InitWithObjectsCount ¶

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

func (*NSOrderedSet[ObjectType]) InitWithOrderedSet ¶

func (o *NSOrderedSet[ObjectType]) InitWithOrderedSet(set *NSOrderedSet[ObjectType]) *NSOrderedSet[ObjectType]

func (*NSOrderedSet[ObjectType]) InitWithOrderedSetCopyItems ¶

func (o *NSOrderedSet[ObjectType]) InitWithOrderedSetCopyItems(set *NSOrderedSet[ObjectType], flag bool) *NSOrderedSet[ObjectType]

func (*NSOrderedSet[ObjectType]) InitWithOrderedSetRangeCopyItems ¶

func (o *NSOrderedSet[ObjectType]) InitWithOrderedSetRangeCopyItems(set *NSOrderedSet[ObjectType], range_ NSRange, flag bool) *NSOrderedSet[ObjectType]

func (*NSOrderedSet[ObjectType]) InitWithSet ¶

func (o *NSOrderedSet[ObjectType]) InitWithSet(set *NSSet[ObjectType]) *NSOrderedSet[ObjectType]

func (*NSOrderedSet[ObjectType]) InitWithSetCopyItems ¶

func (o *NSOrderedSet[ObjectType]) InitWithSetCopyItems(set *NSSet[ObjectType], flag bool) *NSOrderedSet[ObjectType]

func (*NSOrderedSet[ObjectType]) IntersectsOrderedSet ¶

func (o *NSOrderedSet[ObjectType]) IntersectsOrderedSet(other *NSOrderedSet[ObjectType]) bool

func (*NSOrderedSet[ObjectType]) IntersectsSet ¶

func (o *NSOrderedSet[ObjectType]) IntersectsSet(set *NSSet[ObjectType]) bool

func (*NSOrderedSet[ObjectType]) IsEqualToOrderedSet ¶

func (o *NSOrderedSet[ObjectType]) IsEqualToOrderedSet(other *NSOrderedSet[ObjectType]) bool

func (*NSOrderedSet[ObjectType]) IsSubsetOfOrderedSet ¶

func (o *NSOrderedSet[ObjectType]) IsSubsetOfOrderedSet(other *NSOrderedSet[ObjectType]) bool

func (*NSOrderedSet[ObjectType]) IsSubsetOfSet ¶

func (o *NSOrderedSet[ObjectType]) IsSubsetOfSet(set *NSSet[ObjectType]) bool

func (*NSOrderedSet[ObjectType]) LastObject ¶

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

func (*NSOrderedSet[ObjectType]) ObjectAtIndex ¶

func (o *NSOrderedSet[ObjectType]) ObjectAtIndex(idx uint) ObjectType

func (*NSOrderedSet[ObjectType]) ObjectAtIndexedSubscript ¶

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

func (*NSOrderedSet[ObjectType]) ObjectEnumerator ¶

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

func (*NSOrderedSet[ObjectType]) ObjectsAtIndexes ¶

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

func (*NSOrderedSet[ObjectType]) OrderedSetByApplyingDifference ¶

func (o *NSOrderedSet[ObjectType]) OrderedSetByApplyingDifference(difference *NSOrderedCollectionDifference[ObjectType]) *NSOrderedSet[ObjectType]

func (*NSOrderedSet[ObjectType]) ReverseObjectEnumerator ¶

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

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]

func (*NSOrderedSet[ObjectType]) SortedArrayUsingDescriptors ¶

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

func (*NSOrderedSet[ObjectType]) SortedArrayWithOptionsUsingComparator ¶

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

type NSOrthography ¶

type NSOrthography struct {
	NSObject
}

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

func NSOrthographyDefaultOrthographyForLanguage ¶

func NSOrthographyDefaultOrthographyForLanguage(language *NSString) *NSOrthography

func NSOrthographyFromID ¶

func NSOrthographyFromID(id objc.ID) *NSOrthography

func NSOrthographyOrthographyWithDominantScriptLanguageMap ¶

func NSOrthographyOrthographyWithDominantScriptLanguageMap(script *NSString, map_ *NSDictionary[*NSString, objc.ID]) *NSOrthography

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

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

func (*NSOrthography) LanguageMap ¶

func (o *NSOrthography) LanguageMap() *NSDictionary[*NSString, objc.ID]

func (*NSOrthography) LanguagesForScript ¶

func (o *NSOrthography) LanguagesForScript(script *NSString) *NSArray[*NSString]

type NSOutputStream ¶

type NSOutputStream struct {
	NSStream
}

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

func NSOutputStreamOutputStreamToFileAtPathAppend ¶

func NSOutputStreamOutputStreamToFileAtPathAppend(path *NSString, shouldAppend bool) *NSOutputStream

func NSOutputStreamOutputStreamToMemory ¶

func NSOutputStreamOutputStreamToMemory() *NSOutputStream

func NSOutputStreamOutputStreamWithURLAppend ¶

func NSOutputStreamOutputStreamWithURLAppend(url *NSURL, shouldAppend bool) *NSOutputStream

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
}

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
}

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
const (
	NSPersonNameComponentsFormatterPhonetic NSPersonNameComponentsFormatterOptions = 2
)

func (NSPersonNameComponentsFormatterOptions) String ¶

type NSPersonNameComponentsFormatterStyle ¶

type NSPersonNameComponentsFormatterStyle int64
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
}

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

func NSPipeFromID ¶

func NSPipeFromID(id objc.ID) *NSPipe

func NSPipePipe ¶

func NSPipePipe() *NSPipe

func (*NSPipe) FileHandleForReading ¶

func (o *NSPipe) FileHandleForReading() *NSFileHandle

func (*NSPipe) FileHandleForWriting ¶

func (o *NSPipe) FileHandleForWriting() *NSFileHandle

type NSPointerArray ¶

type NSPointerArray struct {
	NSObject
}

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

func NSPointerArrayFromID ¶

func NSPointerArrayFromID(id objc.ID) *NSPointerArray

func NSPointerArrayPointerArrayWithOptions ¶

func NSPointerArrayPointerArrayWithOptions(options NSPointerFunctionsOptions) *NSPointerArray

func NSPointerArrayPointerArrayWithPointerFunctions ¶

func NSPointerArrayPointerArrayWithPointerFunctions(functions *NSPointerFunctions) *NSPointerArray

func NSPointerArrayStrongObjectsPointerArray ¶

func NSPointerArrayStrongObjectsPointerArray() *NSPointerArray

func NSPointerArrayWeakObjectsPointerArray ¶

func NSPointerArrayWeakObjectsPointerArray() *NSPointerArray

func (*NSPointerArray) AddPointer ¶

func (o *NSPointerArray) AddPointer(pointer unsafe.Pointer)

func (*NSPointerArray) AllObjects ¶

func (o *NSPointerArray) AllObjects() *NSArray[objc.ID]

func (*NSPointerArray) Compact ¶

func (o *NSPointerArray) Compact()

func (*NSPointerArray) Count ¶

func (o *NSPointerArray) Count() uint

func (*NSPointerArray) InitWithOptions ¶

func (o *NSPointerArray) InitWithOptions(options NSPointerFunctionsOptions) *NSPointerArray

func (*NSPointerArray) InitWithPointerFunctions ¶

func (o *NSPointerArray) InitWithPointerFunctions(functions *NSPointerFunctions) *NSPointerArray

func (*NSPointerArray) InsertPointerAtIndex ¶

func (o *NSPointerArray) InsertPointerAtIndex(item unsafe.Pointer, index uint)

func (*NSPointerArray) PointerAtIndex ¶

func (o *NSPointerArray) PointerAtIndex(index uint) unsafe.Pointer

func (*NSPointerArray) PointerFunctions ¶

func (o *NSPointerArray) PointerFunctions() *NSPointerFunctions

func (*NSPointerArray) RemovePointerAtIndex ¶

func (o *NSPointerArray) RemovePointerAtIndex(index uint)

func (*NSPointerArray) ReplacePointerAtIndexWithPointer ¶

func (o *NSPointerArray) ReplacePointerAtIndexWithPointer(index uint, item unsafe.Pointer)

func (*NSPointerArray) SetCount ¶

func (o *NSPointerArray) SetCount(count uint)

type NSPointerFunctions ¶

type NSPointerFunctions struct {
	NSObject
}

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

func NSPointerFunctionsFromID ¶

func NSPointerFunctionsFromID(id objc.ID) *NSPointerFunctions

func NSPointerFunctionsPointerFunctionsWithOptions ¶

func NSPointerFunctionsPointerFunctionsWithOptions(options NSPointerFunctionsOptions) *NSPointerFunctions

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 ¶

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
const (
	NSPointerFunctionsStrongMemory             NSPointerFunctionsOptions = 0
	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
}

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

func NSMachPortPortWithMachPort ¶

func NSMachPortPortWithMachPort(machPort uint32) *NSPort

func NSMachPortPortWithMachPortOptions ¶

func NSMachPortPortWithMachPortOptions(machPort uint32, f NSMachPortOptions) *NSPort

func NSPortFromID ¶

func NSPortFromID(id objc.ID) *NSPort

func NSPortPort ¶

func NSPortPort() *NSPort

func (*NSPort) AddConnectionToRunLoopForMode deprecated

func (o *NSPort) AddConnectionToRunLoopForMode(conn *NSConnection, runLoop *NSRunLoop, mode *NSString)

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 deprecated

func (o *NSPort) RemoveConnectionFromRunLoopForMode(conn *NSConnection, runLoop *NSRunLoop, mode *NSString)

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
}

Apple documentation: https://developer.apple.com/documentation/foundation/nsportcoder Deprecated: Use NSXPCConnection instead

func NSPortCoderFromID ¶

func NSPortCoderFromID(id objc.ID) *NSPortCoder

func (*NSPortCoder) Connection deprecated

func (o *NSPortCoder) Connection() *NSConnection

Deprecated: since macOS 10.7.

func (*NSPortCoder) DecodePortObject ¶

func (o *NSPortCoder) DecodePortObject() *NSPort

func (*NSPortCoder) Dispatch deprecated

func (o *NSPortCoder) Dispatch()

Deprecated: since macOS 10.7.

func (*NSPortCoder) EncodePortObject ¶

func (o *NSPortCoder) EncodePortObject(aport *NSPort)

func (*NSPortCoder) InitWithReceivePortSendPortComponents deprecated

func (o *NSPortCoder) InitWithReceivePortSendPortComponents(rcvPort *NSPort, sndPort *NSPort, comps *NSArray[objc.ID]) objc.ID

Deprecated: since macOS 10.7.

func (*NSPortCoder) IsBycopy deprecated

func (o *NSPortCoder) IsBycopy() bool

Deprecated: Use NSXPCConnection instead

func (*NSPortCoder) IsByref ¶

func (o *NSPortCoder) IsByref() bool

type NSPortDelegate ¶

type NSPortDelegate interface {
}

NSPortDelegate wraps the ObjC protocol NSPortDelegate.

type NSPortMessage ¶

type NSPortMessage struct {
	NSObject
}

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
}

Apple documentation: https://developer.apple.com/documentation/foundation/nsportnameserver Deprecated: Use NSXPCConnection instead

func NSPortNameServerFromID ¶

func NSPortNameServerFromID(id objc.ID) *NSPortNameServer

func NSPortNameServerSystemDefaultPortNameServer deprecated

func NSPortNameServerSystemDefaultPortNameServer() *NSPortNameServer

Deprecated: Use NSXPCConnection instead

func (*NSPortNameServer) PortForName ¶

func (o *NSPortNameServer) PortForName(name *NSString) *NSPort

func (*NSPortNameServer) PortForNameHost ¶

func (o *NSPortNameServer) PortForNameHost(name *NSString, host *NSString) *NSPort

func (*NSPortNameServer) RegisterPortName ¶

func (o *NSPortNameServer) RegisterPortName(port *NSPort, name *NSString) bool

func (*NSPortNameServer) RemovePortForName ¶

func (o *NSPortNameServer) RemovePortForName(name *NSString) bool

type NSPositionalSpecifier ¶

type NSPositionalSpecifier struct {
	NSObject
}

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

func NSPositionalSpecifierFromID ¶

func NSPositionalSpecifierFromID(id objc.ID) *NSPositionalSpecifier

func (*NSPositionalSpecifier) Evaluate ¶

func (o *NSPositionalSpecifier) Evaluate()

func (*NSPositionalSpecifier) InitWithPositionObjectSpecifier ¶

func (o *NSPositionalSpecifier) InitWithPositionObjectSpecifier(position NSInsertionPosition, specifier *NSScriptObjectSpecifier) *NSPositionalSpecifier

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)

type NSPostingStyle ¶

type NSPostingStyle uint64
const (
	NSPostWhenIdle NSPostingStyle = 1
	NSPostASAP     NSPostingStyle = 2
	NSPostNow      NSPostingStyle = 3
)

func (NSPostingStyle) String ¶

func (e NSPostingStyle) String() string

type NSPredicate ¶

type NSPredicate struct {
	NSObject
}

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

func NSPredicateFromID ¶

func NSPredicateFromID(id objc.ID) *NSPredicate

func NSPredicatePredicateFromMetadataQueryString ¶

func NSPredicatePredicateFromMetadataQueryString(queryString *NSString) *NSPredicate

func NSPredicatePredicateWith ¶

func NSPredicatePredicateWith(block objc.Block) *NSPredicate

func NSPredicatePredicateWithFormat ¶

func NSPredicatePredicateWithFormat(predicateFormat *NSString) *NSPredicate

func NSPredicatePredicateWithFormatArgumentArray ¶

func NSPredicatePredicateWithFormatArgumentArray(predicateFormat *NSString, arguments *NSArray[objc.ID]) *NSPredicate

func NSPredicatePredicateWithFormatArguments ¶

func NSPredicatePredicateWithFormatArguments(predicateFormat *NSString, argList string) *NSPredicate

func NSPredicatePredicateWithValue ¶

func NSPredicatePredicateWithValue(value bool) *NSPredicate

func (*NSPredicate) AllowEvaluation ¶

func (o *NSPredicate) AllowEvaluation()

func (*NSPredicate) AllowEvaluationWithValidatorError ¶

func (o *NSPredicate) AllowEvaluationWithValidatorError(validator NSPredicateValidating) (bool, error)

func (*NSPredicate) EvaluateWithObject ¶

func (o *NSPredicate) EvaluateWithObject(object objc.ID) bool

func (*NSPredicate) EvaluateWithObjectSubstitutionVariables ¶

func (o *NSPredicate) EvaluateWithObjectSubstitutionVariables(object objc.ID, bindings *NSDictionary[*NSString, objc.ID]) bool

func (*NSPredicate) PredicateFormat ¶

func (o *NSPredicate) PredicateFormat() *NSString

func (*NSPredicate) PredicateWithSubstitutionVariables ¶

func (o *NSPredicate) PredicateWithSubstitutionVariables(variables *NSDictionary[*NSString, objc.ID]) *NSPredicate

type NSPredicateOperatorType ¶

type NSPredicateOperatorType uint64
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
}

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

func NSPresentationIntentBlockQuoteIntentWithIdentityNestedInsideIntent ¶

func NSPresentationIntentBlockQuoteIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent

func NSPresentationIntentCodeBlockIntentWithIdentityLanguageHintNestedInsideIntent ¶

func NSPresentationIntentCodeBlockIntentWithIdentityLanguageHintNestedInsideIntent(identity int, languageHint *NSString, parent *NSPresentationIntent) *NSPresentationIntent

func NSPresentationIntentFromID ¶

func NSPresentationIntentFromID(id objc.ID) *NSPresentationIntent

func NSPresentationIntentHeaderIntentWithIdentityLevelNestedInsideIntent ¶

func NSPresentationIntentHeaderIntentWithIdentityLevelNestedInsideIntent(identity int, level int, parent *NSPresentationIntent) *NSPresentationIntent

func NSPresentationIntentListItemIntentWithIdentityOrdinalNestedInsideIntent ¶

func NSPresentationIntentListItemIntentWithIdentityOrdinalNestedInsideIntent(identity int, ordinal int, parent *NSPresentationIntent) *NSPresentationIntent

func NSPresentationIntentOrderedListIntentWithIdentityNestedInsideIntent ¶

func NSPresentationIntentOrderedListIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent

func NSPresentationIntentParagraphIntentWithIdentityNestedInsideIntent ¶

func NSPresentationIntentParagraphIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent

func NSPresentationIntentTableCellIntentWithIdentityColumnNestedInsideIntent ¶

func NSPresentationIntentTableCellIntentWithIdentityColumnNestedInsideIntent(identity int, column int, parent *NSPresentationIntent) *NSPresentationIntent

func NSPresentationIntentTableHeaderRowIntentWithIdentityNestedInsideIntent ¶

func NSPresentationIntentTableHeaderRowIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent

func NSPresentationIntentTableIntentWithIdentityColumnCountAlignmentsNestedInsideIntent ¶

func NSPresentationIntentTableIntentWithIdentityColumnCountAlignmentsNestedInsideIntent(identity int, columnCount int, alignments *NSArray[*NSNumber], parent *NSPresentationIntent) *NSPresentationIntent

func NSPresentationIntentTableRowIntentWithIdentityRowNestedInsideIntent ¶

func NSPresentationIntentTableRowIntentWithIdentityRowNestedInsideIntent(identity int, row int, parent *NSPresentationIntent) *NSPresentationIntent

func NSPresentationIntentThematicBreakIntentWithIdentityNestedInsideIntent ¶

func NSPresentationIntentThematicBreakIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent

func NSPresentationIntentUnorderedListIntentWithIdentityNestedInsideIntent ¶

func NSPresentationIntentUnorderedListIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent

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 `YES` if this intent is equivalent to the other presentation intent. Equivalence is the same as equality except that identity is not taken into account.

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
const (
	NSPresentationIntentKindParagraph      NSPresentationIntentKind = 0
	NSPresentationIntentKindHeader         NSPresentationIntentKind = 1
	NSPresentationIntentKindOrderedList    NSPresentationIntentKind = 2
	NSPresentationIntentKindUnorderedList  NSPresentationIntentKind = 3
	NSPresentationIntentKindListItem       NSPresentationIntentKind = 4
	NSPresentationIntentKindCodeBlock      NSPresentationIntentKind = 5
	NSPresentationIntentKindBlockQuote     NSPresentationIntentKind = 6
	NSPresentationIntentKindThematicBreak  NSPresentationIntentKind = 7
	NSPresentationIntentKindTable          NSPresentationIntentKind = 8
	NSPresentationIntentKindTableHeaderRow NSPresentationIntentKind = 9
	NSPresentationIntentKindTableRow       NSPresentationIntentKind = 10
	NSPresentationIntentKindTableCell      NSPresentationIntentKind = 11
)

func (NSPresentationIntentKind) String ¶

func (e NSPresentationIntentKind) String() string

type NSPresentationIntentTableColumnAlignment ¶

type NSPresentationIntentTableColumnAlignment int64
const (
	NSPresentationIntentTableColumnAlignmentLeft   NSPresentationIntentTableColumnAlignment = 0
	NSPresentationIntentTableColumnAlignmentCenter NSPresentationIntentTableColumnAlignment = 1
	NSPresentationIntentTableColumnAlignmentRight  NSPresentationIntentTableColumnAlignment = 2
)

func (NSPresentationIntentTableColumnAlignment) String ¶

type NSProcessInfo ¶

type NSProcessInfo struct {
	NSObject
}

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
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
}

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())

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
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
const (
	NSPropertyListImmutable                  NSPropertyListMutabilityOptions = 0
	NSPropertyListMutableContainers          NSPropertyListMutabilityOptions = 1
	NSPropertyListMutableContainersAndLeaves NSPropertyListMutabilityOptions = 2
)

func (NSPropertyListMutabilityOptions) String ¶

type NSPropertyListSerialization ¶

type NSPropertyListSerialization struct {
	NSObject
}

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

func NSPropertyListSerializationFromID ¶

func NSPropertyListSerializationFromID(id objc.ID) *NSPropertyListSerialization

type NSProtocolChecker ¶

type NSProtocolChecker struct {
	NSProxy
}

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

func (*NSProtocolChecker) InitWithTargetProtocol ¶

func (o *NSProtocolChecker) InitWithTargetProtocol(anObject *NSObject, aProtocol unsafe.Pointer) *NSProtocolChecker

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
}

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

func NSProxyFromID ¶

func NSProxyFromID(id objc.ID) *NSProxy

func (*NSProxy) Dealloc ¶

func (o *NSProxy) Dealloc()

func (*NSProxy) DebugDescription ¶

func (o *NSProxy) DebugDescription() *NSString

func (*NSProxy) Description ¶

func (o *NSProxy) Description() *NSString

func (*NSProxy) Finalize ¶

func (o *NSProxy) Finalize()

func (*NSProxy) ForwardInvocation ¶

func (o *NSProxy) ForwardInvocation(invocation *NSInvocation)

func (*NSProxy) InitPtr ¶

func (o *NSProxy) InitPtr(id objc.ID)

func (*NSProxy) MethodSignatureForSelector ¶

func (o *NSProxy) MethodSignatureForSelector(sel objc.SEL) *NSMethodSignature

func (*NSProxy) Ptr ¶

func (o *NSProxy) Ptr() objc.ID

type NSPurgeableData ¶

type NSPurgeableData struct {
	NSMutableData
}

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

func NSPurgeableDataFromID ¶

func NSPurgeableDataFromID(id objc.ID) *NSPurgeableData

type NSQualityOfService ¶

type NSQualityOfService int64
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
}

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
}

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

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 (
	NSRectEdgeMinX NSRectEdge = 0
	NSRectEdgeMinY NSRectEdge = 1
	NSRectEdgeMaxX NSRectEdge = 2
	NSRectEdgeMaxY NSRectEdge = 3
	NSMinXEdge     NSRectEdge = 0
	NSMinYEdge     NSRectEdge = 1
	NSMaxXEdge     NSRectEdge = 2
	NSMaxYEdge     NSRectEdge = 3
)

func (NSRectEdge) String ¶

func (e NSRectEdge) String() string

type NSRecursiveLock ¶

type NSRecursiveLock struct {
	NSObject
}

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

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

type NSRegularExpression ¶

type NSRegularExpression struct {
	NSObject
}

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)

func (*NSRegularExpression) EnumerateMatchesInStringOptionsRangeUsing ¶

func (o *NSRegularExpression) EnumerateMatchesInStringOptionsRangeUsing(string_ *NSString, options NSMatchingOptions, range_ NSRange, block func(*NSTextCheckingResult, NSMatchingFlags, *bool))

func (*NSRegularExpression) FirstMatchInStringOptionsRange ¶

func (o *NSRegularExpression) FirstMatchInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) *NSTextCheckingResult

func (*NSRegularExpression) InitWithPatternOptionsError ¶

func (o *NSRegularExpression) InitWithPatternOptionsError(pattern *NSString, options NSRegularExpressionOptions) (*NSRegularExpression, error)

func (*NSRegularExpression) MatchesInStringOptionsRange ¶

func (o *NSRegularExpression) MatchesInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) *NSArray[*NSTextCheckingResult]

func (*NSRegularExpression) NumberOfCaptureGroups ¶

func (o *NSRegularExpression) NumberOfCaptureGroups() uint

func (*NSRegularExpression) NumberOfMatchesInStringOptionsRange ¶

func (o *NSRegularExpression) NumberOfMatchesInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) uint

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

func (*NSRegularExpression) ReplaceMatchesInStringOptionsRangeWithTemplate ¶

func (o *NSRegularExpression) ReplaceMatchesInStringOptionsRangeWithTemplate(string_ *NSMutableString, options NSMatchingOptions, range_ NSRange, templ *NSString) uint

func (*NSRegularExpression) ReplacementStringForResultInStringOffsetTemplate ¶

func (o *NSRegularExpression) ReplacementStringForResultInStringOffsetTemplate(result *NSTextCheckingResult, string_ *NSString, offset int, templ *NSString) *NSString

func (*NSRegularExpression) StringByReplacingMatchesInStringOptionsRangeWithTemplate ¶

func (o *NSRegularExpression) StringByReplacingMatchesInStringOptionsRangeWithTemplate(string_ *NSString, options NSMatchingOptions, range_ NSRange, templ *NSString) *NSString

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
}

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
const (
	NSRelativeDateTimeFormatterStyleNumeric NSRelativeDateTimeFormatterStyle = 0
	NSRelativeDateTimeFormatterStyleNamed   NSRelativeDateTimeFormatterStyle = 1
)

func (NSRelativeDateTimeFormatterStyle) String ¶

type NSRelativeDateTimeFormatterUnitsStyle ¶

type NSRelativeDateTimeFormatterUnitsStyle int64
const (
	NSRelativeDateTimeFormatterUnitsStyleFull        NSRelativeDateTimeFormatterUnitsStyle = 0
	NSRelativeDateTimeFormatterUnitsStyleSpellOut    NSRelativeDateTimeFormatterUnitsStyle = 1
	NSRelativeDateTimeFormatterUnitsStyleShort       NSRelativeDateTimeFormatterUnitsStyle = 2
	NSRelativeDateTimeFormatterUnitsStyleAbbreviated NSRelativeDateTimeFormatterUnitsStyle = 3
)

func (NSRelativeDateTimeFormatterUnitsStyle) String ¶

type NSRelativePosition ¶

type NSRelativePosition uint64
const (
	NSRelativeAfter  NSRelativePosition = 0
	NSRelativeBefore NSRelativePosition = 1
)

func (NSRelativePosition) String ¶

func (e NSRelativePosition) String() string

type NSRelativeSpecifier ¶

type NSRelativeSpecifier struct {
	NSScriptObjectSpecifier
}

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

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
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
}

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 deprecated

func (o *NSRunLoop) ConfigureAsServer()

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
const (
	NSSaveOptionsYes NSSaveOptions = 0
	NSSaveOptionsNo  NSSaveOptions = 1
	NSSaveOptionsAsk NSSaveOptions = 2
)

func (NSSaveOptions) String ¶

func (e NSSaveOptions) String() string

type NSScanner ¶

type NSScanner struct {
	NSObject
}

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

func NSScannerFromID ¶

func NSScannerFromID(id objc.ID) *NSScanner

func NSScannerScannerWithString ¶

func NSScannerScannerWithString(string_ *NSString) *NSScanner

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
}

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

func NSScriptClassDescriptionClassDescriptionForClass ¶

func NSScriptClassDescriptionClassDescriptionForClass(aClass objc.Class) *NSScriptClassDescription

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

func (*NSScriptClassDescription) ClassDescriptionForKey ¶

func (o *NSScriptClassDescription) ClassDescriptionForKey(key *NSString) *NSScriptClassDescription

func (*NSScriptClassDescription) DefaultSubcontainerAttributeKey ¶

func (o *NSScriptClassDescription) DefaultSubcontainerAttributeKey() *NSString

func (*NSScriptClassDescription) HasOrderedToManyRelationshipForKey ¶

func (o *NSScriptClassDescription) HasOrderedToManyRelationshipForKey(key *NSString) bool

func (*NSScriptClassDescription) HasPropertyForKey ¶

func (o *NSScriptClassDescription) HasPropertyForKey(key *NSString) bool

func (*NSScriptClassDescription) HasReadablePropertyForKey ¶

func (o *NSScriptClassDescription) HasReadablePropertyForKey(key *NSString) bool

func (*NSScriptClassDescription) HasWritablePropertyForKey ¶

func (o *NSScriptClassDescription) HasWritablePropertyForKey(key *NSString) bool

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

func (*NSScriptClassDescription) IsLocationRequiredToCreateForKey ¶

func (o *NSScriptClassDescription) IsLocationRequiredToCreateForKey(toManyRelationshipKey *NSString) bool

func (*NSScriptClassDescription) IsReadOnlyKey deprecated

func (o *NSScriptClassDescription) IsReadOnlyKey(key *NSString) bool

Deprecated: since macOS 10.5.

func (*NSScriptClassDescription) KeyWithAppleEventCode ¶

func (o *NSScriptClassDescription) KeyWithAppleEventCode(appleEventCode uint) *NSString

func (*NSScriptClassDescription) MatchesAppleEventCode ¶

func (o *NSScriptClassDescription) MatchesAppleEventCode(appleEventCode uint) bool

func (*NSScriptClassDescription) SelectorForCommand ¶

func (o *NSScriptClassDescription) SelectorForCommand(commandDescription *NSScriptCommandDescription) objc.SEL

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

func (*NSScriptClassDescription) TypeForKey ¶

func (o *NSScriptClassDescription) TypeForKey(key *NSString) *NSString

type NSScriptCoercionHandler ¶

type NSScriptCoercionHandler struct {
	NSObject
}

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

func NSScriptCoercionHandlerFromID ¶

func NSScriptCoercionHandlerFromID(id objc.ID) *NSScriptCoercionHandler

func NSScriptCoercionHandlerSharedCoercionHandler ¶

func NSScriptCoercionHandlerSharedCoercionHandler() *NSScriptCoercionHandler

func (*NSScriptCoercionHandler) CoerceValueToClass ¶

func (o *NSScriptCoercionHandler) CoerceValueToClass(value objc.ID, toClass objc.Class) objc.ID

func (*NSScriptCoercionHandler) RegisterCoercerSelectorToConvertFromClassToClass ¶

func (o *NSScriptCoercionHandler) RegisterCoercerSelectorToConvertFromClassToClass(coercer objc.ID, selector objc.SEL, fromClass objc.Class, toClass objc.Class)

type NSScriptCommand ¶

type NSScriptCommand struct {
	NSObject
}

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

func NSScriptCommandCurrentCommand ¶

func NSScriptCommandCurrentCommand() *NSScriptCommand

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

func (*NSScriptCommand) InitWithCoder ¶

func (o *NSScriptCommand) InitWithCoder(inCoder *NSCoder) *NSScriptCommand

func (*NSScriptCommand) InitWithCommandDescription ¶

func (o *NSScriptCommand) InitWithCommandDescription(commandDef *NSScriptCommandDescription) *NSScriptCommand

func (*NSScriptCommand) IsWellFormed ¶

func (o *NSScriptCommand) IsWellFormed() bool

func (*NSScriptCommand) PerformDefaultImplementation ¶

func (o *NSScriptCommand) PerformDefaultImplementation() objc.ID

func (*NSScriptCommand) ReceiversSpecifier ¶

func (o *NSScriptCommand) ReceiversSpecifier() *NSScriptObjectSpecifier

func (*NSScriptCommand) ResumeExecutionWithResult ¶

func (o *NSScriptCommand) ResumeExecutionWithResult(result objc.ID)

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()

type NSScriptCommandDescription ¶

type NSScriptCommandDescription struct {
	NSObject
}

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

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

func (*NSScriptCommandDescription) CreateCommandInstanceWithZone ¶

func (o *NSScriptCommandDescription) CreateCommandInstanceWithZone(zone unsafe.Pointer) *NSScriptCommand

func (*NSScriptCommandDescription) InitWithCoder ¶

func (*NSScriptCommandDescription) InitWithSuiteNameCommandNameDictionary ¶

func (o *NSScriptCommandDescription) InitWithSuiteNameCommandNameDictionary(suiteName *NSString, commandName *NSString, commandDeclaration *NSDictionary[objc.ID, objc.ID]) *NSScriptCommandDescription

func (*NSScriptCommandDescription) IsOptionalArgumentWithName ¶

func (o *NSScriptCommandDescription) IsOptionalArgumentWithName(argumentName *NSString) bool

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

type NSScriptExecutionContext ¶

type NSScriptExecutionContext struct {
	NSObject
}

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

func NSScriptExecutionContextFromID ¶

func NSScriptExecutionContextFromID(id objc.ID) *NSScriptExecutionContext

func NSScriptExecutionContextSharedScriptExecutionContext ¶

func NSScriptExecutionContextSharedScriptExecutionContext() *NSScriptExecutionContext

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
}

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

func NSScriptObjectSpecifierFromID ¶

func NSScriptObjectSpecifierFromID(id objc.ID) *NSScriptObjectSpecifier

func NSScriptObjectSpecifierObjectSpecifierWithDescriptor ¶

func NSScriptObjectSpecifierObjectSpecifierWithDescriptor(descriptor *NSAppleEventDescriptor) *NSScriptObjectSpecifier

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

func (*NSScriptObjectSpecifier) InitWithCoder ¶

func (o *NSScriptObjectSpecifier) InitWithCoder(inCoder *NSCoder) *NSScriptObjectSpecifier

func (*NSScriptObjectSpecifier) InitWithContainerClassDescriptionContainerSpecifierKey ¶

func (o *NSScriptObjectSpecifier) InitWithContainerClassDescriptionContainerSpecifierKey(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString) *NSScriptObjectSpecifier

func (*NSScriptObjectSpecifier) InitWithContainerSpecifierKey ¶

func (o *NSScriptObjectSpecifier) InitWithContainerSpecifierKey(container *NSScriptObjectSpecifier, property *NSString) *NSScriptObjectSpecifier

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

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
}

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

func NSScriptSuiteRegistryFromID ¶

func NSScriptSuiteRegistryFromID(id objc.ID) *NSScriptSuiteRegistry

func NSScriptSuiteRegistrySharedScriptSuiteRegistry ¶

func NSScriptSuiteRegistrySharedScriptSuiteRegistry() *NSScriptSuiteRegistry

func (*NSScriptSuiteRegistry) AeteResource ¶

func (o *NSScriptSuiteRegistry) AeteResource(languageName *NSString) *NSData

func (*NSScriptSuiteRegistry) AppleEventCodeForSuite ¶

func (o *NSScriptSuiteRegistry) AppleEventCodeForSuite(suiteName *NSString) uint

func (*NSScriptSuiteRegistry) BundleForSuite ¶

func (o *NSScriptSuiteRegistry) BundleForSuite(suiteName *NSString) *NSBundle

func (*NSScriptSuiteRegistry) ClassDescriptionWithAppleEventCode ¶

func (o *NSScriptSuiteRegistry) ClassDescriptionWithAppleEventCode(appleEventCode uint) *NSScriptClassDescription

func (*NSScriptSuiteRegistry) ClassDescriptionsInSuite ¶

func (o *NSScriptSuiteRegistry) ClassDescriptionsInSuite(suiteName *NSString) *NSDictionary[*NSString, *NSScriptClassDescription]

func (*NSScriptSuiteRegistry) CommandDescriptionWithAppleEventClassAndAppleEventCode ¶

func (o *NSScriptSuiteRegistry) CommandDescriptionWithAppleEventClassAndAppleEventCode(appleEventClassCode uint, appleEventIDCode uint) *NSScriptCommandDescription

func (*NSScriptSuiteRegistry) CommandDescriptionsInSuite ¶

func (o *NSScriptSuiteRegistry) CommandDescriptionsInSuite(suiteName *NSString) *NSDictionary[*NSString, *NSScriptCommandDescription]

func (*NSScriptSuiteRegistry) LoadSuiteWithDictionaryFromBundle ¶

func (o *NSScriptSuiteRegistry) LoadSuiteWithDictionaryFromBundle(suiteDeclaration *NSDictionary[objc.ID, objc.ID], bundle *NSBundle)

func (*NSScriptSuiteRegistry) LoadSuitesFromBundle ¶

func (o *NSScriptSuiteRegistry) LoadSuitesFromBundle(bundle *NSBundle)

func (*NSScriptSuiteRegistry) RegisterClassDescription ¶

func (o *NSScriptSuiteRegistry) RegisterClassDescription(classDescription *NSScriptClassDescription)

func (*NSScriptSuiteRegistry) RegisterCommandDescription ¶

func (o *NSScriptSuiteRegistry) RegisterCommandDescription(commandDescription *NSScriptCommandDescription)

func (*NSScriptSuiteRegistry) SuiteForAppleEventCode ¶

func (o *NSScriptSuiteRegistry) SuiteForAppleEventCode(appleEventCode uint) *NSString

func (*NSScriptSuiteRegistry) SuiteNames ¶

func (o *NSScriptSuiteRegistry) SuiteNames() *NSArray[*NSString]

type NSScriptWhoseTest ¶

type NSScriptWhoseTest struct {
	NSObject
}

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

type NSSearchPathDirectory ¶

type NSSearchPathDirectory uint64
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
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 NSSet ¶

type NSSet[ObjectType pureobjc.AnyObject] struct {
	NSObject
}

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

func NSObjectKeyPathsForValuesAffectingValueForKey ¶

func NSObjectKeyPathsForValuesAffectingValueForKey(key *NSString) *NSSet[*NSString]

func NSSetFromID ¶

func NSSetFromID[ObjectType pureobjc.AnyObject](id objc.ID) *NSSet[ObjectType]

func NSSetSet ¶

func NSSetSet() *NSSet[objc.ID]

func NSSetSetWithArray ¶

func NSSetSetWithArray(array *NSArray[objc.ID]) *NSSet[objc.ID]

func NSSetSetWithObject ¶

func NSSetSetWithObject(object objc.ID) *NSSet[objc.ID]

func NSSetSetWithObjectsCount ¶

func NSSetSetWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSSet[objc.ID]

func NSSetSetWithSet ¶

func NSSetSetWithSet(set *NSSet[objc.ID]) *NSSet[objc.ID]

func (*NSSet[ObjectType]) AllObjects ¶

func (o *NSSet[ObjectType]) AllObjects() *NSArray[ObjectType]

func (*NSSet[ObjectType]) AnyObject ¶

func (o *NSSet[ObjectType]) AnyObject() ObjectType

func (*NSSet[ObjectType]) ContainsObject ¶

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

func (*NSSet[ObjectType]) Count ¶

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

func (*NSSet[ObjectType]) DescriptionWithLocale ¶

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

func (*NSSet[ObjectType]) EnumerateObjectsUsing ¶

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

func (*NSSet[ObjectType]) EnumerateObjectsWithOptionsUsing ¶

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

func (*NSSet[ObjectType]) FilteredSetUsingPredicate ¶

func (o *NSSet[ObjectType]) FilteredSetUsingPredicate(predicate *NSPredicate) *NSSet[ObjectType]

func (*NSSet[ObjectType]) Init ¶

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

func (*NSSet[ObjectType]) InitWithArray ¶

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

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]

func (*NSSet[ObjectType]) InitWithSet ¶

func (o *NSSet[ObjectType]) InitWithSet(set *NSSet[ObjectType]) *NSSet[ObjectType]

func (*NSSet[ObjectType]) InitWithSetCopyItems ¶

func (o *NSSet[ObjectType]) InitWithSetCopyItems(set *NSSet[ObjectType], flag bool) *NSSet[ObjectType]

func (*NSSet[ObjectType]) IntersectsSet ¶

func (o *NSSet[ObjectType]) IntersectsSet(otherSet *NSSet[ObjectType]) bool

func (*NSSet[ObjectType]) IsEqualToSet ¶

func (o *NSSet[ObjectType]) IsEqualToSet(otherSet *NSSet[ObjectType]) bool

func (*NSSet[ObjectType]) IsSubsetOfSet ¶

func (o *NSSet[ObjectType]) IsSubsetOfSet(otherSet *NSSet[ObjectType]) bool

func (*NSSet[ObjectType]) MakeObjectsPerformSelector ¶

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

func (*NSSet[ObjectType]) MakeObjectsPerformSelectorWithObject ¶

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

func (*NSSet[ObjectType]) Member ¶

func (o *NSSet[ObjectType]) Member(object ObjectType) ObjectType

func (*NSSet[ObjectType]) ObjectEnumerator ¶

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

func (*NSSet[ObjectType]) ObjectsPassingTest ¶

func (o *NSSet[ObjectType]) ObjectsPassingTest(predicate objc.Block) *NSSet[ObjectType]

func (*NSSet[ObjectType]) ObjectsWithOptionsPassingTest ¶

func (o *NSSet[ObjectType]) ObjectsWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSSet[ObjectType]

func (*NSSet[ObjectType]) SetByAddingObject ¶

func (o *NSSet[ObjectType]) SetByAddingObject(anObject ObjectType) *NSSet[ObjectType]

func (*NSSet[ObjectType]) SetByAddingObjectsFromArray ¶

func (o *NSSet[ObjectType]) SetByAddingObjectsFromArray(other *NSArray[ObjectType]) *NSSet[ObjectType]

func (*NSSet[ObjectType]) SetByAddingObjectsFromSet ¶

func (o *NSSet[ObjectType]) SetByAddingObjectsFromSet(other *NSSet[ObjectType]) *NSSet[ObjectType]

func (*NSSet[ObjectType]) SortedArrayUsingDescriptors ¶

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

type NSSetCommand ¶

type NSSetCommand struct {
	NSScriptCommand
}

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
}

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
}

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

func (*NSSocketPortNameServer) RegisterPortNameNameServerPortNumber ¶

func (o *NSSocketPortNameServer) RegisterPortNameNameServerPortNumber(port *NSPort, name *NSString, portNumber uint16) bool

func (*NSSocketPortNameServer) SetDefaultNameServerPortNumber ¶

func (o *NSSocketPortNameServer) SetDefaultNameServerPortNumber(defaultNameServerPortNumber uint16)

type NSSortDescriptor ¶

type NSSortDescriptor struct {
	NSObject
}

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

func NSSortDescriptorSortDescriptorWithKeyAscendingComparator ¶

func NSSortDescriptorSortDescriptorWithKeyAscendingComparator(key *NSString, ascending bool, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSSortDescriptor

func NSSortDescriptorSortDescriptorWithKeyAscendingSelector ¶

func NSSortDescriptorSortDescriptorWithKeyAscendingSelector(key *NSString, ascending bool, selector objc.SEL) *NSSortDescriptor

func (*NSSortDescriptor) AllowEvaluation ¶

func (o *NSSortDescriptor) AllowEvaluation()

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

func (*NSSortDescriptor) InitWithCoder ¶

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

func (*NSSortDescriptor) InitWithKeyAscending ¶

func (o *NSSortDescriptor) InitWithKeyAscending(key *NSString, ascending bool) *NSSortDescriptor

func (*NSSortDescriptor) InitWithKeyAscendingComparator ¶

func (o *NSSortDescriptor) InitWithKeyAscendingComparator(key *NSString, ascending bool, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSSortDescriptor

func (*NSSortDescriptor) InitWithKeyAscendingSelector ¶

func (o *NSSortDescriptor) InitWithKeyAscendingSelector(key *NSString, ascending bool, selector objc.SEL) *NSSortDescriptor

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
const (
	NSSortConcurrent NSSortOptions = 1
	NSSortStable     NSSortOptions = 16
)

func (NSSortOptions) String ¶

func (e NSSortOptions) String() string

type NSSpecifierTest ¶

type NSSpecifierTest struct {
	NSScriptWhoseTest
}

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

type NSSpellServer ¶

type NSSpellServer struct {
	NSObject
}

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

func (*NSSpellServer) RegisterLanguageByVendor ¶

func (o *NSSpellServer) RegisterLanguageByVendor(language *NSString, vendor *NSString) bool

func (*NSSpellServer) Run ¶

func (o *NSSpellServer) Run()

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
}

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
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
}

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

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 deprecated

func NSLinguisticTaggerDominantLanguageForString(string_ *NSString) *NSString

Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API

func NSLinguisticTaggerTagForStringAtIndexUnitSchemeOrthographyTokenRange deprecated

func NSLinguisticTaggerTagForStringAtIndexUnitSchemeOrthographyTokenRange(string_ *NSString, charIndex uint, unit NSLinguisticTaggerUnit, scheme *NSString, orthography *NSOrthography, tokenRange *NSRange) *NSString

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

func NSLocaleCanonicalLocaleIdentifierFromString ¶

func NSLocaleCanonicalLocaleIdentifierFromString(string_ *NSString) *NSString

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

func NSLocaleLocaleIdentifierFromWindowsLocaleCode ¶

func NSLocaleLocaleIdentifierFromWindowsLocaleCode(lcid uint32) *NSString

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

func NSRegularExpressionEscapedTemplateForString ¶

func NSRegularExpressionEscapedTemplateForString(string_ *NSString) *NSString

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

func NSStringLocalizedStringWithFormat ¶

func NSStringLocalizedStringWithFormat(format *NSString) *NSString

func NSStringLocalizedStringWithValidatedFormatValidFormatSpecifiersError ¶

func NSStringLocalizedStringWithValidatedFormatValidFormatSpecifiersError(format *NSString, validFormatSpecifiers *NSString) (*NSString, error)

func NSStringPathWithComponents ¶

func NSStringPathWithComponents(components *NSArray[*NSString]) *NSString

func NSStringString ¶

func NSStringString() *NSString

func NSStringStringWithCStringEncoding ¶

func NSStringStringWithCStringEncoding(cString string, enc uint) *NSString

func NSStringStringWithCharactersLength ¶

func NSStringStringWithCharactersLength(characters *uint16, length uint) *NSString

func NSStringStringWithContentsOfFileEncodingError ¶

func NSStringStringWithContentsOfFileEncodingError(path *NSString, enc uint) (*NSString, error)

func NSStringStringWithContentsOfFileUsedEncodingError ¶

func NSStringStringWithContentsOfFileUsedEncodingError(path *NSString, enc *uint) (*NSString, error)

func NSStringStringWithContentsOfURLEncodingError ¶

func NSStringStringWithContentsOfURLEncodingError(url *NSURL, enc uint) (*NSString, error)

func NSStringStringWithContentsOfURLUsedEncodingError ¶

func NSStringStringWithContentsOfURLUsedEncodingError(url *NSURL, enc *uint) (*NSString, error)

func NSStringStringWithFormat ¶

func NSStringStringWithFormat(format *NSString) *NSString

func NSStringStringWithString ¶

func NSStringStringWithString(string_ *NSString) *NSString

func NSStringStringWithUTF8String ¶

func NSStringStringWithUTF8String(nullTerminatedCString string) *NSString

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

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 deprecated

func (o *NSString) CString() string

Deprecated: Use -cStringUsingEncoding: instead

func (*NSString) CStringLength deprecated

func (o *NSString) CStringLength() uint

Deprecated: Use -lengthOfBytesUsingEncoding: instead

func (*NSString) CStringUsingEncoding ¶

func (o *NSString) CStringUsingEncoding(encoding uint) string

func (*NSString) CanBeConvertedToEncoding ¶

func (o *NSString) CanBeConvertedToEncoding(encoding uint) bool

func (*NSString) CapitalizedString ¶

func (o *NSString) CapitalizedString() *NSString

func (*NSString) CapitalizedStringWithLocale ¶

func (o *NSString) CapitalizedStringWithLocale(locale *NSLocale) *NSString

func (*NSString) CaseInsensitiveCompare ¶

func (o *NSString) CaseInsensitiveCompare(string_ *NSString) NSComparisonResult

func (*NSString) CharacterAtIndex ¶

func (o *NSString) CharacterAtIndex(index uint) uint16

func (*NSString) CommonPrefixWithStringOptions ¶

func (o *NSString) CommonPrefixWithStringOptions(str *NSString, mask NSStringCompareOptions) *NSString

func (*NSString) Compare ¶

func (o *NSString) Compare(string_ *NSString) NSComparisonResult

func (*NSString) CompareOptions ¶

func (o *NSString) CompareOptions(string_ *NSString, mask NSStringCompareOptions) NSComparisonResult

func (*NSString) CompareOptionsRange ¶

func (o *NSString) CompareOptionsRange(string_ *NSString, mask NSStringCompareOptions, rangeOfReceiverToCompare NSRange) NSComparisonResult

func (*NSString) CompareOptionsRangeLocale ¶

func (o *NSString) CompareOptionsRangeLocale(string_ *NSString, mask NSStringCompareOptions, rangeOfReceiverToCompare NSRange, locale objc.ID) NSComparisonResult

func (*NSString) CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes ¶

func (o *NSString) CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(outputName *NSString, flag bool, outputArray *NSArray[*NSString], filterTypes *NSArray[*NSString]) uint

func (*NSString) ComponentsSeparatedByCharactersInSet ¶

func (o *NSString) ComponentsSeparatedByCharactersInSet(separator *NSCharacterSet) *NSArray[*NSString]

func (*NSString) ComponentsSeparatedByString ¶

func (o *NSString) ComponentsSeparatedByString(separator *NSString) *NSArray[*NSString]

func (*NSString) ContainsString ¶

func (o *NSString) ContainsString(str *NSString) bool

func (*NSString) DataUsingEncoding ¶

func (o *NSString) DataUsingEncoding(encoding uint) *NSData

func (*NSString) DataUsingEncodingAllowLossyConversion ¶

func (o *NSString) DataUsingEncodingAllowLossyConversion(encoding uint, lossy bool) *NSData

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))

func (*NSString) EnumerateLinguisticTagsInRangeSchemeOptionsOrthographyUsing deprecated

func (o *NSString) EnumerateLinguisticTagsInRangeSchemeOptionsOrthographyUsing(range_ NSRange, scheme *NSString, options NSLinguisticTaggerOptions, orthography *NSOrthography, block objc.Block)

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)

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

func (*NSString) GetCString deprecated

func (o *NSString) GetCString(bytes_ string)

Deprecated: Use -getCString:maxLength:encoding: instead

func (*NSString) GetCStringMaxLength deprecated

func (o *NSString) GetCStringMaxLength(bytes_ string, maxLength uint)

Deprecated: Use -getCString:maxLength:encoding: instead

func (*NSString) GetCStringMaxLengthEncoding ¶

func (o *NSString) GetCStringMaxLengthEncoding(buffer string, maxBufferCount uint, encoding uint) bool

func (*NSString) GetCStringMaxLengthRangeRemainingRange deprecated

func (o *NSString) GetCStringMaxLengthRangeRemainingRange(bytes_ string, maxLength uint, aRange NSRange, leftoverRange *NSRange)

Deprecated: Use -getCString:maxLength:encoding: instead

func (*NSString) GetCharacters deprecated

func (o *NSString) GetCharacters(buffer *uint16)

Deprecated: Use +stringWithCString:encoding: instead

func (*NSString) GetCharactersRange ¶

func (o *NSString) GetCharactersRange(buffer *uint16, range_ NSRange)

func (*NSString) GetFileSystemRepresentationMaxLength ¶

func (o *NSString) GetFileSystemRepresentationMaxLength(cname string, max uint) bool

func (*NSString) GetLineStartEndContentsEndForRange ¶

func (o *NSString) GetLineStartEndContentsEndForRange(startPtr *uint, lineEndPtr *uint, contentsEndPtr *uint, range_ NSRange)

func (*NSString) GetParagraphStartEndContentsEndForRange ¶

func (o *NSString) GetParagraphStartEndContentsEndForRange(startPtr *uint, parEndPtr *uint, contentsEndPtr *uint, range_ NSRange)

func (*NSString) HasPrefix ¶

func (o *NSString) HasPrefix(str *NSString) bool

func (*NSString) HasSuffix ¶

func (o *NSString) HasSuffix(str *NSString) bool

func (*NSString) Init ¶

func (o *NSString) Init() *NSString

func (*NSString) InitWithBytesLengthEncoding ¶

func (o *NSString) InitWithBytesLengthEncoding(bytes_ unsafe.Pointer, len_ uint, encoding uint) *NSString

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

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

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

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

func (*NSString) InitWithCoder ¶

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

func (*NSString) InitWithContentsOfFile deprecated

func (o *NSString) InitWithContentsOfFile(path *NSString) objc.ID

Deprecated: Use -initWithContentsOfFile:encoding:error: instead

func (*NSString) InitWithContentsOfFileEncodingError ¶

func (o *NSString) InitWithContentsOfFileEncodingError(path *NSString, enc uint) (*NSString, error)

func (*NSString) InitWithContentsOfFileUsedEncodingError ¶

func (o *NSString) InitWithContentsOfFileUsedEncodingError(path *NSString, enc *uint) (*NSString, error)

func (*NSString) InitWithContentsOfURL deprecated

func (o *NSString) InitWithContentsOfURL(url *NSURL) objc.ID

Deprecated: Use -initWithContentsOfURL:encoding:error: instead

func (*NSString) InitWithContentsOfURLEncodingError ¶

func (o *NSString) InitWithContentsOfURLEncodingError(url *NSURL, enc uint) (*NSString, error)

func (*NSString) InitWithContentsOfURLUsedEncodingError ¶

func (o *NSString) InitWithContentsOfURLUsedEncodingError(url *NSURL, enc *uint) (*NSString, error)

func (*NSString) InitWithDataEncoding ¶

func (o *NSString) InitWithDataEncoding(data *NSData, encoding uint) *NSString

func (*NSString) InitWithFormat ¶

func (o *NSString) InitWithFormat(format *NSString) *NSString

func (*NSString) InitWithFormatArguments ¶

func (o *NSString) InitWithFormatArguments(format *NSString, argList string) *NSString

func (*NSString) InitWithFormatLocale ¶

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

func (*NSString) InitWithFormatLocaleArguments ¶

func (o *NSString) InitWithFormatLocaleArguments(format *NSString, locale objc.ID, argList string) *NSString

func (*NSString) InitWithString ¶

func (o *NSString) InitWithString(aString *NSString) *NSString

func (*NSString) InitWithUTF8String ¶

func (o *NSString) InitWithUTF8String(nullTerminatedCString string) *NSString

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

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

func (*NSString) LineRangeForRange ¶

func (o *NSString) LineRangeForRange(range_ NSRange) NSRange

func (*NSString) LinguisticTagsInRangeSchemeOptionsOrthographyTokenRanges deprecated

func (o *NSString) LinguisticTagsInRangeSchemeOptionsOrthographyTokenRanges(range_ NSRange, scheme *NSString, options NSLinguisticTaggerOptions, orthography *NSOrthography, tokenRanges *NSArray[*NSValue]) *NSArray[*NSString]

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

func (*NSString) LocalizedCaseInsensitiveContainsString ¶

func (o *NSString) LocalizedCaseInsensitiveContainsString(str *NSString) bool

func (*NSString) LocalizedCompare ¶

func (o *NSString) LocalizedCompare(string_ *NSString) NSComparisonResult

func (*NSString) LocalizedLowercaseString ¶

func (o *NSString) LocalizedLowercaseString() *NSString

func (*NSString) LocalizedStandardCompare ¶

func (o *NSString) LocalizedStandardCompare(string_ *NSString) NSComparisonResult

func (*NSString) LocalizedStandardContainsString ¶

func (o *NSString) LocalizedStandardContainsString(str *NSString) bool

func (*NSString) LocalizedStandardRangeOfString ¶

func (o *NSString) LocalizedStandardRangeOfString(str *NSString) NSRange

func (*NSString) LocalizedUppercaseString ¶

func (o *NSString) LocalizedUppercaseString() *NSString

func (*NSString) LongLongValue ¶

func (o *NSString) LongLongValue() int64

func (*NSString) LossyCString deprecated

func (o *NSString) LossyCString() string

Deprecated: Use -cStringUsingEncoding: instead

func (*NSString) LowercaseString ¶

func (o *NSString) LowercaseString() *NSString

func (*NSString) LowercaseStringWithLocale ¶

func (o *NSString) LowercaseStringWithLocale(locale *NSLocale) *NSString

func (*NSString) MaximumLengthOfBytesUsingEncoding ¶

func (o *NSString) MaximumLengthOfBytesUsingEncoding(enc uint) uint

func (*NSString) ParagraphRangeForRange ¶

func (o *NSString) ParagraphRangeForRange(range_ NSRange) NSRange

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

func (*NSString) PropertyListFromStringsFileFormat ¶

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

func (*NSString) RangeOfCharacterFromSet ¶

func (o *NSString) RangeOfCharacterFromSet(searchSet *NSCharacterSet) NSRange

func (*NSString) RangeOfCharacterFromSetOptions ¶

func (o *NSString) RangeOfCharacterFromSetOptions(searchSet *NSCharacterSet, mask NSStringCompareOptions) NSRange

func (*NSString) RangeOfCharacterFromSetOptionsRange ¶

func (o *NSString) RangeOfCharacterFromSetOptionsRange(searchSet *NSCharacterSet, mask NSStringCompareOptions, rangeOfReceiverToSearch NSRange) NSRange

func (*NSString) RangeOfComposedCharacterSequenceAtIndex ¶

func (o *NSString) RangeOfComposedCharacterSequenceAtIndex(index uint) NSRange

func (*NSString) RangeOfComposedCharacterSequencesForRange ¶

func (o *NSString) RangeOfComposedCharacterSequencesForRange(range_ NSRange) NSRange

func (*NSString) RangeOfString ¶

func (o *NSString) RangeOfString(searchString *NSString) NSRange

func (*NSString) RangeOfStringOptions ¶

func (o *NSString) RangeOfStringOptions(searchString *NSString, mask NSStringCompareOptions) NSRange

func (*NSString) RangeOfStringOptionsRange ¶

func (o *NSString) RangeOfStringOptionsRange(searchString *NSString, mask NSStringCompareOptions, rangeOfReceiverToSearch NSRange) NSRange

func (*NSString) RangeOfStringOptionsRangeLocale ¶

func (o *NSString) RangeOfStringOptionsRangeLocale(searchString *NSString, mask NSStringCompareOptions, rangeOfReceiverToSearch NSRange, locale *NSLocale) NSRange

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

func (*NSString) StringByAddingPercentEscapesUsingEncoding deprecated

func (o *NSString) StringByAddingPercentEscapesUsingEncoding(enc uint) *NSString

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

func (*NSString) StringByAppendingPathComponent ¶

func (o *NSString) StringByAppendingPathComponent(str *NSString) *NSString

func (*NSString) StringByAppendingPathExtension ¶

func (o *NSString) StringByAppendingPathExtension(str *NSString) *NSString

func (*NSString) StringByAppendingString ¶

func (o *NSString) StringByAppendingString(aString *NSString) *NSString

func (*NSString) StringByApplyingTransformReverse ¶

func (o *NSString) StringByApplyingTransformReverse(transform *NSString, reverse bool) *NSString

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

func (*NSString) StringByPaddingToLengthWithStringStartingAtIndex ¶

func (o *NSString) StringByPaddingToLengthWithStringStartingAtIndex(newLength uint, padString *NSString, padIndex uint) *NSString

func (*NSString) StringByRemovingPercentEncoding ¶

func (o *NSString) StringByRemovingPercentEncoding() *NSString

func (*NSString) StringByReplacingCharactersInRangeWithString ¶

func (o *NSString) StringByReplacingCharactersInRangeWithString(range_ NSRange, replacement *NSString) *NSString

func (*NSString) StringByReplacingOccurrencesOfStringWithString ¶

func (o *NSString) StringByReplacingOccurrencesOfStringWithString(target *NSString, replacement *NSString) *NSString

func (*NSString) StringByReplacingOccurrencesOfStringWithStringOptionsRange ¶

func (o *NSString) StringByReplacingOccurrencesOfStringWithStringOptionsRange(target *NSString, replacement *NSString, options NSStringCompareOptions, searchRange NSRange) *NSString

func (*NSString) StringByReplacingPercentEscapesUsingEncoding deprecated

func (o *NSString) StringByReplacingPercentEscapesUsingEncoding(enc uint) *NSString

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

func (*NSString) StringsByAppendingPaths ¶

func (o *NSString) StringsByAppendingPaths(paths *NSArray[*NSString]) *NSArray[*NSString]

func (*NSString) SubstringFromIndex ¶

func (o *NSString) SubstringFromIndex(from uint) *NSString

func (*NSString) SubstringToIndex ¶

func (o *NSString) SubstringToIndex(to uint) *NSString

func (*NSString) SubstringWithRange ¶

func (o *NSString) SubstringWithRange(range_ NSRange) *NSString

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

func (*NSString) VariantFittingPresentationWidth ¶

func (o *NSString) VariantFittingPresentationWidth(width int) *NSString

func (*NSString) WriteToFileAtomically deprecated

func (o *NSString) WriteToFileAtomically(path *NSString, useAuxiliaryFile bool) bool

Deprecated: Use -writeToFile:atomically:encoding:error: instead

func (*NSString) WriteToFileAtomicallyEncodingError ¶

func (o *NSString) WriteToFileAtomicallyEncodingError(path *NSString, useAuxiliaryFile bool, enc uint) (bool, error)

func (*NSString) WriteToURLAtomically deprecated

func (o *NSString) WriteToURLAtomically(url *NSURL, atomically bool) bool

Deprecated: Use -writeToURL:atomically:encoding:error: instead

func (*NSString) WriteToURLAtomicallyEncodingError ¶

func (o *NSString) WriteToURLAtomicallyEncodingError(url *NSURL, useAuxiliaryFile bool, enc uint) (bool, error)

type NSStringCompareOptions ¶

type NSStringCompareOptions uint64
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
const (
	NSStringEncodingConversionAllowLossy             NSStringEncodingConversionOptions = 1
	NSStringEncodingConversionExternalRepresentation NSStringEncodingConversionOptions = 2
)

func (NSStringEncodingConversionOptions) String ¶

type NSStringEnumerationOptions ¶

type NSStringEnumerationOptions uint64
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
}

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
}

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
}

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
const (
	NSTaskTerminationReasonExit           NSTaskTerminationReason = 1
	NSTaskTerminationReasonUncaughtSignal NSTaskTerminationReason = 2
)

func (NSTaskTerminationReason) String ¶

func (e NSTaskTerminationReason) String() string

type NSTermOfAddress ¶

type NSTermOfAddress struct {
	NSObject
}

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 This term of address will only compare equal to another `+[NSTermOfAddress currentUser]`

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 @param language ISO language code identifier for the language @param pronouns A list of pronouns in the target language that can be used to refer to the person.

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
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
}

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

func NSTextCheckingResultAddressCheckingResultWithRangeComponents ¶

func NSTextCheckingResultAddressCheckingResultWithRangeComponents(range_ NSRange, components *NSDictionary[*NSString, *NSString]) *NSTextCheckingResult

func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementString ¶

func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult

func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementStringAlternativeStrings ¶

func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementStringAlternativeStrings(range_ NSRange, replacementString *NSString, alternativeStrings *NSArray[*NSString]) *NSTextCheckingResult

func NSTextCheckingResultDashCheckingResultWithRangeReplacementString ¶

func NSTextCheckingResultDashCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult

func NSTextCheckingResultDateCheckingResultWithRangeDate ¶

func NSTextCheckingResultDateCheckingResultWithRangeDate(range_ NSRange, date *NSDate) *NSTextCheckingResult

func NSTextCheckingResultDateCheckingResultWithRangeDateTimeZoneDuration ¶

func NSTextCheckingResultDateCheckingResultWithRangeDateTimeZoneDuration(range_ NSRange, date *NSDate, timeZone *NSTimeZone, duration float64) *NSTextCheckingResult

func NSTextCheckingResultFromID ¶

func NSTextCheckingResultFromID(id objc.ID) *NSTextCheckingResult

func NSTextCheckingResultGrammarCheckingResultWithRangeDetails ¶

func NSTextCheckingResultGrammarCheckingResultWithRangeDetails(range_ NSRange, details *NSArray[objc.ID]) *NSTextCheckingResult

func NSTextCheckingResultLinkCheckingResultWithRangeURL ¶

func NSTextCheckingResultLinkCheckingResultWithRangeURL(range_ NSRange, url *NSURL) *NSTextCheckingResult

func NSTextCheckingResultOrthographyCheckingResultWithRangeOrthography ¶

func NSTextCheckingResultOrthographyCheckingResultWithRangeOrthography(range_ NSRange, orthography *NSOrthography) *NSTextCheckingResult

func NSTextCheckingResultPhoneNumberCheckingResultWithRangePhoneNumber ¶

func NSTextCheckingResultPhoneNumberCheckingResultWithRangePhoneNumber(range_ NSRange, phoneNumber *NSString) *NSTextCheckingResult

func NSTextCheckingResultQuoteCheckingResultWithRangeReplacementString ¶

func NSTextCheckingResultQuoteCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult

func NSTextCheckingResultRegularExpressionCheckingResultWithRangesCountRegularExpression ¶

func NSTextCheckingResultRegularExpressionCheckingResultWithRangesCountRegularExpression(ranges *NSRange, count uint, regularExpression *NSRegularExpression) *NSTextCheckingResult

func NSTextCheckingResultReplacementCheckingResultWithRangeReplacementString ¶

func NSTextCheckingResultReplacementCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult

func NSTextCheckingResultSpellCheckingResultWithRange ¶

func NSTextCheckingResultSpellCheckingResultWithRange(range_ NSRange) *NSTextCheckingResult

func NSTextCheckingResultTransitInformationCheckingResultWithRangeComponents ¶

func NSTextCheckingResultTransitInformationCheckingResultWithRangeComponents(range_ NSRange, components *NSDictionary[*NSString, *NSString]) *NSTextCheckingResult

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

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

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
}

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
}

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

func NSTimeZoneTimeZoneWithAbbreviation ¶

func NSTimeZoneTimeZoneWithAbbreviation(abbreviation *NSString) *NSTimeZone

func NSTimeZoneTimeZoneWithName ¶

func NSTimeZoneTimeZoneWithName(tzName *NSString) *NSTimeZone

func NSTimeZoneTimeZoneWithNameData ¶

func NSTimeZoneTimeZoneWithNameData(tzName *NSString, aData *NSData) *NSTimeZone

func (*NSTimeZone) Abbreviation ¶

func (o *NSTimeZone) Abbreviation() *NSString

func (*NSTimeZone) AbbreviationForDate ¶

func (o *NSTimeZone) AbbreviationForDate(aDate *NSDate) *NSString

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

func (*NSTimeZone) InitWithName ¶

func (o *NSTimeZone) InitWithName(tzName *NSString) *NSTimeZone

func (*NSTimeZone) InitWithNameData ¶

func (o *NSTimeZone) InitWithNameData(tzName *NSString, aData *NSData) *NSTimeZone

func (*NSTimeZone) IsDaylightSavingTime ¶

func (o *NSTimeZone) IsDaylightSavingTime() bool

func (*NSTimeZone) IsDaylightSavingTimeForDate ¶

func (o *NSTimeZone) IsDaylightSavingTimeForDate(aDate *NSDate) bool

func (*NSTimeZone) IsEqualToTimeZone ¶

func (o *NSTimeZone) IsEqualToTimeZone(aTimeZone *NSTimeZone) bool

func (*NSTimeZone) LocalizedNameLocale ¶

func (o *NSTimeZone) LocalizedNameLocale(style NSTimeZoneNameStyle, locale *NSLocale) *NSString

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

func (*NSTimeZone) SecondsFromGMT ¶

func (o *NSTimeZone) SecondsFromGMT() int

func (*NSTimeZone) SecondsFromGMTForDate ¶

func (o *NSTimeZone) SecondsFromGMTForDate(aDate *NSDate) int

type NSTimeZoneNameStyle ¶

type NSTimeZoneNameStyle int64
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
}

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
}

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

func NSURLAbsoluteURLWithDataRepresentationRelativeToURL ¶

func NSURLAbsoluteURLWithDataRepresentationRelativeToURL(data *NSData, baseURL *NSURL) *NSURL

func NSURLFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL ¶

func NSURLFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path string, isDir bool, baseURL *NSURL) *NSURL

func NSURLFileURLWithPath ¶

func NSURLFileURLWithPath(path *NSString) *NSURL

func NSURLFileURLWithPathComponents ¶

func NSURLFileURLWithPathComponents(components *NSArray[*NSString]) *NSURL

func NSURLFileURLWithPathIsDirectory ¶

func NSURLFileURLWithPathIsDirectory(path *NSString, isDir bool) *NSURL

func NSURLFileURLWithPathIsDirectoryRelativeToURL ¶

func NSURLFileURLWithPathIsDirectoryRelativeToURL(path *NSString, isDir bool, baseURL *NSURL) *NSURL

func NSURLFileURLWithPathRelativeToURL ¶

func NSURLFileURLWithPathRelativeToURL(path *NSString, baseURL *NSURL) *NSURL

func NSURLFromID ¶

func NSURLFromID(id objc.ID) *NSURL

func NSURLURLByResolvingAliasFileAtURLOptionsError ¶

func NSURLURLByResolvingAliasFileAtURLOptionsError(url *NSURL, options NSURLBookmarkResolutionOptions) (*NSURL, error)

func NSURLURLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError ¶

func NSURLURLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData *NSData, options NSURLBookmarkResolutionOptions, relativeURL *NSURL, isStale *bool) (*NSURL, error)

func NSURLURLWithDataRepresentationRelativeToURL ¶

func NSURLURLWithDataRepresentationRelativeToURL(data *NSData, baseURL *NSURL) *NSURL

func NSURLURLWithString ¶

func NSURLURLWithString(uRLString *NSString) *NSURL

func NSURLURLWithStringEncodingInvalidCharacters ¶

func NSURLURLWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURL

Initializes and returns a newly created `NSURL` with a URL string and the option to add (or skip) IDNA- and percent-encoding of invalid characters. If `encodingInvalidCharacters` is false, and the URL string is invalid according to RFC 3986, `nil` is returned. If `encodingInvalidCharacters` is true, `NSURL` will try to encode the string to create a valid URL. If the URL string is still invalid after encoding, `nil` is returned. - Parameter URLString: The URL string. - Parameter encodingInvalidCharacters: True if `NSURL` should try to encode an invalid URL string, false otherwise. - Returns: An `NSURL` instance for a valid URL, or `nil` if the URL is invalid.

func NSURLURLWithStringRelativeToURL ¶

func NSURLURLWithStringRelativeToURL(uRLString *NSString, baseURL *NSURL) *NSURL

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)

func (*NSURL) CheckPromisedItemIsReachableAndReturnError ¶

func (o *NSURL) CheckPromisedItemIsReachableAndReturnError() (bool, error)

func (*NSURL) CheckResourceIsReachableAndReturnError ¶

func (o *NSURL) CheckResourceIsReachableAndReturnError() (bool, error)

func (*NSURL) DataRepresentation ¶

func (o *NSURL) DataRepresentation() *NSData

func (*NSURL) FilePathURL ¶

func (o *NSURL) FilePathURL() *NSURL

func (*NSURL) FileReferenceURL ¶

func (o *NSURL) FileReferenceURL() *NSURL

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

func (*NSURL) GetPromisedItemResourceValueForKeyError ¶

func (o *NSURL) GetPromisedItemResourceValueForKeyError(value **ObjcObject, key *NSString) (bool, error)

func (*NSURL) GetResourceValueForKeyError ¶

func (o *NSURL) GetResourceValueForKeyError(value **ObjcObject, key *NSString) (bool, error)

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

func (*NSURL) InitByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError ¶

func (o *NSURL) InitByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData *NSData, options NSURLBookmarkResolutionOptions, relativeURL *NSURL, isStale *bool) (*NSURL, error)

func (*NSURL) InitFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL ¶

func (o *NSURL) InitFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path string, isDir bool, baseURL *NSURL) *NSURL

func (*NSURL) InitFileURLWithPath ¶

func (o *NSURL) InitFileURLWithPath(path *NSString) *NSURL

func (*NSURL) InitFileURLWithPathIsDirectory ¶

func (o *NSURL) InitFileURLWithPathIsDirectory(path *NSString, isDir bool) *NSURL

func (*NSURL) InitFileURLWithPathIsDirectoryRelativeToURL ¶

func (o *NSURL) InitFileURLWithPathIsDirectoryRelativeToURL(path *NSString, isDir bool, baseURL *NSURL) *NSURL

func (*NSURL) InitFileURLWithPathRelativeToURL ¶

func (o *NSURL) InitFileURLWithPathRelativeToURL(path *NSString, baseURL *NSURL) *NSURL

func (*NSURL) InitWithDataRepresentationRelativeToURL ¶

func (o *NSURL) InitWithDataRepresentationRelativeToURL(data *NSData, baseURL *NSURL) *NSURL

func (*NSURL) InitWithSchemeHostPath deprecated

func (o *NSURL) InitWithSchemeHostPath(scheme *NSString, host *NSString, path *NSString) *NSURL

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

func (*NSURL) InitWithStringEncodingInvalidCharacters ¶

func (o *NSURL) InitWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURL

Initializes an `NSURL` with a URL string and the option to add (or skip) IDNA- and percent-encoding of invalid characters. If `encodingInvalidCharacters` is false, and the URL string is invalid according to RFC 3986, `nil` is returned. If `encodingInvalidCharacters` is true, `NSURL` will try to encode the string to create a valid URL. If the URL string is still invalid after encoding, `nil` is returned. - Parameter URLString: The URL string. - Parameter encodingInvalidCharacters: True if `NSURL` should try to encode an invalid URL string, false otherwise. - Returns: An `NSURL` instance for a valid URL, or `nil` if the URL is invalid.

func (*NSURL) InitWithStringRelativeToURL ¶

func (o *NSURL) InitWithStringRelativeToURL(uRLString *NSString, baseURL *NSURL) *NSURL

func (*NSURL) IsFileReferenceURL ¶

func (o *NSURL) IsFileReferenceURL() bool

func (*NSURL) IsFileURL ¶

func (o *NSURL) IsFileURL() bool

func (*NSURL) LastPathComponent ¶

func (o *NSURL) LastPathComponent() *NSString

func (*NSURL) LoadResourceDataNotifyingClientUsingCache deprecated

func (o *NSURL) LoadResourceDataNotifyingClientUsingCache(client objc.ID, shouldUseCache bool)

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)

func (*NSURL) PropertyForKey deprecated

func (o *NSURL) PropertyForKey(propertyKey *NSString) objc.ID

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()

func (*NSURL) RemoveCachedResourceValueForKey ¶

func (o *NSURL) RemoveCachedResourceValueForKey(key *NSString)

func (*NSURL) ResourceDataUsingCache deprecated

func (o *NSURL) ResourceDataUsingCache(shouldUseCache bool) *NSData

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)

func (*NSURL) Scheme ¶

func (o *NSURL) Scheme() *NSString

func (*NSURL) SetPropertyForKey deprecated

func (o *NSURL) SetPropertyForKey(property objc.ID, propertyKey *NSString) bool

Deprecated: Use NSURLConnection instead

func (*NSURL) SetResourceData deprecated

func (o *NSURL) SetResourceData(data *NSData) bool

Deprecated: Use NSURLConnection instead

func (*NSURL) SetResourceValueForKeyError ¶

func (o *NSURL) SetResourceValueForKeyError(value objc.ID, key *NSString) (bool, error)

func (*NSURL) SetResourceValuesError ¶

func (o *NSURL) SetResourceValuesError(keyedValues *NSDictionary[*NSString, objc.ID]) (bool, error)

func (*NSURL) SetTemporaryResourceValueForKey ¶

func (o *NSURL) SetTemporaryResourceValueForKey(value objc.ID, key *NSString)

func (*NSURL) StandardizedURL ¶

func (o *NSURL) StandardizedURL() *NSURL

func (*NSURL) StartAccessingSecurityScopedResource ¶

func (o *NSURL) StartAccessingSecurityScopedResource() bool

func (*NSURL) StopAccessingSecurityScopedResource ¶

func (o *NSURL) StopAccessingSecurityScopedResource()

func (*NSURL) URLByAppendingPathComponent ¶

func (o *NSURL) URLByAppendingPathComponent(pathComponent *NSString) *NSURL

func (*NSURL) URLByAppendingPathComponentIsDirectory ¶

func (o *NSURL) URLByAppendingPathComponentIsDirectory(pathComponent *NSString, isDirectory bool) *NSURL

func (*NSURL) URLByAppendingPathExtension ¶

func (o *NSURL) URLByAppendingPathExtension(pathExtension *NSString) *NSURL

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 deprecated

func (o *NSURL) URLHandleUsingCache(shouldUseCache bool) *NSURLHandle

Deprecated: Use NSURLConnection instead

func (*NSURL) User ¶

func (o *NSURL) User() *NSString

type NSURLAuthenticationChallenge ¶

type NSURLAuthenticationChallenge struct {
	NSObject
}

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
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
const (
	NSURLBookmarkResolutionWithoutUI                     NSURLBookmarkResolutionOptions = 256
	NSURLBookmarkResolutionWithoutMounting               NSURLBookmarkResolutionOptions = 512
	NSURLBookmarkResolutionWithSecurityScope             NSURLBookmarkResolutionOptions = 1024
	NSURLBookmarkResolutionWithoutImplicitStartAccessing NSURLBookmarkResolutionOptions = 32768
)

func (NSURLBookmarkResolutionOptions) String ¶

type NSURLCache ¶

type NSURLCache struct {
	NSObject
}

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

@method initWithMemoryCapacity:diskCapacity:directoryURL: @abstract Initializes an NSURLCache with the given capacity and directory. @param memoryCapacity the capacity, measured in bytes, for the cache in memory. Or 0 to disable memory cache. @param diskCapacity the capacity, measured in bytes, for the cache on disk. Or 0 to disable disk cache. @param directoryURL the path to a directory on disk where the cache data is stored. Or nil for default directory. @result an initialized NSURLCache, with the given capacity, optionally backed by disk.

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
const (
	NSURLCacheStorageAllowed             NSURLCacheStoragePolicy = 0
	NSURLCacheStorageAllowedInMemoryOnly NSURLCacheStoragePolicy = 1
	NSURLCacheStorageNotAllowed          NSURLCacheStoragePolicy = 2
)

func (NSURLCacheStoragePolicy) String ¶

func (e NSURLCacheStoragePolicy) String() string

type NSURLComponents ¶

type NSURLComponents struct {
	NSObject
}

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

func NSURLComponentsComponentsWithString ¶

func NSURLComponentsComponentsWithString(uRLString *NSString) *NSURLComponents

func NSURLComponentsComponentsWithStringEncodingInvalidCharacters ¶

func NSURLComponentsComponentsWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURLComponents

Initializes and returns a newly created `NSURLComponents` with a URL string and the option to add (or skip) IDNA- and percent-encoding of invalid characters. If `encodingInvalidCharacters` is false, and the URL string is invalid according to RFC 3986, `nil` is returned. If `encodingInvalidCharacters` is true, `NSURLComponents` will try to encode the string to create a valid URL. If the URL string is still invalid after encoding, nil is returned. - Parameter URLString: The URL string. - Parameter encodingInvalidCharacters: True if `NSURLComponents` should try to encode an invalid URL string, false otherwise. - Returns: An `NSURLComponents` instance for a valid URL, or `nil` if the URL is invalid.

func NSURLComponentsComponentsWithURLResolvingAgainstBaseURL ¶

func NSURLComponentsComponentsWithURLResolvingAgainstBaseURL(url *NSURL, resolve bool) *NSURLComponents

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

func (*NSURLComponents) InitWithString ¶

func (o *NSURLComponents) InitWithString(uRLString *NSString) *NSURLComponents

func (*NSURLComponents) InitWithStringEncodingInvalidCharacters ¶

func (o *NSURLComponents) InitWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURLComponents

Initializes an `NSURLComponents` with a URL string and the option to add (or skip) IDNA- and percent-encoding of invalid characters. If `encodingInvalidCharacters` is false, and the URL string is invalid according to RFC 3986, `nil` is returned. If `encodingInvalidCharacters` is true, `NSURLComponents` will try to encode the string to create a valid URL. If the URL string is still invalid after encoding, `nil` is returned. - Parameter URLString: The URL string. - Parameter encodingInvalidCharacters: True if `NSURLComponents` should try to encode an invalid URL string, false otherwise. - Returns: An `NSURLComponents` instance for a valid URL, or `nil` if the URL is invalid.

func (*NSURLComponents) InitWithURLResolvingAgainstBaseURL ¶

func (o *NSURLComponents) InitWithURLResolvingAgainstBaseURL(url *NSURL, resolve bool) *NSURLComponents

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

func (*NSURLComponents) User ¶

func (o *NSURLComponents) User() *NSString

type NSURLConnection ¶

type NSURLConnection struct {
	NSObject
}

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

func NSURLConnectionConnectionWithRequestDelegate deprecated

func NSURLConnectionConnectionWithRequestDelegate(request *NSURLRequest, delegate objc.ID) *NSURLConnection

Deprecated: Use NSURLSession (see NSURLSession.h)

func NSURLConnectionFromID ¶

func NSURLConnectionFromID(id objc.ID) *NSURLConnection

func (*NSURLConnection) Cancel ¶

func (o *NSURLConnection) Cancel()

func (*NSURLConnection) CurrentRequest ¶

func (o *NSURLConnection) CurrentRequest() *NSURLRequest

func (*NSURLConnection) InitWithRequestDelegate deprecated

func (o *NSURLConnection) InitWithRequestDelegate(request *NSURLRequest, delegate objc.ID) *NSURLConnection

Deprecated: Use NSURLSession (see NSURLSession.h)

func (*NSURLConnection) InitWithRequestDelegateStartImmediately deprecated

func (o *NSURLConnection) InitWithRequestDelegateStartImmediately(request *NSURLRequest, delegate objc.ID, startImmediately bool) *NSURLConnection

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)

func (*NSURLConnection) SetDelegateQueue ¶

func (o *NSURLConnection) SetDelegateQueue(queue *NSOperationQueue)

func (*NSURLConnection) Start ¶

func (o *NSURLConnection) Start()

func (*NSURLConnection) UnscheduleFromRunLoopForMode ¶

func (o *NSURLConnection) UnscheduleFromRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)

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
}

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

func NSURLCredentialCredentialForTrust ¶

func NSURLCredentialCredentialForTrust(trust unsafe.Pointer) *NSURLCredential

@method credentialForTrust: @abstract Create a new NSURLCredential which specifies that a handshake has been trusted. @result The new autoreleased NSURLCredential

func NSURLCredentialCredentialWithIdentityCertificatesPersistence ¶

func NSURLCredentialCredentialWithIdentityCertificatesPersistence(identity unsafe.Pointer, certArray *NSArray[objc.ID], persistence NSURLCredentialPersistence) *NSURLCredential

@method credentialWithIdentity:certificates:persistence: @abstract Create a new NSURLCredential with an identity and certificate array @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 new autoreleased NSURLCredential

func NSURLCredentialCredentialWithUserPasswordPersistence ¶

func NSURLCredentialCredentialWithUserPasswordPersistence(user *NSString, password *NSString, persistence NSURLCredentialPersistence) *NSURLCredential

@method credentialWithUser:password:persistence: @abstract Create a new 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 new autoreleased NSURLCredential

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
const (
	NSURLCredentialPersistenceNone           NSURLCredentialPersistence = 0
	NSURLCredentialPersistenceForSession     NSURLCredentialPersistence = 1
	NSURLCredentialPersistencePermanent      NSURLCredentialPersistence = 2
	NSURLCredentialPersistenceSynchronizable NSURLCredentialPersistence = 3
)

func (NSURLCredentialPersistence) String ¶

type NSURLCredentialStorage ¶

type NSURLCredentialStorage struct {
	NSObject
}

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
}

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

func NSURLDownloadFromID ¶

func NSURLDownloadFromID(id objc.ID) *NSURLDownload

func (*NSURLDownload) Cancel ¶

func (o *NSURLDownload) Cancel()

@method cancel @abstract Cancels the 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

@method initWithRequest:delegate: @abstract Initializes a NSURLDownload object and starts the download. @param request The request to download. Must not be nil. @param delegate The delegate of the download. @result An initialized NSURLDownload object. Deprecated: Use NSURLSession downloadTask (see NSURLSession.h)

func (*NSURLDownload) InitWithResumeDataDelegatePath ¶

func (o *NSURLDownload) InitWithResumeDataDelegatePath(resumeData *NSData, delegate NSURLDownloadDelegate, path *NSString) *NSURLDownload

@method initWithResumeData:delegate:path: @abstract Initializes a NSURLDownload object for resuming a previous download. @param resumeData The resume data from the previous download. @param delegate The delegate of the download. @param path The path of the incomplete downloaded file. @result An initialized NSURLDownload object. 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)

@method setDestination:allowOverwrite: @abstract Sets the destination path of the downloaded file. @param path The destination path of the downloaded file. @param allowOverwrite Allows a file of the same path to be overwritten. @discussion This method can be called after the download is created or in response to the decideDestinationWithSuggestedFilename: delegate method. It should only be called once. If NO is passed for allowOverwrite and a file of the same path exists, a number will be appended to the filename to prevent the overwrite. Because of this, use the path passed with didCreateDestination: to determine the actual path of the downloaded file.

type NSURLDownloadDelegate ¶

type NSURLDownloadDelegate interface {
}

NSURLDownloadDelegate wraps the ObjC protocol NSURLDownloadDelegate.

type NSURLErrorNetworkUnavailableReason ¶

type NSURLErrorNetworkUnavailableReason int64
const (
	NSURLErrorNetworkUnavailableReasonCellular         NSURLErrorNetworkUnavailableReason = 0
	NSURLErrorNetworkUnavailableReasonExpensive        NSURLErrorNetworkUnavailableReason = 1
	NSURLErrorNetworkUnavailableReasonConstrained      NSURLErrorNetworkUnavailableReason = 2
	NSURLErrorNetworkUnavailableReasonUltraConstrained NSURLErrorNetworkUnavailableReason = 3
)

func (NSURLErrorNetworkUnavailableReason) String ¶

type NSURLHandle ¶

type NSURLHandle struct {
	NSObject
}

Apple documentation: https://developer.apple.com/documentation/foundation/nsurlhandle Deprecated: since macOS 10.4.

func NSURLHandleCachedHandleForURL deprecated

func NSURLHandleCachedHandleForURL(anURL *NSURL) *NSURLHandle

Deprecated: since macOS 10.4.

func NSURLHandleFromID ¶

func NSURLHandleFromID(id objc.ID) *NSURLHandle

func (*NSURLHandle) AddClient deprecated

func (o *NSURLHandle) AddClient(client NSURLHandleClient)

Deprecated: since macOS 10.4.

func (*NSURLHandle) AvailableResourceData deprecated

func (o *NSURLHandle) AvailableResourceData() *NSData

Deprecated: since macOS 10.4.

func (*NSURLHandle) BackgroundLoadDidFailWithReason deprecated

func (o *NSURLHandle) BackgroundLoadDidFailWithReason(reason *NSString)

Deprecated: since macOS 10.4.

func (*NSURLHandle) BeginLoadInBackground deprecated

func (o *NSURLHandle) BeginLoadInBackground()

Deprecated: since macOS 10.4.

func (*NSURLHandle) CancelLoadInBackground deprecated

func (o *NSURLHandle) CancelLoadInBackground()

Deprecated: since macOS 10.4.

func (*NSURLHandle) DidLoadBytesLoadComplete deprecated

func (o *NSURLHandle) DidLoadBytesLoadComplete(newBytes *NSData, yorn bool)

Deprecated: since macOS 10.4.

func (*NSURLHandle) EndLoadInBackground deprecated

func (o *NSURLHandle) EndLoadInBackground()

Deprecated: since macOS 10.4.

func (*NSURLHandle) ExpectedResourceDataSize deprecated

func (o *NSURLHandle) ExpectedResourceDataSize() int64

Deprecated: since macOS 10.4.

func (*NSURLHandle) FailureReason deprecated

func (o *NSURLHandle) FailureReason() *NSString

Deprecated: since macOS 10.4.

func (*NSURLHandle) FlushCachedData deprecated

func (o *NSURLHandle) FlushCachedData()

Deprecated: since macOS 10.4.

func (*NSURLHandle) InitWithURLCached deprecated

func (o *NSURLHandle) InitWithURLCached(anURL *NSURL, willCache bool) objc.ID

Deprecated: since macOS 10.4.

func (*NSURLHandle) LoadInBackground deprecated

func (o *NSURLHandle) LoadInBackground()

Deprecated: since macOS 10.4.

func (*NSURLHandle) LoadInForeground deprecated

func (o *NSURLHandle) LoadInForeground() *NSData

Deprecated: since macOS 10.4.

func (*NSURLHandle) PropertyForKey deprecated

func (o *NSURLHandle) PropertyForKey(propertyKey *NSString) objc.ID

Deprecated: since macOS 10.4.

func (*NSURLHandle) PropertyForKeyIfAvailable deprecated

func (o *NSURLHandle) PropertyForKeyIfAvailable(propertyKey *NSString) objc.ID

Deprecated: since macOS 10.4.

func (*NSURLHandle) RemoveClient deprecated

func (o *NSURLHandle) RemoveClient(client NSURLHandleClient)

Deprecated: since macOS 10.4.

func (*NSURLHandle) ResourceData deprecated

func (o *NSURLHandle) ResourceData() *NSData

Deprecated: since macOS 10.4.

func (*NSURLHandle) Status deprecated

func (o *NSURLHandle) Status() NSURLHandleStatus

Deprecated: since macOS 10.4.

func (*NSURLHandle) WriteData deprecated

func (o *NSURLHandle) WriteData(data *NSData) bool

Deprecated: since macOS 10.4.

func (*NSURLHandle) WritePropertyForKey deprecated

func (o *NSURLHandle) WritePropertyForKey(propertyValue objc.ID, propertyKey *NSString) bool

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
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
}

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
}

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
}

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

func (*NSURLQueryItem) InitWithNameValue ¶

func (o *NSURLQueryItem) InitWithNameValue(name *NSString, value *NSString) *NSURLQueryItem

func (*NSURLQueryItem) Name ¶

func (o *NSURLQueryItem) Name() *NSString

func (*NSURLQueryItem) Value ¶

func (o *NSURLQueryItem) Value() *NSString

type NSURLRelationship ¶

type NSURLRelationship int64
const (
	NSURLRelationshipContains NSURLRelationship = 0
	NSURLRelationshipSame     NSURLRelationship = 1
	NSURLRelationshipOther    NSURLRelationship = 2
)

func (NSURLRelationship) String ¶

func (e NSURLRelationship) String() string

type NSURLRequest ¶

type NSURLRequest struct {
	NSObject
}

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

@method requestWithURL: @abstract Allocates and initializes an NSURLRequest with the given URL. @discussion Default values are used for cache policy (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 seconds). @param URL The URL for the request. @result A newly-created and autoreleased NSURLRequest instance.

func NSURLRequestRequestWithURLCachePolicyTimeoutInterval ¶

func NSURLRequestRequestWithURLCachePolicyTimeoutInterval(uRL *NSURL, cachePolicy NSURLRequestCachePolicy, timeoutInterval float64) *NSURLRequest

@method requestWithURL:cachePolicy:timeoutInterval: @abstract Allocates and initializes a NSURLRequest with the given URL and cache policy. @param URL The URL for the request. @param cachePolicy The cache policy for the request. @param timeoutInterval The timeout interval for the request. See the commentary for the <tt>timeoutInterval</tt> for more information on timeout intervals. @result A newly-created and autoreleased NSURLRequest instance.

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

@method initWithURL: @abstract Initializes an NSURLRequest with the given URL. @discussion Default values are used for cache policy (NSURLRequestUseProtocolCachePolicy) and timeout interval (60 seconds). @param URL The URL for the request. @result An initialized NSURLRequest.

func (*NSURLRequest) InitWithURLCachePolicyTimeoutInterval ¶

func (o *NSURLRequest) InitWithURLCachePolicyTimeoutInterval(uRL *NSURL, cachePolicy NSURLRequestCachePolicy, timeoutInterval float64) *NSURLRequest

@method initWithURL: @abstract Initializes an NSURLRequest with the given URL and cache policy. @discussion This is the designated initializer for the NSURLRequest class. @param URL The URL for the request. @param cachePolicy The cache policy for the request. @param timeoutInterval The timeout interval for the request. See the commentary for the <tt>timeoutInterval</tt> for more information on timeout intervals. @result An initialized NSURLRequest.

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

@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 NSURLRequestAttribution ¶

type NSURLRequestAttribution uint64
const (
	NSURLRequestAttributionDeveloper NSURLRequestAttribution = 0
	NSURLRequestAttributionUser      NSURLRequestAttribution = 1
)

func (NSURLRequestAttribution) String ¶

func (e NSURLRequestAttribution) String() string

type NSURLRequestCachePolicy ¶

type NSURLRequestCachePolicy uint64
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
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
}

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
}

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
const (
	NSURLSessionAuthChallengeUseCredential                 NSURLSessionAuthChallengeDisposition = 0
	NSURLSessionAuthChallengePerformDefaultHandling        NSURLSessionAuthChallengeDisposition = 1
	NSURLSessionAuthChallengeCancelAuthenticationChallenge NSURLSessionAuthChallengeDisposition = 2
	NSURLSessionAuthChallengeRejectProtectionSpace         NSURLSessionAuthChallengeDisposition = 3
)

func (NSURLSessionAuthChallengeDisposition) String ¶

type NSURLSessionConfiguration ¶

type NSURLSessionConfiguration struct {
	NSObject
}

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
}

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
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
}

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
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
}

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
}

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
}

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
const (
	NSURLSessionTaskMetricsResourceFetchTypeUnknown     NSURLSessionTaskMetricsResourceFetchType = 0
	NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad NSURLSessionTaskMetricsResourceFetchType = 1
	NSURLSessionTaskMetricsResourceFetchTypeServerPush  NSURLSessionTaskMetricsResourceFetchType = 2
	NSURLSessionTaskMetricsResourceFetchTypeLocalCache  NSURLSessionTaskMetricsResourceFetchType = 3
)

func (NSURLSessionTaskMetricsResourceFetchType) String ¶

type NSURLSessionTaskState ¶

type NSURLSessionTaskState int64
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
}

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
}

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
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
const (
	NSURLSessionWebSocketMessageTypeData   NSURLSessionWebSocketMessageType = 0
	NSURLSessionWebSocketMessageTypeString NSURLSessionWebSocketMessageType = 1
)

func (NSURLSessionWebSocketMessageType) String ¶

type NSURLSessionWebSocketTask ¶

type NSURLSessionWebSocketTask struct {
	NSURLSessionTask
}

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))

func (*NSURLSessionWebSocketTask) SendMessageCompletionHandler ¶

func (o *NSURLSessionWebSocketTask) SendMessageCompletionHandler(message *NSURLSessionWebSocketMessage, completionHandler func(unsafe.Pointer))

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
}

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

func NSUUIDFromID ¶

func NSUUIDFromID(id objc.ID) *NSUUID

func NSUUIDUUID ¶

func NSUUIDUUID() *NSUUID

func (*NSUUID) Compare ¶

func (o *NSUUID) Compare(otherUUID *NSUUID) NSComparisonResult

func (*NSUUID) GetUUIDBytes ¶

func (o *NSUUID) GetUUIDBytes(uuid *uint8)

func (*NSUUID) Init ¶

func (o *NSUUID) Init() *NSUUID

func (*NSUUID) InitWithUUIDBytes ¶

func (o *NSUUID) InitWithUUIDBytes(bytes_ *uint8) *NSUUID

func (*NSUUID) InitWithUUIDString ¶

func (o *NSUUID) InitWithUUIDString(string_ *NSString) *NSUUID

func (*NSUUID) UUIDString ¶

func (o *NSUUID) UUIDString() *NSString

type NSUbiquitousKeyValueStore ¶

type NSUbiquitousKeyValueStore struct {
	NSObject
}

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]

func (*NSUbiquitousKeyValueStore) BoolForKey ¶

func (o *NSUbiquitousKeyValueStore) BoolForKey(aKey *NSString) bool

func (*NSUbiquitousKeyValueStore) DataForKey ¶

func (o *NSUbiquitousKeyValueStore) DataForKey(aKey *NSString) *NSData

func (*NSUbiquitousKeyValueStore) DictionaryForKey ¶

func (o *NSUbiquitousKeyValueStore) DictionaryForKey(aKey *NSString) *NSDictionary[*NSString, objc.ID]

func (*NSUbiquitousKeyValueStore) DictionaryRepresentation ¶

func (o *NSUbiquitousKeyValueStore) DictionaryRepresentation() *NSDictionary[*NSString, objc.ID]

func (*NSUbiquitousKeyValueStore) DoubleForKey ¶

func (o *NSUbiquitousKeyValueStore) DoubleForKey(aKey *NSString) float64

func (*NSUbiquitousKeyValueStore) LongLongForKey ¶

func (o *NSUbiquitousKeyValueStore) LongLongForKey(aKey *NSString) int64

func (*NSUbiquitousKeyValueStore) ObjectForKey ¶

func (o *NSUbiquitousKeyValueStore) ObjectForKey(aKey *NSString) objc.ID

func (*NSUbiquitousKeyValueStore) RemoveObjectForKey ¶

func (o *NSUbiquitousKeyValueStore) RemoveObjectForKey(aKey *NSString)

func (*NSUbiquitousKeyValueStore) SetArrayForKey ¶

func (o *NSUbiquitousKeyValueStore) SetArrayForKey(anArray *NSArray[objc.ID], aKey *NSString)

func (*NSUbiquitousKeyValueStore) SetBoolForKey ¶

func (o *NSUbiquitousKeyValueStore) SetBoolForKey(value bool, aKey *NSString)

func (*NSUbiquitousKeyValueStore) SetDataForKey ¶

func (o *NSUbiquitousKeyValueStore) SetDataForKey(aData *NSData, aKey *NSString)

func (*NSUbiquitousKeyValueStore) SetDictionaryForKey ¶

func (o *NSUbiquitousKeyValueStore) SetDictionaryForKey(aDictionary *NSDictionary[*NSString, objc.ID], aKey *NSString)

func (*NSUbiquitousKeyValueStore) SetDoubleForKey ¶

func (o *NSUbiquitousKeyValueStore) SetDoubleForKey(value float64, aKey *NSString)

func (*NSUbiquitousKeyValueStore) SetLongLongForKey ¶

func (o *NSUbiquitousKeyValueStore) SetLongLongForKey(value int64, aKey *NSString)

func (*NSUbiquitousKeyValueStore) SetObjectForKey ¶

func (o *NSUbiquitousKeyValueStore) SetObjectForKey(anObject objc.ID, aKey *NSString)

func (*NSUbiquitousKeyValueStore) SetStringForKey ¶

func (o *NSUbiquitousKeyValueStore) SetStringForKey(aString *NSString, aKey *NSString)

func (*NSUbiquitousKeyValueStore) StringForKey ¶

func (o *NSUbiquitousKeyValueStore) StringForKey(aKey *NSString) *NSString

func (*NSUbiquitousKeyValueStore) Synchronize ¶

func (o *NSUbiquitousKeyValueStore) Synchronize() bool

type NSUnarchiver ¶

type NSUnarchiver struct {
	NSCoder
}

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

func (*NSUnarchiver) DecodeClassNameAsClassName ¶

func (o *NSUnarchiver) DecodeClassNameAsClassName(inArchiveName *NSString, trueName *NSString)

func (*NSUnarchiver) InitForReadingWithData ¶

func (o *NSUnarchiver) InitForReadingWithData(data *NSData) *NSUnarchiver

func (*NSUnarchiver) IsAtEnd ¶

func (o *NSUnarchiver) IsAtEnd() bool

func (*NSUnarchiver) ReplaceObjectWithObject ¶

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

type NSUndoManager ¶

type NSUndoManager struct {
	NSObject
}

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 an undo is performed, it executes the specified block. As with other undo operations, this does not strongly retain target. Care should be taken to avoid introducing retain cycles by other references captured by the block. - Parameter target: The target of the undo operation. - Parameter undoHandler: The block to be executed when an operation is undone. The block takes a single argument, the target of the undo operation.

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
}

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

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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
}

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])

func (*NSUserActivity) BecomeCurrent ¶

func (o *NSUserActivity) BecomeCurrent()

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))

func (*NSUserActivity) Init deprecated

func (o *NSUserActivity) Init() *NSUserActivity

Deprecated: Use initWithActivityType: with a specific activity type string

func (*NSUserActivity) InitWithActivityType ¶

func (o *NSUserActivity) InitWithActivityType(activityType *NSString) *NSUserActivity

func (*NSUserActivity) Invalidate ¶

func (o *NSUserActivity) Invalidate()

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()

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
}

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))

type NSUserAutomatorTask ¶

type NSUserAutomatorTask struct {
	NSUserScriptTask
}

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))

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
}

NSUserDefaults is a hierarchical persistent interprocess (optionally distributed) key-value store, optimized for storing user settings. Hierarchical: NSUserDefaults has a list of places to look for data called the "search list". A search list is referred to by an arbitrary string called the "suite identifier" or "domain identifier". When queried, NSUserDefaults checks each entry of its search list until it finds one that contains the key in question, or has searched the whole list. The list is (note: "current host + current user" preferences are unimplemented on iOS, watchOS, and tvOS, and "any user" preferences are not generally useful for applications on those operating systems): - Managed ("forced") preferences, set by a configuration profile or via mcx from a network administrator - Commandline arguments - Preferences for the current domain, in the cloud - Preferences for the current domain, the current user, in the current host - Preferences for the current domain, the current user, in any host - Preferences added via -addSuiteNamed: - Preferences global to all apps for the current user, in the current host - Preferences global to all apps for the current user, in any host - Preferences for the current domain, for all users, in the current host - Preferences global to all apps for all users, in the current host - Preferences registered with -registerDefaults: Persistent: Preferences stored in NSUserDefaults persist across reboots and relaunches of apps unless otherwise specified. Interprocess: Preferences may be accessible to and modified from multiple processes simultaneously (for example between an application and an extension). Optionally distributed (Currently only supported in Shared iPad for Students mode): Data stored in user defaults can be made "ubiqitous", i.e. synchronized between devices via the cloud. Ubiquitous user defaults are automatically propagated to all devices logged into the same iCloud account. When reading defaults (via -*ForKey: methods on NSUserDefaults), ubiquitous defaults are searched before local defaults. All operations on ubiquitous defaults are asynchronous, so registered defaults may be returned in place of ubiquitous defaults if downloading from iCloud hasn't finished. Ubiquitous defaults are specified in the Defaults Configuration File for an application. Key-Value Store: NSUserDefaults stores Property List objects (NSString, NSData, NSNumber, NSDate, NSArray, and NSDictionary) identified by NSString keys, similar to an NSMutableDictionary. Optimized for storing user settings: NSUserDefaults is intended for relatively small amounts of data, queried very frequently, and modified occasionally. Using it in other ways may be slow or use more memory than solutions more suited to those uses. The 'App' CFPreferences functions in CoreFoundation act on the same search lists that NSUserDefaults does. NSUserDefaults can be observed using Key-Value Observing for any key stored in it. Using NSKeyValueObservingOptionPrior to observe changes from other processes or devices will behave as though NSKeyValueObservingOptionPrior was not specified.

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
}

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
}

Apple documentation: https://developer.apple.com/documentation/foundation/nsusernotificationaction Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API

func NSUserNotificationActionActionWithIdentifierTitle deprecated

func NSUserNotificationActionActionWithIdentifierTitle(identifier *NSString, title *NSString) *NSUserNotificationAction

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 deprecated

type NSUserNotificationActivationType int64

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
}

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)

func (*NSUserNotificationCenter) DeliveredNotifications ¶

func (o *NSUserNotificationCenter) DeliveredNotifications() *NSArray[*NSUserNotification]

func (*NSUserNotificationCenter) RemoveAllDeliveredNotifications ¶

func (o *NSUserNotificationCenter) RemoveAllDeliveredNotifications()

func (*NSUserNotificationCenter) RemoveDeliveredNotification ¶

func (o *NSUserNotificationCenter) RemoveDeliveredNotification(notification *NSUserNotification)

func (*NSUserNotificationCenter) RemoveScheduledNotification ¶

func (o *NSUserNotificationCenter) RemoveScheduledNotification(notification *NSUserNotification)

func (*NSUserNotificationCenter) ScheduleNotification ¶

func (o *NSUserNotificationCenter) ScheduleNotification(notification *NSUserNotification)

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
}

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))

func (*NSUserScriptTask) InitWithURLError ¶

func (o *NSUserScriptTask) InitWithURLError(url *NSURL) (*NSUserScriptTask, error)

func (*NSUserScriptTask) ScriptURL ¶

func (o *NSUserScriptTask) ScriptURL() *NSURL

type NSUserUnixTask ¶

type NSUserUnixTask struct {
	NSUserScriptTask
}

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))

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
}

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

func NSValueValueWithEdgeInsets ¶

func NSValueValueWithEdgeInsets(insets NSEdgeInsets) *NSValue

func NSValueValueWithNonretainedObject ¶

func NSValueValueWithNonretainedObject(anObject objc.ID) *NSValue

func NSValueValueWithObjCType ¶

func NSValueValueWithObjCType(value unsafe.Pointer, type_ string) *NSValue

func NSValueValueWithPoint ¶

func NSValueValueWithPoint(point corefoundation.CGPoint) *NSValue

func NSValueValueWithPointer ¶

func NSValueValueWithPointer(pointer unsafe.Pointer) *NSValue

func NSValueValueWithRange ¶

func NSValueValueWithRange(range_ NSRange) *NSValue

func NSValueValueWithRect ¶

func NSValueValueWithRect(rect corefoundation.CGRect) *NSValue

func NSValueValueWithSize ¶

func NSValueValueWithSize(size corefoundation.CGSize) *NSValue

func (*NSValue) EdgeInsetsValue ¶

func (o *NSValue) EdgeInsetsValue() NSEdgeInsets

func (*NSValue) GetValue deprecated

func (o *NSValue) GetValue(value unsafe.Pointer)

Deprecated: since macOS API_TO_BE_DEPRECATED.

func (*NSValue) GetValueSize ¶

func (o *NSValue) GetValueSize(value unsafe.Pointer, size uint)

func (*NSValue) InitWithBytesObjCType ¶

func (o *NSValue) InitWithBytesObjCType(value unsafe.Pointer, type_ string) *NSValue

func (*NSValue) InitWithCoder ¶

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

func (*NSValue) IsEqualToValue ¶

func (o *NSValue) IsEqualToValue(value *NSValue) bool

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
}

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
}

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

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
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
}

@class NSXMLDTD @abstract Defines the order, repetition, and allowable values for a document

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
}

@class NSXMLDTDNode @abstract The nodes that are exclusive to a DTD @discussion Every DTD node has a name. Object value is defined as follows:<ul> <li><b>Entity declaration</b> - the string that that entity resolves to eg "&lt;"</li> <li><b>Attribute declaration</b> - the default value, if any</li> <li><b>Element declaration</b> - the validation string</li> <li><b>Notation declaration</b> - no objectValue</li></ul>

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
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
}

@class NSXMLDocument @abstract An XML Document @discussion Note: if the application of a method would result in more than one element in the children array, an exception is thrown. Trying to add a document, namespace, attribute, or node with a parent also throws an exception. To add a node with a parent first detach or create a copy of it.

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
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
}

@class NSXMLElement @abstract An XML element @discussion Note: Trying to add a document, namespace, attribute, or node with a parent throws an exception. To add a node with a parent first detach or create a copy of it.

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
}

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
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
const (
	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
}

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
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
const (
	NSXMLParserResolveExternalEntitiesNever          NSXMLParserExternalEntityResolvingPolicy = 0
	NSXMLParserResolveExternalEntitiesNoNetwork      NSXMLParserExternalEntityResolvingPolicy = 1
	NSXMLParserResolveExternalEntitiesSameOriginOnly NSXMLParserExternalEntityResolvingPolicy = 2
	NSXMLParserResolveExternalEntitiesAlways         NSXMLParserExternalEntityResolvingPolicy = 3
)

func (NSXMLParserExternalEntityResolvingPolicy) String ¶

type NSXPCCoder ¶

type NSXPCCoder struct {
	NSCoder
}

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

func (*NSXPCCoder) EncodeXPCObjectForKey ¶

func (o *NSXPCCoder) EncodeXPCObjectForKey(xpcObject *NSObject, key *NSString)

func (*NSXPCCoder) SetUserInfo ¶

func (o *NSXPCCoder) SetUserInfo(userInfo NSObjectProtocol)

func (*NSXPCCoder) UserInfo ¶

func (o *NSXPCCoder) UserInfo() NSObjectProtocol

type NSXPCConnection ¶

type NSXPCConnection struct {
	NSObject
}

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

func NSXPCConnectionCurrentConnection ¶

func NSXPCConnectionCurrentConnection() *NSXPCConnection

func NSXPCConnectionFromID ¶

func NSXPCConnectionFromID(id objc.ID) *NSXPCConnection

func (*NSXPCConnection) Activate ¶

func (o *NSXPCConnection) Activate()

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

func (*NSXPCConnection) InitWithMachServiceNameOptions ¶

func (o *NSXPCConnection) InitWithMachServiceNameOptions(name *NSString, options NSXPCConnectionOptions) *NSXPCConnection

func (*NSXPCConnection) InitWithServiceName ¶

func (o *NSXPCConnection) InitWithServiceName(serviceName *NSString) *NSXPCConnection

func (*NSXPCConnection) InterruptionHandler ¶

func (o *NSXPCConnection) InterruptionHandler() objc.Block

func (*NSXPCConnection) Invalidate ¶

func (o *NSXPCConnection) Invalidate()

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

func (*NSXPCConnection) Resume ¶

func (o *NSXPCConnection) Resume()

func (*NSXPCConnection) ScheduleSendBarrierBlock ¶

func (o *NSXPCConnection) ScheduleSendBarrierBlock(block func())

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. If the requirement is malformed, an exception is thrown. If new messages do not match the requirement, the connection is invalidated. It is recommended to set this before calling `resume`, as it is an XPC error to call it more than once. See https://developer.apple.com/library/archive/documentation/Security/Conceptual/CodeSigningGuide/RequirementLang/RequirementLang.html for more information on the format.

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()

func (*NSXPCConnection) SynchronousRemoteObjectProxyWithErrorHandler ¶

func (o *NSXPCConnection) SynchronousRemoteObjectProxyWithErrorHandler(handler func(unsafe.Pointer)) objc.ID

type NSXPCConnectionOptions ¶

type NSXPCConnectionOptions uint64
const (
	NSXPCConnectionPrivileged NSXPCConnectionOptions = 4096
)

func (NSXPCConnectionOptions) String ¶

func (e NSXPCConnectionOptions) String() string

type NSXPCInterface ¶

type NSXPCInterface struct {
	NSObject
}

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

func (*NSXPCInterface) ClassesForSelectorArgumentIndexOfReply ¶

func (o *NSXPCInterface) ClassesForSelectorArgumentIndexOfReply(sel objc.SEL, arg uint, ofReply bool) *NSSet[objc.Class]

func (*NSXPCInterface) InterfaceForSelectorArgumentIndexOfReply ¶

func (o *NSXPCInterface) InterfaceForSelectorArgumentIndexOfReply(sel objc.SEL, arg uint, ofReply bool) *NSXPCInterface

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)

func (*NSXPCInterface) SetInterfaceForSelectorArgumentIndexOfReply ¶

func (o *NSXPCInterface) SetInterfaceForSelectorArgumentIndexOfReply(ifc *NSXPCInterface, sel objc.SEL, arg uint, ofReply bool)

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
}

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

func NSXPCListenerAnonymousListener ¶

func NSXPCListenerAnonymousListener() *NSXPCListener

func NSXPCListenerFromID ¶

func NSXPCListenerFromID(id objc.ID) *NSXPCListener

func NSXPCListenerServiceListener ¶

func NSXPCListenerServiceListener() *NSXPCListener

func (*NSXPCListener) Activate ¶

func (o *NSXPCListener) Activate()

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

func (*NSXPCListener) Invalidate ¶

func (o *NSXPCListener) Invalidate()

func (*NSXPCListener) Resume ¶

func (o *NSXPCListener) Resume()

func (*NSXPCListener) SetConnectionCodeSigningRequirement ¶

func (o *NSXPCListener) SetConnectionCodeSigningRequirement(requirement *NSString)

Sets the code signing requirement for new connections. If the requirement is malformed, an exception is thrown. If new peer connections do not match the requirement, the incoming connection is automatically rejected before consulting the delegate. This method will only work on `anonymousListener` or `initWithMachServiceName` listener instances. Use on other types of listeners will result in an assertion failure. See https://developer.apple.com/library/archive/documentation/Security/Conceptual/CodeSigningGuide/RequirementLang/RequirementLang.html for more information on the format.

func (*NSXPCListener) SetDelegate ¶

func (o *NSXPCListener) SetDelegate(delegate NSXPCListenerDelegate)

func (*NSXPCListener) Suspend ¶

func (o *NSXPCListener) Suspend()

type NSXPCListenerDelegate ¶

type NSXPCListenerDelegate interface {
}

NSXPCListenerDelegate wraps the ObjC protocol NSXPCListenerDelegate.

type NSXPCListenerEndpoint ¶

type NSXPCListenerEndpoint struct {
	NSObject
}

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