Documentation
¶
Overview ¶
Package foundation provides purego-based Go bindings for the macOS Foundation framework.
Apple documentation: https://developer.apple.com/documentation/foundation
Index ¶
- Constants
- func CFBridgingRelease(x unsafe.Pointer) unsafe.Pointer
- func CFBridgingRetain(x objc.ID) unsafe.Pointer
- func NSAMPMDesignation() uintptrdeprecated
- func NSAllocateCollectable(size uint, options uint) unsafe.Pointer
- func NSAllocateMemoryPages(bytes_ uint) unsafe.Pointer
- func NSAllocateObject(aClass objc.Class, extraBytes uint, zone unsafe.Pointer) objc.ID
- func NSAlternateDescriptionAttributeName() uintptr
- func NSAppleEventTimeOutDefault() uintptr
- func NSAppleEventTimeOutNone() uintptr
- func NSAppleScriptErrorAppName() uintptr
- func NSAppleScriptErrorBriefMessage() uintptr
- func NSAppleScriptErrorMessage() uintptr
- func NSAppleScriptErrorNumber() uintptr
- func NSAppleScriptErrorRange() uintptr
- func NSArchiverArchiveRootObjectToFile(rootObject objc.ID, path *NSString) bool
- func NSAutoreleasePoolAddObject(anObject objc.ID)
- func NSCalendarDateCalendarDate() objc.IDdeprecated
- func NSCalendarDateDateWithStringCalendarFormat(description *NSString, format *NSString) objc.IDdeprecated
- func NSCalendarDateDateWithStringCalendarFormatLocale(description *NSString, format *NSString, locale objc.ID) objc.IDdeprecated
- func NSCalendarDateDateWithYearMonthDayHourMinuteSecondTimeZone(year int, month uint, day uint, hour uint, minute uint, second uint, ...) objc.IDdeprecated
- func NSClassDescriptionInvalidateClassDescriptionCache()
- func NSClassDescriptionRegisterClassDescriptionForClass(description *NSClassDescription, aClass objc.Class)
- func NSClassFromString(aClassName *NSString) objc.Class
- func NSCompareHashTables(table1 *NSHashTable[objc.ID], table2 *NSHashTable[objc.ID]) bool
- func NSCompareMapTables(table1 *NSMapTable[objc.ID, objc.ID], table2 *NSMapTable[objc.ID, objc.ID]) bool
- func NSConnectionCurrentConversation() objc.ID
- func NSConnectionDidDieNotification() uintptrdeprecated
- func NSConnectionDidInitializeNotification() uintptrdeprecated
- func NSConnectionReplyMode() uintptrdeprecated
- func NSContainsRect(aRect corefoundation.CGRect, bRect corefoundation.CGRect) bool
- func NSConvertSwappedDoubleToHost(x NSSwappedDouble) float64
- func NSConvertSwappedFloatToHost(x NSSwappedFloat) float32
- func NSCopyMapTableWithZone(table *NSMapTable[objc.ID, objc.ID], zone unsafe.Pointer) unsafe.Pointer
- func NSCopyMemoryPages(source unsafe.Pointer, dest unsafe.Pointer, bytes_ uint)
- func NSCopyObject(object objc.ID, extraBytes uint, zone unsafe.Pointer) objc.IDdeprecated
- func NSCountHashTable(table *NSHashTable[objc.ID]) uint
- func NSCountMapTable(table *NSMapTable[objc.ID, objc.ID]) uint
- func NSCreateMapTable(keyCallBacks NSMapTableKeyCallBacks, valueCallBacks NSMapTableValueCallBacks, ...) unsafe.Pointer
- func NSCreateMapTableWithZone(keyCallBacks NSMapTableKeyCallBacks, valueCallBacks NSMapTableValueCallBacks, ...) unsafe.Pointer
- func NSCreateZone(startSize uint, granularity uint, canFree bool) unsafe.Pointer
- func NSCurrencySymbol() uintptrdeprecated
- func NSDataDataWithContentsOfMappedFile(path *NSString) objc.ID
- func NSDateDateWithNaturalLanguageString(string_ *NSString) objc.ID
- func NSDateDateWithNaturalLanguageStringLocale(string_ *NSString, locale objc.ID) objc.ID
- func NSDateDateWithString(aString *NSString) objc.ID
- func NSDateFormatString() uintptrdeprecated
- func NSDateFormatterSetDefaultFormatterBehavior(defaultFormatterBehavior NSDateFormatterBehavior)
- func NSDateTimeIntervalSinceReferenceDate() float64
- func NSDateTimeOrdering() uintptrdeprecated
- func NSDeallocateMemoryPages(ptr unsafe.Pointer, bytes_ uint)
- func NSDeallocateObject(object objc.ID)
- func NSDecimalCompact(number *NSDecimal)
- func NSDecimalCopy(destination *NSDecimal, source *NSDecimal)
- func NSDecimalDigits() uintptrdeprecated
- func NSDecimalIsNotANumber(dcm *NSDecimal) bool
- func NSDecimalNumberSetDefaultBehavior(defaultBehavior NSDecimalNumberBehaviors)
- func NSDecimalRound(result *NSDecimal, number *NSDecimal, scale int, roundingMode NSRoundingMode)
- func NSDecimalSeparator() uintptrdeprecated
- func NSDecrementExtraRefCountWasZero(object objc.ID) bool
- func NSDefaultMallocZone() unsafe.Pointer
- func NSDictionarySharedKeySetForKeys(keys *NSArray[NSCopying]) objc.ID
- func NSDistantObjectProxyWithLocalConnection(target objc.ID, connection *NSConnection) objc.ID
- func NSDistantObjectProxyWithTargetConnection(target objc.ID, connection *NSConnection) objc.ID
- func NSDivideRect(inRect corefoundation.CGRect, slice *corefoundation.CGRect, ...)
- func NSEarlierTimeDesignations() uintptrdeprecated
- func NSEdgeInsetsEqual(aInsets NSEdgeInsets, bInsets NSEdgeInsets) bool
- func NSEndHashTableEnumeration(enumerator *NSHashEnumerator)
- func NSEndMapTableEnumeration(enumerator *NSMapEnumerator)
- func NSEqualPoints(aPoint corefoundation.CGPoint, bPoint corefoundation.CGPoint) bool
- func NSEqualRanges(range1 NSRange, range2 NSRange) bool
- func NSEqualRects(aRect corefoundation.CGRect, bRect corefoundation.CGRect) bool
- func NSEqualSizes(aSize corefoundation.CGSize, bSize corefoundation.CGSize) bool
- func NSErrorSetUserInfoValueProviderForDomainProvider(errorDomain *NSString, provider func(unsafe.Pointer, *NSString) objc.ID)
- func NSErrorUserInfoValueProviderForDomain(errorDomain *NSString) objc.Block
- func NSExceptionRaiseFormat(name *NSString, format *NSString)
- func NSExceptionRaiseFormatArguments(name *NSString, format *NSString, argList string)
- func NSExtraRefCount(object objc.ID) uint
- func NSFailedAuthenticationException() uintptrdeprecated
- func NSFileCoordinatorAddFilePresenter(filePresenter NSFilePresenter)
- func NSFileCoordinatorRemoveFilePresenter(filePresenter NSFilePresenter)
- func NSFileManagerUnmountDissentingProcessIdentifierErrorKey() uintptr
- func NSFileVersionGetNonlocalVersionsOfItemAtURLCompletionHandler(url *NSURL, completionHandler func(*NSArray[*NSFileVersion], unsafe.Pointer))
- func NSFileVersionRemoveOtherVersionsOfItemAtURLError(url *NSURL) (bool, error)
- func NSFoundationVersionNumber() float64
- func NSFreeHashTable(table *NSHashTable[objc.ID])
- func NSFreeMapTable(table *NSMapTable[objc.ID, objc.ID])
- func NSGarbageCollectorDefaultCollector() objc.ID
- func NSGetSizeAndAlignment(typePtr string, sizep *uint, alignp *uint) string
- func NSGetUncaughtExceptionHandler() unsafe.Pointer
- func NSGrammarCorrections() uintptr
- func NSGrammarRange() uintptr
- func NSGrammarUserDescription() uintptr
- func NSHFSTypeCodeFromFileType(fileTypeString *NSString) uint
- func NSHashGet(table *NSHashTable[objc.ID], pointer unsafe.Pointer) unsafe.Pointer
- func NSHashInsert(table *NSHashTable[objc.ID], pointer unsafe.Pointer)
- func NSHashInsertIfAbsent(table *NSHashTable[objc.ID], pointer unsafe.Pointer) unsafe.Pointer
- func NSHashInsertKnownAbsent(table *NSHashTable[objc.ID], pointer unsafe.Pointer)
- func NSHashRemove(table *NSHashTable[objc.ID], pointer unsafe.Pointer)
- func NSHashTableHashTableWithWeakObjects() objc.ID
- func NSHeight(aRect corefoundation.CGRect) float64
- func NSHostByteOrder() int
- func NSHostFlushHostCache()
- func NSHostIsHostCacheEnabled() bool
- func NSHostSetHostCacheEnabled(flag bool)
- func NSHourNameDesignations() uintptrdeprecated
- func NSImageURLAttributeName() uintptr
- func NSIncrementExtraRefCount(object objc.ID)deprecated
- func NSInflectionAgreementArgumentAttributeName() uintptr
- func NSInflectionAgreementConceptAttributeName() uintptr
- func NSInflectionAlternativeAttributeName() uintptr
- func NSInflectionReferentConceptAttributeName() uintptr
- func NSInflectionRuleAttributeName() uintptr
- func NSInflectionRuleCanInflectLanguage(language *NSString) bool
- func NSInflectionRuleCanInflectPreferredLocalization() bool
- func NSInlinePresentationIntentAttributeName() uintptr
- func NSInsetRect(aRect corefoundation.CGRect, dX float64, dY float64) corefoundation.CGRect
- func NSIntegralRect(aRect corefoundation.CGRect) corefoundation.CGRect
- func NSIntegralRectWithOptions(aRect corefoundation.CGRect, opts NSAlignmentOptions) corefoundation.CGRect
- func NSInternationalCurrencyString() uintptrdeprecated
- func NSIntersectionRect(aRect corefoundation.CGRect, bRect corefoundation.CGRect) corefoundation.CGRect
- func NSIntersectsRect(aRect corefoundation.CGRect, bRect corefoundation.CGRect) bool
- func NSIsEmptyRect(aRect corefoundation.CGRect) bool
- func NSJSONSerializationIsValidJSONObject(obj objc.ID) bool
- func NSJSONSerializationJSONObjectWithDataOptionsError(data *NSData, opt NSJSONReadingOptions) (objc.ID, error)
- func NSJSONSerializationJSONObjectWithStreamOptionsError(stream *NSInputStream, opt NSJSONReadingOptions) (objc.ID, error)
- func NSJSONSerializationWriteJSONObjectToStreamOptionsError(obj objc.ID, stream *NSOutputStream, opt NSJSONWritingOptions) (int, error)
- func NSKeyedArchiverArchiveRootObjectToFile(rootObject objc.ID, path *NSString) bool
- func NSKeyedArchiverSetClassNameForClass(codedName *NSString, cls objc.Class)
- func NSKeyedUnarchiverClassForClassName(codedName *NSString) objc.Class
- func NSKeyedUnarchiverSetClassForClassName(cls objc.Class, codedName *NSString)
- func NSKeyedUnarchiverUnarchiveObjectWithData(data *NSData) objc.ID
- func NSKeyedUnarchiverUnarchiveObjectWithFile(path *NSString) objc.ID
- func NSKeyedUnarchiverUnarchiveTopLevelObjectWithDataError(data *NSData) (objc.ID, error)
- func NSKeyedUnarchiverUnarchivedObjectOfClassFromDataError(cls objc.Class, data *NSData) (objc.ID, error)
- func NSKeyedUnarchiverUnarchivedObjectOfClassesFromDataError(classes *NSSet[objc.Class], data *NSData) (objc.ID, error)
- func NSLanguageIdentifierAttributeName() uintptr
- func NSLaterTimeDesignations() uintptrdeprecated
- func NSLinguisticTaggerEnumerateTagsForStringRangeUnitSchemeOptionsOrthographyUsing(string_ *NSString, range_ NSRange, unit NSLinguisticTaggerUnit, ...)
- func NSListItemDelimiterAttributeName() uintptr
- func NSLocaleWindowsLocaleCodeFromLocaleIdentifier(localeIdentifier *NSString) uint32
- func NSLocalizedNumberFormatAttributeName() uintptr
- func NSLocationInRange(loc uint, range_ NSRange) bool
- func NSLogPageSize() uint
- func NSLogv(arg objc.ID, arg2 string)
- func NSMachBootstrapServerSharedInstance() objc.ID
- func NSMakeCollectable(cf unsafe.Pointer) unsafe.Pointer
- func NSMakePoint(x float64, y float64) corefoundation.CGPoint
- func NSMakeRect(x float64, y float64, w float64, h float64) corefoundation.CGRect
- func NSMakeSize(w float64, h float64) corefoundation.CGSize
- func NSMapGet(table *NSMapTable[objc.ID, objc.ID], key unsafe.Pointer) unsafe.Pointer
- func NSMapInsert(table *NSMapTable[objc.ID, objc.ID], key unsafe.Pointer, value unsafe.Pointer)
- func NSMapInsertIfAbsent(table *NSMapTable[objc.ID, objc.ID], key unsafe.Pointer, value unsafe.Pointer) unsafe.Pointer
- func NSMapInsertKnownAbsent(table *NSMapTable[objc.ID, objc.ID], key unsafe.Pointer, value unsafe.Pointer)
- func NSMapMember(table *NSMapTable[objc.ID, objc.ID], key unsafe.Pointer, ...) bool
- func NSMapRemove(table *NSMapTable[objc.ID, objc.ID], key unsafe.Pointer)
- func NSMapTableMapTableWithStrongToStrongObjects() objc.ID
- func NSMapTableMapTableWithStrongToWeakObjects() objc.ID
- func NSMapTableMapTableWithWeakToStrongObjects() objc.ID
- func NSMapTableMapTableWithWeakToWeakObjects() objc.ID
- func NSMarkdownSourcePositionAttributeName() uintptr
- func NSMaxRange(range_ NSRange) uint
- func NSMaxX(aRect corefoundation.CGRect) float64
- func NSMaxY(aRect corefoundation.CGRect) float64
- func NSMessagePortNameServerSharedInstance() objc.ID
- func NSMetadataItemAcquisitionMakeKey() uintptr
- func NSMetadataItemAcquisitionModelKey() uintptr
- func NSMetadataItemAlbumKey() uintptr
- func NSMetadataItemAltitudeKey() uintptr
- func NSMetadataItemApertureKey() uintptr
- func NSMetadataItemAppleLoopDescriptorsKey() uintptr
- func NSMetadataItemAppleLoopsKeyFilterTypeKey() uintptr
- func NSMetadataItemAppleLoopsLoopModeKey() uintptr
- func NSMetadataItemAppleLoopsRootKeyKey() uintptr
- func NSMetadataItemApplicationCategoriesKey() uintptr
- func NSMetadataItemAttributeChangeDateKey() uintptr
- func NSMetadataItemAudiencesKey() uintptr
- func NSMetadataItemAudioBitRateKey() uintptr
- func NSMetadataItemAudioChannelCountKey() uintptr
- func NSMetadataItemAudioEncodingApplicationKey() uintptr
- func NSMetadataItemAudioSampleRateKey() uintptr
- func NSMetadataItemAudioTrackNumberKey() uintptr
- func NSMetadataItemAuthorAddressesKey() uintptr
- func NSMetadataItemAuthorEmailAddressesKey() uintptr
- func NSMetadataItemAuthorsKey() uintptr
- func NSMetadataItemBitsPerSampleKey() uintptr
- func NSMetadataItemCFBundleIdentifierKey() uintptr
- func NSMetadataItemCameraOwnerKey() uintptr
- func NSMetadataItemCityKey() uintptr
- func NSMetadataItemCodecsKey() uintptr
- func NSMetadataItemColorSpaceKey() uintptr
- func NSMetadataItemCommentKey() uintptr
- func NSMetadataItemComposerKey() uintptr
- func NSMetadataItemContactKeywordsKey() uintptr
- func NSMetadataItemContentCreationDateKey() uintptr
- func NSMetadataItemContentModificationDateKey() uintptr
- func NSMetadataItemContributorsKey() uintptr
- func NSMetadataItemCopyrightKey() uintptr
- func NSMetadataItemCountryKey() uintptr
- func NSMetadataItemCoverageKey() uintptr
- func NSMetadataItemCreatorKey() uintptr
- func NSMetadataItemDateAddedKey() uintptr
- func NSMetadataItemDeliveryTypeKey() uintptr
- func NSMetadataItemDescriptionKey() uintptr
- func NSMetadataItemDirectorKey() uintptr
- func NSMetadataItemDownloadedDateKey() uintptr
- func NSMetadataItemDueDateKey() uintptr
- func NSMetadataItemDurationSecondsKey() uintptr
- func NSMetadataItemEXIFGPSVersionKey() uintptr
- func NSMetadataItemEXIFVersionKey() uintptr
- func NSMetadataItemEditorsKey() uintptr
- func NSMetadataItemEmailAddressesKey() uintptr
- func NSMetadataItemEncodingApplicationsKey() uintptr
- func NSMetadataItemExecutableArchitecturesKey() uintptr
- func NSMetadataItemExecutablePlatformKey() uintptr
- func NSMetadataItemExposureModeKey() uintptr
- func NSMetadataItemExposureProgramKey() uintptr
- func NSMetadataItemExposureTimeSecondsKey() uintptr
- func NSMetadataItemExposureTimeStringKey() uintptr
- func NSMetadataItemFNumberKey() uintptr
- func NSMetadataItemFinderCommentKey() uintptr
- func NSMetadataItemFlashOnOffKey() uintptr
- func NSMetadataItemFocalLength35mmKey() uintptr
- func NSMetadataItemFocalLengthKey() uintptr
- func NSMetadataItemFontsKey() uintptr
- func NSMetadataItemGPSAreaInformationKey() uintptr
- func NSMetadataItemGPSDOPKey() uintptr
- func NSMetadataItemGPSDateStampKey() uintptr
- func NSMetadataItemGPSDestBearingKey() uintptr
- func NSMetadataItemGPSDestDistanceKey() uintptr
- func NSMetadataItemGPSDestLatitudeKey() uintptr
- func NSMetadataItemGPSDestLongitudeKey() uintptr
- func NSMetadataItemGPSDifferentalKey() uintptr
- func NSMetadataItemGPSMapDatumKey() uintptr
- func NSMetadataItemGPSMeasureModeKey() uintptr
- func NSMetadataItemGPSProcessingMethodKey() uintptr
- func NSMetadataItemGPSStatusKey() uintptr
- func NSMetadataItemGPSTrackKey() uintptr
- func NSMetadataItemGenreKey() uintptr
- func NSMetadataItemHasAlphaChannelKey() uintptr
- func NSMetadataItemHeadlineKey() uintptr
- func NSMetadataItemISOSpeedKey() uintptr
- func NSMetadataItemIdentifierKey() uintptr
- func NSMetadataItemImageDirectionKey() uintptr
- func NSMetadataItemInformationKey() uintptr
- func NSMetadataItemInstantMessageAddressesKey() uintptr
- func NSMetadataItemInstructionsKey() uintptr
- func NSMetadataItemIsApplicationManagedKey() uintptr
- func NSMetadataItemIsGeneralMIDISequenceKey() uintptr
- func NSMetadataItemIsLikelyJunkKey() uintptr
- func NSMetadataItemKeySignatureKey() uintptr
- func NSMetadataItemKeywordsKey() uintptr
- func NSMetadataItemKindKey() uintptr
- func NSMetadataItemLanguagesKey() uintptr
- func NSMetadataItemLastUsedDateKey() uintptr
- func NSMetadataItemLatitudeKey() uintptr
- func NSMetadataItemLayerNamesKey() uintptr
- func NSMetadataItemLensModelKey() uintptr
- func NSMetadataItemLongitudeKey() uintptr
- func NSMetadataItemLyricistKey() uintptr
- func NSMetadataItemMaxApertureKey() uintptr
- func NSMetadataItemMediaTypesKey() uintptr
- func NSMetadataItemMeteringModeKey() uintptr
- func NSMetadataItemMusicalGenreKey() uintptr
- func NSMetadataItemMusicalInstrumentCategoryKey() uintptr
- func NSMetadataItemMusicalInstrumentNameKey() uintptr
- func NSMetadataItemNamedLocationKey() uintptr
- func NSMetadataItemNumberOfPagesKey() uintptr
- func NSMetadataItemOrganizationsKey() uintptr
- func NSMetadataItemOrientationKey() uintptr
- func NSMetadataItemOriginalFormatKey() uintptr
- func NSMetadataItemOriginalSourceKey() uintptr
- func NSMetadataItemPageHeightKey() uintptr
- func NSMetadataItemPageWidthKey() uintptr
- func NSMetadataItemParticipantsKey() uintptr
- func NSMetadataItemPerformersKey() uintptr
- func NSMetadataItemPhoneNumbersKey() uintptr
- func NSMetadataItemPixelCountKey() uintptr
- func NSMetadataItemPixelHeightKey() uintptr
- func NSMetadataItemPixelWidthKey() uintptr
- func NSMetadataItemProducerKey() uintptr
- func NSMetadataItemProfileNameKey() uintptr
- func NSMetadataItemProjectsKey() uintptr
- func NSMetadataItemPublishersKey() uintptr
- func NSMetadataItemRecipientAddressesKey() uintptr
- func NSMetadataItemRecipientEmailAddressesKey() uintptr
- func NSMetadataItemRecipientsKey() uintptr
- func NSMetadataItemRecordingDateKey() uintptr
- func NSMetadataItemRecordingYearKey() uintptr
- func NSMetadataItemRedEyeOnOffKey() uintptr
- func NSMetadataItemResolutionHeightDPIKey() uintptr
- func NSMetadataItemResolutionWidthDPIKey() uintptr
- func NSMetadataItemRightsKey() uintptr
- func NSMetadataItemSecurityMethodKey() uintptr
- func NSMetadataItemSpeedKey() uintptr
- func NSMetadataItemStarRatingKey() uintptr
- func NSMetadataItemStateOrProvinceKey() uintptr
- func NSMetadataItemStreamableKey() uintptr
- func NSMetadataItemSubjectKey() uintptr
- func NSMetadataItemTempoKey() uintptr
- func NSMetadataItemTextContentKey() uintptr
- func NSMetadataItemThemeKey() uintptr
- func NSMetadataItemTimeSignatureKey() uintptr
- func NSMetadataItemTimestampKey() uintptr
- func NSMetadataItemTitleKey() uintptr
- func NSMetadataItemTotalBitRateKey() uintptr
- func NSMetadataItemVersionKey() uintptr
- func NSMetadataItemVideoBitRateKey() uintptr
- func NSMetadataItemWhereFromsKey() uintptr
- func NSMetadataItemWhiteBalanceKey() uintptr
- func NSMetadataQueryIndexedLocalComputerScope() uintptr
- func NSMetadataQueryIndexedNetworkScope() uintptr
- func NSMetadataQueryLocalComputerScope() uintptr
- func NSMetadataQueryNetworkScope() uintptr
- func NSMetadataQueryUserHomeScope() uintptr
- func NSMidX(aRect corefoundation.CGRect) float64
- func NSMidY(aRect corefoundation.CGRect) float64
- func NSMinX(aRect corefoundation.CGRect) float64
- func NSMinY(aRect corefoundation.CGRect) float64
- func NSMonthNameArray() uintptrdeprecated
- func NSMorphologyAttributeName() uintptr
- func NSMorphologyCustomPronounIsSupportedForLanguage(language *NSString) bool
- func NSMouseInRect(aPoint corefoundation.CGPoint, aRect corefoundation.CGRect, flipped bool) bool
- func NSNegativeCurrencyFormatString() uintptrdeprecated
- func NSNetServicesErrorCode() uintptr
- func NSNetServicesErrorDomain() uintptr
- func NSNextDayDesignations() uintptrdeprecated
- func NSNextHashEnumeratorItem(enumerator *NSHashEnumerator) unsafe.Pointer
- func NSNextMapEnumeratorPair(enumerator *NSMapEnumerator, key unsafe.Pointer, value unsafe.Pointer) bool
- func NSNextNextDayDesignations() uintptrdeprecated
- func NSNumberFormatterSetDefaultFormatterBehavior(behavior NSNumberFormatterBehavior)
- func NSObjectAccessInstanceVariablesDirectly() bool
- func NSObjectAutomaticallyNotifiesObserversForKey(key *NSString) bool
- func NSObjectCancelPreviousPerformRequestsWithTarget(aTarget objc.ID)
- func NSObjectCancelPreviousPerformRequestsWithTargetSelectorObject(aTarget objc.ID, aSelector objc.SEL, anArgument objc.ID)
- func NSObjectClass() objc.Class
- func NSObjectClassForKeyedUnarchiver() objc.Class
- func NSObjectConformsToProtocol(protocol unsafe.Pointer) bool
- func NSObjectCopyWithZone(zone unsafe.Pointer) objc.ID
- func NSObjectHash() uint
- func NSObjectInstanceMethodForSelector(aSelector objc.SEL) unsafe.Pointer
- func NSObjectInstancesRespondToSelector(aSelector objc.SEL) bool
- func NSObjectIsSubclassOfClass(aClass objc.Class) bool
- func NSObjectMutableCopyWithZone(zone unsafe.Pointer) objc.ID
- func NSObjectResolveClassMethod(sel objc.SEL) bool
- func NSObjectResolveInstanceMethod(sel objc.SEL) bool
- func NSObjectSetKeysTriggerChangeNotificationsForDependentKey(keys *NSArray[objc.ID], dependentKey *NSString)deprecated
- func NSObjectSetVersion(aVersion int)
- func NSObjectSuperclass() objc.Class
- func NSObjectUseStoredAccessor() booldeprecated
- func NSObjectVersion() int
- func NSOffsetRect(aRect corefoundation.CGRect, dX float64, dY float64) corefoundation.CGRect
- func NSPageSize() uint
- func NSPointFromCGPoint(cgpoint corefoundation.CGPoint) corefoundation.CGPoint
- func NSPointFromString(aString *NSString) corefoundation.CGPoint
- func NSPointInRect(aPoint corefoundation.CGPoint, aRect corefoundation.CGRect) bool
- func NSPointToCGPoint(nspoint corefoundation.CGPoint) corefoundation.CGPoint
- func NSPointerArrayPointerArrayWithStrongObjects() objc.ID
- func NSPointerArrayPointerArrayWithWeakObjects() objc.ID
- func NSPortCoderPortCoderWithReceivePortSendPortComponents(rcvPort *NSPort, sndPort *NSPort, comps *NSArray[objc.ID]) objc.ID
- func NSPositiveCurrencyFormatString() uintptrdeprecated
- func NSPriorDayDesignations() uintptrdeprecated
- func NSProgressAddSubscriberForFileURLWithPublishingHandler(url *NSURL, publishingHandler objc.Block) objc.ID
- func NSProgressFileAnimationImageKey() uintptr
- func NSProgressFileAnimationImageOriginalRectKey() uintptr
- func NSProgressFileIconKey() uintptr
- func NSProgressRemoveSubscriber(subscriber objc.ID)
- func NSPropertyListSerializationPropertyListFromDataMutabilityOptionFormatErrorDescription(data *NSData, opt NSPropertyListMutabilityOptions, ...) objc.IDdeprecated
- func NSPropertyListSerializationPropertyListIsValidForFormat(plist objc.ID, format NSPropertyListFormat) bool
- func NSPropertyListSerializationPropertyListWithDataOptionsFormatError(data *NSData, opt NSPropertyListMutabilityOptions, ...) (objc.ID, error)
- func NSPropertyListSerializationPropertyListWithStreamOptionsFormatError(stream *NSInputStream, opt NSPropertyListMutabilityOptions, ...) (objc.ID, error)
- func NSPropertyListSerializationWritePropertyListToStreamFormatOptionsError(plist objc.ID, stream *NSOutputStream, format NSPropertyListFormat, opt uint) (int, error)
- func NSProtocolFromString(namestr *NSString) unsafe.Pointer
- func NSProxyAlloc() objc.ID
- func NSProxyAllocWithZone(zone unsafe.Pointer) objc.ID
- func NSProxyClass() objc.Class
- func NSProxyRespondsToSelector(aSelector objc.SEL) bool
- func NSRealMemoryAvailable() uintdeprecated
- func NSReallocateCollectable(ptr unsafe.Pointer, size uint, options uint) unsafe.Pointer
- func NSRectFromCGRect(cgrect corefoundation.CGRect) corefoundation.CGRect
- func NSRectFromString(aString *NSString) corefoundation.CGRect
- func NSRectToCGRect(nsrect corefoundation.CGRect) corefoundation.CGRect
- func NSRecycleZone(zone unsafe.Pointer)
- func NSReplacementIndexAttributeName() uintptr
- func NSResetHashTable(table *NSHashTable[objc.ID])
- func NSResetMapTable(table *NSMapTable[objc.ID, objc.ID])
- func NSRoundDownToMultipleOfPageSize(bytes_ uint) uint
- func NSRoundUpToMultipleOfPageSize(bytes_ uint) uint
- func NSScannerLocalizedScannerWithString(string_ *NSString) objc.ID
- func NSScriptSuiteRegistrySetSharedScriptSuiteRegistry(registry *NSScriptSuiteRegistry)
- func NSSelectorFromString(aSelectorName *NSString) objc.SEL
- func NSSetUncaughtExceptionHandler(arg unsafe.Pointer)
- func NSSetZoneName(zone unsafe.Pointer, name *NSString)
- func NSShortDateFormatString() uintptrdeprecated
- func NSShortMonthNameArray() uintptrdeprecated
- func NSShortTimeDateFormatString() uintptrdeprecated
- func NSShortWeekDayNameArray() uintptrdeprecated
- func NSShouldRetainWithZone(anObject objc.ID, requestedZone unsafe.Pointer) booldeprecated
- func NSSizeFromCGSize(cgsize corefoundation.CGSize) corefoundation.CGSize
- func NSSizeFromString(aString *NSString) corefoundation.CGSize
- func NSSizeToCGSize(nssize corefoundation.CGSize) corefoundation.CGSize
- func NSSocketPortNameServerSharedInstance() objc.ID
- func NSStreamGetBoundStreamsWithBufferSizeInputStreamOutputStream(bufferSize uint, inputStream *NSInputStream, outputStream *NSOutputStream)
- func NSStreamGetStreamsToHostPortInputStreamOutputStream(host *NSHost, port int, inputStream *NSInputStream, ...)deprecated
- func NSStreamGetStreamsToHostWithNamePortInputStreamOutputStream(hostname *NSString, port int, inputStream *NSInputStream, ...)deprecated
- func NSStringAvailableStringEncodings() *uint
- func NSStringDefaultCStringEncoding() uint
- func NSStringStringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data *NSData, opts *NSDictionary[*NSString, objc.ID], string_ *NSString, ...) uint
- func NSStringStringWithCString(bytes_ string) objc.ID
- func NSStringStringWithCStringLength(bytes_ string, length uint) objc.ID
- func NSStringStringWithContentsOfFile(path *NSString) objc.ID
- func NSStringStringWithContentsOfURL(url *NSURL) objc.ID
- func NSSwapBigDoubleToHost(x NSSwappedDouble) float64
- func NSSwapBigFloatToHost(x NSSwappedFloat) float32
- func NSSwapBigIntToHost(x uint) uint
- func NSSwapBigLongLongToHost(x uint64) uint64
- func NSSwapBigLongToHost(x uint) uint
- func NSSwapBigShortToHost(x uint16) uint16
- func NSSwapHostIntToBig(x uint) uint
- func NSSwapHostIntToLittle(x uint) uint
- func NSSwapHostLongLongToBig(x uint64) uint64
- func NSSwapHostLongLongToLittle(x uint64) uint64
- func NSSwapHostLongToBig(x uint) uint
- func NSSwapHostLongToLittle(x uint) uint
- func NSSwapHostShortToBig(x uint16) uint16
- func NSSwapHostShortToLittle(x uint16) uint16
- func NSSwapInt(inv uint) uint
- func NSSwapLittleDoubleToHost(x NSSwappedDouble) float64
- func NSSwapLittleFloatToHost(x NSSwappedFloat) float32
- func NSSwapLittleIntToHost(x uint) uint
- func NSSwapLittleLongLongToHost(x uint64) uint64
- func NSSwapLittleLongToHost(x uint) uint
- func NSSwapLittleShortToHost(x uint16) uint16
- func NSSwapLong(inv uint) uint
- func NSSwapLongLong(inv uint64) uint64
- func NSSwapShort(inv uint16) uint16
- func NSThisDayDesignations() uintptrdeprecated
- func NSThousandsSeparator() uintptrdeprecated
- func NSThreadDetachNewThreadSelectorToTargetWithObject(selector objc.SEL, target objc.ID, argument objc.ID)
- func NSThreadDetachNewThreadWith(block func())
- func NSThreadExit()
- func NSThreadIsMainThread() bool
- func NSThreadIsMultiThreaded() bool
- func NSThreadSetThreadPriority(p float64) bool
- func NSThreadSleepForTimeInterval(ti float64)
- func NSThreadSleepUntilDate(date *NSDate)
- func NSThreadThreadPriority() float64
- func NSTimeDateFormatString() uintptrdeprecated
- func NSTimeFormatString() uintptrdeprecated
- func NSTimeZoneResetSystemTimeZone()
- func NSTimeZoneSetAbbreviationDictionary(abbreviationDictionary *NSDictionary[*NSString, *NSString])
- func NSTimeZoneSetDefaultTimeZone(defaultTimeZone *NSTimeZone)
- func NSURLApplicationIsScriptableKey() uintptr
- func NSURLCacheSetSharedURLCache(sharedURLCache *NSURLCache)
- func NSURLConnectionCanHandleRequest(request *NSURLRequest) bool
- func NSURLConnectionSendAsynchronousRequestQueueCompletionHandler(request *NSURLRequest, queue *NSOperationQueue, ...)
- func NSURLDownloadCanResumeDownloadDecodedWithEncodingMIMEType(mIMEType *NSString) bool
- func NSURLHandleCanInitWithURL(anURL *NSURL) bool
- func NSURLHandleRegisterURLHandleClass(anURLHandleSubclass objc.Class)
- func NSURLHandleURLHandleClassForURL(anURL *NSURL) objc.Class
- func NSURLProtocolCanInitWithRequest(request *NSURLRequest) bool
- func NSURLProtocolCanInitWithTask(task *NSURLSessionTask) bool
- func NSURLProtocolPropertyForKeyInRequest(key *NSString, request *NSURLRequest) objc.ID
- func NSURLProtocolRegisterClass(protocolClass objc.Class) bool
- func NSURLProtocolRemovePropertyForKeyInRequest(key *NSString, request *NSMutableURLRequest)
- func NSURLProtocolRequestIsCacheEquivalentToRequest(a *NSURLRequest, b *NSURLRequest) bool
- func NSURLProtocolSetPropertyForKeyInRequest(value objc.ID, key *NSString, request *NSMutableURLRequest)
- func NSURLProtocolUnregisterClass(protocolClass objc.Class)
- func NSURLQuarantinePropertiesKey() uintptr
- func NSURLRequestSupportsSecureCoding() bool
- func NSURLSessionTaskPriorityDefault() uintptr
- func NSURLSessionTaskPriorityHigh() uintptr
- func NSURLSessionTaskPriorityLow() uintptr
- func NSURLSessionTransferSizeUnknown() int64
- func NSURLTagNamesKey() uintptr
- func NSURLThumbnailKey() uintptrdeprecated
- func NSURLWriteBookmarkDataToURLOptionsError(bookmarkData *NSData, bookmarkFileURL *NSURL, options uint) (bool, error)
- func NSUnarchiverDecodeClassNameAsClassName(inArchiveName *NSString, trueName *NSString)
- func NSUnarchiverUnarchiveObjectWithData(data *NSData) objc.ID
- func NSUnarchiverUnarchiveObjectWithFile(path *NSString) objc.ID
- func NSUnionRect(aRect corefoundation.CGRect, bRect corefoundation.CGRect) corefoundation.CGRect
- func NSUserActivityDeleteAllSavedUserActivitiesWithCompletionHandler(handler func())
- func NSUserActivityDeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(persistentIdentifiers *NSArray[*NSString], handler func())
- func NSUserDefaultsResetStandardUserDefaults()
- func NSUserNotificationDefaultSoundName() uintptrdeprecated
- func NSValueTransformerAllowsReverseTransformation() bool
- func NSValueTransformerSetValueTransformerForName(transformer *NSValueTransformer, name *NSString)
- func NSValueTransformerTransformedValueClass() objc.Class
- func NSWeekDayNameArray() uintptrdeprecated
- func NSWidth(aRect corefoundation.CGRect) float64
- func NSXMLDocumentReplacementClassForClass(cls objc.Class) objc.Class
- func NSXMLNodeAttributeWithNameStringValue(name *NSString, stringValue *NSString) objc.ID
- func NSXMLNodeAttributeWithNameURIStringValue(name *NSString, uRI *NSString, stringValue *NSString) objc.ID
- func NSXMLNodeCommentWithStringValue(stringValue *NSString) objc.ID
- func NSXMLNodeDTDNodeWithXMLString(string_ *NSString) objc.ID
- func NSXMLNodeDocument() objc.ID
- func NSXMLNodeDocumentWithRootElement(element *NSXMLElement) objc.ID
- func NSXMLNodeElementWithName(name *NSString) objc.ID
- func NSXMLNodeElementWithNameChildrenAttributes(name *NSString, children *NSArray[*NSXMLNode], attributes *NSArray[*NSXMLNode]) objc.ID
- func NSXMLNodeElementWithNameStringValue(name *NSString, string_ *NSString) objc.ID
- func NSXMLNodeElementWithNameURI(name *NSString, uRI *NSString) objc.ID
- func NSXMLNodeNamespaceWithNameStringValue(name *NSString, stringValue *NSString) objc.ID
- func NSXMLNodeProcessingInstructionWithNameStringValue(name *NSString, stringValue *NSString) objc.ID
- func NSXMLNodeTextWithStringValue(stringValue *NSString) objc.ID
- func NSYearMonthWeekDesignations() uintptrdeprecated
- func NSZeroPoint() corefoundation.CGPoint
- func NSZeroRect() corefoundation.CGRect
- func NSZeroSize() corefoundation.CGSize
- func NSZoneCalloc(zone unsafe.Pointer, numElems uint, byteSize uint) unsafe.Pointer
- func NSZoneFree(zone unsafe.Pointer, ptr unsafe.Pointer)
- func NSZoneFromPointer(ptr unsafe.Pointer) unsafe.Pointer
- func NSZoneMalloc(zone unsafe.Pointer, size uint) unsafe.Pointer
- func NSZoneRealloc(zone unsafe.Pointer, ptr unsafe.Pointer, size uint) unsafe.Pointer
- func ObjectGetClassName(obj objc.ID) string
- func ObjectGetIndexedIvars(obj objc.ID) unsafe.Pointer
- func SelGetName(sel objc.SEL) string
- func SelGetUid(str string) objc.SEL
- func SelIsMapped(sel objc.SEL) bool
- func SelRegisterName(str string) objc.SEL
- func SymbolAvailable(symbol string) bool
- type Acl_entry_id_t
- type Acl_flag_t
- type Acl_perm_t
- type Acl_tag_t
- type Acl_type_t
- type Clockid_t
- type Dispatch_autorelease_frequency_t
- type Dispatch_block_flags_t
- type Filesec_property_t
- type Id
- type Idtype_t
- type Ipc_info_object_type_t
- type Launch_data_type_t
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type Mach_vm_range_flags_t
- type Mach_vm_range_flavor_t
- type Mach_vm_range_tag_t
- type Mpo_flags_t
- type NSActivityOptions
- type NSAffineTransform
- func (o *NSAffineTransform) AppendTransform(transform *NSAffineTransform)
- func (o *NSAffineTransform) Init() *NSAffineTransform
- func (o *NSAffineTransform) InitWithTransform(transform *NSAffineTransform) *NSAffineTransform
- func (o *NSAffineTransform) Invert()
- func (o *NSAffineTransform) PrependTransform(transform *NSAffineTransform)
- func (o *NSAffineTransform) RotateByDegrees(angle float64)
- func (o *NSAffineTransform) RotateByRadians(angle float64)
- func (o *NSAffineTransform) ScaleBy(scale float64)
- func (o *NSAffineTransform) ScaleXByYBy(scaleX float64, scaleY float64)
- func (o *NSAffineTransform) SetTransformStruct(transformStruct NSAffineTransformStruct)
- func (o *NSAffineTransform) TransformPoint(aPoint corefoundation.CGPoint) corefoundation.CGPoint
- func (o *NSAffineTransform) TransformSize(aSize corefoundation.CGSize) corefoundation.CGSize
- func (o *NSAffineTransform) TransformStruct() NSAffineTransformStruct
- func (o *NSAffineTransform) TranslateXByYBy(deltaX float64, deltaY float64)
- type NSAffineTransformStruct
- type NSAlignmentOptions
- type NSAppleEventDescriptor
- func NSAppleEventDescriptorAppleEventWithEventClassEventIDTargetDescriptorReturnIDTransactionID(eventClass uint, eventID uint, targetDescriptor *NSAppleEventDescriptor, ...) *NSAppleEventDescriptor
- func NSAppleEventDescriptorCurrentProcessDescriptor() *NSAppleEventDescriptor
- func NSAppleEventDescriptorDescriptorWithApplicationURL(applicationURL *NSURL) *NSAppleEventDescriptor
- func NSAppleEventDescriptorDescriptorWithBoolean(boolean uint8) *NSAppleEventDescriptor
- func NSAppleEventDescriptorDescriptorWithBundleIdentifier(bundleIdentifier *NSString) *NSAppleEventDescriptor
- func NSAppleEventDescriptorDescriptorWithDate(date *NSDate) *NSAppleEventDescriptor
- func NSAppleEventDescriptorDescriptorWithDescriptorTypeBytesLength(descriptorType uint, bytes_ unsafe.Pointer, byteCount uint) *NSAppleEventDescriptor
- func NSAppleEventDescriptorDescriptorWithDescriptorTypeData(descriptorType uint, data *NSData) *NSAppleEventDescriptor
- func NSAppleEventDescriptorDescriptorWithDouble(doubleValue float64) *NSAppleEventDescriptor
- func NSAppleEventDescriptorDescriptorWithEnumCode(enumerator uint) *NSAppleEventDescriptor
- func NSAppleEventDescriptorDescriptorWithFileURL(fileURL *NSURL) *NSAppleEventDescriptor
- func NSAppleEventDescriptorDescriptorWithInt32(signedInt int) *NSAppleEventDescriptor
- func NSAppleEventDescriptorDescriptorWithProcessIdentifier(processIdentifier int) *NSAppleEventDescriptor
- func NSAppleEventDescriptorDescriptorWithString(string_ *NSString) *NSAppleEventDescriptor
- func NSAppleEventDescriptorDescriptorWithTypeCode(typeCode uint) *NSAppleEventDescriptor
- func NSAppleEventDescriptorFromID(id objc.ID) *NSAppleEventDescriptor
- func NSAppleEventDescriptorListDescriptor() *NSAppleEventDescriptor
- func NSAppleEventDescriptorNullDescriptor() *NSAppleEventDescriptor
- func NSAppleEventDescriptorRecordDescriptor() *NSAppleEventDescriptor
- func (o *NSAppleEventDescriptor) AeDesc() unsafe.Pointer
- func (o *NSAppleEventDescriptor) AttributeDescriptorForKeyword(keyword uint) *NSAppleEventDescriptor
- func (o *NSAppleEventDescriptor) BooleanValue() uint8
- func (o *NSAppleEventDescriptor) CoerceToDescriptorType(descriptorType uint) *NSAppleEventDescriptor
- func (o *NSAppleEventDescriptor) Data() *NSData
- func (o *NSAppleEventDescriptor) DateValue() *NSDate
- func (o *NSAppleEventDescriptor) DescriptorAtIndex(index int) *NSAppleEventDescriptor
- func (o *NSAppleEventDescriptor) DescriptorForKeyword(keyword uint) *NSAppleEventDescriptor
- func (o *NSAppleEventDescriptor) DescriptorType() uint
- func (o *NSAppleEventDescriptor) DoubleValue() float64
- func (o *NSAppleEventDescriptor) EnumCodeValue() uint
- func (o *NSAppleEventDescriptor) EventClass() uint
- func (o *NSAppleEventDescriptor) EventID() uint
- func (o *NSAppleEventDescriptor) FileURLValue() *NSURL
- func (o *NSAppleEventDescriptor) InitListDescriptor() *NSAppleEventDescriptor
- func (o *NSAppleEventDescriptor) InitRecordDescriptor() *NSAppleEventDescriptor
- func (o *NSAppleEventDescriptor) InitWithAEDescNoCopy(aeDesc *ae.AEDesc) *NSAppleEventDescriptor
- func (o *NSAppleEventDescriptor) InitWithDescriptorTypeBytesLength(descriptorType uint, bytes_ unsafe.Pointer, byteCount uint) *NSAppleEventDescriptor
- func (o *NSAppleEventDescriptor) InitWithDescriptorTypeData(descriptorType uint, data *NSData) *NSAppleEventDescriptor
- func (o *NSAppleEventDescriptor) InitWithEventClassEventIDTargetDescriptorReturnIDTransactionID(eventClass uint, eventID uint, targetDescriptor *NSAppleEventDescriptor, ...) *NSAppleEventDescriptor
- func (o *NSAppleEventDescriptor) InsertDescriptorAtIndex(descriptor *NSAppleEventDescriptor, index int)
- func (o *NSAppleEventDescriptor) Int32Value() int
- func (o *NSAppleEventDescriptor) IsRecordDescriptor() bool
- func (o *NSAppleEventDescriptor) KeywordForDescriptorAtIndex(index int) uint
- func (o *NSAppleEventDescriptor) NumberOfItems() int
- func (o *NSAppleEventDescriptor) ParamDescriptorForKeyword(keyword uint) *NSAppleEventDescriptor
- func (o *NSAppleEventDescriptor) RemoveDescriptorAtIndex(index int)
- func (o *NSAppleEventDescriptor) RemoveDescriptorWithKeyword(keyword uint)
- func (o *NSAppleEventDescriptor) RemoveParamDescriptorWithKeyword(keyword uint)
- func (o *NSAppleEventDescriptor) ReturnID() int16
- func (o *NSAppleEventDescriptor) SendEventWithOptionsTimeoutError(sendOptions NSAppleEventSendOptions, timeoutInSeconds float64) (*NSAppleEventDescriptor, error)
- func (o *NSAppleEventDescriptor) SetAttributeDescriptorForKeyword(descriptor *NSAppleEventDescriptor, keyword uint)
- func (o *NSAppleEventDescriptor) SetDescriptorForKeyword(descriptor *NSAppleEventDescriptor, keyword uint)
- func (o *NSAppleEventDescriptor) SetParamDescriptorForKeyword(descriptor *NSAppleEventDescriptor, keyword uint)
- func (o *NSAppleEventDescriptor) StringValue() *NSString
- func (o *NSAppleEventDescriptor) TransactionID() int
- func (o *NSAppleEventDescriptor) TypeCodeValue() uint
- type NSAppleEventManager
- func (o *NSAppleEventManager) AppleEventForSuspensionID(suspensionID unsafe.Pointer) *NSAppleEventDescriptor
- func (o *NSAppleEventManager) CurrentAppleEvent() *NSAppleEventDescriptor
- func (o *NSAppleEventManager) CurrentReplyAppleEvent() *NSAppleEventDescriptor
- func (o *NSAppleEventManager) DispatchRawAppleEventWithRawReplyHandlerRefCon(theAppleEvent *ae.AEDesc, theReply *ae.AEDesc, handlerRefCon unsafe.Pointer) int16
- func (o *NSAppleEventManager) RemoveEventHandlerForEventClassAndEventID(eventClass uint, eventID uint)
- func (o *NSAppleEventManager) ReplyAppleEventForSuspensionID(suspensionID unsafe.Pointer) *NSAppleEventDescriptor
- func (o *NSAppleEventManager) ResumeWithSuspensionID(suspensionID unsafe.Pointer)
- func (o *NSAppleEventManager) SetCurrentAppleEventAndReplyEventWithSuspensionID(suspensionID unsafe.Pointer)
- func (o *NSAppleEventManager) SetEventHandlerAndSelectorForEventClassAndEventID(handler objc.ID, handleEventSelector objc.SEL, eventClass uint, eventID uint)
- func (o *NSAppleEventManager) SuspendCurrentAppleEvent() unsafe.Pointer
- type NSAppleEventManagerSuspension
- type NSAppleEventSendOptions
- type NSAppleScript
- func (o *NSAppleScript) CompileAndReturnError(errorInfo *NSDictionary[*NSString, objc.ID]) bool
- func (o *NSAppleScript) ExecuteAndReturnError(errorInfo *NSDictionary[*NSString, objc.ID]) *NSAppleEventDescriptor
- func (o *NSAppleScript) ExecuteAppleEventError(event *NSAppleEventDescriptor, errorInfo *NSDictionary[*NSString, objc.ID]) *NSAppleEventDescriptor
- func (o *NSAppleScript) InitWithContentsOfURLError(url *NSURL, errorInfo *NSDictionary[*NSString, objc.ID]) *NSAppleScript
- func (o *NSAppleScript) InitWithSource(source *NSString) *NSAppleScript
- func (o *NSAppleScript) IsCompiled() bool
- func (o *NSAppleScript) Source() *NSString
- type NSArchiver
- func (o *NSArchiver) ArchiverData() *NSMutableData
- func (o *NSArchiver) ClassNameEncodedForTrueClassName(trueName *NSString) *NSString
- func (o *NSArchiver) EncodeClassNameIntoClassName(trueName *NSString, inArchiveName *NSString)
- func (o *NSArchiver) InitForWritingWithMutableData(mdata *NSMutableData) *NSArchiver
- func (o *NSArchiver) ReplaceObjectWithObject(object objc.ID, newObject objc.ID)
- type NSArray
- func NSAllHashTableObjects(table *NSHashTable[objc.ID]) *NSArray[objc.ID]
- func NSAllMapTableKeys(table *NSMapTable[objc.ID, objc.ID]) *NSArray[objc.ID]
- func NSAllMapTableValues(table *NSMapTable[objc.ID, objc.ID]) *NSArray[objc.ID]
- func NSArrayArray() *NSArray[objc.ID]
- func NSArrayArrayWithArray(array *NSArray[objc.ID]) *NSArray[objc.ID]
- func NSArrayArrayWithContentsOfFile(path *NSString) *NSArray[objc.ID]
- func NSArrayArrayWithContentsOfURL(url *NSURL) *NSArray[objc.ID]
- func NSArrayArrayWithContentsOfURLError(url *NSURL) (*NSArray[objc.ID], error)
- func NSArrayArrayWithObject(anObject objc.ID) *NSArray[objc.ID]
- func NSArrayArrayWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSArray[objc.ID]
- func NSArrayFromID[ObjectType purego.AnyObject](id objc.ID) *NSArray[ObjectType]
- func NSBundleAllBundles() *NSArray[*NSBundle]
- func NSBundleAllFrameworks() *NSArray[*NSBundle]
- func NSBundlePathsForResourcesOfTypeInDirectory(ext *NSString, bundlePath *NSString) *NSArray[*NSString]
- func NSBundlePreferredLocalizationsFromArray(localizationsArray *NSArray[*NSString]) *NSArray[*NSString]
- func NSBundlePreferredLocalizationsFromArrayForPreferences(localizationsArray *NSArray[*NSString], preferencesArray *NSArray[*NSString]) *NSArray[*NSString]
- func NSBundleURLsForResourcesWithExtensionSubdirectoryInBundleWithURL(ext *NSString, subpath *NSString, bundleURL *NSURL) *NSArray[*NSURL]
- func NSConnectionAllConnections() *NSArray[*NSConnection]
- func NSFileCoordinatorFilePresenters() *NSArray[NSFilePresenter]
- func NSFileVersionOtherVersionsOfItemAtURL(url *NSURL) *NSArray[*NSFileVersion]
- func NSFileVersionUnresolvedConflictVersionsOfItemAtURL(url *NSURL) *NSArray[*NSFileVersion]
- func NSHTTPCookieCookiesWithResponseHeaderFieldsForURL(headerFields *NSDictionary[*NSString, *NSString], uRL *NSURL) *NSArray[*NSHTTPCookie]
- func NSKeyedUnarchiverUnarchivedArrayOfObjectsOfClassFromDataError(cls objc.Class, data *NSData) (*NSArray[objc.ID], error)
- func NSKeyedUnarchiverUnarchivedArrayOfObjectsOfClassesFromDataError(classes *NSSet[objc.Class], data *NSData) (*NSArray[objc.ID], error)
- func NSLinguisticTaggerAvailableTagSchemesForLanguage(language *NSString) *NSArray[*NSString]
- func NSLinguisticTaggerAvailableTagSchemesForUnitLanguage(unit NSLinguisticTaggerUnit, language *NSString) *NSArray[*NSString]
- func NSLinguisticTaggerTagsForStringRangeUnitSchemeOptionsOrthographyTokenRanges(string_ *NSString, range_ NSRange, unit NSLinguisticTaggerUnit, ...) *NSArray[*NSString]
- func NSLocaleAvailableLocaleIdentifiers() *NSArray[*NSString]
- func NSLocaleCommonISOCurrencyCodes() *NSArray[*NSString]
- func NSLocaleISOCountryCodes() *NSArray[*NSString]
- func NSLocaleISOCurrencyCodes() *NSArray[*NSString]
- func NSLocaleISOLanguageCodes() *NSArray[*NSString]
- func NSLocalePreferredLanguages() *NSArray[*NSString]
- func NSMorphologyCustomPronounRequiredKeysForLanguage(language *NSString) *NSArray[*NSString]
- func NSObjectClassFallbacksForKeyedArchiver() *NSArray[*NSString]
- func NSSearchPathForDirectoriesInDomains(directory NSSearchPathDirectory, domainMask NSSearchPathDomainMask, ...) *NSArray[*NSString]
- func NSSecureUnarchiveFromDataTransformerAllowedTopLevelClasses() *NSArray[objc.Class]
- func NSThreadCallStackReturnAddresses() *NSArray[*NSNumber]
- func NSThreadCallStackSymbols() *NSArray[*NSString]
- func NSTimeZoneKnownTimeZoneNames() *NSArray[*NSString]
- func NSValueTransformerValueTransformerNames() *NSArray[*NSString]
- func (o *NSArray[ObjectType]) AddObserverToObjectsAtIndexesForKeyPathOptionsContext(observer *NSObject, indexes *NSIndexSet, keyPath *NSString, ...)
- func (o *NSArray[ObjectType]) ArrayByAddingObject(anObject ObjectType) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) ArrayByAddingObjectsFromArray(otherArray *NSArray[ObjectType]) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) ArrayByApplyingDifference(difference *NSOrderedCollectionDifference[ObjectType]) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) ComponentsJoinedByString(separator *NSString) *NSString
- func (o *NSArray[ObjectType]) ContainsObject(anObject ObjectType) bool
- func (o *NSArray[ObjectType]) Count() uint
- func (o *NSArray[ObjectType]) DescriptionWithLocale(locale objc.ID) *NSString
- func (o *NSArray[ObjectType]) DescriptionWithLocaleIndent(locale objc.ID, level uint) *NSString
- func (o *NSArray[ObjectType]) DifferenceFromArray(other *NSArray[ObjectType]) *NSOrderedCollectionDifference[ObjectType]
- func (o *NSArray[ObjectType]) DifferenceFromArrayWithOptions(other *NSArray[ObjectType], ...) *NSOrderedCollectionDifference[ObjectType]
- func (o *NSArray[ObjectType]) DifferenceFromArrayWithOptionsUsingEquivalenceTest(other *NSArray[ObjectType], ...) *NSOrderedCollectionDifference[ObjectType]
- func (o *NSArray[ObjectType]) EnumerateObjectsAtIndexesOptionsUsing(s *NSIndexSet, opts NSEnumerationOptions, block objc.Block)
- func (o *NSArray[ObjectType]) EnumerateObjectsUsing(block objc.Block)
- func (o *NSArray[ObjectType]) EnumerateObjectsWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)
- func (o *NSArray[ObjectType]) FilteredArrayUsingPredicate(predicate *NSPredicate) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) FirstObject() ObjectType
- func (o *NSArray[ObjectType]) FirstObjectCommonWithArray(otherArray *NSArray[ObjectType]) ObjectType
- func (o *NSArray[ObjectType]) GetObjects(objects unsafe.Pointer)
- func (o *NSArray[ObjectType]) GetObjectsRange(objects unsafe.Pointer, range_ NSRange)
- func (o *NSArray[ObjectType]) IndexOfObject(anObject ObjectType) uint
- func (o *NSArray[ObjectType]) IndexOfObjectAtIndexesOptionsPassingTest(s *NSIndexSet, opts NSEnumerationOptions, predicate objc.Block) uint
- func (o *NSArray[ObjectType]) IndexOfObjectIdenticalTo(anObject ObjectType) uint
- func (o *NSArray[ObjectType]) IndexOfObjectIdenticalToInRange(anObject ObjectType, range_ NSRange) uint
- func (o *NSArray[ObjectType]) IndexOfObjectInRange(anObject ObjectType, range_ NSRange) uint
- func (o *NSArray[ObjectType]) IndexOfObjectInSortedRangeOptionsUsingComparator(obj ObjectType, r NSRange, opts NSBinarySearchingOptions, ...) uint
- func (o *NSArray[ObjectType]) IndexOfObjectPassingTest(predicate objc.Block) uint
- func (o *NSArray[ObjectType]) IndexOfObjectWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) uint
- func (o *NSArray[ObjectType]) IndexesOfObjectsAtIndexesOptionsPassingTest(s *NSIndexSet, opts NSEnumerationOptions, predicate objc.Block) *NSIndexSet
- func (o *NSArray[ObjectType]) IndexesOfObjectsPassingTest(predicate objc.Block) *NSIndexSet
- func (o *NSArray[ObjectType]) IndexesOfObjectsWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSIndexSet
- func (o *NSArray[ObjectType]) Init() *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) InitWithArray(array *NSArray[ObjectType]) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) InitWithArrayCopyItems(array *NSArray[ObjectType], flag bool) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) InitWithCoder(coder *NSCoder) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) InitWithContentsOfFile(path *NSString) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) InitWithContentsOfURL(url *NSURL) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) InitWithContentsOfURLError(url *NSURL) (*NSArray[ObjectType], error)
- func (o *NSArray[ObjectType]) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) IsEqualToArray(otherArray *NSArray[ObjectType]) bool
- func (o *NSArray[ObjectType]) LastObject() ObjectType
- func (o *NSArray[ObjectType]) MakeObjectsPerformSelector(aSelector objc.SEL)
- func (o *NSArray[ObjectType]) MakeObjectsPerformSelectorWithObject(aSelector objc.SEL, argument objc.ID)
- func (o *NSArray[ObjectType]) ObjectAtIndex(index uint) ObjectType
- func (o *NSArray[ObjectType]) ObjectAtIndexedSubscript(idx uint) ObjectType
- func (o *NSArray[ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]
- func (o *NSArray[ObjectType]) ObjectsAtIndexes(indexes *NSIndexSet) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) PathsMatchingExtensions(filterTypes *NSArray[*NSString]) *NSArray[*NSString]
- func (o *NSArray[ObjectType]) RemoveObserverFromObjectsAtIndexesForKeyPath(observer *NSObject, indexes *NSIndexSet, keyPath *NSString)
- func (o *NSArray[ObjectType]) RemoveObserverFromObjectsAtIndexesForKeyPathContext(observer *NSObject, indexes *NSIndexSet, keyPath *NSString, ...)
- func (o *NSArray[ObjectType]) ReverseObjectEnumerator() *NSEnumerator[ObjectType]
- func (o *NSArray[ObjectType]) SortedArrayHint() *NSData
- func (o *NSArray[ObjectType]) SortedArrayUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) SortedArrayUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor]) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) SortedArrayUsingFunctionContext(comparator unsafe.Pointer, context_ unsafe.Pointer) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) SortedArrayUsingFunctionContextHint(comparator unsafe.Pointer, context_ unsafe.Pointer, hint *NSData) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) SortedArrayUsingSelector(comparator objc.SEL) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) SortedArrayWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) SubarrayWithRange(range_ NSRange) *NSArray[ObjectType]
- func (o *NSArray[ObjectType]) WriteToFileAtomically(path *NSString, useAuxiliaryFile bool) bool
- func (o *NSArray[ObjectType]) WriteToURLAtomically(url *NSURL, atomically bool) bool
- func (o *NSArray[ObjectType]) WriteToURLError(url *NSURL) (bool, error)
- type NSAssertionHandler
- type NSAttributedString
- func NSAttributedStringFromID(id objc.ID) *NSAttributedString
- func NSAttributedStringLocalizedAttributedStringWithFormat(format *NSAttributedString) *NSAttributedString
- func NSAttributedStringLocalizedAttributedStringWithFormatContext(format *NSAttributedString, context_ *NSDictionary[*NSString, objc.ID]) *NSAttributedString
- func NSAttributedStringLocalizedAttributedStringWithFormatOptions(format *NSAttributedString, options NSAttributedStringFormattingOptions) *NSAttributedString
- func NSAttributedStringLocalizedAttributedStringWithFormatOptionsContext(format *NSAttributedString, options NSAttributedStringFormattingOptions, ...) *NSAttributedString
- func (o *NSAttributedString) AttributeAtIndexEffectiveRange(attrName *NSString, location uint, range_ *NSRange) objc.ID
- func (o *NSAttributedString) AttributeAtIndexLongestEffectiveRangeInRange(attrName *NSString, location uint, range_ *NSRange, rangeLimit NSRange) objc.ID
- func (o *NSAttributedString) AttributedStringByInflectingString() *NSAttributedString
- func (o *NSAttributedString) AttributedSubstringFromRange(range_ NSRange) *NSAttributedString
- func (o *NSAttributedString) AttributesAtIndexEffectiveRange(location uint, range_ *NSRange) *NSDictionary[*NSString, objc.ID]
- func (o *NSAttributedString) AttributesAtIndexLongestEffectiveRangeInRange(location uint, range_ *NSRange, rangeLimit NSRange) *NSDictionary[*NSString, objc.ID]
- func (o *NSAttributedString) EnumerateAttributeInRangeOptionsUsing(attrName *NSString, enumerationRange NSRange, ...)
- func (o *NSAttributedString) EnumerateAttributesInRangeOptionsUsing(enumerationRange NSRange, opts NSAttributedStringEnumerationOptions, ...)
- func (o *NSAttributedString) InitWithAttributedString(attrStr *NSAttributedString) *NSAttributedString
- func (o *NSAttributedString) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile *NSURL, options *NSAttributedStringMarkdownParsingOptions, ...) (*NSAttributedString, error)
- func (o *NSAttributedString) InitWithFormatOptionsLocale(format *NSAttributedString, options NSAttributedStringFormattingOptions, ...) *NSAttributedString
- func (o *NSAttributedString) InitWithFormatOptionsLocaleArguments(format *NSAttributedString, options NSAttributedStringFormattingOptions, ...) *NSAttributedString
- func (o *NSAttributedString) InitWithFormatOptionsLocaleContext(format *NSAttributedString, options NSAttributedStringFormattingOptions, ...) *NSAttributedString
- func (o *NSAttributedString) InitWithFormatOptionsLocaleContextArguments(format *NSAttributedString, options NSAttributedStringFormattingOptions, ...) *NSAttributedString
- func (o *NSAttributedString) InitWithMarkdownOptionsBaseURLError(markdown *NSData, options *NSAttributedStringMarkdownParsingOptions, ...) (*NSAttributedString, error)
- func (o *NSAttributedString) InitWithMarkdownStringOptionsBaseURLError(markdownString *NSString, options *NSAttributedStringMarkdownParsingOptions, ...) (*NSAttributedString, error)
- func (o *NSAttributedString) InitWithString(str *NSString) *NSAttributedString
- func (o *NSAttributedString) InitWithStringAttributes(str *NSString, attrs *NSDictionary[*NSString, objc.ID]) *NSAttributedString
- func (o *NSAttributedString) IsEqualToAttributedString(other *NSAttributedString) bool
- func (o *NSAttributedString) Length() uint
- func (o *NSAttributedString) String() *NSString
- type NSAttributedStringEnumerationOptions
- type NSAttributedStringFormattingOptions
- type NSAttributedStringMarkdownInterpretedSyntax
- type NSAttributedStringMarkdownParsingFailurePolicy
- type NSAttributedStringMarkdownParsingOptions
- func (o *NSAttributedStringMarkdownParsingOptions) AllowsExtendedAttributes() bool
- func (o *NSAttributedStringMarkdownParsingOptions) AppliesSourcePositionAttributes() bool
- func (o *NSAttributedStringMarkdownParsingOptions) FailurePolicy() NSAttributedStringMarkdownParsingFailurePolicy
- func (o *NSAttributedStringMarkdownParsingOptions) Init() *NSAttributedStringMarkdownParsingOptions
- func (o *NSAttributedStringMarkdownParsingOptions) InterpretedSyntax() NSAttributedStringMarkdownInterpretedSyntax
- func (o *NSAttributedStringMarkdownParsingOptions) LanguageCode() *NSString
- func (o *NSAttributedStringMarkdownParsingOptions) SetAllowsExtendedAttributes(allowsExtendedAttributes bool)
- func (o *NSAttributedStringMarkdownParsingOptions) SetAppliesSourcePositionAttributes(appliesSourcePositionAttributes bool)
- func (o *NSAttributedStringMarkdownParsingOptions) SetFailurePolicy(failurePolicy NSAttributedStringMarkdownParsingFailurePolicy)
- func (o *NSAttributedStringMarkdownParsingOptions) SetInterpretedSyntax(interpretedSyntax NSAttributedStringMarkdownInterpretedSyntax)
- func (o *NSAttributedStringMarkdownParsingOptions) SetLanguageCode(languageCode *NSString)
- type NSAttributedStringMarkdownSourcePosition
- func (o *NSAttributedStringMarkdownSourcePosition) EndColumn() int
- func (o *NSAttributedStringMarkdownSourcePosition) EndLine() int
- func (o *NSAttributedStringMarkdownSourcePosition) InitWithStartLineStartColumnEndLineEndColumn(startLine int, startColumn int, endLine int, endColumn int) *NSAttributedStringMarkdownSourcePosition
- func (o *NSAttributedStringMarkdownSourcePosition) RangeInString(string_ *NSString) NSRange
- func (o *NSAttributedStringMarkdownSourcePosition) StartColumn() int
- func (o *NSAttributedStringMarkdownSourcePosition) StartLine() int
- type NSAutoreleasePool
- type NSBackgroundActivityResult
- type NSBackgroundActivityScheduler
- func (o *NSBackgroundActivityScheduler) Identifier() *NSString
- func (o *NSBackgroundActivityScheduler) InitWithIdentifier(identifier *NSString) *NSBackgroundActivityScheduler
- func (o *NSBackgroundActivityScheduler) Interval() float64
- func (o *NSBackgroundActivityScheduler) Invalidate()
- func (o *NSBackgroundActivityScheduler) QualityOfService() NSQualityOfService
- func (o *NSBackgroundActivityScheduler) Repeats() bool
- func (o *NSBackgroundActivityScheduler) ScheduleWith(block func(objc.Block))
- func (o *NSBackgroundActivityScheduler) SetInterval(interval float64)
- func (o *NSBackgroundActivityScheduler) SetQualityOfService(qualityOfService NSQualityOfService)
- func (o *NSBackgroundActivityScheduler) SetRepeats(repeats bool)
- func (o *NSBackgroundActivityScheduler) SetTolerance(tolerance float64)
- func (o *NSBackgroundActivityScheduler) ShouldDefer() bool
- func (o *NSBackgroundActivityScheduler) Tolerance() float64
- type NSBinarySearchingOptions
- type NSBlockOperation
- type NSBundle
- func NSBundleBundleForClass(aClass objc.Class) *NSBundle
- func NSBundleBundleWithIdentifier(identifier *NSString) *NSBundle
- func NSBundleBundleWithPath(path *NSString) *NSBundle
- func NSBundleBundleWithURL(url *NSURL) *NSBundle
- func NSBundleFromID(id objc.ID) *NSBundle
- func NSBundleMainBundle() *NSBundle
- func (o *NSBundle) AppStoreReceiptURL() *NSURL
- func (o *NSBundle) BuiltInPlugInsPath() *NSString
- func (o *NSBundle) BuiltInPlugInsURL() *NSURL
- func (o *NSBundle) BundleIdentifier() *NSString
- func (o *NSBundle) BundlePath() *NSString
- func (o *NSBundle) BundleURL() *NSURL
- func (o *NSBundle) ClassNamed(className *NSString) objc.Class
- func (o *NSBundle) DevelopmentLocalization() *NSString
- func (o *NSBundle) ExecutableArchitectures() *NSArray[*NSNumber]
- func (o *NSBundle) ExecutablePath() *NSString
- func (o *NSBundle) ExecutableURL() *NSURL
- func (o *NSBundle) InfoDictionary() *NSDictionary[*NSString, objc.ID]
- func (o *NSBundle) InitWithPath(path *NSString) *NSBundle
- func (o *NSBundle) InitWithURL(url *NSURL) *NSBundle
- func (o *NSBundle) IsLoaded() bool
- func (o *NSBundle) Load() bool
- func (o *NSBundle) LoadAndReturnError() (bool, error)
- func (o *NSBundle) Localizations() *NSArray[*NSString]
- func (o *NSBundle) LocalizedAttributedStringForKeyValueTable(key *NSString, value *NSString, tableName *NSString) *NSAttributedString
- func (o *NSBundle) LocalizedInfoDictionary() *NSDictionary[*NSString, objc.ID]
- func (o *NSBundle) LocalizedStringForKeyValueTable(key *NSString, value *NSString, tableName *NSString) *NSString
- func (o *NSBundle) LocalizedStringForKeyValueTableLocalizations(key *NSString, value *NSString, tableName *NSString, ...) *NSString
- func (o *NSBundle) ObjectForInfoDictionaryKey(key *NSString) objc.ID
- func (o *NSBundle) PathForAuxiliaryExecutable(executableName *NSString) *NSString
- func (o *NSBundle) PathForResourceOfType(name *NSString, ext *NSString) *NSString
- func (o *NSBundle) PathForResourceOfTypeInDirectory(name *NSString, ext *NSString, subpath *NSString) *NSString
- func (o *NSBundle) PathForResourceOfTypeInDirectoryForLocalization(name *NSString, ext *NSString, subpath *NSString, localizationName *NSString) *NSString
- func (o *NSBundle) PathsForResourcesOfTypeInDirectory(ext *NSString, subpath *NSString) *NSArray[*NSString]
- func (o *NSBundle) PathsForResourcesOfTypeInDirectoryForLocalization(ext *NSString, subpath *NSString, localizationName *NSString) *NSArray[*NSString]
- func (o *NSBundle) PreferredLocalizations() *NSArray[*NSString]
- func (o *NSBundle) PreflightAndReturnError() (bool, error)
- func (o *NSBundle) PrincipalClass() objc.Class
- func (o *NSBundle) PrivateFrameworksPath() *NSString
- func (o *NSBundle) PrivateFrameworksURL() *NSURL
- func (o *NSBundle) ResourcePath() *NSString
- func (o *NSBundle) ResourceURL() *NSURL
- func (o *NSBundle) SharedFrameworksPath() *NSString
- func (o *NSBundle) SharedFrameworksURL() *NSURL
- func (o *NSBundle) SharedSupportPath() *NSString
- func (o *NSBundle) SharedSupportURL() *NSURL
- func (o *NSBundle) URLForAuxiliaryExecutable(executableName *NSString) *NSURL
- func (o *NSBundle) URLForResourceWithExtension(name *NSString, ext *NSString) *NSURL
- func (o *NSBundle) URLForResourceWithExtensionSubdirectory(name *NSString, ext *NSString, subpath *NSString) *NSURL
- func (o *NSBundle) URLForResourceWithExtensionSubdirectoryLocalization(name *NSString, ext *NSString, subpath *NSString, localizationName *NSString) *NSURL
- func (o *NSBundle) URLsForResourcesWithExtensionSubdirectory(ext *NSString, subpath *NSString) *NSArray[*NSURL]
- func (o *NSBundle) URLsForResourcesWithExtensionSubdirectoryLocalization(ext *NSString, subpath *NSString, localizationName *NSString) *NSArray[*NSURL]
- func (o *NSBundle) Unload() bool
- type NSByteCountFormatter
- func (o *NSByteCountFormatter) AllowedUnits() NSByteCountFormatterUnits
- func (o *NSByteCountFormatter) AllowsNonnumericFormatting() bool
- func (o *NSByteCountFormatter) CountStyle() NSByteCountFormatterCountStyle
- func (o *NSByteCountFormatter) FormattingContext() NSFormattingContext
- func (o *NSByteCountFormatter) IncludesActualByteCount() bool
- func (o *NSByteCountFormatter) IncludesCount() bool
- func (o *NSByteCountFormatter) IncludesUnit() bool
- func (o *NSByteCountFormatter) IsAdaptive() bool
- func (o *NSByteCountFormatter) SetAdaptive(adaptive bool)
- func (o *NSByteCountFormatter) SetAllowedUnits(allowedUnits NSByteCountFormatterUnits)
- func (o *NSByteCountFormatter) SetAllowsNonnumericFormatting(allowsNonnumericFormatting bool)
- func (o *NSByteCountFormatter) SetCountStyle(countStyle NSByteCountFormatterCountStyle)
- func (o *NSByteCountFormatter) SetFormattingContext(formattingContext NSFormattingContext)
- func (o *NSByteCountFormatter) SetIncludesActualByteCount(includesActualByteCount bool)
- func (o *NSByteCountFormatter) SetIncludesCount(includesCount bool)
- func (o *NSByteCountFormatter) SetIncludesUnit(includesUnit bool)
- func (o *NSByteCountFormatter) SetZeroPadsFractionDigits(zeroPadsFractionDigits bool)
- func (o *NSByteCountFormatter) StringFromByteCount(byteCount int64) *NSString
- func (o *NSByteCountFormatter) StringFromMeasurement(measurement *NSMeasurement[*NSUnitInformationStorage]) *NSString
- func (o *NSByteCountFormatter) ZeroPadsFractionDigits() bool
- type NSByteCountFormatterCountStyle
- type NSByteCountFormatterUnits
- type NSCache
- func (o *NSCache[KeyType, ObjectType]) CountLimit() uint
- func (o *NSCache[KeyType, ObjectType]) Delegate() NSCacheDelegate
- func (o *NSCache[KeyType, ObjectType]) EvictsObjectsWithDiscardedContent() bool
- func (o *NSCache[KeyType, ObjectType]) Name() *NSString
- func (o *NSCache[KeyType, ObjectType]) ObjectForKey(key KeyType) ObjectType
- func (o *NSCache[KeyType, ObjectType]) RemoveAllObjects()
- func (o *NSCache[KeyType, ObjectType]) RemoveObjectForKey(key KeyType)
- func (o *NSCache[KeyType, ObjectType]) SetCountLimit(countLimit uint)
- func (o *NSCache[KeyType, ObjectType]) SetDelegate(delegate NSCacheDelegate)
- func (o *NSCache[KeyType, ObjectType]) SetEvictsObjectsWithDiscardedContent(evictsObjectsWithDiscardedContent bool)
- func (o *NSCache[KeyType, ObjectType]) SetName(name *NSString)
- func (o *NSCache[KeyType, ObjectType]) SetObjectForKey(obj ObjectType, key KeyType)
- func (o *NSCache[KeyType, ObjectType]) SetObjectForKeyCost(obj ObjectType, key KeyType, g uint)
- func (o *NSCache[KeyType, ObjectType]) SetTotalCostLimit(totalCostLimit uint)
- func (o *NSCache[KeyType, ObjectType]) TotalCostLimit() uint
- type NSCacheDelegate
- type NSCachedURLResponse
- func (o *NSCachedURLResponse) Data() *NSData
- func (o *NSCachedURLResponse) InitWithResponseData(response *NSURLResponse, data *NSData) *NSCachedURLResponse
- func (o *NSCachedURLResponse) InitWithResponseDataUserInfoStoragePolicy(response *NSURLResponse, data *NSData, ...) *NSCachedURLResponse
- func (o *NSCachedURLResponse) Response() *NSURLResponse
- func (o *NSCachedURLResponse) StoragePolicy() NSURLCacheStoragePolicy
- func (o *NSCachedURLResponse) UserInfo() *NSDictionary[objc.ID, objc.ID]
- type NSCalculationError
- func NSDecimalAdd(result *NSDecimal, leftOperand *NSDecimal, rightOperand *NSDecimal, ...) NSCalculationError
- func NSDecimalDivide(result *NSDecimal, leftOperand *NSDecimal, rightOperand *NSDecimal, ...) NSCalculationError
- func NSDecimalMultiply(result *NSDecimal, leftOperand *NSDecimal, rightOperand *NSDecimal, ...) NSCalculationError
- func NSDecimalMultiplyByPowerOf10(result *NSDecimal, number *NSDecimal, power int16, roundingMode NSRoundingMode) NSCalculationError
- func NSDecimalNormalize(number1 *NSDecimal, number2 *NSDecimal, roundingMode NSRoundingMode) NSCalculationError
- func NSDecimalPower(result *NSDecimal, number *NSDecimal, power uint, roundingMode NSRoundingMode) NSCalculationError
- func NSDecimalSubtract(result *NSDecimal, leftOperand *NSDecimal, rightOperand *NSDecimal, ...) NSCalculationError
- type NSCalendar
- func (o *NSCalendar) AMSymbol() *NSString
- func (o *NSCalendar) CalendarIdentifier() *NSString
- func (o *NSCalendar) CompareDateToDateToUnitGranularity(date1 *NSDate, date2 *NSDate, unit NSCalendarUnit) NSComparisonResult
- func (o *NSCalendar) ComponentFromDate(unit NSCalendarUnit, date *NSDate) int
- func (o *NSCalendar) ComponentsFromDate(unitFlags NSCalendarUnit, date *NSDate) *NSDateComponents
- func (o *NSCalendar) ComponentsFromDateComponentsToDateComponentsOptions(unitFlags NSCalendarUnit, startingDateComp *NSDateComponents, ...) *NSDateComponents
- func (o *NSCalendar) ComponentsFromDateToDateOptions(unitFlags NSCalendarUnit, startingDate *NSDate, resultDate *NSDate, ...) *NSDateComponents
- func (o *NSCalendar) ComponentsInTimeZoneFromDate(timezone *NSTimeZone, date *NSDate) *NSDateComponents
- func (o *NSCalendar) DateByAddingComponentsToDateOptions(comps *NSDateComponents, date *NSDate, opts NSCalendarOptions) *NSDate
- func (o *NSCalendar) DateByAddingUnitValueToDateOptions(unit NSCalendarUnit, value int, date *NSDate, options NSCalendarOptions) *NSDate
- func (o *NSCalendar) DateBySettingHourMinuteSecondOfDateOptions(h int, m int, s int, date *NSDate, opts NSCalendarOptions) *NSDate
- func (o *NSCalendar) DateBySettingUnitValueOfDateOptions(unit NSCalendarUnit, v int, date *NSDate, opts NSCalendarOptions) *NSDate
- func (o *NSCalendar) DateFromComponents(comps *NSDateComponents) *NSDate
- func (o *NSCalendar) DateMatchesComponents(date *NSDate, components *NSDateComponents) bool
- func (o *NSCalendar) DateWithEraYearForWeekOfYearWeekOfYearWeekdayHourMinuteSecondNanosecond(eraValue int, yearValue int, weekValue int, weekdayValue int, hourValue int, ...) *NSDate
- func (o *NSCalendar) DateWithEraYearMonthDayHourMinuteSecondNanosecond(eraValue int, yearValue int, monthValue int, dayValue int, hourValue int, ...) *NSDate
- func (o *NSCalendar) EnumerateDatesStartingAfterDateMatchingComponentsOptionsUsing(start *NSDate, comps *NSDateComponents, opts NSCalendarOptions, ...)
- func (o *NSCalendar) EraSymbols() *NSArray[*NSString]
- func (o *NSCalendar) FirstWeekday() uint
- func (o *NSCalendar) GetEraYearForWeekOfYearWeekOfYearWeekdayFromDate(eraValuePointer *int64, yearValuePointer *int64, weekValuePointer *int64, ...)
- func (o *NSCalendar) GetEraYearMonthDayFromDate(eraValuePointer *int64, yearValuePointer *int64, monthValuePointer *int64, ...)
- func (o *NSCalendar) GetHourMinuteSecondNanosecondFromDate(hourValuePointer *int64, minuteValuePointer *int64, secondValuePointer *int64, ...)
- func (o *NSCalendar) InitWithCalendarIdentifier(ident *NSString) objc.ID
- func (o *NSCalendar) IsDateEqualToDateToUnitGranularity(date1 *NSDate, date2 *NSDate, unit NSCalendarUnit) bool
- func (o *NSCalendar) IsDateInSameDayAsDate(date1 *NSDate, date2 *NSDate) bool
- func (o *NSCalendar) IsDateInToday(date *NSDate) bool
- func (o *NSCalendar) IsDateInTomorrow(date *NSDate) bool
- func (o *NSCalendar) IsDateInWeekend(date *NSDate) bool
- func (o *NSCalendar) IsDateInYesterday(date *NSDate) bool
- func (o *NSCalendar) Locale() *NSLocale
- func (o *NSCalendar) LongEraSymbols() *NSArray[*NSString]
- func (o *NSCalendar) MaximumRangeOfUnit(unit NSCalendarUnit) NSRange
- func (o *NSCalendar) MinimumDaysInFirstWeek() uint
- func (o *NSCalendar) MinimumRangeOfUnit(unit NSCalendarUnit) NSRange
- func (o *NSCalendar) MonthSymbols() *NSArray[*NSString]
- func (o *NSCalendar) NextDateAfterDateMatchingComponentsOptions(date *NSDate, comps *NSDateComponents, options NSCalendarOptions) *NSDate
- func (o *NSCalendar) NextDateAfterDateMatchingHourMinuteSecondOptions(date *NSDate, hourValue int, minuteValue int, secondValue int, ...) *NSDate
- func (o *NSCalendar) NextDateAfterDateMatchingUnitValueOptions(date *NSDate, unit NSCalendarUnit, value int, options NSCalendarOptions) *NSDate
- func (o *NSCalendar) NextWeekendStartDateIntervalOptionsAfterDate(datep *NSDate, tip *float64, options NSCalendarOptions, date *NSDate) bool
- func (o *NSCalendar) OrdinalityOfUnitInUnitForDate(smaller NSCalendarUnit, larger NSCalendarUnit, date *NSDate) uint
- func (o *NSCalendar) PMSymbol() *NSString
- func (o *NSCalendar) QuarterSymbols() *NSArray[*NSString]
- func (o *NSCalendar) RangeOfUnitInUnitForDate(smaller NSCalendarUnit, larger NSCalendarUnit, date *NSDate) NSRange
- func (o *NSCalendar) RangeOfUnitStartDateIntervalForDate(unit NSCalendarUnit, datep *NSDate, tip *float64, date *NSDate) bool
- func (o *NSCalendar) RangeOfWeekendStartDateIntervalContainingDate(datep *NSDate, tip *float64, date *NSDate) bool
- func (o *NSCalendar) SetFirstWeekday(firstWeekday uint)
- func (o *NSCalendar) SetLocale(locale *NSLocale)
- func (o *NSCalendar) SetMinimumDaysInFirstWeek(minimumDaysInFirstWeek uint)
- func (o *NSCalendar) SetTimeZone(timeZone *NSTimeZone)
- func (o *NSCalendar) ShortMonthSymbols() *NSArray[*NSString]
- func (o *NSCalendar) ShortQuarterSymbols() *NSArray[*NSString]
- func (o *NSCalendar) ShortStandaloneMonthSymbols() *NSArray[*NSString]
- func (o *NSCalendar) ShortStandaloneQuarterSymbols() *NSArray[*NSString]
- func (o *NSCalendar) ShortStandaloneWeekdaySymbols() *NSArray[*NSString]
- func (o *NSCalendar) ShortWeekdaySymbols() *NSArray[*NSString]
- func (o *NSCalendar) StandaloneMonthSymbols() *NSArray[*NSString]
- func (o *NSCalendar) StandaloneQuarterSymbols() *NSArray[*NSString]
- func (o *NSCalendar) StandaloneWeekdaySymbols() *NSArray[*NSString]
- func (o *NSCalendar) StartOfDayForDate(date *NSDate) *NSDate
- func (o *NSCalendar) TimeZone() *NSTimeZone
- func (o *NSCalendar) VeryShortMonthSymbols() *NSArray[*NSString]
- func (o *NSCalendar) VeryShortStandaloneMonthSymbols() *NSArray[*NSString]
- func (o *NSCalendar) VeryShortStandaloneWeekdaySymbols() *NSArray[*NSString]
- func (o *NSCalendar) VeryShortWeekdaySymbols() *NSArray[*NSString]
- func (o *NSCalendar) WeekdaySymbols() *NSArray[*NSString]
- type NSCalendarDate
- func (o *NSCalendarDate) CalendarFormat() *NSStringdeprecated
- func (o *NSCalendarDate) DateByAddingYearsMonthsDaysHoursMinutesSeconds(year int, month int, day int, hour int, minute int, second int) *NSCalendarDatedeprecated
- func (o *NSCalendarDate) DayOfCommonEra() intdeprecated
- func (o *NSCalendarDate) DayOfMonth() intdeprecated
- func (o *NSCalendarDate) DayOfWeek() intdeprecated
- func (o *NSCalendarDate) DayOfYear() intdeprecated
- func (o *NSCalendarDate) DescriptionWithCalendarFormat(format *NSString) *NSStringdeprecated
- func (o *NSCalendarDate) DescriptionWithCalendarFormatLocale(format *NSString, locale objc.ID) *NSStringdeprecated
- func (o *NSCalendarDate) HourOfDay() intdeprecated
- func (o *NSCalendarDate) InitWithString(description *NSString) objc.IDdeprecated
- func (o *NSCalendarDate) InitWithStringCalendarFormat(description *NSString, format *NSString) objc.IDdeprecated
- func (o *NSCalendarDate) InitWithStringCalendarFormatLocale(description *NSString, format *NSString, locale objc.ID) objc.IDdeprecated
- func (o *NSCalendarDate) InitWithYearMonthDayHourMinuteSecondTimeZone(year int, month uint, day uint, hour uint, minute uint, second uint, ...) objc.IDdeprecated
- func (o *NSCalendarDate) MinuteOfHour() intdeprecated
- func (o *NSCalendarDate) MonthOfYear() intdeprecated
- func (o *NSCalendarDate) SecondOfMinute() intdeprecated
- func (o *NSCalendarDate) SetCalendarFormat(format *NSString)deprecated
- func (o *NSCalendarDate) SetTimeZone(aTimeZone *NSTimeZone)deprecated
- func (o *NSCalendarDate) TimeZone() *NSTimeZonedeprecated
- func (o *NSCalendarDate) YearOfCommonEra() intdeprecated
- func (o *NSCalendarDate) YearsMonthsDaysHoursMinutesSecondsSinceDate(yp *int64, mop *int64, dp *int64, hp *int64, mip *int64, sp *int64, ...)deprecated
- type NSCalendarOptions
- type NSCalendarUnit
- type NSCharacterSet
- func NSCharacterSetAlphanumericCharacterSet() *NSCharacterSet
- func NSCharacterSetCapitalizedLetterCharacterSet() *NSCharacterSet
- func NSCharacterSetCharacterSetWithBitmapRepresentation(data *NSData) *NSCharacterSet
- func NSCharacterSetCharacterSetWithCharactersInString(aString *NSString) *NSCharacterSet
- func NSCharacterSetCharacterSetWithContentsOfFile(fName *NSString) *NSCharacterSet
- func NSCharacterSetCharacterSetWithRange(aRange NSRange) *NSCharacterSet
- func NSCharacterSetControlCharacterSet() *NSCharacterSet
- func NSCharacterSetDecimalDigitCharacterSet() *NSCharacterSet
- func NSCharacterSetDecomposableCharacterSet() *NSCharacterSet
- func NSCharacterSetFromID(id objc.ID) *NSCharacterSet
- func NSCharacterSetIllegalCharacterSet() *NSCharacterSet
- func NSCharacterSetLetterCharacterSet() *NSCharacterSet
- func NSCharacterSetLowercaseLetterCharacterSet() *NSCharacterSet
- func NSCharacterSetNewlineCharacterSet() *NSCharacterSet
- func NSCharacterSetNonBaseCharacterSet() *NSCharacterSet
- func NSCharacterSetPunctuationCharacterSet() *NSCharacterSet
- func NSCharacterSetSymbolCharacterSet() *NSCharacterSet
- func NSCharacterSetURLFragmentAllowedCharacterSet() *NSCharacterSet
- func NSCharacterSetURLHostAllowedCharacterSet() *NSCharacterSet
- func NSCharacterSetURLPasswordAllowedCharacterSet() *NSCharacterSet
- func NSCharacterSetURLPathAllowedCharacterSet() *NSCharacterSet
- func NSCharacterSetURLQueryAllowedCharacterSet() *NSCharacterSet
- func NSCharacterSetURLUserAllowedCharacterSet() *NSCharacterSet
- func NSCharacterSetUppercaseLetterCharacterSet() *NSCharacterSet
- func NSCharacterSetWhitespaceAndNewlineCharacterSet() *NSCharacterSet
- func NSCharacterSetWhitespaceCharacterSet() *NSCharacterSet
- func (o *NSCharacterSet) BitmapRepresentation() *NSData
- func (o *NSCharacterSet) CharacterIsMember(aCharacter uint16) bool
- func (o *NSCharacterSet) HasMemberInPlane(thePlane uint8) bool
- func (o *NSCharacterSet) InitWithCoder(coder *NSCoder) *NSCharacterSet
- func (o *NSCharacterSet) InvertedSet() *NSCharacterSet
- func (o *NSCharacterSet) IsSupersetOfSet(theOtherSet *NSCharacterSet) bool
- func (o *NSCharacterSet) LongCharacterIsMember(theLongChar uint) bool
- type NSClassDescription
- type NSCloneCommand
- type NSCloseCommand
- type NSCoder
- func (o *NSCoder) AllowedClasses() *NSSet[objc.Class]
- func (o *NSCoder) AllowsKeyedCoding() bool
- func (o *NSCoder) ContainsValueForKey(key *NSString) bool
- func (o *NSCoder) DecodeArrayOfObjCTypeCountAt(itemType string, count uint, array unsafe.Pointer)
- func (o *NSCoder) DecodeArrayOfObjectsOfClassForKey(cls objc.Class, key *NSString) *NSArray[objc.ID]
- func (o *NSCoder) DecodeArrayOfObjectsOfClassesForKey(classes *NSSet[objc.Class], key *NSString) *NSArray[objc.ID]
- func (o *NSCoder) DecodeBoolForKey(key *NSString) bool
- func (o *NSCoder) DecodeBytesForKeyMinimumLength(key *NSString, length uint) unsafe.Pointer
- func (o *NSCoder) DecodeBytesForKeyReturnedLength(key *NSString, lengthp *uint) unsafe.Pointer
- func (o *NSCoder) DecodeBytesWithMinimumLength(length uint) unsafe.Pointer
- func (o *NSCoder) DecodeBytesWithReturnedLength(lengthp *uint) unsafe.Pointer
- func (o *NSCoder) DecodeDataObject() *NSData
- func (o *NSCoder) DecodeDictionaryWithKeysOfClassObjectsOfClassForKey(keyCls objc.Class, objectCls objc.Class, key *NSString) *NSDictionary[objc.ID, objc.ID]
- func (o *NSCoder) DecodeDictionaryWithKeysOfClassesObjectsOfClassesForKey(keyClasses *NSSet[objc.Class], objectClasses *NSSet[objc.Class], key *NSString) *NSDictionary[objc.ID, objc.ID]
- func (o *NSCoder) DecodeDoubleForKey(key *NSString) float64
- func (o *NSCoder) DecodeFloatForKey(key *NSString) float32
- func (o *NSCoder) DecodeInt32ForKey(key *NSString) int32
- func (o *NSCoder) DecodeInt64ForKey(key *NSString) int64
- func (o *NSCoder) DecodeIntForKey(key *NSString) int
- func (o *NSCoder) DecodeIntegerForKey(key *NSString) int
- func (o *NSCoder) DecodeNXObject() objc.ID
- func (o *NSCoder) DecodeObject() objc.ID
- func (o *NSCoder) DecodeObjectForKey(key *NSString) objc.ID
- func (o *NSCoder) DecodeObjectOfClassForKey(aClass objc.Class, key *NSString) objc.ID
- func (o *NSCoder) DecodeObjectOfClassesForKey(classes *NSSet[objc.Class], key *NSString) objc.ID
- func (o *NSCoder) DecodePoint() corefoundation.CGPoint
- func (o *NSCoder) DecodePointForKey(key *NSString) corefoundation.CGPoint
- func (o *NSCoder) DecodePropertyList() objc.ID
- func (o *NSCoder) DecodePropertyListForKey(key *NSString) objc.ID
- func (o *NSCoder) DecodeRect() corefoundation.CGRect
- func (o *NSCoder) DecodeRectForKey(key *NSString) corefoundation.CGRect
- func (o *NSCoder) DecodeSize() corefoundation.CGSize
- func (o *NSCoder) DecodeSizeForKey(key *NSString) corefoundation.CGSize
- func (o *NSCoder) DecodeTopLevelObjectAndReturnError() (objc.ID, error)
- func (o *NSCoder) DecodeTopLevelObjectForKeyError(key *NSString) (objc.ID, error)
- func (o *NSCoder) DecodeTopLevelObjectOfClassForKeyError(aClass objc.Class, key *NSString) (objc.ID, error)
- func (o *NSCoder) DecodeTopLevelObjectOfClassesForKeyError(classes *NSSet[objc.Class], key *NSString) (objc.ID, error)
- func (o *NSCoder) DecodeValueOfObjCTypeAt(type_ string, data unsafe.Pointer)
- func (o *NSCoder) DecodeValueOfObjCTypeAtSize(type_ string, data unsafe.Pointer, size uint)
- func (o *NSCoder) DecodingFailurePolicy() NSDecodingFailurePolicy
- func (o *NSCoder) EncodeArrayOfObjCTypeCountAt(type_ string, count uint, array unsafe.Pointer)
- func (o *NSCoder) EncodeBoolForKey(value bool, key *NSString)
- func (o *NSCoder) EncodeBycopyObject(anObject objc.ID)
- func (o *NSCoder) EncodeByrefObject(anObject objc.ID)
- func (o *NSCoder) EncodeBytesLength(byteaddr unsafe.Pointer, length uint)
- func (o *NSCoder) EncodeBytesLengthForKey(bytes_ *uint8, length uint, key *NSString)
- func (o *NSCoder) EncodeConditionalObject(object objc.ID)
- func (o *NSCoder) EncodeConditionalObjectForKey(object objc.ID, key *NSString)
- func (o *NSCoder) EncodeDataObject(data *NSData)
- func (o *NSCoder) EncodeDoubleForKey(value float64, key *NSString)
- func (o *NSCoder) EncodeFloatForKey(value float32, key *NSString)
- func (o *NSCoder) EncodeInt32ForKey(value int32, key *NSString)
- func (o *NSCoder) EncodeInt64ForKey(value int64, key *NSString)
- func (o *NSCoder) EncodeIntForKey(value int, key *NSString)
- func (o *NSCoder) EncodeIntegerForKey(value int, key *NSString)
- func (o *NSCoder) EncodeNXObject(object objc.ID)
- func (o *NSCoder) EncodeObject(object objc.ID)
- func (o *NSCoder) EncodeObjectForKey(object objc.ID, key *NSString)
- func (o *NSCoder) EncodePoint(point corefoundation.CGPoint)
- func (o *NSCoder) EncodePointForKey(point corefoundation.CGPoint, key *NSString)
- func (o *NSCoder) EncodePropertyList(aPropertyList objc.ID)
- func (o *NSCoder) EncodeRect(rect corefoundation.CGRect)
- func (o *NSCoder) EncodeRectForKey(rect corefoundation.CGRect, key *NSString)
- func (o *NSCoder) EncodeRootObject(rootObject objc.ID)
- func (o *NSCoder) EncodeSize(size corefoundation.CGSize)
- func (o *NSCoder) EncodeSizeForKey(size corefoundation.CGSize, key *NSString)
- func (o *NSCoder) EncodeValueOfObjCTypeAt(type_ string, addr unsafe.Pointer)
- func (o *NSCoder) Error() unsafe.Pointer
- func (o *NSCoder) FailWithError(error_ unsafe.Pointer)
- func (o *NSCoder) ObjectZone() unsafe.Pointer
- func (o *NSCoder) RequiresSecureCoding() bool
- func (o *NSCoder) SetObjectZone(zone unsafe.Pointer)
- func (o *NSCoder) SystemVersion() uint
- func (o *NSCoder) VersionForClassName(className *NSString) int
- type NSCoding
- type NSCollectionChangeType
- type NSComparisonPredicate
- func NSComparisonPredicateFromID(id objc.ID) *NSComparisonPredicate
- func NSComparisonPredicatePredicateWithLeftExpressionRightExpressionCustomSelector(lhs *NSExpression, rhs *NSExpression, selector objc.SEL) *NSComparisonPredicate
- func NSComparisonPredicatePredicateWithLeftExpressionRightExpressionModifierTypeOptions(lhs *NSExpression, rhs *NSExpression, modifier NSComparisonPredicateModifier, ...) *NSComparisonPredicate
- func (o *NSComparisonPredicate) ComparisonPredicateModifier() NSComparisonPredicateModifier
- func (o *NSComparisonPredicate) CustomSelector() objc.SEL
- func (o *NSComparisonPredicate) InitWithCoder(coder *NSCoder) *NSComparisonPredicate
- func (o *NSComparisonPredicate) InitWithLeftExpressionRightExpressionCustomSelector(lhs *NSExpression, rhs *NSExpression, selector objc.SEL) *NSComparisonPredicate
- func (o *NSComparisonPredicate) InitWithLeftExpressionRightExpressionModifierTypeOptions(lhs *NSExpression, rhs *NSExpression, modifier NSComparisonPredicateModifier, ...) *NSComparisonPredicate
- func (o *NSComparisonPredicate) LeftExpression() *NSExpression
- func (o *NSComparisonPredicate) Options() NSComparisonPredicateOptions
- func (o *NSComparisonPredicate) PredicateOperatorType() NSPredicateOperatorType
- func (o *NSComparisonPredicate) RightExpression() *NSExpression
- type NSComparisonPredicateModifier
- type NSComparisonPredicateOptions
- type NSComparisonResult
- type NSCompoundPredicate
- func NSCompoundPredicateAndPredicateWithSubpredicates(subpredicates *NSArray[*NSPredicate]) *NSCompoundPredicate
- func NSCompoundPredicateFromID(id objc.ID) *NSCompoundPredicate
- func NSCompoundPredicateNotPredicateWithSubpredicate(predicate *NSPredicate) *NSCompoundPredicate
- func NSCompoundPredicateOrPredicateWithSubpredicates(subpredicates *NSArray[*NSPredicate]) *NSCompoundPredicate
- func (o *NSCompoundPredicate) CompoundPredicateType() NSCompoundPredicateType
- func (o *NSCompoundPredicate) InitWithCoder(coder *NSCoder) *NSCompoundPredicate
- func (o *NSCompoundPredicate) InitWithTypeSubpredicates(type_ NSCompoundPredicateType, subpredicates *NSArray[*NSPredicate]) *NSCompoundPredicate
- func (o *NSCompoundPredicate) Subpredicates() *NSArray[objc.ID]
- type NSCompoundPredicateType
- type NSCondition
- type NSConditionLock
- func (o *NSConditionLock) Condition() int
- func (o *NSConditionLock) InitWithCondition(condition int) *NSConditionLock
- func (o *NSConditionLock) LockBeforeDate(limit *NSDate) bool
- func (o *NSConditionLock) LockWhenCondition(condition int)
- func (o *NSConditionLock) LockWhenConditionBeforeDate(condition int, limit *NSDate) bool
- func (o *NSConditionLock) Name() *NSString
- func (o *NSConditionLock) SetName(name *NSString)
- func (o *NSConditionLock) TryLock() bool
- func (o *NSConditionLock) TryLockWhenCondition(condition int) bool
- func (o *NSConditionLock) UnlockWithCondition(condition int)
- type NSConnection
- func NSConnectionConnectionWithReceivePortSendPort(receivePort *NSPort, sendPort *NSPort) *NSConnection
- func NSConnectionConnectionWithRegisteredNameHost(name *NSString, hostName *NSString) *NSConnection
- func NSConnectionConnectionWithRegisteredNameHostUsingNameServer(name *NSString, hostName *NSString, server *NSPortNameServer) *NSConnection
- func NSConnectionDefaultConnection() *NSConnection
- func NSConnectionFromID(id objc.ID) *NSConnection
- func NSConnectionServiceConnectionWithNameRootObject(name *NSString, root objc.ID) *NSConnection
- func NSConnectionServiceConnectionWithNameRootObjectUsingNameServer(name *NSString, root objc.ID, server *NSPortNameServer) *NSConnection
- func (o *NSConnection) AddRequestMode(rmode *NSString)
- func (o *NSConnection) AddRunLoop(runloop *NSRunLoop)
- func (o *NSConnection) Delegate() NSConnectionDelegate
- func (o *NSConnection) DispatchWithComponents(components *NSArray[objc.ID])
- func (o *NSConnection) EnableMultipleThreads()
- func (o *NSConnection) IndependentConversationQueueing() bool
- func (o *NSConnection) InitWithReceivePortSendPort(receivePort *NSPort, sendPort *NSPort) *NSConnection
- func (o *NSConnection) Invalidate()
- func (o *NSConnection) IsValid() bool
- func (o *NSConnection) LocalObjects() *NSArray[objc.ID]
- func (o *NSConnection) MultipleThreadsEnabled() bool
- func (o *NSConnection) ReceivePort() *NSPort
- func (o *NSConnection) RegisterName(name *NSString) bool
- func (o *NSConnection) RegisterNameWithNameServer(name *NSString, server *NSPortNameServer) bool
- func (o *NSConnection) RemoteObjects() *NSArray[objc.ID]
- func (o *NSConnection) RemoveRequestMode(rmode *NSString)
- func (o *NSConnection) RemoveRunLoop(runloop *NSRunLoop)
- func (o *NSConnection) ReplyTimeout() float64
- func (o *NSConnection) RequestModes() *NSArray[*NSString]
- func (o *NSConnection) RequestTimeout() float64
- func (o *NSConnection) RootObject() objc.ID
- func (o *NSConnection) RootProxy() *NSDistantObject
- func (o *NSConnection) RunInNewThread()
- func (o *NSConnection) SendPort() *NSPort
- func (o *NSConnection) SetDelegate(delegate NSConnectionDelegate)
- func (o *NSConnection) SetIndependentConversationQueueing(independentConversationQueueing bool)
- func (o *NSConnection) SetReplyTimeout(replyTimeout float64)
- func (o *NSConnection) SetRequestTimeout(requestTimeout float64)
- func (o *NSConnection) SetRootObject(rootObject objc.ID)
- func (o *NSConnection) Statistics() *NSDictionary[*NSString, *NSNumber]
- type NSConnectionDelegate
- type NSConstantString
- type NSCopying
- type NSCountedSet
- func (o *NSCountedSet[ObjectType]) CountForObject(object ObjectType) uint
- func (o *NSCountedSet[ObjectType]) InitWithArray(array *NSArray[ObjectType]) *NSCountedSet[ObjectType]
- func (o *NSCountedSet[ObjectType]) InitWithCapacity(numItems uint) *NSCountedSet[ObjectType]
- func (o *NSCountedSet[ObjectType]) InitWithSet(set *NSSet[ObjectType]) *NSCountedSet[ObjectType]
- type NSCreateCommand
- type NSData
- func NSArchiverArchivedDataWithRootObject(rootObject objc.ID) *NSData
- func NSDataData() *NSData
- func NSDataDataWithBytesLength(bytes_ unsafe.Pointer, length uint) *NSData
- func NSDataDataWithBytesNoCopyLength(bytes_ unsafe.Pointer, length uint) *NSData
- func NSDataDataWithBytesNoCopyLengthFreeWhenDone(bytes_ unsafe.Pointer, length uint, b bool) *NSData
- func NSDataDataWithContentsOfFile(path *NSString) *NSData
- func NSDataDataWithContentsOfFileOptionsError(path *NSString, readOptionsMask NSDataReadingOptions) (*NSData, error)
- func NSDataDataWithContentsOfURL(url *NSURL) *NSData
- func NSDataDataWithContentsOfURLOptionsError(url *NSURL, readOptionsMask NSDataReadingOptions) (*NSData, error)
- func NSDataDataWithData(data *NSData) *NSData
- func NSDataFromID(id objc.ID) *NSData
- func NSJSONSerializationDataWithJSONObjectOptionsError(obj objc.ID, opt NSJSONWritingOptions) (*NSData, error)
- func NSKeyedArchiverArchivedDataWithRootObject(rootObject objc.ID) *NSData
- func NSKeyedArchiverArchivedDataWithRootObjectRequiringSecureCodingError(object objc.ID, requiresSecureCoding bool) (*NSData, error)
- func NSNetServiceDataFromTXTRecordDictionary(txtDictionary *NSDictionary[*NSString, *NSData]) *NSData
- func NSPropertyListSerializationDataFromPropertyListFormatErrorDescription(plist objc.ID, format NSPropertyListFormat, errorString *NSString) *NSDatadeprecated
- func NSPropertyListSerializationDataWithPropertyListFormatOptionsError(plist objc.ID, format NSPropertyListFormat, opt uint) (*NSData, error)
- func NSURLBookmarkDataWithContentsOfURLError(bookmarkFileURL *NSURL) (*NSData, error)
- func NSURLConnectionSendSynchronousRequestReturningResponseError(request *NSURLRequest, response *NSURLResponse) (*NSData, error)
- func (o *NSData) Base64EncodedDataWithOptions(options NSDataBase64EncodingOptions) *NSData
- func (o *NSData) Base64EncodedStringWithOptions(options NSDataBase64EncodingOptions) *NSString
- func (o *NSData) Base64Encoding() *NSString
- func (o *NSData) Bytes() unsafe.Pointer
- func (o *NSData) CompressedDataUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (*NSData, error)
- func (o *NSData) DecompressedDataUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (*NSData, error)
- func (o *NSData) EnumerateByteRangesUsing(block objc.Block)
- func (o *NSData) GetBytes(buffer unsafe.Pointer)
- func (o *NSData) GetBytesLength(buffer unsafe.Pointer, length uint)
- func (o *NSData) GetBytesRange(buffer unsafe.Pointer, range_ NSRange)
- func (o *NSData) InitWithBase64EncodedDataOptions(base64Data *NSData, options NSDataBase64DecodingOptions) *NSData
- func (o *NSData) InitWithBase64EncodedStringOptions(base64String *NSString, options NSDataBase64DecodingOptions) *NSData
- func (o *NSData) InitWithBase64Encoding(base64String *NSString) objc.ID
- func (o *NSData) InitWithBytesLength(bytes_ unsafe.Pointer, length uint) *NSData
- func (o *NSData) InitWithBytesNoCopyLength(bytes_ unsafe.Pointer, length uint) *NSData
- func (o *NSData) InitWithBytesNoCopyLengthDeallocator(bytes_ unsafe.Pointer, length uint, deallocator func(unsafe.Pointer, uint)) *NSData
- func (o *NSData) InitWithBytesNoCopyLengthFreeWhenDone(bytes_ unsafe.Pointer, length uint, b bool) *NSData
- func (o *NSData) InitWithContentsOfFile(path *NSString) *NSData
- func (o *NSData) InitWithContentsOfFileOptionsError(path *NSString, readOptionsMask NSDataReadingOptions) (*NSData, error)
- func (o *NSData) InitWithContentsOfMappedFile(path *NSString) objc.ID
- func (o *NSData) InitWithContentsOfURL(url *NSURL) *NSData
- func (o *NSData) InitWithContentsOfURLOptionsError(url *NSURL, readOptionsMask NSDataReadingOptions) (*NSData, error)
- func (o *NSData) InitWithData(data *NSData) *NSData
- func (o *NSData) IsEqualToData(other *NSData) bool
- func (o *NSData) Length() uint
- func (o *NSData) RangeOfDataOptionsRange(dataToFind *NSData, mask NSDataSearchOptions, searchRange NSRange) NSRange
- func (o *NSData) SubdataWithRange(range_ NSRange) *NSData
- func (o *NSData) WriteToFileAtomically(path *NSString, useAuxiliaryFile bool) bool
- func (o *NSData) WriteToFileOptionsError(path *NSString, writeOptionsMask NSDataWritingOptions) (bool, error)
- func (o *NSData) WriteToURLAtomically(url *NSURL, atomically bool) bool
- func (o *NSData) WriteToURLOptionsError(url *NSURL, writeOptionsMask NSDataWritingOptions) (bool, error)
- type NSDataBase64DecodingOptions
- type NSDataBase64EncodingOptions
- type NSDataCompressionAlgorithm
- type NSDataDetector
- type NSDataReadingOptions
- type NSDataSearchOptions
- type NSDataWritingOptions
- type NSDate
- func NSDateDate() *NSDate
- func NSDateDateWithTimeIntervalSince1970(secs float64) *NSDate
- func NSDateDateWithTimeIntervalSinceDate(secsToBeAdded float64, date *NSDate) *NSDate
- func NSDateDateWithTimeIntervalSinceNow(secs float64) *NSDate
- func NSDateDateWithTimeIntervalSinceReferenceDate(ti float64) *NSDate
- func NSDateDistantFuture() *NSDate
- func NSDateDistantPast() *NSDate
- func NSDateFromID(id objc.ID) *NSDate
- func NSDateNow() *NSDate
- func (o *NSDate) AddTimeInterval(seconds float64) objc.ID
- func (o *NSDate) Compare(other *NSDate) NSComparisonResult
- func (o *NSDate) DateByAddingTimeInterval(ti float64) *NSDate
- func (o *NSDate) DateWithCalendarFormatTimeZone(format *NSString, aTimeZone *NSTimeZone) *NSCalendarDate
- func (o *NSDate) DescriptionWithCalendarFormatTimeZoneLocale(format *NSString, aTimeZone *NSTimeZone, locale objc.ID) *NSString
- func (o *NSDate) DescriptionWithLocale(locale objc.ID) *NSString
- func (o *NSDate) EarlierDate(anotherDate *NSDate) *NSDate
- func (o *NSDate) Init() *NSDate
- func (o *NSDate) InitWithCoder(coder *NSCoder) *NSDate
- func (o *NSDate) InitWithString(description *NSString) objc.ID
- func (o *NSDate) InitWithTimeIntervalSince1970(secs float64) *NSDate
- func (o *NSDate) InitWithTimeIntervalSinceDate(secsToBeAdded float64, date *NSDate) *NSDate
- func (o *NSDate) InitWithTimeIntervalSinceNow(secs float64) *NSDate
- func (o *NSDate) InitWithTimeIntervalSinceReferenceDate(ti float64) *NSDate
- func (o *NSDate) IsEqualToDate(otherDate *NSDate) bool
- func (o *NSDate) LaterDate(anotherDate *NSDate) *NSDate
- func (o *NSDate) TimeIntervalSince1970() float64
- func (o *NSDate) TimeIntervalSinceDate(anotherDate *NSDate) float64
- func (o *NSDate) TimeIntervalSinceNow() float64
- func (o *NSDate) TimeIntervalSinceReferenceDate() float64
- type NSDateComponents
- func (o *NSDateComponents) Calendar() *NSCalendar
- func (o *NSDateComponents) Date() *NSDate
- func (o *NSDateComponents) Day() int
- func (o *NSDateComponents) DayOfYear() int
- func (o *NSDateComponents) Era() int
- func (o *NSDateComponents) Hour() int
- func (o *NSDateComponents) IsLeapMonth() bool
- func (o *NSDateComponents) IsRepeatedDay() bool
- func (o *NSDateComponents) IsValidDate() bool
- func (o *NSDateComponents) IsValidDateInCalendar(calendar *NSCalendar) bool
- func (o *NSDateComponents) Minute() int
- func (o *NSDateComponents) Month() int
- func (o *NSDateComponents) Nanosecond() int
- func (o *NSDateComponents) Quarter() int
- func (o *NSDateComponents) Second() int
- func (o *NSDateComponents) SetCalendar(calendar *NSCalendar)
- func (o *NSDateComponents) SetDay(day int)
- func (o *NSDateComponents) SetDayOfYear(dayOfYear int)
- func (o *NSDateComponents) SetEra(era int)
- func (o *NSDateComponents) SetHour(hour int)
- func (o *NSDateComponents) SetLeapMonth(leapMonth bool)
- func (o *NSDateComponents) SetMinute(minute int)
- func (o *NSDateComponents) SetMonth(month int)
- func (o *NSDateComponents) SetNanosecond(nanosecond int)
- func (o *NSDateComponents) SetQuarter(quarter int)
- func (o *NSDateComponents) SetRepeatedDay(repeatedDay bool)
- func (o *NSDateComponents) SetSecond(second int)
- func (o *NSDateComponents) SetTimeZone(timeZone *NSTimeZone)
- func (o *NSDateComponents) SetValueForComponent(value int, unit NSCalendarUnit)
- func (o *NSDateComponents) SetWeek(v int)
- func (o *NSDateComponents) SetWeekOfMonth(weekOfMonth int)
- func (o *NSDateComponents) SetWeekOfYear(weekOfYear int)
- func (o *NSDateComponents) SetWeekday(weekday int)
- func (o *NSDateComponents) SetWeekdayOrdinal(weekdayOrdinal int)
- func (o *NSDateComponents) SetYear(year int)
- func (o *NSDateComponents) SetYearForWeekOfYear(yearForWeekOfYear int)
- func (o *NSDateComponents) TimeZone() *NSTimeZone
- func (o *NSDateComponents) ValueForComponent(unit NSCalendarUnit) int
- func (o *NSDateComponents) Week() int
- func (o *NSDateComponents) WeekOfMonth() int
- func (o *NSDateComponents) WeekOfYear() int
- func (o *NSDateComponents) Weekday() int
- func (o *NSDateComponents) WeekdayOrdinal() int
- func (o *NSDateComponents) Year() int
- func (o *NSDateComponents) YearForWeekOfYear() int
- type NSDateComponentsFormatter
- func (o *NSDateComponentsFormatter) AllowedUnits() NSCalendarUnit
- func (o *NSDateComponentsFormatter) AllowsFractionalUnits() bool
- func (o *NSDateComponentsFormatter) Calendar() *NSCalendar
- func (o *NSDateComponentsFormatter) CollapsesLargestUnit() bool
- func (o *NSDateComponentsFormatter) FormattingContext() NSFormattingContext
- func (o *NSDateComponentsFormatter) IncludesApproximationPhrase() bool
- func (o *NSDateComponentsFormatter) IncludesTimeRemainingPhrase() bool
- func (o *NSDateComponentsFormatter) MaximumUnitCount() int
- func (o *NSDateComponentsFormatter) ReferenceDate() *NSDate
- func (o *NSDateComponentsFormatter) SetAllowedUnits(allowedUnits NSCalendarUnit)
- func (o *NSDateComponentsFormatter) SetAllowsFractionalUnits(allowsFractionalUnits bool)
- func (o *NSDateComponentsFormatter) SetCalendar(calendar *NSCalendar)
- func (o *NSDateComponentsFormatter) SetCollapsesLargestUnit(collapsesLargestUnit bool)
- func (o *NSDateComponentsFormatter) SetFormattingContext(formattingContext NSFormattingContext)
- func (o *NSDateComponentsFormatter) SetIncludesApproximationPhrase(includesApproximationPhrase bool)
- func (o *NSDateComponentsFormatter) SetIncludesTimeRemainingPhrase(includesTimeRemainingPhrase bool)
- func (o *NSDateComponentsFormatter) SetMaximumUnitCount(maximumUnitCount int)
- func (o *NSDateComponentsFormatter) SetReferenceDate(referenceDate *NSDate)
- func (o *NSDateComponentsFormatter) SetUnitsStyle(unitsStyle NSDateComponentsFormatterUnitsStyle)
- func (o *NSDateComponentsFormatter) SetZeroFormattingBehavior(zeroFormattingBehavior NSDateComponentsFormatterZeroFormattingBehavior)
- func (o *NSDateComponentsFormatter) StringFromDateComponents(components *NSDateComponents) *NSString
- func (o *NSDateComponentsFormatter) StringFromDateToDate(startDate *NSDate, endDate *NSDate) *NSString
- func (o *NSDateComponentsFormatter) StringFromTimeInterval(ti float64) *NSString
- func (o *NSDateComponentsFormatter) UnitsStyle() NSDateComponentsFormatterUnitsStyle
- func (o *NSDateComponentsFormatter) ZeroFormattingBehavior() NSDateComponentsFormatterZeroFormattingBehavior
- type NSDateComponentsFormatterUnitsStyle
- type NSDateComponentsFormatterZeroFormattingBehavior
- type NSDateFormatter
- func (o *NSDateFormatter) AMSymbol() *NSString
- func (o *NSDateFormatter) AllowsNaturalLanguage() bool
- func (o *NSDateFormatter) Calendar() *NSCalendar
- func (o *NSDateFormatter) DateFormat() *NSString
- func (o *NSDateFormatter) DateFromString(string_ *NSString) *NSDate
- func (o *NSDateFormatter) DateStyle() NSDateFormatterStyle
- func (o *NSDateFormatter) DefaultDate() *NSDate
- func (o *NSDateFormatter) DoesRelativeDateFormatting() bool
- func (o *NSDateFormatter) EraSymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) FormatterBehavior() NSDateFormatterBehavior
- func (o *NSDateFormatter) FormattingContext() NSFormattingContext
- func (o *NSDateFormatter) GeneratesCalendarDates() bool
- func (o *NSDateFormatter) GetObjectValueForStringRangeError(obj **ObjcObject, string_ *NSString, rangep *NSRange) (bool, error)
- func (o *NSDateFormatter) GregorianStartDate() *NSDate
- func (o *NSDateFormatter) InitWithDateFormatAllowNaturalLanguage(format *NSString, flag bool) objc.ID
- func (o *NSDateFormatter) IsLenient() bool
- func (o *NSDateFormatter) Locale() *NSLocale
- func (o *NSDateFormatter) LongEraSymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) MonthSymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) PMSymbol() *NSString
- func (o *NSDateFormatter) QuarterSymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) SetAMSymbol(aMSymbol *NSString)
- func (o *NSDateFormatter) SetCalendar(calendar *NSCalendar)
- func (o *NSDateFormatter) SetDateFormat(dateFormat *NSString)
- func (o *NSDateFormatter) SetDateStyle(dateStyle NSDateFormatterStyle)
- func (o *NSDateFormatter) SetDefaultDate(defaultDate *NSDate)
- func (o *NSDateFormatter) SetDoesRelativeDateFormatting(doesRelativeDateFormatting bool)
- func (o *NSDateFormatter) SetEraSymbols(eraSymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetFormatterBehavior(formatterBehavior NSDateFormatterBehavior)
- func (o *NSDateFormatter) SetFormattingContext(formattingContext NSFormattingContext)
- func (o *NSDateFormatter) SetGeneratesCalendarDates(generatesCalendarDates bool)
- func (o *NSDateFormatter) SetGregorianStartDate(gregorianStartDate *NSDate)
- func (o *NSDateFormatter) SetLenient(lenient bool)
- func (o *NSDateFormatter) SetLocale(locale *NSLocale)
- func (o *NSDateFormatter) SetLocalizedDateFormatFromTemplate(dateFormatTemplate *NSString)
- func (o *NSDateFormatter) SetLongEraSymbols(longEraSymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetMonthSymbols(monthSymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetPMSymbol(pMSymbol *NSString)
- func (o *NSDateFormatter) SetQuarterSymbols(quarterSymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetShortMonthSymbols(shortMonthSymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetShortQuarterSymbols(shortQuarterSymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetShortStandaloneMonthSymbols(shortStandaloneMonthSymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetShortStandaloneQuarterSymbols(shortStandaloneQuarterSymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetShortStandaloneWeekdaySymbols(shortStandaloneWeekdaySymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetShortWeekdaySymbols(shortWeekdaySymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetStandaloneMonthSymbols(standaloneMonthSymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetStandaloneQuarterSymbols(standaloneQuarterSymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetStandaloneWeekdaySymbols(standaloneWeekdaySymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetTimeStyle(timeStyle NSDateFormatterStyle)
- func (o *NSDateFormatter) SetTimeZone(timeZone *NSTimeZone)
- func (o *NSDateFormatter) SetTwoDigitStartDate(twoDigitStartDate *NSDate)
- func (o *NSDateFormatter) SetVeryShortMonthSymbols(veryShortMonthSymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetVeryShortStandaloneMonthSymbols(veryShortStandaloneMonthSymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetVeryShortStandaloneWeekdaySymbols(veryShortStandaloneWeekdaySymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetVeryShortWeekdaySymbols(veryShortWeekdaySymbols *NSArray[*NSString])
- func (o *NSDateFormatter) SetWeekdaySymbols(weekdaySymbols *NSArray[*NSString])
- func (o *NSDateFormatter) ShortMonthSymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) ShortQuarterSymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) ShortStandaloneMonthSymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) ShortStandaloneQuarterSymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) ShortStandaloneWeekdaySymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) ShortWeekdaySymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) StandaloneMonthSymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) StandaloneQuarterSymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) StandaloneWeekdaySymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) StringFromDate(date *NSDate) *NSString
- func (o *NSDateFormatter) TimeStyle() NSDateFormatterStyle
- func (o *NSDateFormatter) TimeZone() *NSTimeZone
- func (o *NSDateFormatter) TwoDigitStartDate() *NSDate
- func (o *NSDateFormatter) VeryShortMonthSymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) VeryShortStandaloneMonthSymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) VeryShortStandaloneWeekdaySymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) VeryShortWeekdaySymbols() *NSArray[*NSString]
- func (o *NSDateFormatter) WeekdaySymbols() *NSArray[*NSString]
- type NSDateFormatterBehavior
- type NSDateFormatterStyle
- type NSDateInterval
- func (o *NSDateInterval) Compare(dateInterval *NSDateInterval) NSComparisonResult
- func (o *NSDateInterval) ContainsDate(date *NSDate) bool
- func (o *NSDateInterval) Duration() float64
- func (o *NSDateInterval) EndDate() *NSDate
- func (o *NSDateInterval) Init() *NSDateInterval
- func (o *NSDateInterval) InitWithCoder(coder *NSCoder) *NSDateInterval
- func (o *NSDateInterval) InitWithStartDateDuration(startDate *NSDate, duration float64) *NSDateInterval
- func (o *NSDateInterval) InitWithStartDateEndDate(startDate *NSDate, endDate *NSDate) *NSDateInterval
- func (o *NSDateInterval) IntersectionWithDateInterval(dateInterval *NSDateInterval) *NSDateInterval
- func (o *NSDateInterval) IntersectsDateInterval(dateInterval *NSDateInterval) bool
- func (o *NSDateInterval) IsEqualToDateInterval(dateInterval *NSDateInterval) bool
- func (o *NSDateInterval) StartDate() *NSDate
- type NSDateIntervalFormatter
- func (o *NSDateIntervalFormatter) Calendar() *NSCalendar
- func (o *NSDateIntervalFormatter) DateStyle() NSDateIntervalFormatterStyle
- func (o *NSDateIntervalFormatter) DateTemplate() *NSString
- func (o *NSDateIntervalFormatter) Locale() *NSLocale
- func (o *NSDateIntervalFormatter) SetCalendar(calendar *NSCalendar)
- func (o *NSDateIntervalFormatter) SetDateStyle(dateStyle NSDateIntervalFormatterStyle)
- func (o *NSDateIntervalFormatter) SetDateTemplate(dateTemplate *NSString)
- func (o *NSDateIntervalFormatter) SetLocale(locale *NSLocale)
- func (o *NSDateIntervalFormatter) SetTimeStyle(timeStyle NSDateIntervalFormatterStyle)
- func (o *NSDateIntervalFormatter) SetTimeZone(timeZone *NSTimeZone)
- func (o *NSDateIntervalFormatter) StringFromDateInterval(dateInterval *NSDateInterval) *NSString
- func (o *NSDateIntervalFormatter) StringFromDateToDate(fromDate *NSDate, toDate *NSDate) *NSString
- func (o *NSDateIntervalFormatter) TimeStyle() NSDateIntervalFormatterStyle
- func (o *NSDateIntervalFormatter) TimeZone() *NSTimeZone
- type NSDateIntervalFormatterStyle
- type NSDecimal
- type NSDecimalNumber
- func NSDecimalNumberDecimalNumberWithDecimal(dcm NSDecimal) *NSDecimalNumber
- func NSDecimalNumberDecimalNumberWithMantissaExponentIsNegative(mantissa uint64, exponent int16, flag bool) *NSDecimalNumber
- func NSDecimalNumberDecimalNumberWithString(numberValue *NSString) *NSDecimalNumber
- func NSDecimalNumberDecimalNumberWithStringLocale(numberValue *NSString, locale objc.ID) *NSDecimalNumber
- func NSDecimalNumberFromID(id objc.ID) *NSDecimalNumber
- func NSDecimalNumberMaximumDecimalNumber() *NSDecimalNumber
- func NSDecimalNumberMinimumDecimalNumber() *NSDecimalNumber
- func NSDecimalNumberNotANumber() *NSDecimalNumber
- func NSDecimalNumberOne() *NSDecimalNumber
- func NSDecimalNumberZero() *NSDecimalNumber
- func (o *NSDecimalNumber) DecimalNumberByAdding(decimalNumber *NSDecimalNumber) *NSDecimalNumber
- func (o *NSDecimalNumber) DecimalNumberByAddingWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber
- func (o *NSDecimalNumber) DecimalNumberByDividingBy(decimalNumber *NSDecimalNumber) *NSDecimalNumber
- func (o *NSDecimalNumber) DecimalNumberByDividingByWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber
- func (o *NSDecimalNumber) DecimalNumberByMultiplyingBy(decimalNumber *NSDecimalNumber) *NSDecimalNumber
- func (o *NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10(power int16) *NSDecimalNumber
- func (o *NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10WithBehavior(power int16, behavior NSDecimalNumberBehaviors) *NSDecimalNumber
- func (o *NSDecimalNumber) DecimalNumberByMultiplyingByWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber
- func (o *NSDecimalNumber) DecimalNumberByRaisingToPower(power uint) *NSDecimalNumber
- func (o *NSDecimalNumber) DecimalNumberByRaisingToPowerWithBehavior(power uint, behavior NSDecimalNumberBehaviors) *NSDecimalNumber
- func (o *NSDecimalNumber) DecimalNumberByRoundingAccordingToBehavior(behavior NSDecimalNumberBehaviors) *NSDecimalNumber
- func (o *NSDecimalNumber) DecimalNumberBySubtracting(decimalNumber *NSDecimalNumber) *NSDecimalNumber
- func (o *NSDecimalNumber) DecimalNumberBySubtractingWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber
- func (o *NSDecimalNumber) InitWithDecimal(dcm NSDecimal) *NSDecimalNumber
- func (o *NSDecimalNumber) InitWithMantissaExponentIsNegative(mantissa uint64, exponent int16, flag bool) *NSDecimalNumber
- func (o *NSDecimalNumber) InitWithString(numberValue *NSString) *NSDecimalNumber
- func (o *NSDecimalNumber) InitWithStringLocale(numberValue *NSString, locale objc.ID) *NSDecimalNumber
- type NSDecimalNumberBehaviors
- type NSDecimalNumberHandler
- func NSDecimalNumberHandlerDecimalNumberHandlerWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero(roundingMode NSRoundingMode, scale int16, exact bool, overflow bool, ...) *NSDecimalNumberHandler
- func NSDecimalNumberHandlerDefaultDecimalNumberHandler() *NSDecimalNumberHandler
- func NSDecimalNumberHandlerFromID(id objc.ID) *NSDecimalNumberHandler
- type NSDecodingFailurePolicy
- type NSDeleteCommand
- type NSDictionary
- func NSDictionaryDictionary() *NSDictionary[objc.ID, objc.ID]
- func NSDictionaryDictionaryWithContentsOfFile(path *NSString) *NSDictionary[objc.ID, objc.ID]
- func NSDictionaryDictionaryWithContentsOfURL(url *NSURL) *NSDictionary[objc.ID, objc.ID]
- func NSDictionaryDictionaryWithContentsOfURLError(url *NSURL) (*NSDictionary[*NSString, objc.ID], error)
- func NSDictionaryDictionaryWithDictionary(dict *NSDictionary[objc.ID, objc.ID]) *NSDictionary[objc.ID, objc.ID]
- func NSDictionaryDictionaryWithObjectForKey(object objc.ID, key NSCopying) *NSDictionary[objc.ID, objc.ID]
- func NSDictionaryDictionaryWithObjectsForKeys(objects *NSArray[objc.ID], keys *NSArray[NSCopying]) *NSDictionary[objc.ID, objc.ID]
- func NSDictionaryDictionaryWithObjectsForKeysCount(objects unsafe.Pointer, keys NSCopying, cnt uint) *NSDictionary[objc.ID, objc.ID]
- func NSDictionaryFromID[KeyType purego.AnyObject, ObjectType purego.AnyObject](id objc.ID) *NSDictionary[KeyType, ObjectType]
- func NSHTTPCookieRequestHeaderFieldsWithCookies(cookies *NSArray[*NSHTTPCookie]) *NSDictionary[*NSString, *NSString]
- func NSKeyedUnarchiverUnarchivedDictionaryWithKeysOfClassObjectsOfClassFromDataError(keyCls objc.Class, valueCls objc.Class, data *NSData) (*NSDictionary[objc.ID, objc.ID], error)
- func NSKeyedUnarchiverUnarchivedDictionaryWithKeysOfClassesObjectsOfClassesFromDataError(keyClasses *NSSet[objc.Class], valueClasses *NSSet[objc.Class], data *NSData) (*NSDictionary[objc.ID, objc.ID], error)
- func NSLocaleComponentsFromLocaleIdentifier(string_ *NSString) *NSDictionary[*NSString, *NSString]
- func NSNetServiceDictionaryFromTXTRecordData(txtData *NSData) *NSDictionary[*NSString, *NSData]
- func NSTimeZoneAbbreviationDictionary() *NSDictionary[*NSString, *NSString]
- func NSURLResourceValuesForKeysFromBookmarkData(keys *NSArray[*NSString], bookmarkData *NSData) *NSDictionary[*NSString, objc.ID]
- func (o *NSDictionary[KeyType, ObjectType]) AllKeys() *NSArray[KeyType]
- func (o *NSDictionary[KeyType, ObjectType]) AllKeysForObject(anObject ObjectType) *NSArray[KeyType]
- func (o *NSDictionary[KeyType, ObjectType]) AllValues() *NSArray[ObjectType]
- func (o *NSDictionary[KeyType, ObjectType]) Count() uint
- func (o *NSDictionary[KeyType, ObjectType]) CountByEnumeratingWithStateObjectsCount(state *NSFastEnumerationState, buffer unsafe.Pointer, len_ uint) uint
- func (o *NSDictionary[KeyType, ObjectType]) DescriptionInStringsFileFormat() *NSString
- func (o *NSDictionary[KeyType, ObjectType]) DescriptionWithLocale(locale objc.ID) *NSString
- func (o *NSDictionary[KeyType, ObjectType]) DescriptionWithLocaleIndent(locale objc.ID, level uint) *NSString
- func (o *NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsUsing(block objc.Block)
- func (o *NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)
- func (o *NSDictionary[KeyType, ObjectType]) FileCreationDate() *NSDate
- func (o *NSDictionary[KeyType, ObjectType]) FileExtensionHidden() bool
- func (o *NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountID() *NSNumber
- func (o *NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountName() *NSString
- func (o *NSDictionary[KeyType, ObjectType]) FileHFSCreatorCode() uint
- func (o *NSDictionary[KeyType, ObjectType]) FileHFSTypeCode() uint
- func (o *NSDictionary[KeyType, ObjectType]) FileIsAppendOnly() bool
- func (o *NSDictionary[KeyType, ObjectType]) FileIsImmutable() bool
- func (o *NSDictionary[KeyType, ObjectType]) FileModificationDate() *NSDate
- func (o *NSDictionary[KeyType, ObjectType]) FileOwnerAccountID() *NSNumber
- func (o *NSDictionary[KeyType, ObjectType]) FileOwnerAccountName() *NSString
- func (o *NSDictionary[KeyType, ObjectType]) FilePosixPermissions() uint
- func (o *NSDictionary[KeyType, ObjectType]) FileSize() uint64
- func (o *NSDictionary[KeyType, ObjectType]) FileSystemFileNumber() uint
- func (o *NSDictionary[KeyType, ObjectType]) FileSystemNumber() int
- func (o *NSDictionary[KeyType, ObjectType]) FileType() *NSString
- func (o *NSDictionary[KeyType, ObjectType]) GetObjectsAndKeys(objects unsafe.Pointer, keys unsafe.Pointer)
- func (o *NSDictionary[KeyType, ObjectType]) GetObjectsAndKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, count uint)
- func (o *NSDictionary[KeyType, ObjectType]) Init() *NSDictionary[KeyType, ObjectType]
- func (o *NSDictionary[KeyType, ObjectType]) InitWithCoder(coder *NSCoder) *NSDictionary[KeyType, ObjectType]
- func (o *NSDictionary[KeyType, ObjectType]) InitWithContentsOfFile(path *NSString) *NSDictionary[KeyType, ObjectType]
- func (o *NSDictionary[KeyType, ObjectType]) InitWithContentsOfURL(url *NSURL) *NSDictionary[KeyType, ObjectType]
- func (o *NSDictionary[KeyType, ObjectType]) InitWithContentsOfURLError(url *NSURL) (*NSDictionary[*NSString, ObjectType], error)
- func (o *NSDictionary[KeyType, ObjectType]) InitWithDictionary(otherDictionary *NSDictionary[KeyType, ObjectType]) *NSDictionary[KeyType, ObjectType]
- func (o *NSDictionary[KeyType, ObjectType]) InitWithDictionaryCopyItems(otherDictionary *NSDictionary[KeyType, ObjectType], flag bool) *NSDictionary[KeyType, ObjectType]
- func (o *NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeys(objects *NSArray[ObjectType], keys *NSArray[NSCopying]) *NSDictionary[KeyType, ObjectType]
- func (o *NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeysCount(objects unsafe.Pointer, keys NSCopying, cnt uint) *NSDictionary[KeyType, ObjectType]
- func (o *NSDictionary[KeyType, ObjectType]) IsEqualToDictionary(otherDictionary *NSDictionary[KeyType, ObjectType]) bool
- func (o *NSDictionary[KeyType, ObjectType]) KeyEnumerator() *NSEnumerator[KeyType]
- func (o *NSDictionary[KeyType, ObjectType]) KeysOfEntriesPassingTest(predicate objc.Block) *NSSet[KeyType]
- func (o *NSDictionary[KeyType, ObjectType]) KeysOfEntriesWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSSet[KeyType]
- func (o *NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[KeyType]
- func (o *NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingSelector(comparator objc.SEL) *NSArray[KeyType]
- func (o *NSDictionary[KeyType, ObjectType]) KeysSortedByValueWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[KeyType]
- func (o *NSDictionary[KeyType, ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]
- func (o *NSDictionary[KeyType, ObjectType]) ObjectForKey(aKey KeyType) ObjectType
- func (o *NSDictionary[KeyType, ObjectType]) ObjectForKeyedSubscript(key KeyType) ObjectType
- func (o *NSDictionary[KeyType, ObjectType]) ObjectsForKeysNotFoundMarker(keys *NSArray[KeyType], marker ObjectType) *NSArray[ObjectType]
- func (o *NSDictionary[KeyType, ObjectType]) WriteToFileAtomically(path *NSString, useAuxiliaryFile bool) bool
- func (o *NSDictionary[KeyType, ObjectType]) WriteToURLAtomically(url *NSURL, atomically bool) bool
- func (o *NSDictionary[KeyType, ObjectType]) WriteToURLError(url *NSURL) (bool, error)
- type NSDimension
- type NSDirectoryEnumerationOptions
- type NSDirectoryEnumerator
- func (o *NSDirectoryEnumerator[ObjectType]) DirectoryAttributes() *NSDictionary[*NSString, objc.ID]
- func (o *NSDirectoryEnumerator[ObjectType]) FileAttributes() *NSDictionary[*NSString, objc.ID]
- func (o *NSDirectoryEnumerator[ObjectType]) IsEnumeratingDirectoryPostOrder() bool
- func (o *NSDirectoryEnumerator[ObjectType]) Level() uint
- func (o *NSDirectoryEnumerator[ObjectType]) SkipDescendants()
- func (o *NSDirectoryEnumerator[ObjectType]) SkipDescendents()
- type NSDiscardableContent
- type NSDistantObject
- func NSConnectionRootProxyForConnectionWithRegisteredNameHost(name *NSString, hostName *NSString) *NSDistantObject
- func NSConnectionRootProxyForConnectionWithRegisteredNameHostUsingNameServer(name *NSString, hostName *NSString, server *NSPortNameServer) *NSDistantObject
- func NSDistantObjectFromID(id objc.ID) *NSDistantObject
- func (o *NSDistantObject) ConnectionForProxy() *NSConnection
- func (o *NSDistantObject) InitWithCoder(inCoder *NSCoder) *NSDistantObject
- func (o *NSDistantObject) InitWithLocalConnection(target objc.ID, connection *NSConnection) *NSDistantObject
- func (o *NSDistantObject) InitWithTargetConnection(target objc.ID, connection *NSConnection) *NSDistantObject
- func (o *NSDistantObject) SetProtocolForProxy(proto unsafe.Pointer)
- type NSDistantObjectRequest
- type NSDistributedLock
- type NSDistributedNotificationCenter
- func NSDistributedNotificationCenterDefaultCenter() *NSDistributedNotificationCenter
- func NSDistributedNotificationCenterFromID(id objc.ID) *NSDistributedNotificationCenter
- func NSDistributedNotificationCenterNotificationCenterForType(notificationCenterType *NSString) *NSDistributedNotificationCenter
- func (o *NSDistributedNotificationCenter) AddObserverSelectorNameObjectSuspensionBehavior(observer objc.ID, selector objc.SEL, name *NSString, object *NSString, ...)
- func (o *NSDistributedNotificationCenter) PostNotificationNameObjectUserInfoDeliverImmediately(name *NSString, object *NSString, userInfo *NSDictionary[objc.ID, objc.ID], ...)
- func (o *NSDistributedNotificationCenter) PostNotificationNameObjectUserInfoOptions(name *NSString, object *NSString, userInfo *NSDictionary[objc.ID, objc.ID], ...)
- func (o *NSDistributedNotificationCenter) SetSuspended(suspended bool)
- func (o *NSDistributedNotificationCenter) Suspended() bool
- type NSDistributedNotificationOptions
- type NSEdgeInsets
- type NSEnergyFormatter
- func (o *NSEnergyFormatter) IsForFoodEnergyUse() bool
- func (o *NSEnergyFormatter) NumberFormatter() *NSNumberFormatter
- func (o *NSEnergyFormatter) SetForFoodEnergyUse(forFoodEnergyUse bool)
- func (o *NSEnergyFormatter) SetNumberFormatter(numberFormatter *NSNumberFormatter)
- func (o *NSEnergyFormatter) SetUnitStyle(unitStyle NSFormattingUnitStyle)
- func (o *NSEnergyFormatter) StringFromJoules(numberInJoules float64) *NSString
- func (o *NSEnergyFormatter) StringFromValueUnit(value float64, unit NSEnergyFormatterUnit) *NSString
- func (o *NSEnergyFormatter) UnitStringFromJoulesUsedUnit(numberInJoules float64, unitp *NSEnergyFormatterUnit) *NSString
- func (o *NSEnergyFormatter) UnitStringFromValueUnit(value float64, unit NSEnergyFormatterUnit) *NSString
- func (o *NSEnergyFormatter) UnitStyle() NSFormattingUnitStyle
- type NSEnergyFormatterUnit
- type NSEnumerationOptions
- type NSEnumerator
- type NSError
- func (o *NSError) Code() int
- func (o *NSError) Domain() *NSString
- func (o *NSError) HelpAnchor() *NSString
- func (o *NSError) InitWithDomainCodeUserInfo(domain *NSString, code int, dict *NSDictionary[*NSString, objc.ID]) *NSError
- func (o *NSError) LocalizedDescription() *NSString
- func (o *NSError) LocalizedFailureReason() *NSString
- func (o *NSError) LocalizedRecoveryOptions() *NSArray[*NSString]
- func (o *NSError) LocalizedRecoverySuggestion() *NSString
- func (o *NSError) RecoveryAttempter() objc.ID
- func (o *NSError) UnderlyingErrors() *NSArray[objc.ID]
- func (o *NSError) UserInfo() *NSDictionary[*NSString, objc.ID]
- type NSException
- func (o *NSException) CallStackReturnAddresses() *NSArray[*NSNumber]
- func (o *NSException) CallStackSymbols() *NSArray[*NSString]
- func (o *NSException) InitWithNameReasonUserInfo(aName *NSString, aReason *NSString, aUserInfo *NSDictionary[objc.ID, objc.ID]) *NSException
- func (o *NSException) Name() *NSString
- func (o *NSException) Raise()
- func (o *NSException) Reason() *NSString
- func (o *NSException) UserInfo() *NSDictionary[objc.ID, objc.ID]
- type NSExpression
- func NSExpressionExpressionForAggregate(subexpressions *NSArray[*NSExpression]) *NSExpression
- func NSExpressionExpressionForAnyKey() *NSExpression
- func NSExpressionExpressionForBlockArguments(...) *NSExpression
- func NSExpressionExpressionForConditionalTrueExpressionFalseExpression(predicate *NSPredicate, trueExpression *NSExpression, ...) *NSExpression
- func NSExpressionExpressionForConstantValue(obj objc.ID) *NSExpression
- func NSExpressionExpressionForEvaluatedObject() *NSExpression
- func NSExpressionExpressionForFunctionArguments(name *NSString, parameters *NSArray[objc.ID]) *NSExpression
- func NSExpressionExpressionForFunctionSelectorNameArguments(target *NSExpression, name *NSString, parameters *NSArray[objc.ID]) *NSExpression
- func NSExpressionExpressionForIntersectSetWith(left *NSExpression, right *NSExpression) *NSExpression
- func NSExpressionExpressionForKeyPath(keyPath *NSString) *NSExpression
- func NSExpressionExpressionForMinusSetWith(left *NSExpression, right *NSExpression) *NSExpression
- func NSExpressionExpressionForSubqueryUsingIteratorVariablePredicate(expression *NSExpression, variable *NSString, predicate *NSPredicate) *NSExpression
- func NSExpressionExpressionForUnionSetWith(left *NSExpression, right *NSExpression) *NSExpression
- func NSExpressionExpressionForVariable(string_ *NSString) *NSExpression
- func NSExpressionExpressionWithFormat(expressionFormat *NSString) *NSExpression
- func NSExpressionExpressionWithFormatArgumentArray(expressionFormat *NSString, arguments *NSArray[objc.ID]) *NSExpression
- func NSExpressionExpressionWithFormatArguments(expressionFormat *NSString, argList string) *NSExpression
- func NSExpressionFromID(id objc.ID) *NSExpression
- func (o *NSExpression) AllowEvaluation()
- func (o *NSExpression) Arguments() *NSArray[*NSExpression]
- func (o *NSExpression) Collection() objc.ID
- func (o *NSExpression) ConstantValue() objc.ID
- func (o *NSExpression) ExpressionBlock() objc.Block
- func (o *NSExpression) ExpressionType() NSExpressionType
- func (o *NSExpression) ExpressionValueWithObjectContext(object objc.ID, context_ *NSMutableDictionary[objc.ID, objc.ID]) objc.ID
- func (o *NSExpression) FalseExpression() *NSExpression
- func (o *NSExpression) Function() *NSString
- func (o *NSExpression) InitWithCoder(coder *NSCoder) *NSExpression
- func (o *NSExpression) InitWithExpressionType(type_ NSExpressionType) *NSExpression
- func (o *NSExpression) KeyPath() *NSString
- func (o *NSExpression) LeftExpression() *NSExpression
- func (o *NSExpression) Operand() *NSExpression
- func (o *NSExpression) Predicate() *NSPredicate
- func (o *NSExpression) RightExpression() *NSExpression
- func (o *NSExpression) TrueExpression() *NSExpression
- func (o *NSExpression) Variable() *NSString
- type NSExpressionType
- type NSExtensionContext
- func (o *NSExtensionContext) CancelRequestWithError(error_ unsafe.Pointer)
- func (o *NSExtensionContext) CompleteRequestReturningItemsCompletionHandler(items *NSArray[objc.ID], completionHandler func(bool))
- func (o *NSExtensionContext) InputItems() *NSArray[objc.ID]
- func (o *NSExtensionContext) OpenURLCompletionHandler(uRL *NSURL, completionHandler func(bool))
- type NSExtensionItem
- func (o *NSExtensionItem) Attachments() *NSArray[*NSItemProvider]
- func (o *NSExtensionItem) AttributedContentText() *NSAttributedString
- func (o *NSExtensionItem) AttributedTitle() *NSAttributedString
- func (o *NSExtensionItem) SetAttachments(attachments *NSArray[*NSItemProvider])
- func (o *NSExtensionItem) SetAttributedContentText(attributedContentText *NSAttributedString)
- func (o *NSExtensionItem) SetAttributedTitle(attributedTitle *NSAttributedString)
- func (o *NSExtensionItem) SetUserInfo(userInfo *NSDictionary[objc.ID, objc.ID])
- func (o *NSExtensionItem) UserInfo() *NSDictionary[objc.ID, objc.ID]
- type NSExtensionRequestHandling
- type NSFastEnumeration
- type NSFastEnumerationState
- type NSFileAccessIntent
- func NSFileAccessIntentFromID(id objc.ID) *NSFileAccessIntent
- func NSFileAccessIntentReadingIntentWithURLOptions(url *NSURL, options NSFileCoordinatorReadingOptions) *NSFileAccessIntent
- func NSFileAccessIntentWritingIntentWithURLOptions(url *NSURL, options NSFileCoordinatorWritingOptions) *NSFileAccessIntent
- type NSFileCoordinator
- func (o *NSFileCoordinator) Cancel()
- func (o *NSFileCoordinator) CoordinateAccessWithIntentsQueueByAccessor(intents *NSArray[*NSFileAccessIntent], queue *NSOperationQueue, ...)
- func (o *NSFileCoordinator) CoordinateReadingItemAtURLOptionsErrorByAccessor(url *NSURL, options NSFileCoordinatorReadingOptions, outError unsafe.Pointer, ...)
- func (o *NSFileCoordinator) CoordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(readingURL *NSURL, readingOptions NSFileCoordinatorReadingOptions, ...)
- func (o *NSFileCoordinator) CoordinateWritingItemAtURLOptionsErrorByAccessor(url *NSURL, options NSFileCoordinatorWritingOptions, outError unsafe.Pointer, ...)
- func (o *NSFileCoordinator) CoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(url1 *NSURL, options1 NSFileCoordinatorWritingOptions, url2 *NSURL, ...)
- func (o *NSFileCoordinator) InitWithFilePresenter(filePresenterOrNil NSFilePresenter) *NSFileCoordinator
- func (o *NSFileCoordinator) ItemAtURLDidChangeUbiquityAttributes(url *NSURL, attributes *NSSet[*NSString])
- func (o *NSFileCoordinator) ItemAtURLDidMoveToURL(oldURL *NSURL, newURL *NSURL)
- func (o *NSFileCoordinator) ItemAtURLWillMoveToURL(oldURL *NSURL, newURL *NSURL)
- func (o *NSFileCoordinator) PrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor(readingURLs *NSArray[*NSURL], readingOptions NSFileCoordinatorReadingOptions, ...)
- func (o *NSFileCoordinator) PurposeIdentifier() *NSString
- func (o *NSFileCoordinator) SetPurposeIdentifier(purposeIdentifier *NSString)
- type NSFileCoordinatorReadingOptions
- type NSFileCoordinatorWritingOptions
- type NSFileHandle
- func NSFileHandleFileHandleForReadingAtPath(path *NSString) *NSFileHandle
- func NSFileHandleFileHandleForReadingFromURLError(url *NSURL) (*NSFileHandle, error)
- func NSFileHandleFileHandleForUpdatingAtPath(path *NSString) *NSFileHandle
- func NSFileHandleFileHandleForUpdatingURLError(url *NSURL) (*NSFileHandle, error)
- func NSFileHandleFileHandleForWritingAtPath(path *NSString) *NSFileHandle
- func NSFileHandleFileHandleForWritingToURLError(url *NSURL) (*NSFileHandle, error)
- func NSFileHandleFileHandleWithNullDevice() *NSFileHandle
- func NSFileHandleFileHandleWithStandardError() *NSFileHandle
- func NSFileHandleFileHandleWithStandardInput() *NSFileHandle
- func NSFileHandleFileHandleWithStandardOutput() *NSFileHandle
- func NSFileHandleFromID(id objc.ID) *NSFileHandle
- func (o *NSFileHandle) AcceptConnectionInBackgroundAndNotify()
- func (o *NSFileHandle) AcceptConnectionInBackgroundAndNotifyForModes(modes *NSArray[*NSString])
- func (o *NSFileHandle) AvailableData() *NSData
- func (o *NSFileHandle) CloseAndReturnError() (bool, error)
- func (o *NSFileHandle) CloseFile()
- func (o *NSFileHandle) FileDescriptor() int
- func (o *NSFileHandle) GetOffsetError(offsetInFile *uint64) (bool, error)
- func (o *NSFileHandle) InitWithCoder(coder *NSCoder) *NSFileHandle
- func (o *NSFileHandle) InitWithFileDescriptor(fd int) *NSFileHandle
- func (o *NSFileHandle) InitWithFileDescriptorCloseOnDealloc(fd int, closeopt bool) *NSFileHandle
- func (o *NSFileHandle) OffsetInFile() uint64
- func (o *NSFileHandle) ReadDataOfLength(length uint) *NSData
- func (o *NSFileHandle) ReadDataToEndOfFile() *NSData
- func (o *NSFileHandle) ReadDataToEndOfFileAndReturnError() (*NSData, error)
- func (o *NSFileHandle) ReadDataUpToLengthError(length uint) (*NSData, error)
- func (o *NSFileHandle) ReadInBackgroundAndNotify()
- func (o *NSFileHandle) ReadInBackgroundAndNotifyForModes(modes *NSArray[*NSString])deprecated
- func (o *NSFileHandle) ReadToEndOfFileInBackgroundAndNotify()
- func (o *NSFileHandle) ReadToEndOfFileInBackgroundAndNotifyForModes(modes *NSArray[*NSString])
- func (o *NSFileHandle) ReadabilityHandler() objc.Block
- func (o *NSFileHandle) SeekToEndOfFile() uint64
- func (o *NSFileHandle) SeekToEndReturningOffsetError(offsetInFile *uint64) (bool, error)
- func (o *NSFileHandle) SeekToFileOffset(offset uint64)
- func (o *NSFileHandle) SeekToOffsetError(offset uint64) (bool, error)
- func (o *NSFileHandle) SetReadabilityHandler(readabilityHandler func(*NSFileHandle))
- func (o *NSFileHandle) SetWriteabilityHandler(writeabilityHandler func(*NSFileHandle))
- func (o *NSFileHandle) SynchronizeAndReturnError() (bool, error)
- func (o *NSFileHandle) SynchronizeFile()
- func (o *NSFileHandle) TruncateAtOffsetError(offset uint64) (bool, error)
- func (o *NSFileHandle) TruncateFileAtOffset(offset uint64)
- func (o *NSFileHandle) WaitForDataInBackgroundAndNotify()
- func (o *NSFileHandle) WaitForDataInBackgroundAndNotifyForModes(modes *NSArray[*NSString])
- func (o *NSFileHandle) WriteData(data *NSData)
- func (o *NSFileHandle) WriteDataError(data *NSData) (bool, error)
- func (o *NSFileHandle) WriteabilityHandler() objc.Block
- type NSFileManager
- func (o *NSFileManager) AttributesOfFileSystemForPathError(path *NSString) (*NSDictionary[*NSString, objc.ID], error)
- func (o *NSFileManager) AttributesOfItemAtPathError(path *NSString) (*NSDictionary[*NSString, objc.ID], error)
- func (o *NSFileManager) ChangeCurrentDirectoryPath(path *NSString) bool
- func (o *NSFileManager) ChangeFileAttributesAtPath(attributes *NSDictionary[objc.ID, objc.ID], path *NSString) booldeprecated
- func (o *NSFileManager) ComponentsToDisplayForPath(path *NSString) *NSArray[*NSString]
- func (o *NSFileManager) ContainerURLForSecurityApplicationGroupIdentifier(groupIdentifier *NSString) *NSURL
- func (o *NSFileManager) ContentsAtPath(path *NSString) *NSData
- func (o *NSFileManager) ContentsEqualAtPathAndPath(path1 *NSString, path2 *NSString) bool
- func (o *NSFileManager) ContentsOfDirectoryAtPathError(path *NSString) (*NSArray[*NSString], error)
- func (o *NSFileManager) ContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(url *NSURL, keys *NSArray[*NSString], mask NSDirectoryEnumerationOptions) (*NSArray[*NSURL], error)
- func (o *NSFileManager) CopyItemAtPathToPathError(srcPath *NSString, dstPath *NSString) (bool, error)
- func (o *NSFileManager) CopyItemAtURLToURLError(srcURL *NSURL, dstURL *NSURL) (bool, error)
- func (o *NSFileManager) CopyPathToPathHandler(src *NSString, dest *NSString, handler objc.ID) bool
- func (o *NSFileManager) CreateDirectoryAtPathAttributes(path *NSString, attributes *NSDictionary[objc.ID, objc.ID]) booldeprecated
- func (o *NSFileManager) CreateDirectoryAtPathWithIntermediateDirectoriesAttributesError(path *NSString, createIntermediates bool, ...) (bool, error)
- func (o *NSFileManager) CreateDirectoryAtURLWithIntermediateDirectoriesAttributesError(url *NSURL, createIntermediates bool, ...) (bool, error)
- func (o *NSFileManager) CreateFileAtPathContentsAttributes(path *NSString, data *NSData, attr *NSDictionary[*NSString, objc.ID]) bool
- func (o *NSFileManager) CreateSymbolicLinkAtPathPathContent(path *NSString, otherpath *NSString) booldeprecated
- func (o *NSFileManager) CreateSymbolicLinkAtPathWithDestinationPathError(path *NSString, destPath *NSString) (bool, error)
- func (o *NSFileManager) CreateSymbolicLinkAtURLWithDestinationURLError(url *NSURL, destURL *NSURL) (bool, error)
- func (o *NSFileManager) CurrentDirectoryPath() *NSString
- func (o *NSFileManager) Delegate() NSFileManagerDelegate
- func (o *NSFileManager) DestinationOfSymbolicLinkAtPathError(path *NSString) (*NSString, error)
- func (o *NSFileManager) DirectoryContentsAtPath(path *NSString) *NSArray[objc.ID]deprecated
- func (o *NSFileManager) DisplayNameAtPath(path *NSString) *NSString
- func (o *NSFileManager) EnumeratorAtPath(path *NSString) *NSDirectoryEnumerator[*NSString]
- func (o *NSFileManager) EnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler(url *NSURL, keys *NSArray[*NSString], mask NSDirectoryEnumerationOptions, ...) *NSDirectoryEnumerator[*NSURL]
- func (o *NSFileManager) EvictUbiquitousItemAtURLError(url *NSURL) (bool, error)
- func (o *NSFileManager) FetchLatestRemoteVersionOfItemAtURLCompletionHandler(url *NSURL, completionHandler func(*NSFileVersion, unsafe.Pointer))
- func (o *NSFileManager) FileAttributesAtPathTraverseLink(path *NSString, yorn bool) *NSDictionary[objc.ID, objc.ID]deprecated
- func (o *NSFileManager) FileExistsAtPath(path *NSString) bool
- func (o *NSFileManager) FileExistsAtPathIsDirectory(path *NSString, isDirectory *bool) bool
- func (o *NSFileManager) FileSystemAttributesAtPath(path *NSString) *NSDictionary[objc.ID, objc.ID]deprecated
- func (o *NSFileManager) FileSystemRepresentationWithPath(path *NSString) string
- func (o *NSFileManager) GetFileProviderServicesForItemAtURLCompletionHandler(url *NSURL, ...)
- func (o *NSFileManager) GetRelationshipOfDirectoryAtURLToItemAtURLError(outRelationship *NSURLRelationship, directoryURL *NSURL, otherURL *NSURL) (bool, error)
- func (o *NSFileManager) GetRelationshipOfDirectoryInDomainToItemAtURLError(outRelationship *NSURLRelationship, directory NSSearchPathDirectory, ...) (bool, error)
- func (o *NSFileManager) HomeDirectoryForCurrentUser() *NSURL
- func (o *NSFileManager) HomeDirectoryForUser(userName *NSString) *NSURL
- func (o *NSFileManager) IsDeletableFileAtPath(path *NSString) bool
- func (o *NSFileManager) IsExecutableFileAtPath(path *NSString) bool
- func (o *NSFileManager) IsReadableFileAtPath(path *NSString) bool
- func (o *NSFileManager) IsUbiquitousItemAtURL(url *NSURL) bool
- func (o *NSFileManager) IsWritableFileAtPath(path *NSString) bool
- func (o *NSFileManager) LinkItemAtPathToPathError(srcPath *NSString, dstPath *NSString) (bool, error)
- func (o *NSFileManager) LinkItemAtURLToURLError(srcURL *NSURL, dstURL *NSURL) (bool, error)
- func (o *NSFileManager) LinkPathToPathHandler(src *NSString, dest *NSString, handler objc.ID) bool
- func (o *NSFileManager) MountedVolumeURLsIncludingResourceValuesForKeysOptions(propertyKeys *NSArray[*NSString], options NSVolumeEnumerationOptions) *NSArray[*NSURL]
- func (o *NSFileManager) MoveItemAtPathToPathError(srcPath *NSString, dstPath *NSString) (bool, error)
- func (o *NSFileManager) MoveItemAtURLToURLError(srcURL *NSURL, dstURL *NSURL) (bool, error)
- func (o *NSFileManager) MovePathToPathHandler(src *NSString, dest *NSString, handler objc.ID) bool
- func (o *NSFileManager) PathContentOfSymbolicLinkAtPath(path *NSString) *NSStringdeprecated
- func (o *NSFileManager) PauseSyncForUbiquitousItemAtURLCompletionHandler(url *NSURL, completionHandler func(unsafe.Pointer))
- func (o *NSFileManager) RemoveFileAtPathHandler(path *NSString, handler objc.ID) bool
- func (o *NSFileManager) RemoveItemAtPathError(path *NSString) (bool, error)
- func (o *NSFileManager) RemoveItemAtURLError(uRL *NSURL) (bool, error)
- func (o *NSFileManager) ReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError(originalItemURL *NSURL, newItemURL *NSURL, backupItemName *NSString, ...) (bool, error)
- func (o *NSFileManager) ResumeSyncForUbiquitousItemAtURLWithBehaviorCompletionHandler(url *NSURL, behavior NSFileManagerResumeSyncBehavior, ...)
- func (o *NSFileManager) SetAttributesOfItemAtPathError(attributes *NSDictionary[*NSString, objc.ID], path *NSString) (bool, error)
- func (o *NSFileManager) SetDelegate(delegate NSFileManagerDelegate)
- func (o *NSFileManager) SetUbiquitousItemAtURLDestinationURLError(flag bool, url *NSURL, destinationURL *NSURL) (bool, error)
- func (o *NSFileManager) StartDownloadingUbiquitousItemAtURLError(url *NSURL) (bool, error)
- func (o *NSFileManager) StringWithFileSystemRepresentationLength(str string, len_ uint) *NSString
- func (o *NSFileManager) SubpathsAtPath(path *NSString) *NSArray[*NSString]
- func (o *NSFileManager) SubpathsOfDirectoryAtPathError(path *NSString) (*NSArray[*NSString], error)
- func (o *NSFileManager) TemporaryDirectory() *NSURL
- func (o *NSFileManager) TrashItemAtURLResultingItemURLError(url *NSURL, outResultingURL *NSURL) (bool, error)
- func (o *NSFileManager) URLForDirectoryInDomainAppropriateForURLCreateError(directory NSSearchPathDirectory, domain NSSearchPathDomainMask, url *NSURL, ...) (*NSURL, error)
- func (o *NSFileManager) URLForPublishingUbiquitousItemAtURLExpirationDateError(url *NSURL, outDate *NSDate) (*NSURL, error)
- func (o *NSFileManager) URLForUbiquityContainerIdentifier(containerIdentifier *NSString) *NSURL
- func (o *NSFileManager) URLsForDirectoryInDomains(directory NSSearchPathDirectory, domainMask NSSearchPathDomainMask) *NSArray[*NSURL]
- func (o *NSFileManager) UbiquityIdentityToken() objc.ID
- func (o *NSFileManager) UnmountVolumeAtURLOptionsCompletionHandler(url *NSURL, mask NSFileManagerUnmountOptions, ...)
- func (o *NSFileManager) UploadLocalVersionOfUbiquitousItemAtURLWithConflictResolutionPolicyCompletionHandler(url *NSURL, ...)
- type NSFileManagerDelegate
- type NSFileManagerItemReplacementOptions
- type NSFileManagerResumeSyncBehavior
- type NSFileManagerSupportedSyncControls
- type NSFileManagerUnmountOptions
- type NSFileManagerUploadLocalVersionConflictPolicy
- type NSFilePresenter
- type NSFileProviderService
- type NSFileSecurity
- type NSFileVersion
- func NSFileVersionAddVersionOfItemAtURLWithContentsOfURLOptionsError(url *NSURL, contentsURL *NSURL, options NSFileVersionAddingOptions) (*NSFileVersion, error)
- func NSFileVersionCurrentVersionOfItemAtURL(url *NSURL) *NSFileVersion
- func NSFileVersionFromID(id objc.ID) *NSFileVersion
- func NSFileVersionVersionOfItemAtURLForPersistentIdentifier(url *NSURL, persistentIdentifier objc.ID) *NSFileVersion
- func (o *NSFileVersion) HasLocalContents() bool
- func (o *NSFileVersion) HasThumbnail() bool
- func (o *NSFileVersion) IsConflict() bool
- func (o *NSFileVersion) IsDiscardable() bool
- func (o *NSFileVersion) IsResolved() bool
- func (o *NSFileVersion) LocalizedName() *NSString
- func (o *NSFileVersion) LocalizedNameOfSavingComputer() *NSString
- func (o *NSFileVersion) ModificationDate() *NSDate
- func (o *NSFileVersion) OriginatorNameComponents() *NSPersonNameComponents
- func (o *NSFileVersion) PersistentIdentifier() NSCoding
- func (o *NSFileVersion) RemoveAndReturnError() (bool, error)
- func (o *NSFileVersion) ReplaceItemAtURLOptionsError(url *NSURL, options NSFileVersionReplacingOptions) (*NSURL, error)
- func (o *NSFileVersion) SetDiscardable(discardable bool)
- func (o *NSFileVersion) SetResolved(resolved bool)
- func (o *NSFileVersion) URL() *NSURL
- type NSFileVersionAddingOptions
- type NSFileVersionReplacingOptions
- type NSFileWrapper
- func (o *NSFileWrapper) AddFileWithPath(path *NSString) *NSStringdeprecated
- func (o *NSFileWrapper) AddFileWrapper(child *NSFileWrapper) *NSString
- func (o *NSFileWrapper) AddRegularFileWithContentsPreferredFilename(data *NSData, fileName *NSString) *NSString
- func (o *NSFileWrapper) AddSymbolicLinkWithDestinationPreferredFilename(path *NSString, filename *NSString) *NSStringdeprecated
- func (o *NSFileWrapper) FileAttributes() *NSDictionary[*NSString, objc.ID]
- func (o *NSFileWrapper) FileWrappers() *NSDictionary[*NSString, *NSFileWrapper]
- func (o *NSFileWrapper) Filename() *NSString
- func (o *NSFileWrapper) InitDirectoryWithFileWrappers(childrenByPreferredName *NSDictionary[*NSString, *NSFileWrapper]) *NSFileWrapper
- func (o *NSFileWrapper) InitRegularFileWithContents(contents *NSData) *NSFileWrapper
- func (o *NSFileWrapper) InitSymbolicLinkWithDestination(path *NSString) objc.IDdeprecated
- func (o *NSFileWrapper) InitSymbolicLinkWithDestinationURL(url *NSURL) *NSFileWrapper
- func (o *NSFileWrapper) InitWithCoder(inCoder *NSCoder) *NSFileWrapper
- func (o *NSFileWrapper) InitWithPath(path *NSString) objc.IDdeprecated
- func (o *NSFileWrapper) InitWithSerializedRepresentation(serializeRepresentation *NSData) *NSFileWrapper
- func (o *NSFileWrapper) InitWithURLOptionsError(url *NSURL, options NSFileWrapperReadingOptions) (*NSFileWrapper, error)
- func (o *NSFileWrapper) IsDirectory() bool
- func (o *NSFileWrapper) IsRegularFile() bool
- func (o *NSFileWrapper) IsSymbolicLink() bool
- func (o *NSFileWrapper) KeyForFileWrapper(child *NSFileWrapper) *NSString
- func (o *NSFileWrapper) MatchesContentsOfURL(url *NSURL) bool
- func (o *NSFileWrapper) NeedsToBeUpdatedFromPath(path *NSString) booldeprecated
- func (o *NSFileWrapper) PreferredFilename() *NSString
- func (o *NSFileWrapper) ReadFromURLOptionsError(url *NSURL, options NSFileWrapperReadingOptions) (bool, error)
- func (o *NSFileWrapper) RegularFileContents() *NSData
- func (o *NSFileWrapper) RemoveFileWrapper(child *NSFileWrapper)
- func (o *NSFileWrapper) SerializedRepresentation() *NSData
- func (o *NSFileWrapper) SetFileAttributes(fileAttributes *NSDictionary[*NSString, objc.ID])
- func (o *NSFileWrapper) SetFilename(filename *NSString)
- func (o *NSFileWrapper) SetPreferredFilename(preferredFilename *NSString)
- func (o *NSFileWrapper) SymbolicLinkDestination() *NSStringdeprecated
- func (o *NSFileWrapper) SymbolicLinkDestinationURL() *NSURL
- func (o *NSFileWrapper) UpdateFromPath(path *NSString) booldeprecated
- func (o *NSFileWrapper) WriteToFileAtomicallyUpdateFilenames(path *NSString, atomicFlag bool, updateFilenamesFlag bool) booldeprecated
- func (o *NSFileWrapper) WriteToURLOptionsOriginalContentsURLError(url *NSURL, options NSFileWrapperWritingOptions, originalContentsURL *NSURL) (bool, error)
- type NSFileWrapperReadingOptions
- type NSFileWrapperWritingOptions
- type NSFormatter
- func (o *NSFormatter) AttributedStringForObjectValueWithDefaultAttributes(obj objc.ID, attrs *NSDictionary[*NSString, objc.ID]) *NSAttributedString
- func (o *NSFormatter) EditingStringForObjectValue(obj objc.ID) *NSString
- func (o *NSFormatter) GetObjectValueForStringErrorDescription(obj **ObjcObject, string_ *NSString, error_ *NSString) bool
- func (o *NSFormatter) IsPartialStringValidNewEditingStringErrorDescription(partialString *NSString, newString *NSString, error_ *NSString) bool
- func (o *NSFormatter) IsPartialStringValidProposedSelectedRangeOriginalStringOriginalSelectedRangeErrorDescription(partialStringPtr *NSString, proposedSelRangePtr *NSRange, origString *NSString, ...) bool
- func (o *NSFormatter) StringForObjectValue(obj objc.ID) *NSString
- type NSFormattingContext
- type NSFormattingUnitStyle
- type NSGarbageCollector
- func (o *NSGarbageCollector) CollectExhaustively()
- func (o *NSGarbageCollector) CollectIfNeeded()
- func (o *NSGarbageCollector) Disable()
- func (o *NSGarbageCollector) DisableCollectorForPointer(ptr unsafe.Pointer)
- func (o *NSGarbageCollector) Enable()
- func (o *NSGarbageCollector) EnableCollectorForPointer(ptr unsafe.Pointer)
- func (o *NSGarbageCollector) IsCollecting() bool
- func (o *NSGarbageCollector) IsEnabled() bool
- func (o *NSGarbageCollector) Zone() unsafe.Pointer
- type NSGrammaticalCase
- type NSGrammaticalDefiniteness
- type NSGrammaticalDetermination
- type NSGrammaticalGender
- type NSGrammaticalNumber
- type NSGrammaticalPartOfSpeech
- type NSGrammaticalPerson
- type NSGrammaticalPronounType
- type NSHTTPCookie
- func (o *NSHTTPCookie) Comment() *NSString
- func (o *NSHTTPCookie) CommentURL() *NSURL
- func (o *NSHTTPCookie) Domain() *NSString
- func (o *NSHTTPCookie) ExpiresDate() *NSDate
- func (o *NSHTTPCookie) InitWithProperties(properties *NSDictionary[*NSString, objc.ID]) *NSHTTPCookie
- func (o *NSHTTPCookie) IsHTTPOnly() bool
- func (o *NSHTTPCookie) IsSecure() bool
- func (o *NSHTTPCookie) IsSessionOnly() bool
- func (o *NSHTTPCookie) Name() *NSString
- func (o *NSHTTPCookie) Path() *NSString
- func (o *NSHTTPCookie) PortList() *NSArray[*NSNumber]
- func (o *NSHTTPCookie) Properties() *NSDictionary[*NSString, objc.ID]
- func (o *NSHTTPCookie) SameSitePolicy() *NSString
- func (o *NSHTTPCookie) Value() *NSString
- type NSHTTPCookieAcceptPolicy
- type NSHTTPCookieStorage
- func (o *NSHTTPCookieStorage) CookieAcceptPolicy() NSHTTPCookieAcceptPolicy
- func (o *NSHTTPCookieStorage) Cookies() *NSArray[*NSHTTPCookie]
- func (o *NSHTTPCookieStorage) CookiesForURL(uRL *NSURL) *NSArray[*NSHTTPCookie]
- func (o *NSHTTPCookieStorage) DeleteCookie(cookie *NSHTTPCookie)
- func (o *NSHTTPCookieStorage) GetCookiesForTaskCompletionHandler(task *NSURLSessionTask, completionHandler func(*NSArray[*NSHTTPCookie]))
- func (o *NSHTTPCookieStorage) RemoveCookiesSinceDate(date *NSDate)
- func (o *NSHTTPCookieStorage) SetCookie(cookie *NSHTTPCookie)
- func (o *NSHTTPCookieStorage) SetCookieAcceptPolicy(cookieAcceptPolicy NSHTTPCookieAcceptPolicy)
- func (o *NSHTTPCookieStorage) SetCookiesForURLMainDocumentURL(cookies *NSArray[*NSHTTPCookie], uRL *NSURL, mainDocumentURL *NSURL)
- func (o *NSHTTPCookieStorage) SortedCookiesUsingDescriptors(sortOrder *NSArray[*NSSortDescriptor]) *NSArray[*NSHTTPCookie]
- func (o *NSHTTPCookieStorage) StoreCookiesForTask(cookies *NSArray[*NSHTTPCookie], task *NSURLSessionTask)
- type NSHTTPURLResponse
- func (o *NSHTTPURLResponse) AllHeaderFields() *NSDictionary[objc.ID, objc.ID]
- func (o *NSHTTPURLResponse) InitWithURLStatusCodeHTTPVersionHeaderFields(url *NSURL, statusCode int, hTTPVersion *NSString, ...) *NSHTTPURLResponse
- func (o *NSHTTPURLResponse) StatusCode() int
- func (o *NSHTTPURLResponse) ValueForHTTPHeaderField(field *NSString) *NSString
- type NSHashEnumerator
- type NSHashTable
- func NSCopyHashTableWithZone(table *NSHashTable[objc.ID], zone unsafe.Pointer) *NSHashTable[objc.ID]
- func NSCreateHashTable(callBacks NSHashTableCallBacks, capacity uint) *NSHashTable[objc.ID]
- func NSCreateHashTableWithZone(callBacks NSHashTableCallBacks, capacity uint, zone unsafe.Pointer) *NSHashTable[objc.ID]
- func NSHashTableFromID[ObjectType purego.AnyObject](id objc.ID) *NSHashTable[ObjectType]
- func NSHashTableHashTableWithOptions(options NSPointerFunctionsOptions) *NSHashTable[objc.ID]
- func NSHashTableWeakObjectsHashTable() *NSHashTable[objc.ID]
- func (o *NSHashTable[ObjectType]) AddObject(object ObjectType)
- func (o *NSHashTable[ObjectType]) AllObjects() *NSArray[ObjectType]
- func (o *NSHashTable[ObjectType]) AnyObject() ObjectType
- func (o *NSHashTable[ObjectType]) ContainsObject(anObject ObjectType) bool
- func (o *NSHashTable[ObjectType]) Count() uint
- func (o *NSHashTable[ObjectType]) InitWithOptionsCapacity(options NSPointerFunctionsOptions, initialCapacity uint) *NSHashTable[ObjectType]
- func (o *NSHashTable[ObjectType]) InitWithPointerFunctionsCapacity(functions *NSPointerFunctions, initialCapacity uint) *NSHashTable[ObjectType]
- func (o *NSHashTable[ObjectType]) IntersectHashTable(other *NSHashTable[ObjectType])
- func (o *NSHashTable[ObjectType]) IntersectsHashTable(other *NSHashTable[ObjectType]) bool
- func (o *NSHashTable[ObjectType]) IsEqualToHashTable(other *NSHashTable[ObjectType]) bool
- func (o *NSHashTable[ObjectType]) IsSubsetOfHashTable(other *NSHashTable[ObjectType]) bool
- func (o *NSHashTable[ObjectType]) Member(object ObjectType) ObjectType
- func (o *NSHashTable[ObjectType]) MinusHashTable(other *NSHashTable[ObjectType])
- func (o *NSHashTable[ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]
- func (o *NSHashTable[ObjectType]) PointerFunctions() *NSPointerFunctions
- func (o *NSHashTable[ObjectType]) RemoveAllObjects()
- func (o *NSHashTable[ObjectType]) RemoveObject(object ObjectType)
- func (o *NSHashTable[ObjectType]) SetRepresentation() *NSSet[ObjectType]
- func (o *NSHashTable[ObjectType]) UnionHashTable(other *NSHashTable[ObjectType])
- type NSHashTableCallBacks
- func NSIntHashCallBacks() NSHashTableCallBacksdeprecated
- func NSIntegerHashCallBacks() NSHashTableCallBacks
- func NSNonOwnedPointerHashCallBacks() NSHashTableCallBacks
- func NSNonRetainedObjectHashCallBacks() NSHashTableCallBacks
- func NSObjectHashCallBacks() NSHashTableCallBacks
- func NSOwnedObjectIdentityHashCallBacks() NSHashTableCallBacks
- func NSOwnedPointerHashCallBacks() NSHashTableCallBacks
- func NSPointerToStructHashCallBacks() NSHashTableCallBacks
- type NSHost
- type NSISO8601DateFormatOptions
- type NSISO8601DateFormatter
- func (o *NSISO8601DateFormatter) DateFromString(string_ *NSString) *NSDate
- func (o *NSISO8601DateFormatter) FormatOptions() NSISO8601DateFormatOptions
- func (o *NSISO8601DateFormatter) Init() *NSISO8601DateFormatter
- func (o *NSISO8601DateFormatter) SetFormatOptions(formatOptions NSISO8601DateFormatOptions)
- func (o *NSISO8601DateFormatter) SetTimeZone(timeZone *NSTimeZone)
- func (o *NSISO8601DateFormatter) StringFromDate(date *NSDate) *NSString
- func (o *NSISO8601DateFormatter) TimeZone() *NSTimeZone
- type NSIndexPath
- func (o *NSIndexPath) Compare(otherObject *NSIndexPath) NSComparisonResult
- func (o *NSIndexPath) GetIndexes(indexes *uint)
- func (o *NSIndexPath) GetIndexesRange(indexes *uint, positionRange NSRange)
- func (o *NSIndexPath) IndexAtPosition(position uint) uint
- func (o *NSIndexPath) IndexPathByAddingIndex(index uint) *NSIndexPath
- func (o *NSIndexPath) IndexPathByRemovingLastIndex() *NSIndexPath
- func (o *NSIndexPath) InitWithIndex(index uint) *NSIndexPath
- func (o *NSIndexPath) InitWithIndexesLength(indexes *uint, length uint) *NSIndexPath
- func (o *NSIndexPath) Length() uint
- type NSIndexSet
- func (o *NSIndexSet) ContainsIndex(value uint) bool
- func (o *NSIndexSet) ContainsIndexes(indexSet *NSIndexSet) bool
- func (o *NSIndexSet) ContainsIndexesInRange(range_ NSRange) bool
- func (o *NSIndexSet) Count() uint
- func (o *NSIndexSet) CountOfIndexesInRange(range_ NSRange) uint
- func (o *NSIndexSet) EnumerateIndexesInRangeOptionsUsing(range_ NSRange, opts NSEnumerationOptions, block func(uint, *bool))
- func (o *NSIndexSet) EnumerateIndexesUsing(block func(uint, *bool))
- func (o *NSIndexSet) EnumerateIndexesWithOptionsUsing(opts NSEnumerationOptions, block func(uint, *bool))
- func (o *NSIndexSet) EnumerateRangesInRangeOptionsUsing(range_ NSRange, opts NSEnumerationOptions, block objc.Block)
- func (o *NSIndexSet) EnumerateRangesUsing(block objc.Block)
- func (o *NSIndexSet) EnumerateRangesWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)
- func (o *NSIndexSet) FirstIndex() uint
- func (o *NSIndexSet) GetIndexesMaxCountInIndexRange(indexBuffer *uint, bufferSize uint, range_ *NSRange) uint
- func (o *NSIndexSet) IndexGreaterThanIndex(value uint) uint
- func (o *NSIndexSet) IndexGreaterThanOrEqualToIndex(value uint) uint
- func (o *NSIndexSet) IndexInRangeOptionsPassingTest(range_ NSRange, opts NSEnumerationOptions, predicate func(uint, *bool) bool) uint
- func (o *NSIndexSet) IndexLessThanIndex(value uint) uint
- func (o *NSIndexSet) IndexLessThanOrEqualToIndex(value uint) uint
- func (o *NSIndexSet) IndexPassingTest(predicate func(uint, *bool) bool) uint
- func (o *NSIndexSet) IndexWithOptionsPassingTest(opts NSEnumerationOptions, predicate func(uint, *bool) bool) uint
- func (o *NSIndexSet) IndexesInRangeOptionsPassingTest(range_ NSRange, opts NSEnumerationOptions, predicate func(uint, *bool) bool) *NSIndexSet
- func (o *NSIndexSet) IndexesPassingTest(predicate func(uint, *bool) bool) *NSIndexSet
- func (o *NSIndexSet) IndexesWithOptionsPassingTest(opts NSEnumerationOptions, predicate func(uint, *bool) bool) *NSIndexSet
- func (o *NSIndexSet) InitWithIndex(value uint) *NSIndexSet
- func (o *NSIndexSet) InitWithIndexSet(indexSet *NSIndexSet) *NSIndexSet
- func (o *NSIndexSet) InitWithIndexesInRange(range_ NSRange) *NSIndexSet
- func (o *NSIndexSet) IntersectsIndexesInRange(range_ NSRange) bool
- func (o *NSIndexSet) IsEqualToIndexSet(indexSet *NSIndexSet) bool
- func (o *NSIndexSet) LastIndex() uint
- type NSIndexSpecifier
- type NSInflectionRule
- type NSInflectionRuleExplicit
- type NSInlinePresentationIntent
- type NSInputStream
- func (o *NSInputStream) GetBufferLength(buffer *uint8, len_ *uint) bool
- func (o *NSInputStream) HasBytesAvailable() bool
- func (o *NSInputStream) InitWithData(data *NSData) *NSInputStream
- func (o *NSInputStream) InitWithFileAtPath(path *NSString) *NSInputStream
- func (o *NSInputStream) InitWithURL(url *NSURL) *NSInputStream
- func (o *NSInputStream) ReadMaxLength(buffer *uint8, len_ uint) int
- type NSInsertionPosition
- type NSInvocation
- func (o *NSInvocation) ArgumentsRetained() bool
- func (o *NSInvocation) GetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int)
- func (o *NSInvocation) GetReturnValue(retLoc unsafe.Pointer)
- func (o *NSInvocation) Invoke()
- func (o *NSInvocation) InvokeUsingIMP(imp unsafe.Pointer)
- func (o *NSInvocation) InvokeWithTarget(target objc.ID)
- func (o *NSInvocation) MethodSignature() *NSMethodSignature
- func (o *NSInvocation) RetainArguments()
- func (o *NSInvocation) Selector() objc.SEL
- func (o *NSInvocation) SetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int)
- func (o *NSInvocation) SetReturnValue(retLoc unsafe.Pointer)
- func (o *NSInvocation) SetSelector(selector objc.SEL)
- func (o *NSInvocation) SetTarget(target objc.ID)
- func (o *NSInvocation) Target() objc.ID
- type NSInvocationOperation
- func (o *NSInvocationOperation) InitWithInvocation(inv *NSInvocation) *NSInvocationOperation
- func (o *NSInvocationOperation) InitWithTargetSelectorObject(target objc.ID, sel objc.SEL, arg objc.ID) *NSInvocationOperation
- func (o *NSInvocationOperation) Invocation() *NSInvocation
- func (o *NSInvocationOperation) Result() objc.ID
- type NSItemProvider
- func (o *NSItemProvider) CanLoadObjectOfClass(aClass unsafe.Pointer) bool
- func (o *NSItemProvider) HasItemConformingToTypeIdentifier(typeIdentifier *NSString) bool
- func (o *NSItemProvider) HasRepresentationConformingToTypeIdentifierFileOptions(typeIdentifier *NSString, fileOptions NSItemProviderFileOptions) bool
- func (o *NSItemProvider) Init() *NSItemProvider
- func (o *NSItemProvider) InitWithContentsOfURL(fileURL *NSURL) *NSItemProvider
- func (o *NSItemProvider) InitWithItemTypeIdentifier(item NSSecureCoding, typeIdentifier *NSString) *NSItemProvider
- func (o *NSItemProvider) InitWithObject(object NSItemProviderWriting) *NSItemProvider
- func (o *NSItemProvider) LoadDataRepresentationForTypeIdentifierCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSData, unsafe.Pointer)) *NSProgress
- func (o *NSItemProvider) LoadFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSURL, unsafe.Pointer)) *NSProgress
- func (o *NSItemProvider) LoadInPlaceFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSURL, bool, unsafe.Pointer)) *NSProgress
- func (o *NSItemProvider) LoadItemForTypeIdentifierOptionsCompletionHandler(typeIdentifier *NSString, options *NSDictionary[objc.ID, objc.ID], ...)
- func (o *NSItemProvider) LoadObjectOfClassCompletionHandler(aClass unsafe.Pointer, completionHandler func(objc.ID, unsafe.Pointer)) *NSProgress
- func (o *NSItemProvider) LoadPreviewImageWithOptionsCompletionHandler(options *NSDictionary[objc.ID, objc.ID], ...)
- func (o *NSItemProvider) PreviewImageHandler() objc.Block
- func (o *NSItemProvider) RegisterDataRepresentationForTypeIdentifierVisibilityLoadHandler(typeIdentifier *NSString, visibility NSItemProviderRepresentationVisibility, ...)
- func (o *NSItemProvider) RegisterFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler(typeIdentifier *NSString, fileOptions NSItemProviderFileOptions, ...)
- func (o *NSItemProvider) RegisterItemForTypeIdentifierLoadHandler(typeIdentifier *NSString, ...)
- func (o *NSItemProvider) RegisterObjectOfClassVisibilityLoadHandler(aClass unsafe.Pointer, visibility NSItemProviderRepresentationVisibility, ...)
- func (o *NSItemProvider) RegisterObjectVisibility(object NSItemProviderWriting, ...)
- func (o *NSItemProvider) RegisteredTypeIdentifiers() *NSArray[*NSString]
- func (o *NSItemProvider) RegisteredTypeIdentifiersWithFileOptions(fileOptions NSItemProviderFileOptions) *NSArray[*NSString]
- func (o *NSItemProvider) SetPreviewImageHandler(...)
- func (o *NSItemProvider) SetSuggestedName(suggestedName *NSString)
- func (o *NSItemProvider) SuggestedName() *NSString
- type NSItemProviderErrorCode
- type NSItemProviderFileOptions
- type NSItemProviderReading
- type NSItemProviderRepresentationVisibility
- type NSItemProviderWriting
- type NSJSONReadingOptions
- type NSJSONSerialization
- type NSJSONWritingOptions
- type NSKeyValueChange
- type NSKeyValueObservingOptions
- type NSKeyValueSetMutationKind
- type NSKeyValueSharedObservers
- func (o *NSKeyValueSharedObservers) AddSharedObserverForKeyOptionsContext(observer *NSObject, key *NSString, options NSKeyValueObservingOptions, ...)
- func (o *NSKeyValueSharedObservers) InitWithObservableClass(observableClass objc.Class) objc.ID
- func (o *NSKeyValueSharedObservers) Snapshot() *NSKeyValueSharedObserversSnapshot
- type NSKeyValueSharedObserversSnapshot
- type NSKeyedArchiver
- func (o *NSKeyedArchiver) ClassNameForClass(cls objc.Class) *NSString
- func (o *NSKeyedArchiver) Delegate() NSKeyedArchiverDelegatedeprecated
- func (o *NSKeyedArchiver) EncodedData() *NSData
- func (o *NSKeyedArchiver) FinishEncoding()
- func (o *NSKeyedArchiver) Init() *NSKeyedArchiver
- func (o *NSKeyedArchiver) InitForWritingWithMutableData(data *NSMutableData) *NSKeyedArchiver
- func (o *NSKeyedArchiver) InitRequiringSecureCoding(requiresSecureCoding bool) *NSKeyedArchiver
- func (o *NSKeyedArchiver) OutputFormat() NSPropertyListFormat
- func (o *NSKeyedArchiver) SetClassNameForClass(codedName *NSString, cls objc.Class)
- func (o *NSKeyedArchiver) SetDelegate(delegate NSKeyedArchiverDelegate)
- func (o *NSKeyedArchiver) SetOutputFormat(outputFormat NSPropertyListFormat)
- func (o *NSKeyedArchiver) SetRequiresSecureCoding(requiresSecureCoding bool)
- type NSKeyedArchiverDelegate
- type NSKeyedUnarchiver
- func (o *NSKeyedUnarchiver) ClassForClassName(codedName *NSString) objc.Class
- func (o *NSKeyedUnarchiver) Delegate() NSKeyedUnarchiverDelegatedeprecated
- func (o *NSKeyedUnarchiver) FinishDecoding()
- func (o *NSKeyedUnarchiver) Init() *NSKeyedUnarchiver
- func (o *NSKeyedUnarchiver) InitForReadingFromDataError(data *NSData) (*NSKeyedUnarchiver, error)
- func (o *NSKeyedUnarchiver) InitForReadingWithData(data *NSData) *NSKeyedUnarchiver
- func (o *NSKeyedUnarchiver) SetClassForClassName(cls objc.Class, codedName *NSString)
- func (o *NSKeyedUnarchiver) SetDecodingFailurePolicy(decodingFailurePolicy NSDecodingFailurePolicy)
- func (o *NSKeyedUnarchiver) SetDelegate(delegate NSKeyedUnarchiverDelegate)
- func (o *NSKeyedUnarchiver) SetRequiresSecureCoding(requiresSecureCoding bool)
- type NSKeyedUnarchiverDelegate
- type NSLengthFormatter
- func (o *NSLengthFormatter) IsForPersonHeightUse() bool
- func (o *NSLengthFormatter) NumberFormatter() *NSNumberFormatter
- func (o *NSLengthFormatter) SetForPersonHeightUse(forPersonHeightUse bool)
- func (o *NSLengthFormatter) SetNumberFormatter(numberFormatter *NSNumberFormatter)
- func (o *NSLengthFormatter) SetUnitStyle(unitStyle NSFormattingUnitStyle)
- func (o *NSLengthFormatter) StringFromMeters(numberInMeters float64) *NSString
- func (o *NSLengthFormatter) StringFromValueUnit(value float64, unit NSLengthFormatterUnit) *NSString
- func (o *NSLengthFormatter) UnitStringFromMetersUsedUnit(numberInMeters float64, unitp *NSLengthFormatterUnit) *NSString
- func (o *NSLengthFormatter) UnitStringFromValueUnit(value float64, unit NSLengthFormatterUnit) *NSString
- func (o *NSLengthFormatter) UnitStyle() NSFormattingUnitStyle
- type NSLengthFormatterUnit
- type NSLinguisticTagger
- func (o *NSLinguisticTagger) DominantLanguage() *NSStringdeprecated
- func (o *NSLinguisticTagger) EnumerateTagsInRangeSchemeOptionsUsing(range_ NSRange, tagScheme *NSString, opts NSLinguisticTaggerOptions, ...)
- func (o *NSLinguisticTagger) EnumerateTagsInRangeUnitSchemeOptionsUsing(range_ NSRange, unit NSLinguisticTaggerUnit, scheme *NSString, ...)
- func (o *NSLinguisticTagger) InitWithTagSchemesOptions(tagSchemes *NSArray[*NSString], opts uint) *NSLinguisticTagger
- func (o *NSLinguisticTagger) OrthographyAtIndexEffectiveRange(charIndex uint, effectiveRange *NSRange) *NSOrthography
- func (o *NSLinguisticTagger) PossibleTagsAtIndexSchemeTokenRangeSentenceRangeScores(charIndex uint, tagScheme *NSString, tokenRange *NSRange, ...) *NSArray[*NSString]
- func (o *NSLinguisticTagger) SentenceRangeForRange(range_ NSRange) NSRange
- func (o *NSLinguisticTagger) SetOrthographyRange(orthography *NSOrthography, range_ NSRange)
- func (o *NSLinguisticTagger) SetString(string_ *NSString)deprecated
- func (o *NSLinguisticTagger) String() *NSStringdeprecated
- func (o *NSLinguisticTagger) StringEditedInRangeChangeInLength(newRange NSRange, delta int)
- func (o *NSLinguisticTagger) TagAtIndexSchemeTokenRangeSentenceRange(charIndex uint, scheme *NSString, tokenRange *NSRange, sentenceRange *NSRange) *NSString
- func (o *NSLinguisticTagger) TagAtIndexUnitSchemeTokenRange(charIndex uint, unit NSLinguisticTaggerUnit, scheme *NSString, ...) *NSString
- func (o *NSLinguisticTagger) TagSchemes() *NSArray[*NSString]deprecated
- func (o *NSLinguisticTagger) TagsInRangeSchemeOptionsTokenRanges(range_ NSRange, tagScheme *NSString, opts NSLinguisticTaggerOptions, ...) *NSArray[*NSString]
- func (o *NSLinguisticTagger) TagsInRangeUnitSchemeOptionsTokenRanges(range_ NSRange, unit NSLinguisticTaggerUnit, scheme *NSString, ...) *NSArray[*NSString]
- func (o *NSLinguisticTagger) TokenRangeAtIndexUnit(charIndex uint, unit NSLinguisticTaggerUnit) NSRange
- type NSLinguisticTaggerOptions
- type NSLinguisticTaggerUnit
- type NSListFormatter
- func (o *NSListFormatter) ItemFormatter() *NSFormatter
- func (o *NSListFormatter) Locale() *NSLocale
- func (o *NSListFormatter) SetItemFormatter(itemFormatter *NSFormatter)
- func (o *NSListFormatter) SetLocale(locale *NSLocale)
- func (o *NSListFormatter) StringFromItems(items *NSArray[objc.ID]) *NSString
- type NSLocale
- func (o *NSLocale) AlternateQuotationBeginDelimiter() *NSString
- func (o *NSLocale) AlternateQuotationEndDelimiter() *NSString
- func (o *NSLocale) CalendarIdentifier() *NSString
- func (o *NSLocale) CollationIdentifier() *NSString
- func (o *NSLocale) CollatorIdentifier() *NSString
- func (o *NSLocale) CountryCode() *NSStringdeprecated
- func (o *NSLocale) CurrencyCode() *NSString
- func (o *NSLocale) CurrencySymbol() *NSString
- func (o *NSLocale) DecimalSeparator() *NSString
- func (o *NSLocale) DisplayNameForKeyValue(key *NSString, value objc.ID) *NSString
- func (o *NSLocale) ExemplarCharacterSet() *NSCharacterSet
- func (o *NSLocale) GroupingSeparator() *NSString
- func (o *NSLocale) InitWithCoder(coder *NSCoder) *NSLocale
- func (o *NSLocale) InitWithLocaleIdentifier(string_ *NSString) *NSLocale
- func (o *NSLocale) LanguageCode() *NSString
- func (o *NSLocale) LanguageIdentifier() *NSString
- func (o *NSLocale) LocaleIdentifier() *NSString
- func (o *NSLocale) LocalizedStringForCalendarIdentifier(calendarIdentifier *NSString) *NSString
- func (o *NSLocale) LocalizedStringForCollationIdentifier(collationIdentifier *NSString) *NSString
- func (o *NSLocale) LocalizedStringForCollatorIdentifier(collatorIdentifier *NSString) *NSString
- func (o *NSLocale) LocalizedStringForCountryCode(countryCode *NSString) *NSString
- func (o *NSLocale) LocalizedStringForCurrencyCode(currencyCode *NSString) *NSString
- func (o *NSLocale) LocalizedStringForLanguageCode(languageCode *NSString) *NSString
- func (o *NSLocale) LocalizedStringForLocaleIdentifier(localeIdentifier *NSString) *NSString
- func (o *NSLocale) LocalizedStringForScriptCode(scriptCode *NSString) *NSString
- func (o *NSLocale) LocalizedStringForVariantCode(variantCode *NSString) *NSString
- func (o *NSLocale) ObjectForKey(key *NSString) objc.ID
- func (o *NSLocale) QuotationBeginDelimiter() *NSString
- func (o *NSLocale) QuotationEndDelimiter() *NSString
- func (o *NSLocale) RegionCode() *NSString
- func (o *NSLocale) ScriptCode() *NSString
- func (o *NSLocale) UsesMetricSystem() bool
- func (o *NSLocale) VariantCode() *NSString
- type NSLocaleLanguageDirection
- type NSLocalizedNumberFormatRule
- type NSLock
- type NSLocking
- type NSLogicalTest
- type NSMachBootstrapServer
- type NSMachPort
- type NSMachPortDelegate
- type NSMachPortOptions
- type NSMapEnumerator
- type NSMapTable
- func NSMapTableFromID[KeyType purego.AnyObject, ObjectType purego.AnyObject](id objc.ID) *NSMapTable[KeyType, ObjectType]
- func NSMapTableMapTableWithKeyOptionsValueOptions(keyOptions NSPointerFunctionsOptions, valueOptions NSPointerFunctionsOptions) *NSMapTable[objc.ID, objc.ID]
- func NSMapTableStrongToStrongObjectsMapTable() *NSMapTable[objc.ID, objc.ID]
- func NSMapTableStrongToWeakObjectsMapTable() *NSMapTable[objc.ID, objc.ID]
- func NSMapTableWeakToStrongObjectsMapTable() *NSMapTable[objc.ID, objc.ID]
- func NSMapTableWeakToWeakObjectsMapTable() *NSMapTable[objc.ID, objc.ID]
- func (o *NSMapTable[KeyType, ObjectType]) Count() uint
- func (o *NSMapTable[KeyType, ObjectType]) DictionaryRepresentation() *NSDictionary[KeyType, ObjectType]
- func (o *NSMapTable[KeyType, ObjectType]) InitWithKeyOptionsValueOptionsCapacity(keyOptions NSPointerFunctionsOptions, valueOptions NSPointerFunctionsOptions, ...) *NSMapTable[KeyType, ObjectType]
- func (o *NSMapTable[KeyType, ObjectType]) InitWithKeyPointerFunctionsValuePointerFunctionsCapacity(keyFunctions *NSPointerFunctions, valueFunctions *NSPointerFunctions, ...) *NSMapTable[KeyType, ObjectType]
- func (o *NSMapTable[KeyType, ObjectType]) KeyEnumerator() *NSEnumerator[KeyType]
- func (o *NSMapTable[KeyType, ObjectType]) KeyPointerFunctions() *NSPointerFunctions
- func (o *NSMapTable[KeyType, ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]
- func (o *NSMapTable[KeyType, ObjectType]) ObjectForKey(aKey KeyType) ObjectType
- func (o *NSMapTable[KeyType, ObjectType]) RemoveAllObjects()
- func (o *NSMapTable[KeyType, ObjectType]) RemoveObjectForKey(aKey KeyType)
- func (o *NSMapTable[KeyType, ObjectType]) SetObjectForKey(anObject ObjectType, aKey KeyType)
- func (o *NSMapTable[KeyType, ObjectType]) ValuePointerFunctions() *NSPointerFunctions
- type NSMapTableKeyCallBacks
- func NSIntMapKeyCallBacks() NSMapTableKeyCallBacksdeprecated
- func NSIntegerMapKeyCallBacks() NSMapTableKeyCallBacks
- func NSNonOwnedPointerMapKeyCallBacks() NSMapTableKeyCallBacks
- func NSNonOwnedPointerOrNullMapKeyCallBacks() NSMapTableKeyCallBacks
- func NSNonRetainedObjectMapKeyCallBacks() NSMapTableKeyCallBacks
- func NSObjectMapKeyCallBacks() NSMapTableKeyCallBacks
- func NSOwnedPointerMapKeyCallBacks() NSMapTableKeyCallBacks
- type NSMapTableValueCallBacks
- func NSIntMapValueCallBacks() NSMapTableValueCallBacksdeprecated
- func NSIntegerMapValueCallBacks() NSMapTableValueCallBacks
- func NSNonOwnedPointerMapValueCallBacks() NSMapTableValueCallBacks
- func NSNonRetainedObjectMapValueCallBacks() NSMapTableValueCallBacks
- func NSObjectMapValueCallBacks() NSMapTableValueCallBacks
- func NSOwnedPointerMapValueCallBacks() NSMapTableValueCallBacks
- type NSMassFormatter
- func (o *NSMassFormatter) IsForPersonMassUse() bool
- func (o *NSMassFormatter) NumberFormatter() *NSNumberFormatter
- func (o *NSMassFormatter) SetForPersonMassUse(forPersonMassUse bool)
- func (o *NSMassFormatter) SetNumberFormatter(numberFormatter *NSNumberFormatter)
- func (o *NSMassFormatter) SetUnitStyle(unitStyle NSFormattingUnitStyle)
- func (o *NSMassFormatter) StringFromKilograms(numberInKilograms float64) *NSString
- func (o *NSMassFormatter) StringFromValueUnit(value float64, unit NSMassFormatterUnit) *NSString
- func (o *NSMassFormatter) UnitStringFromKilogramsUsedUnit(numberInKilograms float64, unitp *NSMassFormatterUnit) *NSString
- func (o *NSMassFormatter) UnitStringFromValueUnit(value float64, unit NSMassFormatterUnit) *NSString
- func (o *NSMassFormatter) UnitStyle() NSFormattingUnitStyle
- type NSMassFormatterUnit
- type NSMatchingFlags
- type NSMatchingOptions
- type NSMeasurement
- func (o *NSMeasurement[UnitType]) CanBeConvertedToUnit(unit *NSUnit) bool
- func (o *NSMeasurement[UnitType]) DoubleValue() float64
- func (o *NSMeasurement[UnitType]) InitWithDoubleValueUnit(doubleValue float64, unit UnitType) *NSMeasurement[UnitType]
- func (o *NSMeasurement[UnitType]) MeasurementByAddingMeasurement(measurement *NSMeasurement[UnitType]) *NSMeasurement[UnitType]
- func (o *NSMeasurement[UnitType]) MeasurementByConvertingToUnit(unit *NSUnit) *NSMeasurement[objc.ID]
- func (o *NSMeasurement[UnitType]) MeasurementBySubtractingMeasurement(measurement *NSMeasurement[UnitType]) *NSMeasurement[UnitType]
- func (o *NSMeasurement[UnitType]) Unit() UnitType
- type NSMeasurementFormatter
- func (o *NSMeasurementFormatter) Locale() *NSLocale
- func (o *NSMeasurementFormatter) NumberFormatter() *NSNumberFormatter
- func (o *NSMeasurementFormatter) SetLocale(locale *NSLocale)
- func (o *NSMeasurementFormatter) SetNumberFormatter(numberFormatter *NSNumberFormatter)
- func (o *NSMeasurementFormatter) SetUnitOptions(unitOptions NSMeasurementFormatterUnitOptions)
- func (o *NSMeasurementFormatter) SetUnitStyle(unitStyle NSFormattingUnitStyle)
- func (o *NSMeasurementFormatter) StringFromMeasurement(measurement *NSMeasurement[objc.ID]) *NSString
- func (o *NSMeasurementFormatter) StringFromUnit(unit *NSUnit) *NSString
- func (o *NSMeasurementFormatter) UnitOptions() NSMeasurementFormatterUnitOptions
- func (o *NSMeasurementFormatter) UnitStyle() NSFormattingUnitStyle
- type NSMeasurementFormatterUnitOptions
- type NSMessagePort
- type NSMessagePortNameServer
- type NSMetadataItem
- type NSMetadataQuery
- func (o *NSMetadataQuery) Delegate() NSMetadataQueryDelegate
- func (o *NSMetadataQuery) DisableUpdates()
- func (o *NSMetadataQuery) EnableUpdates()
- func (o *NSMetadataQuery) EnumerateResultsUsing(block func(objc.ID, uint, *bool))
- func (o *NSMetadataQuery) EnumerateResultsWithOptionsUsing(opts NSEnumerationOptions, block func(objc.ID, uint, *bool))
- func (o *NSMetadataQuery) GroupedResults() *NSArray[*NSMetadataQueryResultGroup]
- func (o *NSMetadataQuery) GroupingAttributes() *NSArray[*NSString]
- func (o *NSMetadataQuery) IndexOfResult(result objc.ID) uint
- func (o *NSMetadataQuery) IsGathering() bool
- func (o *NSMetadataQuery) IsStarted() bool
- func (o *NSMetadataQuery) IsStopped() bool
- func (o *NSMetadataQuery) NotificationBatchingInterval() float64
- func (o *NSMetadataQuery) OperationQueue() *NSOperationQueue
- func (o *NSMetadataQuery) Predicate() *NSPredicate
- func (o *NSMetadataQuery) ResultAtIndex(idx uint) objc.ID
- func (o *NSMetadataQuery) ResultCount() uint
- func (o *NSMetadataQuery) Results() *NSArray[objc.ID]
- func (o *NSMetadataQuery) SearchItems() *NSArray[objc.ID]
- func (o *NSMetadataQuery) SearchScopes() *NSArray[objc.ID]
- func (o *NSMetadataQuery) SetDelegate(delegate NSMetadataQueryDelegate)
- func (o *NSMetadataQuery) SetGroupingAttributes(groupingAttributes *NSArray[*NSString])
- func (o *NSMetadataQuery) SetNotificationBatchingInterval(notificationBatchingInterval float64)
- func (o *NSMetadataQuery) SetOperationQueue(operationQueue *NSOperationQueue)
- func (o *NSMetadataQuery) SetPredicate(predicate *NSPredicate)
- func (o *NSMetadataQuery) SetSearchItems(searchItems *NSArray[objc.ID])
- func (o *NSMetadataQuery) SetSearchScopes(searchScopes *NSArray[objc.ID])
- func (o *NSMetadataQuery) SetSortDescriptors(sortDescriptors *NSArray[*NSSortDescriptor])
- func (o *NSMetadataQuery) SetValueListAttributes(valueListAttributes *NSArray[*NSString])
- func (o *NSMetadataQuery) SortDescriptors() *NSArray[*NSSortDescriptor]
- func (o *NSMetadataQuery) StartQuery() bool
- func (o *NSMetadataQuery) StopQuery()
- func (o *NSMetadataQuery) ValueListAttributes() *NSArray[*NSString]
- func (o *NSMetadataQuery) ValueLists() *NSDictionary[*NSString, objc.ID]
- func (o *NSMetadataQuery) ValueOfAttributeForResultAtIndex(attrName *NSString, idx uint) objc.ID
- type NSMetadataQueryAttributeValueTuple
- type NSMetadataQueryDelegate
- type NSMetadataQueryResultGroup
- func (o *NSMetadataQueryResultGroup) Attribute() *NSString
- func (o *NSMetadataQueryResultGroup) ResultAtIndex(idx uint) objc.ID
- func (o *NSMetadataQueryResultGroup) ResultCount() uint
- func (o *NSMetadataQueryResultGroup) Results() *NSArray[objc.ID]
- func (o *NSMetadataQueryResultGroup) Subgroups() *NSArray[*NSMetadataQueryResultGroup]
- func (o *NSMetadataQueryResultGroup) Value() objc.ID
- type NSMethodSignature
- func (o *NSMethodSignature) FrameLength() uint
- func (o *NSMethodSignature) GetArgumentTypeAtIndex(idx uint) string
- func (o *NSMethodSignature) IsOneway() bool
- func (o *NSMethodSignature) MethodReturnLength() uint
- func (o *NSMethodSignature) MethodReturnType() unsafe.Pointer
- func (o *NSMethodSignature) NumberOfArguments() uint
- type NSMorphology
- func (o *NSMorphology) CustomPronounForLanguage(language *NSString) *NSMorphologyCustomPronoun
- func (o *NSMorphology) Definiteness() NSGrammaticalDefiniteness
- func (o *NSMorphology) Determination() NSGrammaticalDetermination
- func (o *NSMorphology) GrammaticalCase() NSGrammaticalCase
- func (o *NSMorphology) GrammaticalGender() NSGrammaticalGender
- func (o *NSMorphology) GrammaticalPerson() NSGrammaticalPerson
- func (o *NSMorphology) IsUnspecified() bool
- func (o *NSMorphology) Number() NSGrammaticalNumber
- func (o *NSMorphology) PartOfSpeech() NSGrammaticalPartOfSpeech
- func (o *NSMorphology) PronounType() NSGrammaticalPronounType
- func (o *NSMorphology) SetCustomPronounForLanguageError(features *NSMorphologyCustomPronoun, language *NSString) (bool, error)
- func (o *NSMorphology) SetDefiniteness(definiteness NSGrammaticalDefiniteness)
- func (o *NSMorphology) SetDetermination(determination NSGrammaticalDetermination)
- func (o *NSMorphology) SetGrammaticalCase(grammaticalCase NSGrammaticalCase)
- func (o *NSMorphology) SetGrammaticalGender(grammaticalGender NSGrammaticalGender)
- func (o *NSMorphology) SetGrammaticalPerson(grammaticalPerson NSGrammaticalPerson)
- func (o *NSMorphology) SetNumber(number NSGrammaticalNumber)
- func (o *NSMorphology) SetPartOfSpeech(partOfSpeech NSGrammaticalPartOfSpeech)
- func (o *NSMorphology) SetPronounType(pronounType NSGrammaticalPronounType)
- type NSMorphologyCustomPronoun
- func (o *NSMorphologyCustomPronoun) ObjectForm() *NSString
- func (o *NSMorphologyCustomPronoun) PossessiveAdjectiveForm() *NSString
- func (o *NSMorphologyCustomPronoun) PossessiveForm() *NSString
- func (o *NSMorphologyCustomPronoun) ReflexiveForm() *NSString
- func (o *NSMorphologyCustomPronoun) SetObjectForm(objectForm *NSString)
- func (o *NSMorphologyCustomPronoun) SetPossessiveAdjectiveForm(possessiveAdjectiveForm *NSString)
- func (o *NSMorphologyCustomPronoun) SetPossessiveForm(possessiveForm *NSString)
- func (o *NSMorphologyCustomPronoun) SetReflexiveForm(reflexiveForm *NSString)
- func (o *NSMorphologyCustomPronoun) SetSubjectForm(subjectForm *NSString)
- func (o *NSMorphologyCustomPronoun) SubjectForm() *NSString
- type NSMorphologyPronoun
- func (o *NSMorphologyPronoun) DependentMorphology() *NSMorphology
- func (o *NSMorphologyPronoun) InitWithPronounMorphologyDependentMorphology(pronoun *NSString, morphology *NSMorphology, dependentMorphology *NSMorphology) *NSMorphologyPronoun
- func (o *NSMorphologyPronoun) Morphology() *NSMorphology
- func (o *NSMorphologyPronoun) Pronoun() *NSString
- type NSMoveCommand
- type NSMutableArray
- func NSMutableArrayArrayWithCapacity(numItems uint) *NSMutableArray[objc.ID]
- func NSMutableArrayArrayWithContentsOfFile(path *NSString) *NSMutableArray[objc.ID]
- func NSMutableArrayArrayWithContentsOfURL(url *NSURL) *NSMutableArray[objc.ID]
- func NSMutableArrayFromID[ObjectType purego.AnyObject](id objc.ID) *NSMutableArray[ObjectType]
- func (o *NSMutableArray[ObjectType]) AddObject(anObject ObjectType)
- func (o *NSMutableArray[ObjectType]) AddObjectsFromArray(otherArray *NSArray[ObjectType])
- func (o *NSMutableArray[ObjectType]) ApplyDifference(difference *NSOrderedCollectionDifference[ObjectType])
- func (o *NSMutableArray[ObjectType]) ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, idx2 uint)
- func (o *NSMutableArray[ObjectType]) FilterUsingPredicate(predicate *NSPredicate)
- func (o *NSMutableArray[ObjectType]) Init() *NSMutableArray[ObjectType]
- func (o *NSMutableArray[ObjectType]) InitWithCapacity(numItems uint) *NSMutableArray[ObjectType]
- func (o *NSMutableArray[ObjectType]) InitWithCoder(coder *NSCoder) *NSMutableArray[ObjectType]
- func (o *NSMutableArray[ObjectType]) InitWithContentsOfFile(path *NSString) *NSMutableArray[ObjectType]
- func (o *NSMutableArray[ObjectType]) InitWithContentsOfURL(url *NSURL) *NSMutableArray[ObjectType]
- func (o *NSMutableArray[ObjectType]) InsertObjectAtIndex(anObject ObjectType, index uint)
- func (o *NSMutableArray[ObjectType]) InsertObjectsAtIndexes(objects *NSArray[ObjectType], indexes *NSIndexSet)
- func (o *NSMutableArray[ObjectType]) RemoveAllObjects()
- func (o *NSMutableArray[ObjectType]) RemoveLastObject()
- func (o *NSMutableArray[ObjectType]) RemoveObject(anObject ObjectType)
- func (o *NSMutableArray[ObjectType]) RemoveObjectAtIndex(index uint)
- func (o *NSMutableArray[ObjectType]) RemoveObjectIdenticalTo(anObject ObjectType)
- func (o *NSMutableArray[ObjectType]) RemoveObjectIdenticalToInRange(anObject ObjectType, range_ NSRange)
- func (o *NSMutableArray[ObjectType]) RemoveObjectInRange(anObject ObjectType, range_ NSRange)
- func (o *NSMutableArray[ObjectType]) RemoveObjectsAtIndexes(indexes *NSIndexSet)
- func (o *NSMutableArray[ObjectType]) RemoveObjectsFromIndicesNumIndices(indices *uint, cnt uint)
- func (o *NSMutableArray[ObjectType]) RemoveObjectsInArray(otherArray *NSArray[ObjectType])
- func (o *NSMutableArray[ObjectType]) RemoveObjectsInRange(range_ NSRange)
- func (o *NSMutableArray[ObjectType]) ReplaceObjectAtIndexWithObject(index uint, anObject ObjectType)
- func (o *NSMutableArray[ObjectType]) ReplaceObjectsAtIndexesWithObjects(indexes *NSIndexSet, objects *NSArray[ObjectType])
- func (o *NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArray(range_ NSRange, otherArray *NSArray[ObjectType])
- func (o *NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArrayRange(range_ NSRange, otherArray *NSArray[ObjectType], otherRange NSRange)
- func (o *NSMutableArray[ObjectType]) SetArray(otherArray *NSArray[ObjectType])
- func (o *NSMutableArray[ObjectType]) SetObjectAtIndexedSubscript(obj ObjectType, idx uint)
- func (o *NSMutableArray[ObjectType]) SortUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult)
- func (o *NSMutableArray[ObjectType]) SortUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor])
- func (o *NSMutableArray[ObjectType]) SortUsingFunctionContext(compare unsafe.Pointer, context_ unsafe.Pointer)
- func (o *NSMutableArray[ObjectType]) SortUsingSelector(comparator objc.SEL)
- func (o *NSMutableArray[ObjectType]) SortWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult)
- type NSMutableAttributedString
- func (o *NSMutableAttributedString) AddAttributeValueRange(name *NSString, value objc.ID, range_ NSRange)
- func (o *NSMutableAttributedString) AddAttributesRange(attrs *NSDictionary[*NSString, objc.ID], range_ NSRange)
- func (o *NSMutableAttributedString) AppendAttributedString(attrString *NSAttributedString)
- func (o *NSMutableAttributedString) AppendLocalizedFormat(format *NSAttributedString)
- func (o *NSMutableAttributedString) BeginEditing()
- func (o *NSMutableAttributedString) DeleteCharactersInRange(range_ NSRange)
- func (o *NSMutableAttributedString) EndEditing()
- func (o *NSMutableAttributedString) InsertAttributedStringAtIndex(attrString *NSAttributedString, loc uint)
- func (o *NSMutableAttributedString) MutableString() *NSMutableString
- func (o *NSMutableAttributedString) RemoveAttributeRange(name *NSString, range_ NSRange)
- func (o *NSMutableAttributedString) ReplaceCharactersInRangeWithAttributedString(range_ NSRange, attrString *NSAttributedString)
- func (o *NSMutableAttributedString) ReplaceCharactersInRangeWithString(range_ NSRange, str *NSString)
- func (o *NSMutableAttributedString) SetAttributedString(attrString *NSAttributedString)
- func (o *NSMutableAttributedString) SetAttributesRange(attrs *NSDictionary[*NSString, objc.ID], range_ NSRange)
- type NSMutableCharacterSet
- func NSMutableCharacterSetAlphanumericCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetCapitalizedLetterCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetCharacterSetWithBitmapRepresentation(data *NSData) *NSMutableCharacterSet
- func NSMutableCharacterSetCharacterSetWithCharactersInString(aString *NSString) *NSMutableCharacterSet
- func NSMutableCharacterSetCharacterSetWithContentsOfFile(fName *NSString) *NSMutableCharacterSet
- func NSMutableCharacterSetCharacterSetWithRange(aRange NSRange) *NSMutableCharacterSet
- func NSMutableCharacterSetControlCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetDecimalDigitCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetDecomposableCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetFromID(id objc.ID) *NSMutableCharacterSet
- func NSMutableCharacterSetIllegalCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetLetterCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetLowercaseLetterCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetNewlineCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetNonBaseCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetPunctuationCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetSymbolCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetUppercaseLetterCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetWhitespaceAndNewlineCharacterSet() *NSMutableCharacterSet
- func NSMutableCharacterSetWhitespaceCharacterSet() *NSMutableCharacterSet
- func (o *NSMutableCharacterSet) AddCharactersInRange(aRange NSRange)
- func (o *NSMutableCharacterSet) AddCharactersInString(aString *NSString)
- func (o *NSMutableCharacterSet) FormIntersectionWithCharacterSet(otherSet *NSCharacterSet)
- func (o *NSMutableCharacterSet) FormUnionWithCharacterSet(otherSet *NSCharacterSet)
- func (o *NSMutableCharacterSet) Invert()
- func (o *NSMutableCharacterSet) RemoveCharactersInRange(aRange NSRange)
- func (o *NSMutableCharacterSet) RemoveCharactersInString(aString *NSString)
- type NSMutableCopying
- type NSMutableData
- func (o *NSMutableData) AppendBytesLength(bytes_ unsafe.Pointer, length uint)
- func (o *NSMutableData) AppendData(other *NSData)
- func (o *NSMutableData) CompressUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (bool, error)
- func (o *NSMutableData) DecompressUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (bool, error)
- func (o *NSMutableData) IncreaseLengthBy(extraLength uint)
- func (o *NSMutableData) InitWithCapacity(capacity uint) *NSMutableData
- func (o *NSMutableData) InitWithLength(length uint) *NSMutableData
- func (o *NSMutableData) MutableBytes() unsafe.Pointer
- func (o *NSMutableData) ReplaceBytesInRangeWithBytes(range_ NSRange, bytes_ unsafe.Pointer)
- func (o *NSMutableData) ReplaceBytesInRangeWithBytesLength(range_ NSRange, replacementBytes unsafe.Pointer, replacementLength uint)
- func (o *NSMutableData) ResetBytesInRange(range_ NSRange)
- func (o *NSMutableData) SetData(data *NSData)
- func (o *NSMutableData) SetLength(length uint)
- type NSMutableDictionary
- func NSMutableDictionaryDictionaryWithCapacity(numItems uint) *NSMutableDictionary[objc.ID, objc.ID]
- func NSMutableDictionaryDictionaryWithContentsOfFile(path *NSString) *NSMutableDictionary[objc.ID, objc.ID]
- func NSMutableDictionaryDictionaryWithContentsOfURL(url *NSURL) *NSMutableDictionary[objc.ID, objc.ID]
- func NSMutableDictionaryDictionaryWithSharedKeySet(keyset objc.ID) *NSMutableDictionary[objc.ID, objc.ID]
- func NSMutableDictionaryFromID[KeyType purego.AnyObject, ObjectType purego.AnyObject](id objc.ID) *NSMutableDictionary[KeyType, ObjectType]
- func (o *NSMutableDictionary[KeyType, ObjectType]) AddEntriesFromDictionary(otherDictionary *NSDictionary[KeyType, ObjectType])
- func (o *NSMutableDictionary[KeyType, ObjectType]) Init() *NSMutableDictionary[KeyType, ObjectType]
- func (o *NSMutableDictionary[KeyType, ObjectType]) InitWithCapacity(numItems uint) *NSMutableDictionary[KeyType, ObjectType]
- func (o *NSMutableDictionary[KeyType, ObjectType]) InitWithCoder(coder *NSCoder) *NSMutableDictionary[KeyType, ObjectType]
- func (o *NSMutableDictionary[KeyType, ObjectType]) InitWithContentsOfFile(path *NSString) *NSMutableDictionary[KeyType, ObjectType]
- func (o *NSMutableDictionary[KeyType, ObjectType]) InitWithContentsOfURL(url *NSURL) *NSMutableDictionary[KeyType, ObjectType]
- func (o *NSMutableDictionary[KeyType, ObjectType]) RemoveAllObjects()
- func (o *NSMutableDictionary[KeyType, ObjectType]) RemoveObjectForKey(aKey KeyType)
- func (o *NSMutableDictionary[KeyType, ObjectType]) RemoveObjectsForKeys(keyArray *NSArray[KeyType])
- func (o *NSMutableDictionary[KeyType, ObjectType]) SetDictionary(otherDictionary *NSDictionary[KeyType, ObjectType])
- func (o *NSMutableDictionary[KeyType, ObjectType]) SetObjectForKey(anObject ObjectType, aKey NSCopying)
- func (o *NSMutableDictionary[KeyType, ObjectType]) SetObjectForKeyedSubscript(obj ObjectType, key NSCopying)
- type NSMutableIndexSet
- func (o *NSMutableIndexSet) AddIndex(value uint)
- func (o *NSMutableIndexSet) AddIndexes(indexSet *NSIndexSet)
- func (o *NSMutableIndexSet) AddIndexesInRange(range_ NSRange)
- func (o *NSMutableIndexSet) RemoveAllIndexes()
- func (o *NSMutableIndexSet) RemoveIndex(value uint)
- func (o *NSMutableIndexSet) RemoveIndexes(indexSet *NSIndexSet)
- func (o *NSMutableIndexSet) RemoveIndexesInRange(range_ NSRange)
- func (o *NSMutableIndexSet) ShiftIndexesStartingAtIndexBy(index uint, delta int)
- type NSMutableOrderedSet
- func (o *NSMutableOrderedSet[ObjectType]) AddObject(object ObjectType)
- func (o *NSMutableOrderedSet[ObjectType]) AddObjectsCount(objects unsafe.Pointer, count uint)
- func (o *NSMutableOrderedSet[ObjectType]) AddObjectsFromArray(array *NSArray[ObjectType])
- func (o *NSMutableOrderedSet[ObjectType]) ApplyDifference(difference *NSOrderedCollectionDifference[ObjectType])
- func (o *NSMutableOrderedSet[ObjectType]) ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, idx2 uint)
- func (o *NSMutableOrderedSet[ObjectType]) FilterUsingPredicate(p *NSPredicate)
- func (o *NSMutableOrderedSet[ObjectType]) Init() *NSMutableOrderedSet[ObjectType]
- func (o *NSMutableOrderedSet[ObjectType]) InitWithCapacity(numItems uint) *NSMutableOrderedSet[ObjectType]
- func (o *NSMutableOrderedSet[ObjectType]) InitWithCoder(coder *NSCoder) *NSMutableOrderedSet[ObjectType]
- func (o *NSMutableOrderedSet[ObjectType]) InsertObjectAtIndex(object ObjectType, idx uint)
- func (o *NSMutableOrderedSet[ObjectType]) InsertObjectsAtIndexes(objects *NSArray[ObjectType], indexes *NSIndexSet)
- func (o *NSMutableOrderedSet[ObjectType]) IntersectOrderedSet(other *NSOrderedSet[ObjectType])
- func (o *NSMutableOrderedSet[ObjectType]) IntersectSet(other *NSSet[ObjectType])
- func (o *NSMutableOrderedSet[ObjectType]) MinusOrderedSet(other *NSOrderedSet[ObjectType])
- func (o *NSMutableOrderedSet[ObjectType]) MinusSet(other *NSSet[ObjectType])
- func (o *NSMutableOrderedSet[ObjectType]) MoveObjectsAtIndexesToIndex(indexes *NSIndexSet, idx uint)
- func (o *NSMutableOrderedSet[ObjectType]) RemoveAllObjects()
- func (o *NSMutableOrderedSet[ObjectType]) RemoveObject(object ObjectType)
- func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectAtIndex(idx uint)
- func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectsAtIndexes(indexes *NSIndexSet)
- func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectsInArray(array *NSArray[ObjectType])
- func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectsInRange(range_ NSRange)
- func (o *NSMutableOrderedSet[ObjectType]) ReplaceObjectAtIndexWithObject(idx uint, object ObjectType)
- func (o *NSMutableOrderedSet[ObjectType]) ReplaceObjectsAtIndexesWithObjects(indexes *NSIndexSet, objects *NSArray[ObjectType])
- func (o *NSMutableOrderedSet[ObjectType]) ReplaceObjectsInRangeWithObjectsCount(range_ NSRange, objects unsafe.Pointer, count uint)
- func (o *NSMutableOrderedSet[ObjectType]) SetObjectAtIndex(obj ObjectType, idx uint)
- func (o *NSMutableOrderedSet[ObjectType]) SetObjectAtIndexedSubscript(obj ObjectType, idx uint)
- func (o *NSMutableOrderedSet[ObjectType]) SortRangeOptionsUsingComparator(range_ NSRange, opts NSSortOptions, ...)
- func (o *NSMutableOrderedSet[ObjectType]) SortUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult)
- func (o *NSMutableOrderedSet[ObjectType]) SortUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor])
- func (o *NSMutableOrderedSet[ObjectType]) SortWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult)
- func (o *NSMutableOrderedSet[ObjectType]) UnionOrderedSet(other *NSOrderedSet[ObjectType])
- func (o *NSMutableOrderedSet[ObjectType]) UnionSet(other *NSSet[ObjectType])
- type NSMutableSet
- func (o *NSMutableSet[ObjectType]) AddObject(object ObjectType)
- func (o *NSMutableSet[ObjectType]) AddObjectsFromArray(array *NSArray[ObjectType])
- func (o *NSMutableSet[ObjectType]) FilterUsingPredicate(predicate *NSPredicate)
- func (o *NSMutableSet[ObjectType]) Init() *NSMutableSet[ObjectType]
- func (o *NSMutableSet[ObjectType]) InitWithCapacity(numItems uint) *NSMutableSet[ObjectType]
- func (o *NSMutableSet[ObjectType]) InitWithCoder(coder *NSCoder) *NSMutableSet[ObjectType]
- func (o *NSMutableSet[ObjectType]) IntersectSet(otherSet *NSSet[ObjectType])
- func (o *NSMutableSet[ObjectType]) MinusSet(otherSet *NSSet[ObjectType])
- func (o *NSMutableSet[ObjectType]) RemoveAllObjects()
- func (o *NSMutableSet[ObjectType]) RemoveObject(object ObjectType)
- func (o *NSMutableSet[ObjectType]) SetSet(otherSet *NSSet[ObjectType])
- func (o *NSMutableSet[ObjectType]) UnionSet(otherSet *NSSet[ObjectType])
- type NSMutableString
- func (o *NSMutableString) AppendFormat(format *NSString)
- func (o *NSMutableString) AppendString(aString *NSString)
- func (o *NSMutableString) ApplyTransformReverseRangeUpdatedRange(transform *NSString, reverse bool, range_ NSRange, resultingRange *NSRange) bool
- func (o *NSMutableString) DeleteCharactersInRange(range_ NSRange)
- func (o *NSMutableString) InitWithCapacity(capacity uint) *NSMutableString
- func (o *NSMutableString) InsertStringAtIndex(aString *NSString, loc uint)
- func (o *NSMutableString) ReplaceCharactersInRangeWithString(range_ NSRange, aString *NSString)
- func (o *NSMutableString) ReplaceOccurrencesOfStringWithStringOptionsRange(target *NSString, replacement *NSString, options NSStringCompareOptions, ...) uint
- func (o *NSMutableString) SetString(aString *NSString)
- type NSMutableURLRequest
- func (o *NSMutableURLRequest) AddValueForHTTPHeaderField(value *NSString, field *NSString)
- func (o *NSMutableURLRequest) SetAllHTTPHeaderFields(allHTTPHeaderFields *NSDictionary[*NSString, *NSString])
- func (o *NSMutableURLRequest) SetAllowsCellularAccess(allowsCellularAccess bool)
- func (o *NSMutableURLRequest) SetAllowsConstrainedNetworkAccess(allowsConstrainedNetworkAccess bool)
- func (o *NSMutableURLRequest) SetAllowsExpensiveNetworkAccess(allowsExpensiveNetworkAccess bool)
- func (o *NSMutableURLRequest) SetAllowsPersistentDNS(allowsPersistentDNS bool)
- func (o *NSMutableURLRequest) SetAllowsUltraConstrainedNetworkAccess(allowsUltraConstrainedNetworkAccess bool)
- func (o *NSMutableURLRequest) SetAssumesHTTP3Capable(assumesHTTP3Capable bool)
- func (o *NSMutableURLRequest) SetAttribution(attribution NSURLRequestAttribution)
- func (o *NSMutableURLRequest) SetCachePolicy(cachePolicy NSURLRequestCachePolicy)
- func (o *NSMutableURLRequest) SetCookiePartitionIdentifier(cookiePartitionIdentifier *NSString)
- func (o *NSMutableURLRequest) SetHTTPBody(hTTPBody *NSData)
- func (o *NSMutableURLRequest) SetHTTPBodyStream(hTTPBodyStream *NSInputStream)
- func (o *NSMutableURLRequest) SetHTTPMethod(hTTPMethod *NSString)
- func (o *NSMutableURLRequest) SetHTTPShouldHandleCookies(hTTPShouldHandleCookies bool)
- func (o *NSMutableURLRequest) SetHTTPShouldUsePipelining(hTTPShouldUsePipelining bool)deprecated
- func (o *NSMutableURLRequest) SetMainDocumentURL(mainDocumentURL *NSURL)
- func (o *NSMutableURLRequest) SetNetworkServiceType(networkServiceType NSURLRequestNetworkServiceType)
- func (o *NSMutableURLRequest) SetRequiresDNSSECValidation(requiresDNSSECValidation bool)
- func (o *NSMutableURLRequest) SetTimeoutInterval(timeoutInterval float64)
- func (o *NSMutableURLRequest) SetURL(uRL *NSURL)
- func (o *NSMutableURLRequest) SetValueForHTTPHeaderField(value *NSString, field *NSString)
- type NSNameSpecifier
- func (o *NSNameSpecifier) InitWithCoder(inCoder *NSCoder) *NSNameSpecifier
- func (o *NSNameSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyName(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, ...) *NSNameSpecifier
- func (o *NSNameSpecifier) Name() *NSString
- func (o *NSNameSpecifier) SetName(name *NSString)
- type NSNetService
- func (o *NSNetService) Addresses() *NSArray[*NSData]
- func (o *NSNetService) Delegate() NSNetServiceDelegate
- func (o *NSNetService) Domain() *NSString
- func (o *NSNetService) GetInputStreamOutputStream(inputStream *NSInputStream, outputStream *NSOutputStream) bool
- func (o *NSNetService) HostName() *NSString
- func (o *NSNetService) IncludesPeerToPeer() bool
- func (o *NSNetService) InitWithDomainTypeName(domain *NSString, type_ *NSString, name *NSString) *NSNetService
- func (o *NSNetService) InitWithDomainTypeNamePort(domain *NSString, type_ *NSString, name *NSString, port int) *NSNetService
- func (o *NSNetService) Name() *NSString
- func (o *NSNetService) Port() int
- func (o *NSNetService) Publish()
- func (o *NSNetService) PublishWithOptions(options NSNetServiceOptions)
- func (o *NSNetService) RemoveFromRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
- func (o *NSNetService) Resolve()deprecated
- func (o *NSNetService) ResolveWithTimeout(timeout float64)
- func (o *NSNetService) ScheduleInRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
- func (o *NSNetService) SetDelegate(delegate NSNetServiceDelegate)
- func (o *NSNetService) SetIncludesPeerToPeer(includesPeerToPeer bool)
- func (o *NSNetService) SetTXTRecordData(recordData *NSData) bool
- func (o *NSNetService) StartMonitoring()
- func (o *NSNetService) Stop()deprecated
- func (o *NSNetService) StopMonitoring()
- func (o *NSNetService) TXTRecordData() *NSData
- func (o *NSNetService) Type() *NSString
- type NSNetServiceBrowser
- func (o *NSNetServiceBrowser) Delegate() NSNetServiceBrowserDelegate
- func (o *NSNetServiceBrowser) IncludesPeerToPeer() bool
- func (o *NSNetServiceBrowser) Init() *NSNetServiceBrowser
- func (o *NSNetServiceBrowser) RemoveFromRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
- func (o *NSNetServiceBrowser) ScheduleInRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
- func (o *NSNetServiceBrowser) SearchForBrowsableDomains()
- func (o *NSNetServiceBrowser) SearchForRegistrationDomains()
- func (o *NSNetServiceBrowser) SearchForServicesOfTypeInDomain(type_ *NSString, domainString *NSString)
- func (o *NSNetServiceBrowser) SetDelegate(delegate NSNetServiceBrowserDelegate)
- func (o *NSNetServiceBrowser) SetIncludesPeerToPeer(includesPeerToPeer bool)
- func (o *NSNetServiceBrowser) Stop()
- type NSNetServiceBrowserDelegate
- type NSNetServiceDelegate
- type NSNetServiceOptions
- type NSNetServicesError
- type NSNotification
- func (o *NSNotification) InitWithCoder(coder *NSCoder) *NSNotification
- func (o *NSNotification) InitWithNameObjectUserInfo(name *NSString, object objc.ID, userInfo *NSDictionary[objc.ID, objc.ID]) *NSNotification
- func (o *NSNotification) Name() *NSString
- func (o *NSNotification) Object() objc.ID
- func (o *NSNotification) UserInfo() *NSDictionary[objc.ID, objc.ID]
- type NSNotificationCenter
- func (o *NSNotificationCenter) AddObserverForNameObjectQueueUsing(name *NSString, obj objc.ID, queue *NSOperationQueue, ...) NSObjectProtocol
- func (o *NSNotificationCenter) AddObserverSelectorNameObject(observer objc.ID, aSelector objc.SEL, aName *NSString, anObject objc.ID)
- func (o *NSNotificationCenter) PostNotification(notification *NSNotification)
- func (o *NSNotificationCenter) PostNotificationNameObject(aName *NSString, anObject objc.ID)
- func (o *NSNotificationCenter) PostNotificationNameObjectUserInfo(aName *NSString, anObject objc.ID, aUserInfo *NSDictionary[objc.ID, objc.ID])
- func (o *NSNotificationCenter) RemoveObserver(observer objc.ID)
- func (o *NSNotificationCenter) RemoveObserverNameObject(observer objc.ID, aName *NSString, anObject objc.ID)
- type NSNotificationCoalescing
- type NSNotificationQueue
- func (o *NSNotificationQueue) DequeueNotificationsMatchingCoalesceMask(notification *NSNotification, coalesceMask uint)
- func (o *NSNotificationQueue) EnqueueNotificationPostingStyle(notification *NSNotification, postingStyle NSPostingStyle)
- func (o *NSNotificationQueue) EnqueueNotificationPostingStyleCoalesceMaskForModes(notification *NSNotification, postingStyle NSPostingStyle, ...)
- func (o *NSNotificationQueue) InitWithNotificationCenter(notificationCenter *NSNotificationCenter) *NSNotificationQueue
- type NSNotificationSuspensionBehavior
- type NSNull
- type NSNumber
- func NSNumberFromID(id objc.ID) *NSNumber
- func NSNumberNumberWithBool(value bool) *NSNumber
- func NSNumberNumberWithChar(value int8) *NSNumber
- func NSNumberNumberWithDouble(value float64) *NSNumber
- func NSNumberNumberWithFloat(value float32) *NSNumber
- func NSNumberNumberWithInt(value int) *NSNumber
- func NSNumberNumberWithInteger(value int) *NSNumber
- func NSNumberNumberWithLong(value int) *NSNumber
- func NSNumberNumberWithLongLong(value int64) *NSNumber
- func NSNumberNumberWithShort(value int16) *NSNumber
- func NSNumberNumberWithUnsignedChar(value uint8) *NSNumber
- func NSNumberNumberWithUnsignedInt(value uint) *NSNumber
- func NSNumberNumberWithUnsignedInteger(value uint) *NSNumber
- func NSNumberNumberWithUnsignedLong(value uint) *NSNumber
- func NSNumberNumberWithUnsignedLongLong(value uint64) *NSNumber
- func NSNumberNumberWithUnsignedShort(value uint16) *NSNumber
- func (o *NSNumber) BoolValue() bool
- func (o *NSNumber) CharValue() int8
- func (o *NSNumber) Compare(otherNumber *NSNumber) NSComparisonResult
- func (o *NSNumber) DecimalValue() NSDecimal
- func (o *NSNumber) DescriptionWithLocale(locale objc.ID) *NSString
- func (o *NSNumber) DoubleValue() float64
- func (o *NSNumber) FloatValue() float32
- func (o *NSNumber) InitWithBool(value bool) *NSNumber
- func (o *NSNumber) InitWithChar(value int8) *NSNumber
- func (o *NSNumber) InitWithCoder(coder *NSCoder) *NSNumber
- func (o *NSNumber) InitWithDouble(value float64) *NSNumber
- func (o *NSNumber) InitWithFloat(value float32) *NSNumber
- func (o *NSNumber) InitWithInt(value int) *NSNumber
- func (o *NSNumber) InitWithInteger(value int) *NSNumber
- func (o *NSNumber) InitWithLong(value int) *NSNumber
- func (o *NSNumber) InitWithLongLong(value int64) *NSNumber
- func (o *NSNumber) InitWithShort(value int16) *NSNumber
- func (o *NSNumber) InitWithUnsignedChar(value uint8) *NSNumber
- func (o *NSNumber) InitWithUnsignedInt(value uint) *NSNumber
- func (o *NSNumber) InitWithUnsignedInteger(value uint) *NSNumber
- func (o *NSNumber) InitWithUnsignedLong(value uint) *NSNumber
- func (o *NSNumber) InitWithUnsignedLongLong(value uint64) *NSNumber
- func (o *NSNumber) InitWithUnsignedShort(value uint16) *NSNumber
- func (o *NSNumber) IntValue() int
- func (o *NSNumber) IntegerValue() int
- func (o *NSNumber) IsEqualToNumber(number *NSNumber) bool
- func (o *NSNumber) LongLongValue() int64
- func (o *NSNumber) LongValue() int
- func (o *NSNumber) ShortValue() int16
- func (o *NSNumber) StringValue() *NSString
- func (o *NSNumber) UnsignedCharValue() uint8
- func (o *NSNumber) UnsignedIntValue() uint
- func (o *NSNumber) UnsignedIntegerValue() uint
- func (o *NSNumber) UnsignedLongLongValue() uint64
- func (o *NSNumber) UnsignedLongValue() uint
- func (o *NSNumber) UnsignedShortValue() uint16
- type NSNumberFormatter
- func (o *NSNumberFormatter) AllowsFloats() bool
- func (o *NSNumberFormatter) AlwaysShowsDecimalSeparator() bool
- func (o *NSNumberFormatter) AttributedStringForNil() *NSAttributedString
- func (o *NSNumberFormatter) AttributedStringForNotANumber() *NSAttributedString
- func (o *NSNumberFormatter) AttributedStringForZero() *NSAttributedString
- func (o *NSNumberFormatter) CurrencyCode() *NSString
- func (o *NSNumberFormatter) CurrencyDecimalSeparator() *NSString
- func (o *NSNumberFormatter) CurrencyGroupingSeparator() *NSString
- func (o *NSNumberFormatter) CurrencySymbol() *NSString
- func (o *NSNumberFormatter) DecimalSeparator() *NSString
- func (o *NSNumberFormatter) ExponentSymbol() *NSString
- func (o *NSNumberFormatter) Format() *NSString
- func (o *NSNumberFormatter) FormatWidth() uint
- func (o *NSNumberFormatter) FormatterBehavior() NSNumberFormatterBehavior
- func (o *NSNumberFormatter) FormattingContext() NSFormattingContext
- func (o *NSNumberFormatter) GeneratesDecimalNumbers() bool
- func (o *NSNumberFormatter) GetObjectValueForStringRangeError(obj **ObjcObject, string_ *NSString, rangep *NSRange) (bool, error)
- func (o *NSNumberFormatter) GroupingSeparator() *NSString
- func (o *NSNumberFormatter) GroupingSize() uint
- func (o *NSNumberFormatter) HasThousandSeparators() bool
- func (o *NSNumberFormatter) InternationalCurrencySymbol() *NSString
- func (o *NSNumberFormatter) IsLenient() bool
- func (o *NSNumberFormatter) IsPartialStringValidationEnabled() bool
- func (o *NSNumberFormatter) Locale() *NSLocale
- func (o *NSNumberFormatter) LocalizesFormat() bool
- func (o *NSNumberFormatter) Maximum() *NSNumber
- func (o *NSNumberFormatter) MaximumFractionDigits() uint
- func (o *NSNumberFormatter) MaximumIntegerDigits() uint
- func (o *NSNumberFormatter) MaximumSignificantDigits() uint
- func (o *NSNumberFormatter) Minimum() *NSNumber
- func (o *NSNumberFormatter) MinimumFractionDigits() uint
- func (o *NSNumberFormatter) MinimumGroupingDigits() int
- func (o *NSNumberFormatter) MinimumIntegerDigits() uint
- func (o *NSNumberFormatter) MinimumSignificantDigits() uint
- func (o *NSNumberFormatter) MinusSign() *NSString
- func (o *NSNumberFormatter) Multiplier() *NSNumber
- func (o *NSNumberFormatter) NegativeFormat() *NSString
- func (o *NSNumberFormatter) NegativeInfinitySymbol() *NSString
- func (o *NSNumberFormatter) NegativePrefix() *NSString
- func (o *NSNumberFormatter) NegativeSuffix() *NSString
- func (o *NSNumberFormatter) NilSymbol() *NSString
- func (o *NSNumberFormatter) NotANumberSymbol() *NSString
- func (o *NSNumberFormatter) NumberFromString(string_ *NSString) *NSNumber
- func (o *NSNumberFormatter) NumberStyle() NSNumberFormatterStyle
- func (o *NSNumberFormatter) PaddingCharacter() *NSString
- func (o *NSNumberFormatter) PaddingPosition() NSNumberFormatterPadPosition
- func (o *NSNumberFormatter) PerMillSymbol() *NSString
- func (o *NSNumberFormatter) PercentSymbol() *NSString
- func (o *NSNumberFormatter) PlusSign() *NSString
- func (o *NSNumberFormatter) PositiveFormat() *NSString
- func (o *NSNumberFormatter) PositiveInfinitySymbol() *NSString
- func (o *NSNumberFormatter) PositivePrefix() *NSString
- func (o *NSNumberFormatter) PositiveSuffix() *NSString
- func (o *NSNumberFormatter) RoundingBehavior() *NSDecimalNumberHandler
- func (o *NSNumberFormatter) RoundingIncrement() *NSNumber
- func (o *NSNumberFormatter) RoundingMode() NSNumberFormatterRoundingMode
- func (o *NSNumberFormatter) SecondaryGroupingSize() uint
- func (o *NSNumberFormatter) SetAllowsFloats(allowsFloats bool)
- func (o *NSNumberFormatter) SetAlwaysShowsDecimalSeparator(alwaysShowsDecimalSeparator bool)
- func (o *NSNumberFormatter) SetAttributedStringForNil(attributedStringForNil *NSAttributedString)
- func (o *NSNumberFormatter) SetAttributedStringForNotANumber(attributedStringForNotANumber *NSAttributedString)
- func (o *NSNumberFormatter) SetAttributedStringForZero(attributedStringForZero *NSAttributedString)
- func (o *NSNumberFormatter) SetCurrencyCode(currencyCode *NSString)
- func (o *NSNumberFormatter) SetCurrencyDecimalSeparator(currencyDecimalSeparator *NSString)
- func (o *NSNumberFormatter) SetCurrencyGroupingSeparator(currencyGroupingSeparator *NSString)
- func (o *NSNumberFormatter) SetCurrencySymbol(currencySymbol *NSString)
- func (o *NSNumberFormatter) SetDecimalSeparator(decimalSeparator *NSString)
- func (o *NSNumberFormatter) SetExponentSymbol(exponentSymbol *NSString)
- func (o *NSNumberFormatter) SetFormat(format *NSString)
- func (o *NSNumberFormatter) SetFormatWidth(formatWidth uint)
- func (o *NSNumberFormatter) SetFormatterBehavior(formatterBehavior NSNumberFormatterBehavior)
- func (o *NSNumberFormatter) SetFormattingContext(formattingContext NSFormattingContext)
- func (o *NSNumberFormatter) SetGeneratesDecimalNumbers(generatesDecimalNumbers bool)
- func (o *NSNumberFormatter) SetGroupingSeparator(groupingSeparator *NSString)
- func (o *NSNumberFormatter) SetGroupingSize(groupingSize uint)
- func (o *NSNumberFormatter) SetHasThousandSeparators(hasThousandSeparators bool)
- func (o *NSNumberFormatter) SetInternationalCurrencySymbol(internationalCurrencySymbol *NSString)
- func (o *NSNumberFormatter) SetLenient(lenient bool)
- func (o *NSNumberFormatter) SetLocale(locale *NSLocale)
- func (o *NSNumberFormatter) SetLocalizesFormat(localizesFormat bool)
- func (o *NSNumberFormatter) SetMaximum(maximum *NSNumber)
- func (o *NSNumberFormatter) SetMaximumFractionDigits(maximumFractionDigits uint)
- func (o *NSNumberFormatter) SetMaximumIntegerDigits(maximumIntegerDigits uint)
- func (o *NSNumberFormatter) SetMaximumSignificantDigits(maximumSignificantDigits uint)
- func (o *NSNumberFormatter) SetMinimum(minimum *NSNumber)
- func (o *NSNumberFormatter) SetMinimumFractionDigits(minimumFractionDigits uint)
- func (o *NSNumberFormatter) SetMinimumGroupingDigits(minimumGroupingDigits int)
- func (o *NSNumberFormatter) SetMinimumIntegerDigits(minimumIntegerDigits uint)
- func (o *NSNumberFormatter) SetMinimumSignificantDigits(minimumSignificantDigits uint)
- func (o *NSNumberFormatter) SetMinusSign(minusSign *NSString)
- func (o *NSNumberFormatter) SetMultiplier(multiplier *NSNumber)
- func (o *NSNumberFormatter) SetNegativeFormat(negativeFormat *NSString)
- func (o *NSNumberFormatter) SetNegativeInfinitySymbol(negativeInfinitySymbol *NSString)
- func (o *NSNumberFormatter) SetNegativePrefix(negativePrefix *NSString)
- func (o *NSNumberFormatter) SetNegativeSuffix(negativeSuffix *NSString)
- func (o *NSNumberFormatter) SetNilSymbol(nilSymbol *NSString)
- func (o *NSNumberFormatter) SetNotANumberSymbol(notANumberSymbol *NSString)
- func (o *NSNumberFormatter) SetNumberStyle(numberStyle NSNumberFormatterStyle)
- func (o *NSNumberFormatter) SetPaddingCharacter(paddingCharacter *NSString)
- func (o *NSNumberFormatter) SetPaddingPosition(paddingPosition NSNumberFormatterPadPosition)
- func (o *NSNumberFormatter) SetPartialStringValidationEnabled(partialStringValidationEnabled bool)
- func (o *NSNumberFormatter) SetPerMillSymbol(perMillSymbol *NSString)
- func (o *NSNumberFormatter) SetPercentSymbol(percentSymbol *NSString)
- func (o *NSNumberFormatter) SetPlusSign(plusSign *NSString)
- func (o *NSNumberFormatter) SetPositiveFormat(positiveFormat *NSString)
- func (o *NSNumberFormatter) SetPositiveInfinitySymbol(positiveInfinitySymbol *NSString)
- func (o *NSNumberFormatter) SetPositivePrefix(positivePrefix *NSString)
- func (o *NSNumberFormatter) SetPositiveSuffix(positiveSuffix *NSString)
- func (o *NSNumberFormatter) SetRoundingBehavior(roundingBehavior *NSDecimalNumberHandler)
- func (o *NSNumberFormatter) SetRoundingIncrement(roundingIncrement *NSNumber)
- func (o *NSNumberFormatter) SetRoundingMode(roundingMode NSNumberFormatterRoundingMode)
- func (o *NSNumberFormatter) SetSecondaryGroupingSize(secondaryGroupingSize uint)
- func (o *NSNumberFormatter) SetTextAttributesForNegativeInfinity(textAttributesForNegativeInfinity *NSDictionary[*NSString, objc.ID])
- func (o *NSNumberFormatter) SetTextAttributesForNegativeValues(textAttributesForNegativeValues *NSDictionary[*NSString, objc.ID])
- func (o *NSNumberFormatter) SetTextAttributesForNil(textAttributesForNil *NSDictionary[*NSString, objc.ID])
- func (o *NSNumberFormatter) SetTextAttributesForNotANumber(textAttributesForNotANumber *NSDictionary[*NSString, objc.ID])
- func (o *NSNumberFormatter) SetTextAttributesForPositiveInfinity(textAttributesForPositiveInfinity *NSDictionary[*NSString, objc.ID])
- func (o *NSNumberFormatter) SetTextAttributesForPositiveValues(textAttributesForPositiveValues *NSDictionary[*NSString, objc.ID])
- func (o *NSNumberFormatter) SetTextAttributesForZero(textAttributesForZero *NSDictionary[*NSString, objc.ID])
- func (o *NSNumberFormatter) SetThousandSeparator(thousandSeparator *NSString)
- func (o *NSNumberFormatter) SetUsesGroupingSeparator(usesGroupingSeparator bool)
- func (o *NSNumberFormatter) SetUsesSignificantDigits(usesSignificantDigits bool)
- func (o *NSNumberFormatter) SetZeroSymbol(zeroSymbol *NSString)
- func (o *NSNumberFormatter) StringFromNumber(number *NSNumber) *NSString
- func (o *NSNumberFormatter) TextAttributesForNegativeInfinity() *NSDictionary[*NSString, objc.ID]
- func (o *NSNumberFormatter) TextAttributesForNegativeValues() *NSDictionary[*NSString, objc.ID]
- func (o *NSNumberFormatter) TextAttributesForNil() *NSDictionary[*NSString, objc.ID]
- func (o *NSNumberFormatter) TextAttributesForNotANumber() *NSDictionary[*NSString, objc.ID]
- func (o *NSNumberFormatter) TextAttributesForPositiveInfinity() *NSDictionary[*NSString, objc.ID]
- func (o *NSNumberFormatter) TextAttributesForPositiveValues() *NSDictionary[*NSString, objc.ID]
- func (o *NSNumberFormatter) TextAttributesForZero() *NSDictionary[*NSString, objc.ID]
- func (o *NSNumberFormatter) ThousandSeparator() *NSString
- func (o *NSNumberFormatter) UsesGroupingSeparator() bool
- func (o *NSNumberFormatter) UsesSignificantDigits() bool
- func (o *NSNumberFormatter) ZeroSymbol() *NSString
- type NSNumberFormatterBehavior
- type NSNumberFormatterPadPosition
- type NSNumberFormatterRoundingMode
- type NSNumberFormatterStyle
- type NSObject
- func (o *NSObject) AddObserverForKeyPathOptionsContext(observer *NSObject, keyPath *NSString, options NSKeyValueObservingOptions, ...)
- func (o *NSObject) AttemptRecoveryFromErrorOptionIndex(error_ unsafe.Pointer, recoveryOptionIndex uint) bool
- func (o *NSObject) AttemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo(error_ unsafe.Pointer, recoveryOptionIndex uint, delegate objc.ID, ...)
- func (o *NSObject) AttributeKeys() *NSArray[*NSString]
- func (o *NSObject) AutoContentAccessingProxy() objc.ID
- func (o *NSObject) AwakeAfterUsingCoder(coder *NSCoder) objc.ID
- func (o *NSObject) ClassCode() uint
- func (o *NSObject) ClassDescription() *NSClassDescription
- func (o *NSObject) ClassForArchiver() objc.Class
- func (o *NSObject) ClassForCoder() objc.Class
- func (o *NSObject) ClassForKeyedArchiver() objc.Class
- func (o *NSObject) ClassForPortCoder() objc.Classdeprecated
- func (o *NSObject) ClassName() *NSString
- func (o *NSObject) CoerceValueForKey(value objc.ID, key *NSString) objc.ID
- func (o *NSObject) Copy() objc.ID
- func (o *NSObject) CopyScriptingValueForKeyWithProperties(value objc.ID, key *NSString, properties *NSDictionary[*NSString, objc.ID]) objc.ID
- func (o *NSObject) Dealloc()
- func (o *NSObject) DictionaryWithValuesForKeys(keys *NSArray[*NSString]) *NSDictionary[*NSString, objc.ID]
- func (o *NSObject) DidChangeValueForKey(key *NSString)
- func (o *NSObject) DidChangeValueForKeyWithSetMutationUsingObjects(key *NSString, mutationKind NSKeyValueSetMutationKind, objects *NSSet[objc.ID])
- func (o *NSObject) DidChangeValuesAtIndexesForKey(changeKind NSKeyValueChange, indexes *NSIndexSet, key *NSString)
- func (o *NSObject) DoesContain(object objc.ID) bool
- func (o *NSObject) DoesNotRecognizeSelector(aSelector objc.SEL)
- func (o *NSObject) FileManagerShouldProceedAfterError(fm *NSFileManager, errorInfo *NSDictionary[objc.ID, objc.ID]) booldeprecated
- func (o *NSObject) FileManagerWillProcessPath(fm *NSFileManager, path *NSString)deprecated
- func (o *NSObject) Finalize()
- func (o *NSObject) ForwardInvocation(anInvocation *NSInvocation)
- func (o *NSObject) ForwardingTargetForSelector(aSelector objc.SEL) objc.ID
- func (o *NSObject) HandleQueryWithUnboundKey(key *NSString) objc.IDdeprecated
- func (o *NSObject) HandleTakeValueForUnboundKey(value objc.ID, key *NSString)deprecated
- func (o *NSObject) IndicesOfObjectsByEvaluatingObjectSpecifier(specifier *NSScriptObjectSpecifier) *NSArray[*NSNumber]
- func (o *NSObject) Init() *NSObject
- func (o *NSObject) InitPtr(id objc.ID)
- func (o *NSObject) InsertValueAtIndexInPropertyWithKey(value objc.ID, index uint, key *NSString)
- func (o *NSObject) InsertValueInPropertyWithKey(value objc.ID, key *NSString)
- func (o *NSObject) InverseForRelationshipKey(relationshipKey *NSString) *NSString
- func (o *NSObject) IsCaseInsensitiveLike(object *NSString) bool
- func (o *NSObject) IsEqualTo(object objc.ID) bool
- func (o *NSObject) IsGreaterThan(object objc.ID) bool
- func (o *NSObject) IsGreaterThanOrEqualTo(object objc.ID) bool
- func (o *NSObject) IsLessThan(object objc.ID) bool
- func (o *NSObject) IsLessThanOrEqualTo(object objc.ID) bool
- func (o *NSObject) IsLike(object *NSString) bool
- func (o *NSObject) IsNotEqualTo(object objc.ID) bool
- func (o *NSObject) MethodForSelector(aSelector objc.SEL) unsafe.Pointer
- func (o *NSObject) MethodSignatureForSelector(aSelector objc.SEL) *NSMethodSignature
- func (o *NSObject) MutableArrayValueForKey(key *NSString) *NSMutableArray[objc.ID]
- func (o *NSObject) MutableArrayValueForKeyPath(keyPath *NSString) *NSMutableArray[objc.ID]
- func (o *NSObject) MutableCopy() objc.ID
- func (o *NSObject) MutableOrderedSetValueForKey(key *NSString) *NSMutableOrderedSet[objc.ID]
- func (o *NSObject) MutableOrderedSetValueForKeyPath(keyPath *NSString) *NSMutableOrderedSet[objc.ID]
- func (o *NSObject) MutableSetValueForKey(key *NSString) *NSMutableSet[objc.ID]
- func (o *NSObject) MutableSetValueForKeyPath(keyPath *NSString) *NSMutableSet[objc.ID]
- func (o *NSObject) NewScriptingObjectOfClassForValueForKeyWithContentsValueProperties(objectClass objc.Class, key *NSString, contentsValue objc.ID, ...) objc.ID
- func (o *NSObject) ObjectSpecifier() *NSScriptObjectSpecifier
- func (o *NSObject) ObservationInfo() unsafe.Pointer
- func (o *NSObject) ObserveValueForKeyPathOfObjectChangeContext(keyPath *NSString, object objc.ID, change *NSDictionary[*NSString, objc.ID], ...)
- func (o *NSObject) PerformSelectorInBackgroundWithObject(aSelector objc.SEL, arg objc.ID)
- func (o *NSObject) PerformSelectorOnMainThreadWithObjectWaitUntilDone(aSelector objc.SEL, arg objc.ID, wait bool)
- func (o *NSObject) PerformSelectorOnMainThreadWithObjectWaitUntilDoneModes(aSelector objc.SEL, arg objc.ID, wait bool, array *NSArray[*NSString])deprecated
- func (o *NSObject) PerformSelectorOnThreadWithObjectWaitUntilDone(aSelector objc.SEL, thr *NSThread, arg objc.ID, wait bool)
- func (o *NSObject) PerformSelectorOnThreadWithObjectWaitUntilDoneModes(aSelector objc.SEL, thr *NSThread, arg objc.ID, wait bool, ...)
- func (o *NSObject) PerformSelectorWithObjectAfterDelay(aSelector objc.SEL, anArgument objc.ID, delay float64)
- func (o *NSObject) PerformSelectorWithObjectAfterDelayInModes(aSelector objc.SEL, anArgument objc.ID, delay float64, ...)
- func (o *NSObject) Ptr() objc.ID
- func (o *NSObject) RemoveObserverForKeyPath(observer *NSObject, keyPath *NSString)
- func (o *NSObject) RemoveObserverForKeyPathContext(observer *NSObject, keyPath *NSString, context_ unsafe.Pointer)
- func (o *NSObject) RemoveValueAtIndexFromPropertyWithKey(index uint, key *NSString)
- func (o *NSObject) ReplaceValueAtIndexInPropertyWithKeyWithValue(index uint, key *NSString, value objc.ID)
- func (o *NSObject) ReplacementObjectForArchiver(archiver *NSArchiver) objc.IDdeprecated
- func (o *NSObject) ReplacementObjectForCoder(coder *NSCoder) objc.ID
- func (o *NSObject) ReplacementObjectForKeyedArchiver(archiver *NSKeyedArchiver) objc.ID
- func (o *NSObject) ReplacementObjectForPortCoder(coder *NSPortCoder) objc.IDdeprecated
- func (o *NSObject) ScriptingBeginsWith(object objc.ID) bool
- func (o *NSObject) ScriptingContains(object objc.ID) bool
- func (o *NSObject) ScriptingEndsWith(object objc.ID) bool
- func (o *NSObject) ScriptingIsEqualTo(object objc.ID) bool
- func (o *NSObject) ScriptingIsGreaterThan(object objc.ID) bool
- func (o *NSObject) ScriptingIsGreaterThanOrEqualTo(object objc.ID) bool
- func (o *NSObject) ScriptingIsLessThan(object objc.ID) bool
- func (o *NSObject) ScriptingIsLessThanOrEqualTo(object objc.ID) bool
- func (o *NSObject) ScriptingProperties() *NSDictionary[*NSString, objc.ID]
- func (o *NSObject) ScriptingValueForSpecifier(objectSpecifier *NSScriptObjectSpecifier) objc.ID
- func (o *NSObject) SetNilValueForKey(key *NSString)
- func (o *NSObject) SetObservationInfo(observationInfo unsafe.Pointer)
- func (o *NSObject) SetScriptingProperties(scriptingProperties *NSDictionary[*NSString, objc.ID])
- func (o *NSObject) SetSharedObservers(sharedObservers *NSKeyValueSharedObserversSnapshot)
- func (o *NSObject) SetValueForKey(value objc.ID, key *NSString)
- func (o *NSObject) SetValueForKeyPath(value objc.ID, keyPath *NSString)
- func (o *NSObject) SetValueForUndefinedKey(value objc.ID, key *NSString)
- func (o *NSObject) SetValuesForKeysWithDictionary(keyedValues *NSDictionary[*NSString, objc.ID])
- func (o *NSObject) StoredValueForKey(key *NSString) objc.IDdeprecated
- func (o *NSObject) TakeStoredValueForKey(value objc.ID, key *NSString)deprecated
- func (o *NSObject) TakeValueForKey(value objc.ID, key *NSString)deprecated
- func (o *NSObject) TakeValueForKeyPath(value objc.ID, keyPath *NSString)deprecated
- func (o *NSObject) TakeValuesFromDictionary(properties *NSDictionary[objc.ID, objc.ID])deprecated
- func (o *NSObject) ToManyRelationshipKeys() *NSArray[*NSString]
- func (o *NSObject) ToOneRelationshipKeys() *NSArray[*NSString]
- func (o *NSObject) URLResourceDataDidBecomeAvailable(sender *NSURL, newBytes *NSData)deprecated
- func (o *NSObject) URLResourceDidCancelLoading(sender *NSURL)deprecated
- func (o *NSObject) URLResourceDidFailLoadingWithReason(sender *NSURL, reason *NSString)deprecated
- func (o *NSObject) URLResourceDidFinishLoading(sender *NSURL)deprecated
- func (o *NSObject) UnableToSetNilForKey(key *NSString)deprecated
- func (o *NSObject) ValidateValueForKeyError(ioValue **ObjcObject, inKey *NSString) (bool, error)
- func (o *NSObject) ValidateValueForKeyPathError(ioValue **ObjcObject, inKeyPath *NSString) (bool, error)
- func (o *NSObject) ValueAtIndexInPropertyWithKey(index uint, key *NSString) objc.ID
- func (o *NSObject) ValueForKey(key *NSString) objc.ID
- func (o *NSObject) ValueForKeyPath(keyPath *NSString) objc.ID
- func (o *NSObject) ValueForUndefinedKey(key *NSString) objc.ID
- func (o *NSObject) ValueWithNameInPropertyWithKey(name *NSString, key *NSString) objc.ID
- func (o *NSObject) ValueWithUniqueIDInPropertyWithKey(uniqueID objc.ID, key *NSString) objc.ID
- func (o *NSObject) ValuesForKeys(keys *NSArray[objc.ID]) *NSDictionary[objc.ID, objc.ID]deprecated
- func (o *NSObject) WillChangeValueForKey(key *NSString)
- func (o *NSObject) WillChangeValueForKeyWithSetMutationUsingObjects(key *NSString, mutationKind NSKeyValueSetMutationKind, objects *NSSet[objc.ID])
- func (o *NSObject) WillChangeValuesAtIndexesForKey(changeKind NSKeyValueChange, indexes *NSIndexSet, key *NSString)
- type NSObjectProtocol
- type NSOperatingSystemVersion
- type NSOperation
- func (o *NSOperation) AddDependency(op *NSOperation)
- func (o *NSOperation) Cancel()
- func (o *NSOperation) CompletionBlock() objc.Block
- func (o *NSOperation) Dependencies() *NSArray[*NSOperation]
- func (o *NSOperation) IsAsynchronous() bool
- func (o *NSOperation) IsCancelled() bool
- func (o *NSOperation) IsConcurrent() bool
- func (o *NSOperation) IsExecuting() bool
- func (o *NSOperation) IsFinished() bool
- func (o *NSOperation) IsReady() bool
- func (o *NSOperation) Main()
- func (o *NSOperation) Name() *NSString
- func (o *NSOperation) QualityOfService() NSQualityOfService
- func (o *NSOperation) QueuePriority() NSOperationQueuePriority
- func (o *NSOperation) RemoveDependency(op *NSOperation)
- func (o *NSOperation) SetCompletionBlock(completionBlock func())
- func (o *NSOperation) SetName(name *NSString)
- func (o *NSOperation) SetQualityOfService(qualityOfService NSQualityOfService)
- func (o *NSOperation) SetQueuePriority(queuePriority NSOperationQueuePriority)
- func (o *NSOperation) SetThreadPriority(threadPriority float64)deprecated
- func (o *NSOperation) Start()
- func (o *NSOperation) ThreadPriority() float64deprecated
- func (o *NSOperation) WaitUntilFinished()
- type NSOperationQueue
- func (o *NSOperationQueue) AddBarrierBlock(barrier func())
- func (o *NSOperationQueue) AddOperation(op *NSOperation)
- func (o *NSOperationQueue) AddOperationWith(block func())
- func (o *NSOperationQueue) AddOperationsWaitUntilFinished(ops *NSArray[*NSOperation], wait bool)
- func (o *NSOperationQueue) CancelAllOperations()
- func (o *NSOperationQueue) IsSuspended() bool
- func (o *NSOperationQueue) MaxConcurrentOperationCount() int
- func (o *NSOperationQueue) Name() *NSString
- func (o *NSOperationQueue) OperationCount() uintdeprecated
- func (o *NSOperationQueue) Operations() *NSArray[*NSOperation]deprecated
- func (o *NSOperationQueue) Progress() *NSProgress
- func (o *NSOperationQueue) QualityOfService() NSQualityOfService
- func (o *NSOperationQueue) SetMaxConcurrentOperationCount(maxConcurrentOperationCount int)
- func (o *NSOperationQueue) SetName(name *NSString)
- func (o *NSOperationQueue) SetQualityOfService(qualityOfService NSQualityOfService)
- func (o *NSOperationQueue) SetSuspended(suspended bool)
- func (o *NSOperationQueue) SetUnderlyingQueue(underlyingQueue *NSObject)
- func (o *NSOperationQueue) UnderlyingQueue() *NSObject
- func (o *NSOperationQueue) WaitUntilAllOperationsAreFinished()
- type NSOperationQueuePriority
- type NSOrderedCollectionChange
- func NSOrderedCollectionChangeChangeWithObjectTypeIndex(anObject objc.ID, type_ NSCollectionChangeType, index uint) *NSOrderedCollectionChange[objc.ID]
- func NSOrderedCollectionChangeChangeWithObjectTypeIndexAssociatedIndex(anObject objc.ID, type_ NSCollectionChangeType, index uint, ...) *NSOrderedCollectionChange[objc.ID]
- func NSOrderedCollectionChangeFromID[ObjectType purego.AnyObject](id objc.ID) *NSOrderedCollectionChange[ObjectType]
- func (o *NSOrderedCollectionChange[ObjectType]) AssociatedIndex() uint
- func (o *NSOrderedCollectionChange[ObjectType]) ChangeType() NSCollectionChangeType
- func (o *NSOrderedCollectionChange[ObjectType]) Index() uint
- func (o *NSOrderedCollectionChange[ObjectType]) InitWithObjectTypeIndex(anObject ObjectType, type_ NSCollectionChangeType, index uint) *NSOrderedCollectionChange[ObjectType]
- func (o *NSOrderedCollectionChange[ObjectType]) InitWithObjectTypeIndexAssociatedIndex(anObject ObjectType, type_ NSCollectionChangeType, index uint, ...) *NSOrderedCollectionChange[ObjectType]
- func (o *NSOrderedCollectionChange[ObjectType]) Object() ObjectType
- type NSOrderedCollectionDifference
- func (o *NSOrderedCollectionDifference[ObjectType]) DifferenceByTransformingChangesWith(block objc.Block) *NSOrderedCollectionDifference[objc.ID]
- func (o *NSOrderedCollectionDifference[ObjectType]) HasChanges() bool
- func (o *NSOrderedCollectionDifference[ObjectType]) InitWithChanges(changes *NSArray[objc.ID]) *NSOrderedCollectionDifference[ObjectType]
- func (o *NSOrderedCollectionDifference[ObjectType]) InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjects(inserts *NSIndexSet, insertedObjects *NSArray[ObjectType], removes *NSIndexSet, ...) *NSOrderedCollectionDifference[ObjectType]
- func (o *NSOrderedCollectionDifference[ObjectType]) InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjectsAdditionalChanges(inserts *NSIndexSet, insertedObjects *NSArray[ObjectType], removes *NSIndexSet, ...) *NSOrderedCollectionDifference[ObjectType]
- func (o *NSOrderedCollectionDifference[ObjectType]) Insertions() *NSArray[objc.ID]
- func (o *NSOrderedCollectionDifference[ObjectType]) InverseDifference() *NSOrderedCollectionDifference[ObjectType]
- func (o *NSOrderedCollectionDifference[ObjectType]) Removals() *NSArray[objc.ID]
- type NSOrderedCollectionDifferenceCalculationOptions
- type NSOrderedSet
- func NSOrderedSetFromID[ObjectType purego.AnyObject](id objc.ID) *NSOrderedSet[ObjectType]
- func NSOrderedSetOrderedSet() *NSOrderedSet[objc.ID]
- func NSOrderedSetOrderedSetWithArray(array *NSArray[objc.ID]) *NSOrderedSet[objc.ID]
- func NSOrderedSetOrderedSetWithArrayRangeCopyItems(array *NSArray[objc.ID], range_ NSRange, flag bool) *NSOrderedSet[objc.ID]
- func NSOrderedSetOrderedSetWithObject(object objc.ID) *NSOrderedSet[objc.ID]
- func NSOrderedSetOrderedSetWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSOrderedSet[objc.ID]
- func NSOrderedSetOrderedSetWithOrderedSet(set *NSOrderedSet[objc.ID]) *NSOrderedSet[objc.ID]
- func NSOrderedSetOrderedSetWithOrderedSetRangeCopyItems(set *NSOrderedSet[objc.ID], range_ NSRange, flag bool) *NSOrderedSet[objc.ID]
- func NSOrderedSetOrderedSetWithSet(set *NSSet[objc.ID]) *NSOrderedSet[objc.ID]
- func NSOrderedSetOrderedSetWithSetCopyItems(set *NSSet[objc.ID], flag bool) *NSOrderedSet[objc.ID]
- func (o *NSOrderedSet[ObjectType]) Array() *NSArray[ObjectType]
- func (o *NSOrderedSet[ObjectType]) ContainsObject(object ObjectType) bool
- func (o *NSOrderedSet[ObjectType]) Count() uint
- func (o *NSOrderedSet[ObjectType]) DescriptionWithLocale(locale objc.ID) *NSString
- func (o *NSOrderedSet[ObjectType]) DescriptionWithLocaleIndent(locale objc.ID, level uint) *NSString
- func (o *NSOrderedSet[ObjectType]) DifferenceFromOrderedSet(other *NSOrderedSet[ObjectType]) *NSOrderedCollectionDifference[ObjectType]
- func (o *NSOrderedSet[ObjectType]) DifferenceFromOrderedSetWithOptions(other *NSOrderedSet[ObjectType], ...) *NSOrderedCollectionDifference[ObjectType]
- func (o *NSOrderedSet[ObjectType]) DifferenceFromOrderedSetWithOptionsUsingEquivalenceTest(other *NSOrderedSet[ObjectType], ...) *NSOrderedCollectionDifference[ObjectType]
- func (o *NSOrderedSet[ObjectType]) EnumerateObjectsAtIndexesOptionsUsing(s *NSIndexSet, opts NSEnumerationOptions, block objc.Block)
- func (o *NSOrderedSet[ObjectType]) EnumerateObjectsUsing(block objc.Block)
- func (o *NSOrderedSet[ObjectType]) EnumerateObjectsWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)
- func (o *NSOrderedSet[ObjectType]) FilteredOrderedSetUsingPredicate(p *NSPredicate) *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) FirstObject() ObjectType
- func (o *NSOrderedSet[ObjectType]) GetObjectsRange(objects unsafe.Pointer, range_ NSRange)
- func (o *NSOrderedSet[ObjectType]) IndexOfObject(object ObjectType) uint
- func (o *NSOrderedSet[ObjectType]) IndexOfObjectAtIndexesOptionsPassingTest(s *NSIndexSet, opts NSEnumerationOptions, predicate objc.Block) uint
- func (o *NSOrderedSet[ObjectType]) IndexOfObjectInSortedRangeOptionsUsingComparator(object ObjectType, range_ NSRange, opts NSBinarySearchingOptions, ...) uint
- func (o *NSOrderedSet[ObjectType]) IndexOfObjectPassingTest(predicate objc.Block) uint
- func (o *NSOrderedSet[ObjectType]) IndexOfObjectWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) uint
- func (o *NSOrderedSet[ObjectType]) IndexesOfObjectsAtIndexesOptionsPassingTest(s *NSIndexSet, opts NSEnumerationOptions, predicate objc.Block) *NSIndexSet
- func (o *NSOrderedSet[ObjectType]) IndexesOfObjectsPassingTest(predicate objc.Block) *NSIndexSet
- func (o *NSOrderedSet[ObjectType]) IndexesOfObjectsWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSIndexSet
- func (o *NSOrderedSet[ObjectType]) Init() *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) InitWithArray(array *NSArray[ObjectType]) *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) InitWithArrayCopyItems(set *NSArray[ObjectType], flag bool) *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) InitWithArrayRangeCopyItems(set *NSArray[ObjectType], range_ NSRange, flag bool) *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) InitWithCoder(coder *NSCoder) *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) InitWithObject(object ObjectType) *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) InitWithOrderedSet(set *NSOrderedSet[ObjectType]) *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) InitWithOrderedSetCopyItems(set *NSOrderedSet[ObjectType], flag bool) *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) InitWithOrderedSetRangeCopyItems(set *NSOrderedSet[ObjectType], range_ NSRange, flag bool) *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) InitWithSet(set *NSSet[ObjectType]) *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) InitWithSetCopyItems(set *NSSet[ObjectType], flag bool) *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) IntersectsOrderedSet(other *NSOrderedSet[ObjectType]) bool
- func (o *NSOrderedSet[ObjectType]) IntersectsSet(set *NSSet[ObjectType]) bool
- func (o *NSOrderedSet[ObjectType]) IsEqualToOrderedSet(other *NSOrderedSet[ObjectType]) bool
- func (o *NSOrderedSet[ObjectType]) IsSubsetOfOrderedSet(other *NSOrderedSet[ObjectType]) bool
- func (o *NSOrderedSet[ObjectType]) IsSubsetOfSet(set *NSSet[ObjectType]) bool
- func (o *NSOrderedSet[ObjectType]) LastObject() ObjectType
- func (o *NSOrderedSet[ObjectType]) ObjectAtIndex(idx uint) ObjectType
- func (o *NSOrderedSet[ObjectType]) ObjectAtIndexedSubscript(idx uint) ObjectType
- func (o *NSOrderedSet[ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]
- func (o *NSOrderedSet[ObjectType]) ObjectsAtIndexes(indexes *NSIndexSet) *NSArray[ObjectType]
- func (o *NSOrderedSet[ObjectType]) OrderedSetByApplyingDifference(difference *NSOrderedCollectionDifference[ObjectType]) *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) ReverseObjectEnumerator() *NSEnumerator[ObjectType]
- func (o *NSOrderedSet[ObjectType]) ReversedOrderedSet() *NSOrderedSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) Set() *NSSet[ObjectType]
- func (o *NSOrderedSet[ObjectType]) SortedArrayUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[ObjectType]
- func (o *NSOrderedSet[ObjectType]) SortedArrayUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor]) *NSArray[ObjectType]
- func (o *NSOrderedSet[ObjectType]) SortedArrayWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[ObjectType]
- type NSOrthography
- func (o *NSOrthography) AllLanguages() *NSArray[*NSString]
- func (o *NSOrthography) AllScripts() *NSArray[*NSString]
- func (o *NSOrthography) DominantLanguage() *NSString
- func (o *NSOrthography) DominantLanguageForScript(script *NSString) *NSString
- func (o *NSOrthography) DominantScript() *NSString
- func (o *NSOrthography) InitWithCoder(coder *NSCoder) *NSOrthography
- func (o *NSOrthography) InitWithDominantScriptLanguageMap(script *NSString, map_ *NSDictionary[*NSString, objc.ID]) *NSOrthography
- func (o *NSOrthography) LanguageMap() *NSDictionary[*NSString, objc.ID]
- func (o *NSOrthography) LanguagesForScript(script *NSString) *NSArray[*NSString]
- type NSOutputStream
- func NSOutputStreamFromID(id objc.ID) *NSOutputStream
- func NSOutputStreamOutputStreamToBufferCapacity(buffer *uint8, capacity uint) *NSOutputStream
- func NSOutputStreamOutputStreamToFileAtPathAppend(path *NSString, shouldAppend bool) *NSOutputStream
- func NSOutputStreamOutputStreamToMemory() *NSOutputStream
- func NSOutputStreamOutputStreamWithURLAppend(url *NSURL, shouldAppend bool) *NSOutputStream
- func (o *NSOutputStream) HasSpaceAvailable() bool
- func (o *NSOutputStream) InitToBufferCapacity(buffer *uint8, capacity uint) *NSOutputStream
- func (o *NSOutputStream) InitToFileAtPathAppend(path *NSString, shouldAppend bool) *NSOutputStream
- func (o *NSOutputStream) InitToMemory() *NSOutputStream
- func (o *NSOutputStream) InitWithURLAppend(url *NSURL, shouldAppend bool) *NSOutputStream
- func (o *NSOutputStream) WriteMaxLength(buffer *uint8, len_ uint) int
- type NSPersonNameComponents
- func (o *NSPersonNameComponents) FamilyName() *NSString
- func (o *NSPersonNameComponents) GivenName() *NSString
- func (o *NSPersonNameComponents) MiddleName() *NSString
- func (o *NSPersonNameComponents) NamePrefix() *NSString
- func (o *NSPersonNameComponents) NameSuffix() *NSString
- func (o *NSPersonNameComponents) Nickname() *NSString
- func (o *NSPersonNameComponents) PhoneticRepresentation() *NSPersonNameComponents
- func (o *NSPersonNameComponents) SetFamilyName(familyName *NSString)
- func (o *NSPersonNameComponents) SetGivenName(givenName *NSString)
- func (o *NSPersonNameComponents) SetMiddleName(middleName *NSString)
- func (o *NSPersonNameComponents) SetNamePrefix(namePrefix *NSString)
- func (o *NSPersonNameComponents) SetNameSuffix(nameSuffix *NSString)
- func (o *NSPersonNameComponents) SetNickname(nickname *NSString)
- func (o *NSPersonNameComponents) SetPhoneticRepresentation(phoneticRepresentation *NSPersonNameComponents)
- type NSPersonNameComponentsFormatter
- func (o *NSPersonNameComponentsFormatter) AnnotatedStringFromPersonNameComponents(components *NSPersonNameComponents) *NSAttributedString
- func (o *NSPersonNameComponentsFormatter) IsPhonetic() bool
- func (o *NSPersonNameComponentsFormatter) Locale() *NSLocale
- func (o *NSPersonNameComponentsFormatter) PersonNameComponentsFromString(string_ *NSString) *NSPersonNameComponents
- func (o *NSPersonNameComponentsFormatter) SetLocale(locale *NSLocale)
- func (o *NSPersonNameComponentsFormatter) SetPhonetic(phonetic bool)
- func (o *NSPersonNameComponentsFormatter) SetStyle(style NSPersonNameComponentsFormatterStyle)
- func (o *NSPersonNameComponentsFormatter) StringFromPersonNameComponents(components *NSPersonNameComponents) *NSString
- func (o *NSPersonNameComponentsFormatter) Style() NSPersonNameComponentsFormatterStyle
- type NSPersonNameComponentsFormatterOptions
- type NSPersonNameComponentsFormatterStyle
- type NSPipe
- type NSPointerArray
- func NSPointerArrayFromID(id objc.ID) *NSPointerArray
- func NSPointerArrayPointerArrayWithOptions(options NSPointerFunctionsOptions) *NSPointerArray
- func NSPointerArrayPointerArrayWithPointerFunctions(functions *NSPointerFunctions) *NSPointerArray
- func NSPointerArrayStrongObjectsPointerArray() *NSPointerArray
- func NSPointerArrayWeakObjectsPointerArray() *NSPointerArray
- func (o *NSPointerArray) AddPointer(pointer unsafe.Pointer)
- func (o *NSPointerArray) AllObjects() *NSArray[objc.ID]
- func (o *NSPointerArray) Compact()
- func (o *NSPointerArray) Count() uint
- func (o *NSPointerArray) InitWithOptions(options NSPointerFunctionsOptions) *NSPointerArray
- func (o *NSPointerArray) InitWithPointerFunctions(functions *NSPointerFunctions) *NSPointerArray
- func (o *NSPointerArray) InsertPointerAtIndex(item unsafe.Pointer, index uint)
- func (o *NSPointerArray) PointerAtIndex(index uint) unsafe.Pointer
- func (o *NSPointerArray) PointerFunctions() *NSPointerFunctions
- func (o *NSPointerArray) RemovePointerAtIndex(index uint)
- func (o *NSPointerArray) ReplacePointerAtIndexWithPointer(index uint, item unsafe.Pointer)
- func (o *NSPointerArray) SetCount(count uint)
- type NSPointerFunctions
- func (o *NSPointerFunctions) AcquireFunction() unsafe.Pointer
- func (o *NSPointerFunctions) DescriptionFunction() unsafe.Pointer
- func (o *NSPointerFunctions) HashFunction() unsafe.Pointer
- func (o *NSPointerFunctions) InitWithOptions(options NSPointerFunctionsOptions) *NSPointerFunctions
- func (o *NSPointerFunctions) IsEqualFunction() unsafe.Pointer
- func (o *NSPointerFunctions) RelinquishFunction() unsafe.Pointer
- func (o *NSPointerFunctions) SetAcquireFunction(acquireFunction unsafe.Pointer)
- func (o *NSPointerFunctions) SetDescriptionFunction(descriptionFunction unsafe.Pointer)
- func (o *NSPointerFunctions) SetHashFunction(hashFunction unsafe.Pointer)
- func (o *NSPointerFunctions) SetIsEqualFunction(isEqualFunction unsafe.Pointer)
- func (o *NSPointerFunctions) SetRelinquishFunction(relinquishFunction unsafe.Pointer)
- func (o *NSPointerFunctions) SetSizeFunction(sizeFunction unsafe.Pointer)
- func (o *NSPointerFunctions) SetUsesStrongWriteBarrier(usesStrongWriteBarrier bool)deprecated
- func (o *NSPointerFunctions) SetUsesWeakReadAndWriteBarriers(usesWeakReadAndWriteBarriers bool)deprecated
- func (o *NSPointerFunctions) SizeFunction() unsafe.Pointer
- func (o *NSPointerFunctions) UsesStrongWriteBarrier() booldeprecated
- func (o *NSPointerFunctions) UsesWeakReadAndWriteBarriers() booldeprecated
- type NSPointerFunctionsOptions
- type NSPort
- func (o *NSPort) AddConnectionToRunLoopForMode(conn *NSConnection, runLoop *NSRunLoop, mode *NSString)
- func (o *NSPort) Delegate() NSPortDelegate
- func (o *NSPort) Invalidate()
- func (o *NSPort) IsValid() bool
- func (o *NSPort) RemoveConnectionFromRunLoopForMode(conn *NSConnection, runLoop *NSRunLoop, mode *NSString)
- func (o *NSPort) RemoveFromRunLoopForMode(runLoop *NSRunLoop, mode *NSString)
- func (o *NSPort) ReservedSpaceLength() uint
- func (o *NSPort) ScheduleInRunLoopForMode(runLoop *NSRunLoop, mode *NSString)
- func (o *NSPort) SendBeforeDateComponentsFromReserved(limitDate *NSDate, components *NSMutableArray[objc.ID], receivePort *NSPort, ...) bool
- func (o *NSPort) SendBeforeDateMsgidComponentsFromReserved(limitDate *NSDate, msgID uint, components *NSMutableArray[objc.ID], ...) bool
- func (o *NSPort) SetDelegate(anObject NSPortDelegate)
- type NSPortCoder
- func (o *NSPortCoder) Connection() *NSConnection
- func (o *NSPortCoder) DecodePortObject() *NSPort
- func (o *NSPortCoder) Dispatch()
- func (o *NSPortCoder) EncodePortObject(aport *NSPort)
- func (o *NSPortCoder) InitWithReceivePortSendPortComponents(rcvPort *NSPort, sndPort *NSPort, comps *NSArray[objc.ID]) objc.ID
- func (o *NSPortCoder) IsBycopy() bool
- func (o *NSPortCoder) IsByref() bool
- type NSPortDelegate
- type NSPortMessage
- func (o *NSPortMessage) Components() *NSArray[objc.ID]
- func (o *NSPortMessage) InitWithSendPortReceivePortComponents(sendPort *NSPort, replyPort *NSPort, components *NSArray[objc.ID]) *NSPortMessage
- func (o *NSPortMessage) Msgid() uint32
- func (o *NSPortMessage) ReceivePort() *NSPort
- func (o *NSPortMessage) SendBeforeDate(date *NSDate) bool
- func (o *NSPortMessage) SendPort() *NSPort
- func (o *NSPortMessage) SetMsgid(msgid uint32)
- type NSPortNameServer
- type NSPositionalSpecifier
- func (o *NSPositionalSpecifier) Evaluate()
- func (o *NSPositionalSpecifier) InitWithPositionObjectSpecifier(position NSInsertionPosition, specifier *NSScriptObjectSpecifier) *NSPositionalSpecifier
- func (o *NSPositionalSpecifier) InsertionContainer() objc.ID
- func (o *NSPositionalSpecifier) InsertionIndex() int
- func (o *NSPositionalSpecifier) InsertionKey() *NSString
- func (o *NSPositionalSpecifier) InsertionReplaces() bool
- func (o *NSPositionalSpecifier) Position() NSInsertionPosition
- func (o *NSPositionalSpecifier) SetInsertionClassDescription(classDescription *NSScriptClassDescription)
- type NSPostingStyle
- type NSPredicate
- func NSPredicateFromID(id objc.ID) *NSPredicate
- func NSPredicatePredicateFromMetadataQueryString(queryString *NSString) *NSPredicate
- func NSPredicatePredicateWith(block func(objc.ID, *NSDictionary[*NSString, objc.ID]) bool) *NSPredicate
- func NSPredicatePredicateWithFormat(predicateFormat *NSString) *NSPredicate
- func NSPredicatePredicateWithFormatArgumentArray(predicateFormat *NSString, arguments *NSArray[objc.ID]) *NSPredicate
- func NSPredicatePredicateWithFormatArguments(predicateFormat *NSString, argList string) *NSPredicate
- func NSPredicatePredicateWithValue(value bool) *NSPredicate
- func (o *NSPredicate) AllowEvaluation()
- func (o *NSPredicate) AllowEvaluationWithValidatorError(validator NSPredicateValidating) (bool, error)
- func (o *NSPredicate) EvaluateWithObject(object objc.ID) bool
- func (o *NSPredicate) EvaluateWithObjectSubstitutionVariables(object objc.ID, bindings *NSDictionary[*NSString, objc.ID]) bool
- func (o *NSPredicate) PredicateFormat() *NSString
- func (o *NSPredicate) PredicateWithSubstitutionVariables(variables *NSDictionary[*NSString, objc.ID]) *NSPredicate
- type NSPredicateOperatorType
- type NSPredicateValidating
- type NSPresentationIntent
- func NSPresentationIntentBlockQuoteIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent
- func NSPresentationIntentCodeBlockIntentWithIdentityLanguageHintNestedInsideIntent(identity int, languageHint *NSString, parent *NSPresentationIntent) *NSPresentationIntent
- func NSPresentationIntentFromID(id objc.ID) *NSPresentationIntent
- func NSPresentationIntentHeaderIntentWithIdentityLevelNestedInsideIntent(identity int, level int, parent *NSPresentationIntent) *NSPresentationIntent
- func NSPresentationIntentListItemIntentWithIdentityOrdinalNestedInsideIntent(identity int, ordinal int, parent *NSPresentationIntent) *NSPresentationIntent
- func NSPresentationIntentOrderedListIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent
- func NSPresentationIntentParagraphIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent
- func NSPresentationIntentTableCellIntentWithIdentityColumnNestedInsideIntent(identity int, column int, parent *NSPresentationIntent) *NSPresentationIntent
- func NSPresentationIntentTableHeaderRowIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent
- func NSPresentationIntentTableIntentWithIdentityColumnCountAlignmentsNestedInsideIntent(identity int, columnCount int, alignments *NSArray[*NSNumber], ...) *NSPresentationIntent
- func NSPresentationIntentTableRowIntentWithIdentityRowNestedInsideIntent(identity int, row int, parent *NSPresentationIntent) *NSPresentationIntent
- func NSPresentationIntentThematicBreakIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent
- func NSPresentationIntentUnorderedListIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent
- func (o *NSPresentationIntent) Column() int
- func (o *NSPresentationIntent) ColumnAlignments() *NSArray[*NSNumber]
- func (o *NSPresentationIntent) ColumnCount() int
- func (o *NSPresentationIntent) HeaderLevel() int
- func (o *NSPresentationIntent) Identity() int
- func (o *NSPresentationIntent) IndentationLevel() int
- func (o *NSPresentationIntent) IntentKind() NSPresentationIntentKind
- func (o *NSPresentationIntent) IsEquivalentToPresentationIntent(other *NSPresentationIntent) bool
- func (o *NSPresentationIntent) LanguageHint() *NSString
- func (o *NSPresentationIntent) Ordinal() int
- func (o *NSPresentationIntent) ParentIntent() *NSPresentationIntent
- func (o *NSPresentationIntent) Row() int
- type NSPresentationIntentKind
- type NSPresentationIntentTableColumnAlignment
- type NSProcessInfo
- func (o *NSProcessInfo) ActiveProcessorCount() uint
- func (o *NSProcessInfo) Arguments() *NSArray[*NSString]
- func (o *NSProcessInfo) AutomaticTerminationSupportEnabled() bool
- func (o *NSProcessInfo) BeginActivityWithOptionsReason(options NSActivityOptions, reason *NSString) NSObjectProtocol
- func (o *NSProcessInfo) DisableAutomaticTermination(reason *NSString)
- func (o *NSProcessInfo) DisableSuddenTermination()
- func (o *NSProcessInfo) EnableAutomaticTermination(reason *NSString)
- func (o *NSProcessInfo) EnableSuddenTermination()
- func (o *NSProcessInfo) EndActivity(activity NSObjectProtocol)
- func (o *NSProcessInfo) Environment() *NSDictionary[*NSString, *NSString]
- func (o *NSProcessInfo) FullUserName() *NSString
- func (o *NSProcessInfo) GloballyUniqueString() *NSString
- func (o *NSProcessInfo) HostName() *NSString
- func (o *NSProcessInfo) IsLowPowerModeEnabled() bool
- func (o *NSProcessInfo) IsMacCatalystApp() bool
- func (o *NSProcessInfo) IsOperatingSystemAtLeastVersion(version NSOperatingSystemVersion) bool
- func (o *NSProcessInfo) IsiOSAppOnMac() bool
- func (o *NSProcessInfo) IsiOSAppOnVision() bool
- func (o *NSProcessInfo) OperatingSystem() uintdeprecated
- func (o *NSProcessInfo) OperatingSystemName() *NSStringdeprecated
- func (o *NSProcessInfo) OperatingSystemVersion() NSOperatingSystemVersion
- func (o *NSProcessInfo) OperatingSystemVersionString() *NSStringdeprecated
- func (o *NSProcessInfo) PerformActivityWithOptionsReasonUsing(options NSActivityOptions, reason *NSString, block func())
- func (o *NSProcessInfo) PhysicalMemory() uint64
- func (o *NSProcessInfo) ProcessIdentifier() int
- func (o *NSProcessInfo) ProcessName() *NSString
- func (o *NSProcessInfo) ProcessorCount() uint
- func (o *NSProcessInfo) SetAutomaticTerminationSupportEnabled(automaticTerminationSupportEnabled bool)
- func (o *NSProcessInfo) SetProcessName(processName *NSString)
- func (o *NSProcessInfo) SystemUptime() float64
- func (o *NSProcessInfo) ThermalState() NSProcessInfoThermalState
- func (o *NSProcessInfo) UserName() *NSString
- type NSProcessInfoThermalState
- type NSProgress
- func NSProgressCurrentProgress() *NSProgress
- func NSProgressDiscreteProgressWithTotalUnitCount(unitCount int64) *NSProgress
- func NSProgressFromID(id objc.ID) *NSProgress
- func NSProgressProgressWithTotalUnitCount(unitCount int64) *NSProgress
- func NSProgressProgressWithTotalUnitCountParentPendingUnitCount(unitCount int64, parent *NSProgress, portionOfParentTotalUnitCount int64) *NSProgress
- func (o *NSProgress) AddChildWithPendingUnitCount(child *NSProgress, inUnitCount int64)
- func (o *NSProgress) BecomeCurrentWithPendingUnitCount(unitCount int64)
- func (o *NSProgress) Cancel()
- func (o *NSProgress) CancellationHandler() objc.Block
- func (o *NSProgress) CompletedUnitCount() int64
- func (o *NSProgress) EstimatedTimeRemaining() *NSNumber
- func (o *NSProgress) FileCompletedCount() *NSNumber
- func (o *NSProgress) FileOperationKind() *NSString
- func (o *NSProgress) FileTotalCount() *NSNumber
- func (o *NSProgress) FileURL() *NSURL
- func (o *NSProgress) FractionCompleted() float64
- func (o *NSProgress) InitWithParentUserInfo(parentProgressOrNil *NSProgress, ...) *NSProgress
- func (o *NSProgress) IsCancellable() bool
- func (o *NSProgress) IsCancelled() bool
- func (o *NSProgress) IsFinished() bool
- func (o *NSProgress) IsIndeterminate() bool
- func (o *NSProgress) IsOld() bool
- func (o *NSProgress) IsPausable() bool
- func (o *NSProgress) IsPaused() bool
- func (o *NSProgress) Kind() *NSString
- func (o *NSProgress) LocalizedAdditionalDescription() *NSString
- func (o *NSProgress) LocalizedDescription() *NSString
- func (o *NSProgress) Pause()
- func (o *NSProgress) PausingHandler() objc.Block
- func (o *NSProgress) PerformAsCurrentWithPendingUnitCountUsing(unitCount int64, work func())
- func (o *NSProgress) Publish()
- func (o *NSProgress) ResignCurrent()
- func (o *NSProgress) Resume()
- func (o *NSProgress) ResumingHandler() objc.Block
- func (o *NSProgress) SetCancellable(cancellable bool)
- func (o *NSProgress) SetCancellationHandler(cancellationHandler func())
- func (o *NSProgress) SetCompletedUnitCount(completedUnitCount int64)
- func (o *NSProgress) SetEstimatedTimeRemaining(estimatedTimeRemaining *NSNumber)
- func (o *NSProgress) SetFileCompletedCount(fileCompletedCount *NSNumber)
- func (o *NSProgress) SetFileOperationKind(fileOperationKind *NSString)
- func (o *NSProgress) SetFileTotalCount(fileTotalCount *NSNumber)
- func (o *NSProgress) SetFileURL(fileURL *NSURL)
- func (o *NSProgress) SetKind(kind *NSString)
- func (o *NSProgress) SetLocalizedAdditionalDescription(localizedAdditionalDescription *NSString)
- func (o *NSProgress) SetLocalizedDescription(localizedDescription *NSString)
- func (o *NSProgress) SetPausable(pausable bool)
- func (o *NSProgress) SetPausingHandler(pausingHandler func())
- func (o *NSProgress) SetResumingHandler(resumingHandler func())
- func (o *NSProgress) SetThroughput(throughput *NSNumber)
- func (o *NSProgress) SetTotalUnitCount(totalUnitCount int64)
- func (o *NSProgress) SetUserInfoObjectForKey(objectOrNil objc.ID, key *NSString)
- func (o *NSProgress) Throughput() *NSNumber
- func (o *NSProgress) TotalUnitCount() int64
- func (o *NSProgress) Unpublish()
- func (o *NSProgress) UserInfo() *NSDictionary[*NSString, objc.ID]
- type NSProgressReporting
- type NSPropertyListFormat
- type NSPropertyListMutabilityOptions
- type NSPropertyListSerialization
- type NSProtocolChecker
- type NSProxy
- func (o *NSProxy) Dealloc()
- func (o *NSProxy) DebugDescription() *NSString
- func (o *NSProxy) Description() *NSString
- func (o *NSProxy) Finalize()
- func (o *NSProxy) ForwardInvocation(invocation *NSInvocation)
- func (o *NSProxy) InitPtr(id objc.ID)
- func (o *NSProxy) MethodSignatureForSelector(sel objc.SEL) *NSMethodSignature
- func (o *NSProxy) Ptr() objc.ID
- type NSPurgeableData
- type NSQualityOfService
- type NSQuitCommand
- type NSRange
- type NSRangeSpecifier
- func (o *NSRangeSpecifier) EndSpecifier() *NSScriptObjectSpecifier
- func (o *NSRangeSpecifier) InitWithCoder(inCoder *NSCoder) *NSRangeSpecifier
- func (o *NSRangeSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyStartSpecifierEndSpecifier(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, ...) *NSRangeSpecifier
- func (o *NSRangeSpecifier) SetEndSpecifier(endSpecifier *NSScriptObjectSpecifier)
- func (o *NSRangeSpecifier) SetStartSpecifier(startSpecifier *NSScriptObjectSpecifier)
- func (o *NSRangeSpecifier) StartSpecifier() *NSScriptObjectSpecifier
- type NSRectEdge
- type NSRecursiveLock
- type NSRegularExpression
- func (o *NSRegularExpression) EnumerateMatchesInStringOptionsRangeUsing(string_ *NSString, options NSMatchingOptions, range_ NSRange, ...)
- func (o *NSRegularExpression) FirstMatchInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) *NSTextCheckingResult
- func (o *NSRegularExpression) InitWithPatternOptionsError(pattern *NSString, options NSRegularExpressionOptions) (*NSRegularExpression, error)
- func (o *NSRegularExpression) MatchesInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) *NSArray[*NSTextCheckingResult]
- func (o *NSRegularExpression) NumberOfCaptureGroups() uint
- func (o *NSRegularExpression) NumberOfMatchesInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) uint
- func (o *NSRegularExpression) Options() NSRegularExpressionOptions
- func (o *NSRegularExpression) Pattern() *NSString
- func (o *NSRegularExpression) RangeOfFirstMatchInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) NSRange
- func (o *NSRegularExpression) ReplaceMatchesInStringOptionsRangeWithTemplate(string_ *NSMutableString, options NSMatchingOptions, range_ NSRange, ...) uint
- func (o *NSRegularExpression) ReplacementStringForResultInStringOffsetTemplate(result *NSTextCheckingResult, string_ *NSString, offset int, templ *NSString) *NSString
- func (o *NSRegularExpression) StringByReplacingMatchesInStringOptionsRangeWithTemplate(string_ *NSString, options NSMatchingOptions, range_ NSRange, templ *NSString) *NSString
- type NSRegularExpressionOptions
- type NSRelativeDateTimeFormatter
- func (o *NSRelativeDateTimeFormatter) Calendar() *NSCalendar
- func (o *NSRelativeDateTimeFormatter) DateTimeStyle() NSRelativeDateTimeFormatterStyle
- func (o *NSRelativeDateTimeFormatter) FormattingContext() NSFormattingContext
- func (o *NSRelativeDateTimeFormatter) Locale() *NSLocale
- func (o *NSRelativeDateTimeFormatter) LocalizedStringForDateRelativeToDate(date *NSDate, referenceDate *NSDate) *NSString
- func (o *NSRelativeDateTimeFormatter) LocalizedStringFromDateComponents(dateComponents *NSDateComponents) *NSString
- func (o *NSRelativeDateTimeFormatter) LocalizedStringFromTimeInterval(timeInterval float64) *NSString
- func (o *NSRelativeDateTimeFormatter) SetCalendar(calendar *NSCalendar)
- func (o *NSRelativeDateTimeFormatter) SetDateTimeStyle(dateTimeStyle NSRelativeDateTimeFormatterStyle)
- func (o *NSRelativeDateTimeFormatter) SetFormattingContext(formattingContext NSFormattingContext)
- func (o *NSRelativeDateTimeFormatter) SetLocale(locale *NSLocale)
- func (o *NSRelativeDateTimeFormatter) SetUnitsStyle(unitsStyle NSRelativeDateTimeFormatterUnitsStyle)
- func (o *NSRelativeDateTimeFormatter) UnitsStyle() NSRelativeDateTimeFormatterUnitsStyle
- type NSRelativeDateTimeFormatterStyle
- type NSRelativeDateTimeFormatterUnitsStyle
- type NSRelativePosition
- type NSRelativeSpecifier
- func (o *NSRelativeSpecifier) BaseSpecifier() *NSScriptObjectSpecifier
- func (o *NSRelativeSpecifier) InitWithCoder(inCoder *NSCoder) *NSRelativeSpecifier
- func (o *NSRelativeSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyRelativePositionBaseSpecifier(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, ...) *NSRelativeSpecifier
- func (o *NSRelativeSpecifier) RelativePosition() NSRelativePosition
- func (o *NSRelativeSpecifier) SetBaseSpecifier(baseSpecifier *NSScriptObjectSpecifier)
- func (o *NSRelativeSpecifier) SetRelativePosition(relativePosition NSRelativePosition)
- type NSRoundingMode
- type NSRunLoop
- func (o *NSRunLoop) AcceptInputForModeBeforeDate(mode *NSString, limitDate *NSDate)
- func (o *NSRunLoop) AddPortForMode(aPort *NSPort, mode *NSString)
- func (o *NSRunLoop) AddTimerForMode(timer *NSTimer, mode *NSString)
- func (o *NSRunLoop) CancelPerformSelectorTargetArgument(aSelector objc.SEL, target objc.ID, arg objc.ID)
- func (o *NSRunLoop) CancelPerformSelectorsWithTarget(target objc.ID)
- func (o *NSRunLoop) ConfigureAsServer()
- func (o *NSRunLoop) CurrentMode() *NSString
- func (o *NSRunLoop) GetCFRunLoop() unsafe.Pointer
- func (o *NSRunLoop) LimitDateForMode(mode *NSString) *NSDate
- func (o *NSRunLoop) PerformBlock(block func())
- func (o *NSRunLoop) PerformInModesBlock(modes *NSArray[*NSString], block func())
- func (o *NSRunLoop) PerformSelectorTargetArgumentOrderModes(aSelector objc.SEL, target objc.ID, arg objc.ID, order uint, ...)
- func (o *NSRunLoop) RemovePortForMode(aPort *NSPort, mode *NSString)
- func (o *NSRunLoop) Run()
- func (o *NSRunLoop) RunModeBeforeDate(mode *NSString, limitDate *NSDate) bool
- func (o *NSRunLoop) RunUntilDate(limitDate *NSDate)
- type NSSaveOptions
- type NSScanner
- func (o *NSScanner) CaseSensitive() bool
- func (o *NSScanner) CharactersToBeSkipped() *NSCharacterSet
- func (o *NSScanner) InitWithString(string_ *NSString) *NSScanner
- func (o *NSScanner) IsAtEnd() bool
- func (o *NSScanner) Locale() objc.ID
- func (o *NSScanner) ScanCharactersFromSetIntoString(set *NSCharacterSet, result *NSString) bool
- func (o *NSScanner) ScanDecimal(dcm *NSDecimal) bool
- func (o *NSScanner) ScanDouble(result *float64) bool
- func (o *NSScanner) ScanFloat(result *float32) bool
- func (o *NSScanner) ScanHexDouble(result *float64) bool
- func (o *NSScanner) ScanHexFloat(result *float32) bool
- func (o *NSScanner) ScanHexInt(result *uint32) bool
- func (o *NSScanner) ScanHexLongLong(result *uint64) bool
- func (o *NSScanner) ScanInt(result *int32) bool
- func (o *NSScanner) ScanInteger(result *int64) bool
- func (o *NSScanner) ScanLocation() uint
- func (o *NSScanner) ScanLongLong(result *int64) bool
- func (o *NSScanner) ScanStringIntoString(string_ *NSString, result *NSString) bool
- func (o *NSScanner) ScanUnsignedLongLong(result *uint64) bool
- func (o *NSScanner) ScanUpToCharactersFromSetIntoString(set *NSCharacterSet, result *NSString) bool
- func (o *NSScanner) ScanUpToStringIntoString(string_ *NSString, result *NSString) bool
- func (o *NSScanner) SetCaseSensitive(caseSensitive bool)
- func (o *NSScanner) SetCharactersToBeSkipped(charactersToBeSkipped *NSCharacterSet)
- func (o *NSScanner) SetLocale(locale objc.ID)
- func (o *NSScanner) SetScanLocation(scanLocation uint)
- func (o *NSScanner) String() *NSString
- type NSScriptClassDescription
- func (o *NSScriptClassDescription) AppleEventCode() uint
- func (o *NSScriptClassDescription) AppleEventCodeForKey(key *NSString) uint
- func (o *NSScriptClassDescription) ClassDescriptionForKey(key *NSString) *NSScriptClassDescription
- func (o *NSScriptClassDescription) DefaultSubcontainerAttributeKey() *NSString
- func (o *NSScriptClassDescription) HasOrderedToManyRelationshipForKey(key *NSString) bool
- func (o *NSScriptClassDescription) HasPropertyForKey(key *NSString) bool
- func (o *NSScriptClassDescription) HasReadablePropertyForKey(key *NSString) bool
- func (o *NSScriptClassDescription) HasWritablePropertyForKey(key *NSString) bool
- func (o *NSScriptClassDescription) ImplementationClassName() *NSString
- func (o *NSScriptClassDescription) InitWithSuiteNameClassNameDictionary(suiteName *NSString, className *NSString, ...) *NSScriptClassDescription
- func (o *NSScriptClassDescription) IsLocationRequiredToCreateForKey(toManyRelationshipKey *NSString) bool
- func (o *NSScriptClassDescription) IsReadOnlyKey(key *NSString) bool
- func (o *NSScriptClassDescription) KeyWithAppleEventCode(appleEventCode uint) *NSString
- func (o *NSScriptClassDescription) MatchesAppleEventCode(appleEventCode uint) bool
- func (o *NSScriptClassDescription) SelectorForCommand(commandDescription *NSScriptCommandDescription) objc.SEL
- func (o *NSScriptClassDescription) SuiteName() *NSString
- func (o *NSScriptClassDescription) SuperclassDescription() *NSScriptClassDescription
- func (o *NSScriptClassDescription) SupportsCommand(commandDescription *NSScriptCommandDescription) bool
- func (o *NSScriptClassDescription) TypeForKey(key *NSString) *NSString
- type NSScriptCoercionHandler
- type NSScriptCommand
- func (o *NSScriptCommand) AppleEvent() *NSAppleEventDescriptor
- func (o *NSScriptCommand) Arguments() *NSDictionary[*NSString, objc.ID]
- func (o *NSScriptCommand) CommandDescription() *NSScriptCommandDescription
- func (o *NSScriptCommand) DirectParameter() objc.ID
- func (o *NSScriptCommand) EvaluatedArguments() *NSDictionary[*NSString, objc.ID]
- func (o *NSScriptCommand) EvaluatedReceivers() objc.ID
- func (o *NSScriptCommand) ExecuteCommand() objc.ID
- func (o *NSScriptCommand) InitWithCoder(inCoder *NSCoder) *NSScriptCommand
- func (o *NSScriptCommand) InitWithCommandDescription(commandDef *NSScriptCommandDescription) *NSScriptCommand
- func (o *NSScriptCommand) IsWellFormed() bool
- func (o *NSScriptCommand) PerformDefaultImplementation() objc.ID
- func (o *NSScriptCommand) ReceiversSpecifier() *NSScriptObjectSpecifier
- func (o *NSScriptCommand) ResumeExecutionWithResult(result objc.ID)
- func (o *NSScriptCommand) ScriptErrorExpectedTypeDescriptor() *NSAppleEventDescriptor
- func (o *NSScriptCommand) ScriptErrorNumber() int
- func (o *NSScriptCommand) ScriptErrorOffendingObjectDescriptor() *NSAppleEventDescriptor
- func (o *NSScriptCommand) ScriptErrorString() *NSString
- func (o *NSScriptCommand) SetArguments(arguments *NSDictionary[*NSString, objc.ID])
- func (o *NSScriptCommand) SetDirectParameter(directParameter objc.ID)
- func (o *NSScriptCommand) SetReceiversSpecifier(receiversSpecifier *NSScriptObjectSpecifier)
- func (o *NSScriptCommand) SetScriptErrorExpectedTypeDescriptor(scriptErrorExpectedTypeDescriptor *NSAppleEventDescriptor)
- func (o *NSScriptCommand) SetScriptErrorNumber(scriptErrorNumber int)
- func (o *NSScriptCommand) SetScriptErrorOffendingObjectDescriptor(scriptErrorOffendingObjectDescriptor *NSAppleEventDescriptor)
- func (o *NSScriptCommand) SetScriptErrorString(scriptErrorString *NSString)
- func (o *NSScriptCommand) SuspendExecution()
- type NSScriptCommandDescription
- func (o *NSScriptCommandDescription) AppleEventClassCode() uint
- func (o *NSScriptCommandDescription) AppleEventCode() uint
- func (o *NSScriptCommandDescription) AppleEventCodeForArgumentWithName(argumentName *NSString) uint
- func (o *NSScriptCommandDescription) AppleEventCodeForReturnType() uint
- func (o *NSScriptCommandDescription) ArgumentNames() *NSArray[*NSString]
- func (o *NSScriptCommandDescription) CommandClassName() *NSString
- func (o *NSScriptCommandDescription) CommandName() *NSString
- func (o *NSScriptCommandDescription) CreateCommandInstance() *NSScriptCommand
- func (o *NSScriptCommandDescription) CreateCommandInstanceWithZone(zone unsafe.Pointer) *NSScriptCommand
- func (o *NSScriptCommandDescription) InitWithCoder(inCoder *NSCoder) *NSScriptCommandDescription
- func (o *NSScriptCommandDescription) InitWithSuiteNameCommandNameDictionary(suiteName *NSString, commandName *NSString, ...) *NSScriptCommandDescription
- func (o *NSScriptCommandDescription) IsOptionalArgumentWithName(argumentName *NSString) bool
- func (o *NSScriptCommandDescription) ReturnType() *NSString
- func (o *NSScriptCommandDescription) SuiteName() *NSString
- func (o *NSScriptCommandDescription) TypeForArgumentWithName(argumentName *NSString) *NSString
- type NSScriptExecutionContext
- func (o *NSScriptExecutionContext) ObjectBeingTested() objc.ID
- func (o *NSScriptExecutionContext) RangeContainerObject() objc.ID
- func (o *NSScriptExecutionContext) SetObjectBeingTested(objectBeingTested objc.ID)
- func (o *NSScriptExecutionContext) SetRangeContainerObject(rangeContainerObject objc.ID)
- func (o *NSScriptExecutionContext) SetTopLevelObject(topLevelObject objc.ID)
- func (o *NSScriptExecutionContext) TopLevelObject() objc.ID
- type NSScriptObjectSpecifier
- func (o *NSScriptObjectSpecifier) ChildSpecifier() *NSScriptObjectSpecifier
- func (o *NSScriptObjectSpecifier) ContainerClassDescription() *NSScriptClassDescription
- func (o *NSScriptObjectSpecifier) ContainerIsObjectBeingTested() bool
- func (o *NSScriptObjectSpecifier) ContainerIsRangeContainerObject() bool
- func (o *NSScriptObjectSpecifier) ContainerSpecifier() *NSScriptObjectSpecifier
- func (o *NSScriptObjectSpecifier) Descriptor() *NSAppleEventDescriptor
- func (o *NSScriptObjectSpecifier) EvaluationErrorNumber() int
- func (o *NSScriptObjectSpecifier) EvaluationErrorSpecifier() *NSScriptObjectSpecifier
- func (o *NSScriptObjectSpecifier) IndicesOfObjectsByEvaluatingWithContainerCount(container objc.ID, count *int64) *int64
- func (o *NSScriptObjectSpecifier) InitWithCoder(inCoder *NSCoder) *NSScriptObjectSpecifier
- func (o *NSScriptObjectSpecifier) InitWithContainerClassDescriptionContainerSpecifierKey(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, ...) *NSScriptObjectSpecifier
- func (o *NSScriptObjectSpecifier) InitWithContainerSpecifierKey(container *NSScriptObjectSpecifier, property *NSString) *NSScriptObjectSpecifier
- func (o *NSScriptObjectSpecifier) Key() *NSString
- func (o *NSScriptObjectSpecifier) KeyClassDescription() *NSScriptClassDescription
- func (o *NSScriptObjectSpecifier) ObjectsByEvaluatingSpecifier() objc.ID
- func (o *NSScriptObjectSpecifier) ObjectsByEvaluatingWithContainers(containers objc.ID) objc.ID
- func (o *NSScriptObjectSpecifier) SetChildSpecifier(childSpecifier *NSScriptObjectSpecifier)
- func (o *NSScriptObjectSpecifier) SetContainerClassDescription(containerClassDescription *NSScriptClassDescription)
- func (o *NSScriptObjectSpecifier) SetContainerIsObjectBeingTested(containerIsObjectBeingTested bool)
- func (o *NSScriptObjectSpecifier) SetContainerIsRangeContainerObject(containerIsRangeContainerObject bool)
- func (o *NSScriptObjectSpecifier) SetContainerSpecifier(containerSpecifier *NSScriptObjectSpecifier)
- func (o *NSScriptObjectSpecifier) SetEvaluationErrorNumber(evaluationErrorNumber int)
- func (o *NSScriptObjectSpecifier) SetKey(key *NSString)
- type NSScriptSuiteRegistry
- func (o *NSScriptSuiteRegistry) AeteResource(languageName *NSString) *NSData
- func (o *NSScriptSuiteRegistry) AppleEventCodeForSuite(suiteName *NSString) uint
- func (o *NSScriptSuiteRegistry) BundleForSuite(suiteName *NSString) *NSBundle
- func (o *NSScriptSuiteRegistry) ClassDescriptionWithAppleEventCode(appleEventCode uint) *NSScriptClassDescription
- func (o *NSScriptSuiteRegistry) ClassDescriptionsInSuite(suiteName *NSString) *NSDictionary[*NSString, *NSScriptClassDescription]
- func (o *NSScriptSuiteRegistry) CommandDescriptionWithAppleEventClassAndAppleEventCode(appleEventClassCode uint, appleEventIDCode uint) *NSScriptCommandDescription
- func (o *NSScriptSuiteRegistry) CommandDescriptionsInSuite(suiteName *NSString) *NSDictionary[*NSString, *NSScriptCommandDescription]
- func (o *NSScriptSuiteRegistry) LoadSuiteWithDictionaryFromBundle(suiteDeclaration *NSDictionary[objc.ID, objc.ID], bundle *NSBundle)
- func (o *NSScriptSuiteRegistry) LoadSuitesFromBundle(bundle *NSBundle)
- func (o *NSScriptSuiteRegistry) RegisterClassDescription(classDescription *NSScriptClassDescription)
- func (o *NSScriptSuiteRegistry) RegisterCommandDescription(commandDescription *NSScriptCommandDescription)
- func (o *NSScriptSuiteRegistry) SuiteForAppleEventCode(appleEventCode uint) *NSString
- func (o *NSScriptSuiteRegistry) SuiteNames() *NSArray[*NSString]
- type NSScriptWhoseTest
- type NSSearchPathDirectory
- type NSSearchPathDomainMask
- type NSSecureCoding
- type NSSecureUnarchiveFromDataTransformer
- type NSSet
- func NSObjectKeyPathsForValuesAffectingValueForKey(key *NSString) *NSSet[*NSString]
- func NSSetFromID[ObjectType purego.AnyObject](id objc.ID) *NSSet[ObjectType]
- func NSSetSet() *NSSet[objc.ID]
- func NSSetSetWithArray(array *NSArray[objc.ID]) *NSSet[objc.ID]
- func NSSetSetWithObject(object objc.ID) *NSSet[objc.ID]
- func NSSetSetWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSSet[objc.ID]
- func NSSetSetWithSet(set *NSSet[objc.ID]) *NSSet[objc.ID]
- func (o *NSSet[ObjectType]) AllObjects() *NSArray[ObjectType]
- func (o *NSSet[ObjectType]) AnyObject() ObjectType
- func (o *NSSet[ObjectType]) ContainsObject(anObject ObjectType) bool
- func (o *NSSet[ObjectType]) Count() uint
- func (o *NSSet[ObjectType]) DescriptionWithLocale(locale objc.ID) *NSString
- func (o *NSSet[ObjectType]) EnumerateObjectsUsing(block objc.Block)
- func (o *NSSet[ObjectType]) EnumerateObjectsWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)
- func (o *NSSet[ObjectType]) FilteredSetUsingPredicate(predicate *NSPredicate) *NSSet[ObjectType]
- func (o *NSSet[ObjectType]) Init() *NSSet[ObjectType]
- func (o *NSSet[ObjectType]) InitWithArray(array *NSArray[ObjectType]) *NSSet[ObjectType]
- func (o *NSSet[ObjectType]) InitWithCoder(coder *NSCoder) *NSSet[ObjectType]
- func (o *NSSet[ObjectType]) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSSet[ObjectType]
- func (o *NSSet[ObjectType]) InitWithSet(set *NSSet[ObjectType]) *NSSet[ObjectType]
- func (o *NSSet[ObjectType]) InitWithSetCopyItems(set *NSSet[ObjectType], flag bool) *NSSet[ObjectType]
- func (o *NSSet[ObjectType]) IntersectsSet(otherSet *NSSet[ObjectType]) bool
- func (o *NSSet[ObjectType]) IsEqualToSet(otherSet *NSSet[ObjectType]) bool
- func (o *NSSet[ObjectType]) IsSubsetOfSet(otherSet *NSSet[ObjectType]) bool
- func (o *NSSet[ObjectType]) MakeObjectsPerformSelector(aSelector objc.SEL)
- func (o *NSSet[ObjectType]) MakeObjectsPerformSelectorWithObject(aSelector objc.SEL, argument objc.ID)
- func (o *NSSet[ObjectType]) Member(object ObjectType) ObjectType
- func (o *NSSet[ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]
- func (o *NSSet[ObjectType]) ObjectsPassingTest(predicate objc.Block) *NSSet[ObjectType]
- func (o *NSSet[ObjectType]) ObjectsWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSSet[ObjectType]
- func (o *NSSet[ObjectType]) SetByAddingObject(anObject ObjectType) *NSSet[ObjectType]
- func (o *NSSet[ObjectType]) SetByAddingObjectsFromArray(other *NSArray[ObjectType]) *NSSet[ObjectType]
- func (o *NSSet[ObjectType]) SetByAddingObjectsFromSet(other *NSSet[ObjectType]) *NSSet[ObjectType]
- func (o *NSSet[ObjectType]) SortedArrayUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor]) *NSArray[ObjectType]
- type NSSetCommand
- type NSSimpleCString
- type NSSocketPort
- func (o *NSSocketPort) Address() *NSData
- func (o *NSSocketPort) Init() *NSSocketPort
- func (o *NSSocketPort) InitRemoteWithProtocolFamilySocketTypeProtocolAddress(family int, type_ int, protocol int, address *NSData) *NSSocketPort
- func (o *NSSocketPort) InitRemoteWithTCPPortHost(port uint16, hostName *NSString) *NSSocketPort
- func (o *NSSocketPort) InitWithProtocolFamilySocketTypeProtocolAddress(family int, type_ int, protocol int, address *NSData) *NSSocketPort
- func (o *NSSocketPort) InitWithProtocolFamilySocketTypeProtocolSocket(family int, type_ int, protocol int, sock int) *NSSocketPort
- func (o *NSSocketPort) InitWithTCPPort(port uint16) *NSSocketPort
- func (o *NSSocketPort) Protocol() int
- func (o *NSSocketPort) ProtocolFamily() int
- func (o *NSSocketPort) Socket() int
- func (o *NSSocketPort) SocketType() int
- type NSSocketPortNameServer
- func (o *NSSocketPortNameServer) DefaultNameServerPortNumber() uint16
- func (o *NSSocketPortNameServer) PortForNameHostNameServerPortNumber(name *NSString, host *NSString, portNumber uint16) *NSPort
- func (o *NSSocketPortNameServer) RegisterPortNameNameServerPortNumber(port *NSPort, name *NSString, portNumber uint16) bool
- func (o *NSSocketPortNameServer) SetDefaultNameServerPortNumber(defaultNameServerPortNumber uint16)
- type NSSortDescriptor
- func NSSortDescriptorFromID(id objc.ID) *NSSortDescriptor
- func NSSortDescriptorSortDescriptorWithKeyAscending(key *NSString, ascending bool) *NSSortDescriptor
- func NSSortDescriptorSortDescriptorWithKeyAscendingComparator(key *NSString, ascending bool, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSSortDescriptor
- func NSSortDescriptorSortDescriptorWithKeyAscendingSelector(key *NSString, ascending bool, selector objc.SEL) *NSSortDescriptor
- func (o *NSSortDescriptor) AllowEvaluation()
- func (o *NSSortDescriptor) Ascending() bool
- func (o *NSSortDescriptor) Comparator() objc.Block
- func (o *NSSortDescriptor) CompareObjectToObject(object1 objc.ID, object2 objc.ID) NSComparisonResult
- func (o *NSSortDescriptor) InitWithCoder(coder *NSCoder) *NSSortDescriptor
- func (o *NSSortDescriptor) InitWithKeyAscending(key *NSString, ascending bool) *NSSortDescriptor
- func (o *NSSortDescriptor) InitWithKeyAscendingComparator(key *NSString, ascending bool, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSSortDescriptor
- func (o *NSSortDescriptor) InitWithKeyAscendingSelector(key *NSString, ascending bool, selector objc.SEL) *NSSortDescriptor
- func (o *NSSortDescriptor) Key() *NSString
- func (o *NSSortDescriptor) ReversedSortDescriptor() objc.ID
- func (o *NSSortDescriptor) Selector() objc.SEL
- type NSSortOptions
- type NSSpecifierTest
- type NSSpellServer
- func (o *NSSpellServer) Delegate() NSSpellServerDelegate
- func (o *NSSpellServer) IsWordInUserDictionariesCaseSensitive(word *NSString, flag bool) bool
- func (o *NSSpellServer) RegisterLanguageByVendor(language *NSString, vendor *NSString) bool
- func (o *NSSpellServer) Run()
- func (o *NSSpellServer) SetDelegate(delegate NSSpellServerDelegate)
- type NSSpellServerDelegate
- type NSStream
- func (o *NSStream) Close()
- func (o *NSStream) Delegate() NSStreamDelegate
- func (o *NSStream) Open()
- func (o *NSStream) PropertyForKey(key *NSString) objc.ID
- func (o *NSStream) RemoveFromRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
- func (o *NSStream) ScheduleInRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
- func (o *NSStream) SetDelegate(delegate NSStreamDelegate)
- func (o *NSStream) SetPropertyForKey(property objc.ID, key *NSString) bool
- func (o *NSStream) StreamError() unsafe.Pointer
- func (o *NSStream) StreamStatus() NSStreamStatus
- type NSStreamDelegate
- type NSStreamEvent
- type NSStreamStatus
- type NSString
- func NSAppleEventManagerWillProcessFirstEventNotification() *NSString
- func NSArgumentDomain() *NSString
- func NSAssertionHandlerKey() *NSString
- func NSAverageKeyValueOperator() *NSString
- func NSBuddhistCalendar() *NSStringdeprecated
- func NSBundleDidLoadNotification() *NSString
- func NSBundlePathForResourceOfTypeInDirectory(name *NSString, ext *NSString, bundlePath *NSString) *NSString
- func NSByteCountFormatterStringFromByteCountCountStyle(byteCount int64, countStyle NSByteCountFormatterCountStyle) *NSString
- func NSByteCountFormatterStringFromMeasurementCountStyle(measurement *NSMeasurement[*NSUnitInformationStorage], ...) *NSString
- func NSCalendarDayChangedNotification() *NSString
- func NSCalendarIdentifierBangla() *NSString
- func NSCalendarIdentifierBuddhist() *NSString
- func NSCalendarIdentifierChinese() *NSString
- func NSCalendarIdentifierCoptic() *NSString
- func NSCalendarIdentifierDangi() *NSString
- func NSCalendarIdentifierEthiopicAmeteAlem() *NSString
- func NSCalendarIdentifierEthiopicAmeteMihret() *NSString
- func NSCalendarIdentifierGregorian() *NSString
- func NSCalendarIdentifierGujarati() *NSString
- func NSCalendarIdentifierHebrew() *NSString
- func NSCalendarIdentifierISO8601() *NSString
- func NSCalendarIdentifierIndian() *NSString
- func NSCalendarIdentifierIslamic() *NSString
- func NSCalendarIdentifierIslamicCivil() *NSString
- func NSCalendarIdentifierIslamicTabular() *NSString
- func NSCalendarIdentifierIslamicUmmAlQura() *NSString
- func NSCalendarIdentifierJapanese() *NSString
- func NSCalendarIdentifierKannada() *NSString
- func NSCalendarIdentifierMalayalam() *NSString
- func NSCalendarIdentifierMarathi() *NSString
- func NSCalendarIdentifierOdia() *NSString
- func NSCalendarIdentifierPersian() *NSString
- func NSCalendarIdentifierRepublicOfChina() *NSString
- func NSCalendarIdentifierTamil() *NSString
- func NSCalendarIdentifierTelugu() *NSString
- func NSCalendarIdentifierVietnamese() *NSString
- func NSCalendarIdentifierVikram() *NSString
- func NSCharacterConversionException() *NSString
- func NSChineseCalendar() *NSStringdeprecated
- func NSClassDescriptionNeededForClassNotification() *NSString
- func NSCocoaErrorDomain() *NSString
- func NSCountKeyValueOperator() *NSString
- func NSCurrentLocaleDidChangeNotification() *NSString
- func NSDateComponentsFormatterLocalizedStringFromDateComponentsUnitsStyle(components *NSDateComponents, unitsStyle NSDateComponentsFormatterUnitsStyle) *NSString
- func NSDateFormatterDateFormatFromTemplateOptionsLocale(tmplate *NSString, opts uint, locale *NSLocale) *NSString
- func NSDateFormatterLocalizedStringFromDateDateStyleTimeStyle(date *NSDate, dstyle NSDateFormatterStyle, tstyle NSDateFormatterStyle) *NSString
- func NSDebugDescriptionErrorKey() *NSString
- func NSDecimalNumberDivideByZeroException() *NSString
- func NSDecimalNumberExactnessException() *NSString
- func NSDecimalNumberOverflowException() *NSString
- func NSDecimalNumberUnderflowException() *NSString
- func NSDecimalString(dcm *NSDecimal, locale objc.ID) *NSString
- func NSDefaultRunLoopMode() *NSString
- func NSDestinationInvalidException() *NSString
- func NSDidBecomeSingleThreadedNotification() *NSStringdeprecated
- func NSDistinctUnionOfArraysKeyValueOperator() *NSString
- func NSDistinctUnionOfObjectsKeyValueOperator() *NSString
- func NSDistinctUnionOfSetsKeyValueOperator() *NSString
- func NSErrorFailingURLStringKey() *NSString
- func NSExtensionItemAttachmentsKey() *NSString
- func NSExtensionItemAttributedContentTextKey() *NSString
- func NSExtensionItemAttributedTitleKey() *NSString
- func NSExtensionItemsAndErrorsKey() *NSString
- func NSExtensionJavaScriptPreprocessingResultsKey() *NSString
- func NSFTPPropertyActiveTransferModeKey() *NSStringdeprecated
- func NSFTPPropertyFTPProxy() *NSStringdeprecated
- func NSFTPPropertyFileOffsetKey() *NSStringdeprecated
- func NSFTPPropertyUserLoginKey() *NSStringdeprecated
- func NSFTPPropertyUserPasswordKey() *NSStringdeprecated
- func NSFileAppendOnly() *NSString
- func NSFileBusy() *NSString
- func NSFileCreationDate() *NSString
- func NSFileDeviceIdentifier() *NSString
- func NSFileExtensionHidden() *NSString
- func NSFileGroupOwnerAccountID() *NSString
- func NSFileGroupOwnerAccountName() *NSString
- func NSFileHFSCreatorCode() *NSString
- func NSFileHFSTypeCode() *NSString
- func NSFileHandleConnectionAcceptedNotification() *NSString
- func NSFileHandleDataAvailableNotification() *NSString
- func NSFileHandleNotificationDataItem() *NSString
- func NSFileHandleNotificationFileHandleItem() *NSString
- func NSFileHandleNotificationMonitorModes() *NSStringdeprecated
- func NSFileHandleOperationException() *NSString
- func NSFileHandleReadCompletionNotification() *NSString
- func NSFileHandleReadToEndOfFileCompletionNotification() *NSString
- func NSFileImmutable() *NSString
- func NSFileModificationDate() *NSString
- func NSFileOwnerAccountID() *NSString
- func NSFileOwnerAccountName() *NSString
- func NSFilePathErrorKey() *NSString
- func NSFilePosixPermissions() *NSString
- func NSFileProtectionComplete() *NSString
- func NSFileProtectionCompleteUnlessOpen() *NSString
- func NSFileProtectionCompleteUntilFirstUserAuthentication() *NSString
- func NSFileProtectionKey() *NSString
- func NSFileProtectionNone() *NSString
- func NSFileReferenceCount() *NSString
- func NSFileSize() *NSString
- func NSFileSystemFileNumber() *NSString
- func NSFileSystemFreeNodes() *NSString
- func NSFileSystemNumber() *NSString
- func NSFileType() *NSString
- func NSFileTypeBlockSpecial() *NSString
- func NSFileTypeCharacterSpecial() *NSString
- func NSFileTypeDirectory() *NSString
- func NSFileTypeForHFSTypeCode(hfsFileTypeCode uint) *NSString
- func NSFileTypeRegular() *NSString
- func NSFileTypeSocket() *NSString
- func NSFileTypeSymbolicLink() *NSString
- func NSFileTypeUnknown() *NSString
- func NSFullUserName() *NSString
- func NSGenericException() *NSString
- func NSGlobalDomain() *NSString
- func NSGregorianCalendar() *NSStringdeprecated
- func NSHFSTypeOfFile(fullFilePath *NSString) *NSString
- func NSHTTPCookieComment() *NSString
- func NSHTTPCookieCommentURL() *NSString
- func NSHTTPCookieDiscard() *NSString
- func NSHTTPCookieDomain() *NSString
- func NSHTTPCookieExpires() *NSString
- func NSHTTPCookieManagerAcceptPolicyChangedNotification() *NSString
- func NSHTTPCookieManagerCookiesChangedNotification() *NSString
- func NSHTTPCookieMaximumAge() *NSString
- func NSHTTPCookieName() *NSString
- func NSHTTPCookieOriginURL() *NSString
- func NSHTTPCookiePath() *NSString
- func NSHTTPCookiePort() *NSString
- func NSHTTPCookieSameSiteLax() *NSString
- func NSHTTPCookieSameSitePolicy() *NSString
- func NSHTTPCookieSameSiteStrict() *NSString
- func NSHTTPCookieSecure() *NSString
- func NSHTTPCookieSetByJavaScript() *NSString
- func NSHTTPCookieValue() *NSString
- func NSHTTPCookieVersion() *NSString
- func NSHTTPPropertyErrorPageDataKey() *NSStringdeprecated
- func NSHTTPPropertyHTTPProxy() *NSStringdeprecated
- func NSHTTPPropertyRedirectionHeadersKey() *NSStringdeprecated
- func NSHTTPPropertyServerHTTPVersionKey() *NSStringdeprecated
- func NSHTTPPropertyStatusCodeKey() *NSStringdeprecated
- func NSHTTPPropertyStatusReasonKey() *NSStringdeprecated
- func NSHTTPURLResponseLocalizedStringForStatusCode(statusCode int) *NSString
- func NSHebrewCalendar() *NSStringdeprecated
- func NSHelpAnchorErrorKey() *NSString
- func NSHomeDirectory() *NSString
- func NSHomeDirectoryForUser(userName *NSString) *NSString
- func NSISO8601Calendar() *NSStringdeprecated
- func NSISO8601DateFormatterStringFromDateTimeZoneFormatOptions(date *NSDate, timeZone *NSTimeZone, formatOptions NSISO8601DateFormatOptions) *NSString
- func NSInconsistentArchiveException() *NSString
- func NSIndianCalendar() *NSStringdeprecated
- func NSInflectionConceptsKey() *NSString
- func NSInternalInconsistencyException() *NSString
- func NSInvalidArchiveOperationException() *NSString
- func NSInvalidArgumentException() *NSString
- func NSInvalidReceivePortException() *NSString
- func NSInvalidSendPortException() *NSString
- func NSInvalidUnarchiveOperationException() *NSString
- func NSInvocationOperationCancelledException() *NSString
- func NSInvocationOperationVoidResultException() *NSString
- func NSIsNilTransformerName() *NSString
- func NSIsNotNilTransformerName() *NSString
- func NSIslamicCalendar() *NSStringdeprecated
- func NSIslamicCivilCalendar() *NSStringdeprecated
- func NSItemProviderErrorDomain() *NSString
- func NSItemProviderPreferredImageSizeKey() *NSString
- func NSJapaneseCalendar() *NSStringdeprecated
- func NSKeyValueChangeIndexesKey() *NSString
- func NSKeyValueChangeKindKey() *NSString
- func NSKeyValueChangeNewKey() *NSString
- func NSKeyValueChangeNotificationIsPriorKey() *NSString
- func NSKeyValueChangeOldKey() *NSString
- func NSKeyedArchiveRootObjectKey() *NSString
- func NSKeyedArchiverClassNameForClass(cls objc.Class) *NSString
- func NSKeyedUnarchiveFromDataTransformerName() *NSStringdeprecated
- func NSLinguisticTagAdjective() *NSStringdeprecated
- func NSLinguisticTagAdverb() *NSStringdeprecated
- func NSLinguisticTagClassifier() *NSStringdeprecated
- func NSLinguisticTagCloseParenthesis() *NSStringdeprecated
- func NSLinguisticTagCloseQuote() *NSStringdeprecated
- func NSLinguisticTagConjunction() *NSStringdeprecated
- func NSLinguisticTagDash() *NSStringdeprecated
- func NSLinguisticTagDeterminer() *NSStringdeprecated
- func NSLinguisticTagIdiom() *NSStringdeprecated
- func NSLinguisticTagInterjection() *NSStringdeprecated
- func NSLinguisticTagNoun() *NSStringdeprecated
- func NSLinguisticTagNumber() *NSStringdeprecated
- func NSLinguisticTagOpenParenthesis() *NSStringdeprecated
- func NSLinguisticTagOpenQuote() *NSStringdeprecated
- func NSLinguisticTagOrganizationName() *NSStringdeprecated
- func NSLinguisticTagOther() *NSStringdeprecated
- func NSLinguisticTagOtherPunctuation() *NSStringdeprecated
- func NSLinguisticTagOtherWhitespace() *NSStringdeprecated
- func NSLinguisticTagOtherWord() *NSStringdeprecated
- func NSLinguisticTagParagraphBreak() *NSStringdeprecated
- func NSLinguisticTagParticle() *NSStringdeprecated
- func NSLinguisticTagPersonalName() *NSStringdeprecated
- func NSLinguisticTagPlaceName() *NSStringdeprecated
- func NSLinguisticTagPreposition() *NSStringdeprecated
- func NSLinguisticTagPronoun() *NSStringdeprecated
- func NSLinguisticTagPunctuation() *NSStringdeprecated
- func NSLinguisticTagSchemeLanguage() *NSStringdeprecated
- func NSLinguisticTagSchemeLemma() *NSStringdeprecated
- func NSLinguisticTagSchemeLexicalClass() *NSStringdeprecated
- func NSLinguisticTagSchemeNameType() *NSStringdeprecated
- func NSLinguisticTagSchemeNameTypeOrLexicalClass() *NSStringdeprecated
- func NSLinguisticTagSchemeScript() *NSStringdeprecated
- func NSLinguisticTagSchemeTokenType() *NSStringdeprecated
- func NSLinguisticTagSentenceTerminator() *NSStringdeprecated
- func NSLinguisticTagVerb() *NSStringdeprecated
- func NSLinguisticTagWhitespace() *NSStringdeprecated
- func NSLinguisticTagWord() *NSStringdeprecated
- func NSLinguisticTagWordJoiner() *NSStringdeprecated
- func NSLinguisticTaggerDominantLanguageForString(string_ *NSString) *NSString
- func NSLinguisticTaggerTagForStringAtIndexUnitSchemeOrthographyTokenRange(string_ *NSString, charIndex uint, unit NSLinguisticTaggerUnit, ...) *NSString
- func NSListFormatterLocalizedStringByJoiningStrings(strings_ *NSArray[*NSString]) *NSString
- func NSLoadedClasses() *NSString
- func NSLocalNotificationCenterType() *NSString
- func NSLocaleAlternateQuotationBeginDelimiterKey() *NSString
- func NSLocaleAlternateQuotationEndDelimiterKey() *NSString
- func NSLocaleCalendar() *NSString
- func NSLocaleCanonicalLanguageIdentifierFromString(string_ *NSString) *NSString
- func NSLocaleCanonicalLocaleIdentifierFromString(string_ *NSString) *NSString
- func NSLocaleCollationIdentifier() *NSString
- func NSLocaleCollatorIdentifier() *NSString
- func NSLocaleCountryCode() *NSString
- func NSLocaleCurrencyCode() *NSString
- func NSLocaleCurrencySymbol() *NSString
- func NSLocaleDecimalSeparator() *NSString
- func NSLocaleExemplarCharacterSet() *NSString
- func NSLocaleGroupingSeparator() *NSString
- func NSLocaleIdentifier() *NSString
- func NSLocaleLanguageCode() *NSString
- func NSLocaleLocaleIdentifierFromComponents(dict *NSDictionary[*NSString, *NSString]) *NSString
- func NSLocaleLocaleIdentifierFromWindowsLocaleCode(lcid uint32) *NSString
- func NSLocaleMeasurementSystem() *NSString
- func NSLocaleQuotationBeginDelimiterKey() *NSString
- func NSLocaleQuotationEndDelimiterKey() *NSString
- func NSLocaleScriptCode() *NSString
- func NSLocaleUsesMetricSystem() *NSString
- func NSLocaleVariantCode() *NSString
- func NSLocalizedDescriptionKey() *NSString
- func NSLocalizedFailureErrorKey() *NSString
- func NSLocalizedFailureReasonErrorKey() *NSString
- func NSLocalizedRecoveryOptionsErrorKey() *NSString
- func NSLocalizedRecoverySuggestionErrorKey() *NSString
- func NSMachErrorDomain() *NSString
- func NSMallocException() *NSString
- func NSMaximumKeyValueOperator() *NSString
- func NSMetadataItemContentTypeKey() *NSString
- func NSMetadataItemContentTypeTreeKey() *NSString
- func NSMetadataItemDisplayNameKey() *NSString
- func NSMetadataItemFSContentChangeDateKey() *NSString
- func NSMetadataItemFSCreationDateKey() *NSString
- func NSMetadataItemFSNameKey() *NSString
- func NSMetadataItemFSSizeKey() *NSString
- func NSMetadataItemIsUbiquitousKey() *NSString
- func NSMetadataItemPathKey() *NSString
- func NSMetadataItemURLKey() *NSString
- func NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope() *NSString
- func NSMetadataQueryDidFinishGatheringNotification() *NSString
- func NSMetadataQueryDidStartGatheringNotification() *NSString
- func NSMetadataQueryDidUpdateNotification() *NSString
- func NSMetadataQueryGatheringProgressNotification() *NSString
- func NSMetadataQueryResultContentRelevanceAttribute() *NSString
- func NSMetadataQueryUbiquitousDataScope() *NSString
- func NSMetadataQueryUbiquitousDocumentsScope() *NSString
- func NSMetadataQueryUpdateAddedItemsKey() *NSString
- func NSMetadataQueryUpdateChangedItemsKey() *NSString
- func NSMetadataQueryUpdateRemovedItemsKey() *NSString
- func NSMetadataUbiquitousItemContainerDisplayNameKey() *NSString
- func NSMetadataUbiquitousItemDownloadRequestedKey() *NSString
- func NSMetadataUbiquitousItemDownloadingErrorKey() *NSString
- func NSMetadataUbiquitousItemDownloadingStatusCurrent() *NSString
- func NSMetadataUbiquitousItemDownloadingStatusDownloaded() *NSString
- func NSMetadataUbiquitousItemDownloadingStatusKey() *NSString
- func NSMetadataUbiquitousItemDownloadingStatusNotDownloaded() *NSString
- func NSMetadataUbiquitousItemHasUnresolvedConflictsKey() *NSString
- func NSMetadataUbiquitousItemIsDownloadedKey() *NSStringdeprecated
- func NSMetadataUbiquitousItemIsDownloadingKey() *NSString
- func NSMetadataUbiquitousItemIsExternalDocumentKey() *NSString
- func NSMetadataUbiquitousItemIsSharedKey() *NSString
- func NSMetadataUbiquitousItemIsUploadedKey() *NSString
- func NSMetadataUbiquitousItemIsUploadingKey() *NSString
- func NSMetadataUbiquitousItemPercentDownloadedKey() *NSString
- func NSMetadataUbiquitousItemPercentUploadedKey() *NSString
- func NSMetadataUbiquitousItemURLInLocalContainerKey() *NSString
- func NSMetadataUbiquitousItemUploadingErrorKey() *NSString
- func NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey() *NSString
- func NSMetadataUbiquitousSharedItemCurrentUserRoleKey() *NSString
- func NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey() *NSString
- func NSMetadataUbiquitousSharedItemOwnerNameComponentsKey() *NSString
- func NSMetadataUbiquitousSharedItemPermissionsReadOnly() *NSString
- func NSMetadataUbiquitousSharedItemPermissionsReadWrite() *NSString
- func NSMetadataUbiquitousSharedItemRoleOwner() *NSString
- func NSMetadataUbiquitousSharedItemRoleParticipant() *NSString
- func NSMinimumKeyValueOperator() *NSString
- func NSMultipleUnderlyingErrorsKey() *NSString
- func NSNegateBooleanTransformerName() *NSString
- func NSNumberFormatterLocalizedStringFromNumberNumberStyle(num *NSNumber, nstyle NSNumberFormatterStyle) *NSString
- func NSOSStatusErrorDomain() *NSString
- func NSObjectDebugDescription() *NSString
- func NSObjectDescription() *NSString
- func NSObjectInaccessibleException() *NSString
- func NSObjectNotAvailableException() *NSString
- func NSOldStyleException() *NSString
- func NSOpenStepRootDirectory() *NSString
- func NSOperationNotSupportedForKeyException() *NSString
- func NSPOSIXErrorDomain() *NSString
- func NSParseErrorException() *NSString
- func NSPersianCalendar() *NSStringdeprecated
- func NSPersonNameComponentDelimiter() *NSString
- func NSPersonNameComponentFamilyName() *NSString
- func NSPersonNameComponentGivenName() *NSString
- func NSPersonNameComponentKey() *NSString
- func NSPersonNameComponentMiddleName() *NSString
- func NSPersonNameComponentNickname() *NSString
- func NSPersonNameComponentPrefix() *NSString
- func NSPersonNameComponentSuffix() *NSString
- func NSPersonNameComponentsFormatterLocalizedStringFromPersonNameComponentsStyleOptions(components *NSPersonNameComponents, ...) *NSString
- func NSPortDidBecomeInvalidNotification() *NSString
- func NSPortReceiveException() *NSString
- func NSPortSendException() *NSString
- func NSPortTimeoutException() *NSString
- func NSPresentationIntentAttributeName() *NSString
- func NSProcessInfoPowerStateDidChangeNotification() *NSString
- func NSProcessInfoThermalStateDidChangeNotification() *NSString
- func NSProgressEstimatedTimeRemainingKey() *NSString
- func NSProgressFileCompletedCountKey() *NSString
- func NSProgressFileOperationKindCopying() *NSString
- func NSProgressFileOperationKindDecompressingAfterDownloading() *NSString
- func NSProgressFileOperationKindDownloading() *NSString
- func NSProgressFileOperationKindDuplicating() *NSString
- func NSProgressFileOperationKindKey() *NSString
- func NSProgressFileOperationKindReceiving() *NSString
- func NSProgressFileOperationKindUploading() *NSString
- func NSProgressFileTotalCountKey() *NSString
- func NSProgressFileURLKey() *NSString
- func NSProgressKindFile() *NSString
- func NSProgressThroughputKey() *NSString
- func NSRangeException() *NSString
- func NSRecoveryAttempterErrorKey() *NSString
- func NSRegistrationDomain() *NSString
- func NSRegularExpressionEscapedPatternForString(string_ *NSString) *NSString
- func NSRegularExpressionEscapedTemplateForString(string_ *NSString) *NSString
- func NSRepublicOfChinaCalendar() *NSStringdeprecated
- func NSRunLoopCommonModes() *NSString
- func NSSecureUnarchiveFromDataTransformerName() *NSString
- func NSStreamDataWrittenToMemoryStreamKey() *NSString
- func NSStreamFileCurrentOffsetKey() *NSString
- func NSStreamNetworkServiceType() *NSString
- func NSStreamNetworkServiceTypeBackground() *NSString
- func NSStreamNetworkServiceTypeCallSignaling() *NSString
- func NSStreamNetworkServiceTypeVideo() *NSString
- func NSStreamNetworkServiceTypeVoIP() *NSString
- func NSStreamNetworkServiceTypeVoice() *NSString
- func NSStreamSOCKSErrorDomain() *NSString
- func NSStreamSOCKSProxyConfigurationKey() *NSString
- func NSStreamSOCKSProxyHostKey() *NSString
- func NSStreamSOCKSProxyPasswordKey() *NSString
- func NSStreamSOCKSProxyPortKey() *NSString
- func NSStreamSOCKSProxyUserKey() *NSString
- func NSStreamSOCKSProxyVersion4() *NSString
- func NSStreamSOCKSProxyVersion5() *NSString
- func NSStreamSOCKSProxyVersionKey() *NSString
- func NSStreamSocketSSLErrorDomain() *NSString
- func NSStreamSocketSecurityLevelKey() *NSString
- func NSStreamSocketSecurityLevelNegotiatedSSL() *NSString
- func NSStreamSocketSecurityLevelNone() *NSString
- func NSStreamSocketSecurityLevelSSLv2() *NSString
- func NSStreamSocketSecurityLevelSSLv3() *NSString
- func NSStreamSocketSecurityLevelTLSv1() *NSString
- func NSStringEncodingDetectionAllowLossyKey() *NSString
- func NSStringEncodingDetectionDisallowedEncodingsKey() *NSString
- func NSStringEncodingDetectionFromWindowsKey() *NSString
- func NSStringEncodingDetectionLikelyLanguageKey() *NSString
- func NSStringEncodingDetectionLossySubstitutionKey() *NSString
- func NSStringEncodingDetectionSuggestedEncodingsKey() *NSString
- func NSStringEncodingDetectionUseOnlySuggestedEncodingsKey() *NSString
- func NSStringEncodingErrorKey() *NSString
- func NSStringFromClass(aClass objc.Class) *NSString
- func NSStringFromHashTable(table *NSHashTable[objc.ID]) *NSString
- func NSStringFromID(id objc.ID) *NSString
- func NSStringFromMapTable(table *NSMapTable[objc.ID, objc.ID]) *NSString
- func NSStringFromPoint(aPoint corefoundation.CGPoint) *NSString
- func NSStringFromProtocol(proto unsafe.Pointer) *NSString
- func NSStringFromRange(range_ NSRange) *NSString
- func NSStringFromRect(aRect corefoundation.CGRect) *NSString
- func NSStringFromSelector(aSelector objc.SEL) *NSString
- func NSStringFromSize(aSize corefoundation.CGSize) *NSString
- func NSStringLocalizedNameOfStringEncoding(encoding uint) *NSString
- func NSStringLocalizedStringWithFormat(format *NSString) *NSString
- func NSStringLocalizedStringWithValidatedFormatValidFormatSpecifiersError(format *NSString, validFormatSpecifiers *NSString) (*NSString, error)
- func NSStringPathWithComponents(components *NSArray[*NSString]) *NSString
- func NSStringString() *NSString
- func NSStringStringWithCStringEncoding(cString string, enc uint) *NSString
- func NSStringStringWithCharactersLength(characters *uint16, length uint) *NSString
- func NSStringStringWithContentsOfFileEncodingError(path *NSString, enc uint) (*NSString, error)
- func NSStringStringWithContentsOfFileUsedEncodingError(path *NSString, enc *uint) (*NSString, error)
- func NSStringStringWithContentsOfURLEncodingError(url *NSURL, enc uint) (*NSString, error)
- func NSStringStringWithContentsOfURLUsedEncodingError(url *NSURL, enc *uint) (*NSString, error)
- func NSStringStringWithFormat(format *NSString) *NSString
- func NSStringStringWithString(string_ *NSString) *NSString
- func NSStringStringWithUTF8String(nullTerminatedCString string) *NSString
- func NSStringStringWithValidatedFormatValidFormatSpecifiersError(format *NSString, validFormatSpecifiers *NSString) (*NSString, error)
- func NSStringTransformFullwidthToHalfwidth() *NSString
- func NSStringTransformHiraganaToKatakana() *NSString
- func NSStringTransformLatinToArabic() *NSString
- func NSStringTransformLatinToCyrillic() *NSString
- func NSStringTransformLatinToGreek() *NSString
- func NSStringTransformLatinToHangul() *NSString
- func NSStringTransformLatinToHebrew() *NSString
- func NSStringTransformLatinToHiragana() *NSString
- func NSStringTransformLatinToKatakana() *NSString
- func NSStringTransformLatinToThai() *NSString
- func NSStringTransformMandarinToLatin() *NSString
- func NSStringTransformStripCombiningMarks() *NSString
- func NSStringTransformStripDiacritics() *NSString
- func NSStringTransformToLatin() *NSString
- func NSStringTransformToUnicodeName() *NSString
- func NSStringTransformToXMLHex() *NSString
- func NSSumKeyValueOperator() *NSString
- func NSSystemClockDidChangeNotification() *NSString
- func NSSystemTimeZoneDidChangeNotification() *NSString
- func NSTaskDidTerminateNotification() *NSString
- func NSTemporaryDirectory() *NSString
- func NSTextCheckingAirlineKey() *NSString
- func NSTextCheckingCityKey() *NSString
- func NSTextCheckingCountryKey() *NSString
- func NSTextCheckingFlightKey() *NSString
- func NSTextCheckingJobTitleKey() *NSString
- func NSTextCheckingNameKey() *NSString
- func NSTextCheckingOrganizationKey() *NSString
- func NSTextCheckingPhoneKey() *NSString
- func NSTextCheckingStateKey() *NSString
- func NSTextCheckingStreetKey() *NSString
- func NSTextCheckingZIPKey() *NSString
- func NSThreadWillExitNotification() *NSStringdeprecated
- func NSThumbnail1024x1024SizeKey() *NSStringdeprecated
- func NSTimeZoneTimeZoneDataVersion() *NSString
- func NSURLAddedToDirectoryDateKey() *NSString
- func NSURLAttributeModificationDateKey() *NSString
- func NSURLAuthenticationMethodClientCertificate() *NSString
- func NSURLAuthenticationMethodDefault() *NSString
- func NSURLAuthenticationMethodHTMLForm() *NSString
- func NSURLAuthenticationMethodHTTPBasic() *NSString
- func NSURLAuthenticationMethodHTTPDigest() *NSString
- func NSURLAuthenticationMethodNTLM() *NSString
- func NSURLAuthenticationMethodNegotiate() *NSString
- func NSURLAuthenticationMethodServerTrust() *NSString
- func NSURLCanonicalPathKey() *NSString
- func NSURLContentAccessDateKey() *NSString
- func NSURLContentModificationDateKey() *NSString
- func NSURLContentTypeKey() *NSString
- func NSURLCreationDateKey() *NSString
- func NSURLCredentialStorageChangedNotification() *NSString
- func NSURLCredentialStorageRemoveSynchronizableCredentials() *NSString
- func NSURLCustomIconKey() *NSString
- func NSURLDirectoryEntryCountKey() *NSString
- func NSURLDocumentIdentifierKey() *NSString
- func NSURLEffectiveIconKey() *NSString
- func NSURLErrorBackgroundTaskCancelledReasonKey() *NSString
- func NSURLErrorDomain() *NSString
- func NSURLErrorFailingURLErrorKey() *NSString
- func NSURLErrorFailingURLPeerTrustErrorKey() *NSString
- func NSURLErrorFailingURLStringErrorKey() *NSString
- func NSURLErrorKey() *NSString
- func NSURLErrorNetworkUnavailableReasonKey() *NSString
- func NSURLFileAllocatedSizeKey() *NSString
- func NSURLFileContentIdentifierKey() *NSString
- func NSURLFileIdentifierKey() *NSString
- func NSURLFileProtectionComplete() *NSString
- func NSURLFileProtectionCompleteUnlessOpen() *NSString
- func NSURLFileProtectionCompleteUntilFirstUserAuthentication() *NSString
- func NSURLFileProtectionKey() *NSString
- func NSURLFileProtectionNone() *NSString
- func NSURLFileResourceIdentifierKey() *NSString
- func NSURLFileResourceTypeBlockSpecial() *NSString
- func NSURLFileResourceTypeCharacterSpecial() *NSString
- func NSURLFileResourceTypeDirectory() *NSString
- func NSURLFileResourceTypeKey() *NSString
- func NSURLFileResourceTypeNamedPipe() *NSString
- func NSURLFileResourceTypeRegular() *NSString
- func NSURLFileResourceTypeSocket() *NSString
- func NSURLFileResourceTypeSymbolicLink() *NSString
- func NSURLFileResourceTypeUnknown() *NSString
- func NSURLFileScheme() *NSString
- func NSURLFileSecurityKey() *NSString
- func NSURLFileSizeKey() *NSString
- func NSURLGenerationIdentifierKey() *NSString
- func NSURLHasHiddenExtensionKey() *NSString
- func NSURLIsAliasFileKey() *NSString
- func NSURLIsApplicationKey() *NSString
- func NSURLIsDirectoryKey() *NSString
- func NSURLIsExcludedFromBackupKey() *NSString
- func NSURLIsExecutableKey() *NSString
- func NSURLIsHiddenKey() *NSString
- func NSURLIsMountTriggerKey() *NSString
- func NSURLIsPackageKey() *NSString
- func NSURLIsPurgeableKey() *NSString
- func NSURLIsReadableKey() *NSString
- func NSURLIsRegularFileKey() *NSString
- func NSURLIsSparseKey() *NSString
- func NSURLIsSymbolicLinkKey() *NSString
- func NSURLIsSystemImmutableKey() *NSString
- func NSURLIsUbiquitousItemKey() *NSString
- func NSURLIsUserImmutableKey() *NSString
- func NSURLIsVolumeKey() *NSString
- func NSURLIsWritableKey() *NSString
- func NSURLKeysOfUnsetValuesKey() *NSString
- func NSURLLabelColorKey() *NSString
- func NSURLLabelNumberKey() *NSString
- func NSURLLinkCountKey() *NSString
- func NSURLLocalizedLabelKey() *NSString
- func NSURLLocalizedNameKey() *NSString
- func NSURLLocalizedTypeDescriptionKey() *NSString
- func NSURLMayHaveExtendedAttributesKey() *NSString
- func NSURLMayShareFileContentKey() *NSString
- func NSURLNameKey() *NSString
- func NSURLParentDirectoryURLKey() *NSString
- func NSURLPathKey() *NSString
- func NSURLPreferredIOBlockSizeKey() *NSString
- func NSURLProtectionSpaceFTP() *NSString
- func NSURLProtectionSpaceFTPProxy() *NSString
- func NSURLProtectionSpaceHTTP() *NSString
- func NSURLProtectionSpaceHTTPProxy() *NSString
- func NSURLProtectionSpaceHTTPS() *NSString
- func NSURLProtectionSpaceHTTPSProxy() *NSString
- func NSURLProtectionSpaceSOCKSProxy() *NSString
- func NSURLSessionDownloadTaskResumeData() *NSString
- func NSURLSessionUploadTaskResumeData() *NSString
- func NSURLThumbnailDictionaryKey() *NSStringdeprecated
- func NSURLTotalFileAllocatedSizeKey() *NSString
- func NSURLTotalFileSizeKey() *NSString
- func NSURLTypeIdentifierKey() *NSStringdeprecated
- func NSURLUbiquitousItemContainerDisplayNameKey() *NSString
- func NSURLUbiquitousItemDownloadRequestedKey() *NSString
- func NSURLUbiquitousItemDownloadingErrorKey() *NSString
- func NSURLUbiquitousItemDownloadingStatusCurrent() *NSString
- func NSURLUbiquitousItemDownloadingStatusDownloaded() *NSString
- func NSURLUbiquitousItemDownloadingStatusKey() *NSString
- func NSURLUbiquitousItemDownloadingStatusNotDownloaded() *NSString
- func NSURLUbiquitousItemHasUnresolvedConflictsKey() *NSString
- func NSURLUbiquitousItemIsDownloadedKey() *NSStringdeprecated
- func NSURLUbiquitousItemIsDownloadingKey() *NSString
- func NSURLUbiquitousItemIsExcludedFromSyncKey() *NSString
- func NSURLUbiquitousItemIsSharedKey() *NSString
- func NSURLUbiquitousItemIsSyncPausedKey() *NSString
- func NSURLUbiquitousItemIsUploadedKey() *NSString
- func NSURLUbiquitousItemIsUploadingKey() *NSString
- func NSURLUbiquitousItemPercentDownloadedKey() *NSStringdeprecated
- func NSURLUbiquitousItemPercentUploadedKey() *NSStringdeprecated
- func NSURLUbiquitousItemSupportedSyncControlsKey() *NSString
- func NSURLUbiquitousItemUploadingErrorKey() *NSString
- func NSURLUbiquitousSharedItemCurrentUserPermissionsKey() *NSString
- func NSURLUbiquitousSharedItemCurrentUserRoleKey() *NSString
- func NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey() *NSString
- func NSURLUbiquitousSharedItemOwnerNameComponentsKey() *NSString
- func NSURLUbiquitousSharedItemPermissionsReadOnly() *NSString
- func NSURLUbiquitousSharedItemPermissionsReadWrite() *NSString
- func NSURLUbiquitousSharedItemRoleOwner() *NSString
- func NSURLUbiquitousSharedItemRoleParticipant() *NSString
- func NSURLVolumeAvailableCapacityForImportantUsageKey() *NSString
- func NSURLVolumeAvailableCapacityForOpportunisticUsageKey() *NSString
- func NSURLVolumeAvailableCapacityKey() *NSString
- func NSURLVolumeCreationDateKey() *NSString
- func NSURLVolumeIdentifierKey() *NSString
- func NSURLVolumeIsAutomountedKey() *NSString
- func NSURLVolumeIsBrowsableKey() *NSString
- func NSURLVolumeIsEjectableKey() *NSString
- func NSURLVolumeIsEncryptedKey() *NSString
- func NSURLVolumeIsInternalKey() *NSString
- func NSURLVolumeIsJournalingKey() *NSString
- func NSURLVolumeIsLocalKey() *NSString
- func NSURLVolumeIsReadOnlyKey() *NSString
- func NSURLVolumeIsRemovableKey() *NSString
- func NSURLVolumeIsRootFileSystemKey() *NSString
- func NSURLVolumeLocalizedFormatDescriptionKey() *NSString
- func NSURLVolumeLocalizedNameKey() *NSString
- func NSURLVolumeMaximumFileSizeKey() *NSString
- func NSURLVolumeMountFromLocationKey() *NSString
- func NSURLVolumeNameKey() *NSString
- func NSURLVolumeResourceCountKey() *NSString
- func NSURLVolumeSubtypeKey() *NSString
- func NSURLVolumeSupportsAccessPermissionsKey() *NSString
- func NSURLVolumeSupportsAdvisoryFileLockingKey() *NSString
- func NSURLVolumeSupportsCasePreservedNamesKey() *NSString
- func NSURLVolumeSupportsCaseSensitiveNamesKey() *NSString
- func NSURLVolumeSupportsCompressionKey() *NSString
- func NSURLVolumeSupportsExclusiveRenamingKey() *NSString
- func NSURLVolumeSupportsExtendedSecurityKey() *NSString
- func NSURLVolumeSupportsFileCloningKey() *NSString
- func NSURLVolumeSupportsFileProtectionKey() *NSString
- func NSURLVolumeSupportsHardLinksKey() *NSString
- func NSURLVolumeSupportsImmutableFilesKey() *NSString
- func NSURLVolumeSupportsJournalingKey() *NSString
- func NSURLVolumeSupportsPersistentIDsKey() *NSString
- func NSURLVolumeSupportsRenamingKey() *NSString
- func NSURLVolumeSupportsRootDirectoryDatesKey() *NSString
- func NSURLVolumeSupportsSparseFilesKey() *NSString
- func NSURLVolumeSupportsSwapRenamingKey() *NSString
- func NSURLVolumeSupportsSymbolicLinksKey() *NSString
- func NSURLVolumeSupportsVolumeSizesKey() *NSString
- func NSURLVolumeSupportsZeroRunsKey() *NSString
- func NSURLVolumeTotalCapacityKey() *NSString
- func NSURLVolumeTypeNameKey() *NSString
- func NSURLVolumeURLForRemountingKey() *NSString
- func NSURLVolumeURLKey() *NSString
- func NSURLVolumeUUIDStringKey() *NSString
- func NSUbiquitousKeyValueStoreChangeReasonKey() *NSString
- func NSUbiquitousKeyValueStoreChangedKeysKey() *NSString
- func NSUbiquitousKeyValueStoreDidChangeExternallyNotification() *NSString
- func NSUbiquityIdentityDidChangeNotification() *NSString
- func NSUnarchiveFromDataTransformerName() *NSStringdeprecated
- func NSUnarchiverClassNameDecodedForArchiveClassName(inArchiveName *NSString) *NSString
- func NSUndefinedKeyException() *NSString
- func NSUnderlyingErrorKey() *NSString
- func NSUndoManagerCheckpointNotification() *NSString
- func NSUndoManagerDidCloseUndoGroupNotification() *NSString
- func NSUndoManagerDidOpenUndoGroupNotification() *NSString
- func NSUndoManagerDidRedoChangeNotification() *NSString
- func NSUndoManagerDidUndoChangeNotification() *NSString
- func NSUndoManagerGroupIsDiscardableKey() *NSString
- func NSUndoManagerWillCloseUndoGroupNotification() *NSString
- func NSUndoManagerWillRedoChangeNotification() *NSString
- func NSUndoManagerWillUndoChangeNotification() *NSString
- func NSUnionOfArraysKeyValueOperator() *NSString
- func NSUnionOfObjectsKeyValueOperator() *NSString
- func NSUnionOfSetsKeyValueOperator() *NSString
- func NSUserActivityTypeBrowsingWeb() *NSString
- func NSUserDefaultsDidChangeNotification() *NSString
- func NSUserName() *NSString
- func NSWillBecomeMultiThreadedNotification() *NSStringdeprecated
- func NSXMLNodeLocalNameForName(name *NSString) *NSString
- func NSXMLNodePrefixForName(name *NSString) *NSString
- func NSXMLParserErrorDomain() *NSString
- func NSZoneName(zone unsafe.Pointer) *NSString
- func (o *NSString) BoolValue() bool
- func (o *NSString) CString() string
- func (o *NSString) CStringLength() uint
- func (o *NSString) CStringUsingEncoding(encoding uint) string
- func (o *NSString) CanBeConvertedToEncoding(encoding uint) bool
- func (o *NSString) CapitalizedString() *NSString
- func (o *NSString) CapitalizedStringWithLocale(locale *NSLocale) *NSString
- func (o *NSString) CaseInsensitiveCompare(string_ *NSString) NSComparisonResult
- func (o *NSString) CharacterAtIndex(index uint) uint16
- func (o *NSString) CommonPrefixWithStringOptions(str *NSString, mask NSStringCompareOptions) *NSString
- func (o *NSString) Compare(string_ *NSString) NSComparisonResult
- func (o *NSString) CompareOptions(string_ *NSString, mask NSStringCompareOptions) NSComparisonResult
- func (o *NSString) CompareOptionsRange(string_ *NSString, mask NSStringCompareOptions, ...) NSComparisonResult
- func (o *NSString) CompareOptionsRangeLocale(string_ *NSString, mask NSStringCompareOptions, ...) NSComparisonResult
- func (o *NSString) CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(outputName *NSString, flag bool, outputArray *NSArray[*NSString], ...) uint
- func (o *NSString) ComponentsSeparatedByCharactersInSet(separator *NSCharacterSet) *NSArray[*NSString]
- func (o *NSString) ComponentsSeparatedByString(separator *NSString) *NSArray[*NSString]
- func (o *NSString) ContainsString(str *NSString) bool
- func (o *NSString) DataUsingEncoding(encoding uint) *NSData
- func (o *NSString) DataUsingEncodingAllowLossyConversion(encoding uint, lossy bool) *NSData
- func (o *NSString) DecomposedStringWithCanonicalMapping() *NSString
- func (o *NSString) DecomposedStringWithCompatibilityMapping() *NSString
- func (o *NSString) DoubleValue() float64
- func (o *NSString) EnumerateLinesUsing(block func(*NSString, *bool))
- func (o *NSString) EnumerateLinguisticTagsInRangeSchemeOptionsOrthographyUsing(range_ NSRange, scheme *NSString, options NSLinguisticTaggerOptions, ...)
- func (o *NSString) EnumerateSubstringsInRangeOptionsUsing(range_ NSRange, opts NSStringEnumerationOptions, block objc.Block)
- func (o *NSString) FastestEncoding() uint
- func (o *NSString) FileSystemRepresentation() unsafe.Pointer
- func (o *NSString) FloatValue() float32
- func (o *NSString) GetBytesMaxLengthUsedLengthEncodingOptionsRangeRemainingRange(buffer unsafe.Pointer, maxBufferCount uint, usedBufferCount *uint, ...) bool
- func (o *NSString) GetCString(bytes_ string)
- func (o *NSString) GetCStringMaxLength(bytes_ string, maxLength uint)
- func (o *NSString) GetCStringMaxLengthEncoding(buffer string, maxBufferCount uint, encoding uint) bool
- func (o *NSString) GetCStringMaxLengthRangeRemainingRange(bytes_ string, maxLength uint, aRange NSRange, leftoverRange *NSRange)
- func (o *NSString) GetCharacters(buffer *uint16)
- func (o *NSString) GetCharactersRange(buffer *uint16, range_ NSRange)
- func (o *NSString) GetFileSystemRepresentationMaxLength(cname string, max uint) bool
- func (o *NSString) GetLineStartEndContentsEndForRange(startPtr *uint, lineEndPtr *uint, contentsEndPtr *uint, range_ NSRange)
- func (o *NSString) GetParagraphStartEndContentsEndForRange(startPtr *uint, parEndPtr *uint, contentsEndPtr *uint, range_ NSRange)
- func (o *NSString) HasPrefix(str *NSString) bool
- func (o *NSString) HasSuffix(str *NSString) bool
- func (o *NSString) Init() *NSString
- func (o *NSString) InitWithBytesLengthEncoding(bytes_ unsafe.Pointer, len_ uint, encoding uint) *NSString
- func (o *NSString) InitWithBytesNoCopyLengthEncodingDeallocator(bytes_ unsafe.Pointer, len_ uint, encoding uint, ...) *NSString
- func (o *NSString) InitWithBytesNoCopyLengthEncodingFreeWhenDone(bytes_ unsafe.Pointer, len_ uint, encoding uint, freeBuffer bool) *NSString
- func (o *NSString) InitWithCString(bytes_ string) objc.IDdeprecated
- func (o *NSString) InitWithCStringEncoding(nullTerminatedCString string, encoding uint) *NSString
- func (o *NSString) InitWithCStringLength(bytes_ string, length uint) objc.IDdeprecated
- func (o *NSString) InitWithCStringNoCopyLengthFreeWhenDone(bytes_ string, length uint, freeBuffer bool) objc.IDdeprecated
- func (o *NSString) InitWithCharactersLength(characters *uint16, length uint) *NSString
- func (o *NSString) InitWithCharactersNoCopyLengthDeallocator(chars *uint16, len_ uint, deallocator func(*uint16, uint)) *NSString
- func (o *NSString) InitWithCharactersNoCopyLengthFreeWhenDone(characters *uint16, length uint, freeBuffer bool) *NSString
- func (o *NSString) InitWithCoder(coder *NSCoder) *NSString
- func (o *NSString) InitWithContentsOfFile(path *NSString) objc.ID
- func (o *NSString) InitWithContentsOfFileEncodingError(path *NSString, enc uint) (*NSString, error)
- func (o *NSString) InitWithContentsOfFileUsedEncodingError(path *NSString, enc *uint) (*NSString, error)
- func (o *NSString) InitWithContentsOfURL(url *NSURL) objc.ID
- func (o *NSString) InitWithContentsOfURLEncodingError(url *NSURL, enc uint) (*NSString, error)
- func (o *NSString) InitWithContentsOfURLUsedEncodingError(url *NSURL, enc *uint) (*NSString, error)
- func (o *NSString) InitWithDataEncoding(data *NSData, encoding uint) *NSString
- func (o *NSString) InitWithFormat(format *NSString) *NSString
- func (o *NSString) InitWithFormatArguments(format *NSString, argList string) *NSString
- func (o *NSString) InitWithFormatLocale(format *NSString, locale objc.ID) *NSString
- func (o *NSString) InitWithFormatLocaleArguments(format *NSString, locale objc.ID, argList string) *NSString
- func (o *NSString) InitWithString(aString *NSString) *NSString
- func (o *NSString) InitWithUTF8String(nullTerminatedCString string) *NSString
- func (o *NSString) InitWithValidatedFormatValidFormatSpecifiersArgumentsError(format *NSString, validFormatSpecifiers *NSString, argList string) (*NSString, error)
- func (o *NSString) InitWithValidatedFormatValidFormatSpecifiersError(format *NSString, validFormatSpecifiers *NSString) (*NSString, error)
- func (o *NSString) InitWithValidatedFormatValidFormatSpecifiersLocaleArgumentsError(format *NSString, validFormatSpecifiers *NSString, locale objc.ID, ...) (*NSString, error)
- func (o *NSString) InitWithValidatedFormatValidFormatSpecifiersLocaleError(format *NSString, validFormatSpecifiers *NSString, locale objc.ID) (*NSString, error)
- func (o *NSString) IntValue() int
- func (o *NSString) IntegerValue() int
- func (o *NSString) IsAbsolutePath() bool
- func (o *NSString) IsEqualToString(aString *NSString) bool
- func (o *NSString) LastPathComponent() *NSString
- func (o *NSString) Length() uint
- func (o *NSString) LengthOfBytesUsingEncoding(enc uint) uint
- func (o *NSString) LineRangeForRange(range_ NSRange) NSRange
- func (o *NSString) LinguisticTagsInRangeSchemeOptionsOrthographyTokenRanges(range_ NSRange, scheme *NSString, options NSLinguisticTaggerOptions, ...) *NSArray[*NSString]
- func (o *NSString) LocalizedCapitalizedString() *NSString
- func (o *NSString) LocalizedCaseInsensitiveCompare(string_ *NSString) NSComparisonResult
- func (o *NSString) LocalizedCaseInsensitiveContainsString(str *NSString) bool
- func (o *NSString) LocalizedCompare(string_ *NSString) NSComparisonResult
- func (o *NSString) LocalizedLowercaseString() *NSString
- func (o *NSString) LocalizedStandardCompare(string_ *NSString) NSComparisonResult
- func (o *NSString) LocalizedStandardContainsString(str *NSString) bool
- func (o *NSString) LocalizedStandardRangeOfString(str *NSString) NSRange
- func (o *NSString) LocalizedUppercaseString() *NSString
- func (o *NSString) LongLongValue() int64
- func (o *NSString) LossyCString() string
- func (o *NSString) LowercaseString() *NSString
- func (o *NSString) LowercaseStringWithLocale(locale *NSLocale) *NSString
- func (o *NSString) MaximumLengthOfBytesUsingEncoding(enc uint) uint
- func (o *NSString) ParagraphRangeForRange(range_ NSRange) NSRange
- func (o *NSString) PathComponents() *NSArray[*NSString]
- func (o *NSString) PathExtension() *NSString
- func (o *NSString) PrecomposedStringWithCanonicalMapping() *NSString
- func (o *NSString) PrecomposedStringWithCompatibilityMapping() *NSString
- func (o *NSString) PropertyList() objc.ID
- func (o *NSString) PropertyListFromStringsFileFormat() *NSDictionary[objc.ID, objc.ID]
- func (o *NSString) RangeOfCharacterFromSet(searchSet *NSCharacterSet) NSRange
- func (o *NSString) RangeOfCharacterFromSetOptions(searchSet *NSCharacterSet, mask NSStringCompareOptions) NSRange
- func (o *NSString) RangeOfCharacterFromSetOptionsRange(searchSet *NSCharacterSet, mask NSStringCompareOptions, ...) NSRange
- func (o *NSString) RangeOfComposedCharacterSequenceAtIndex(index uint) NSRange
- func (o *NSString) RangeOfComposedCharacterSequencesForRange(range_ NSRange) NSRange
- func (o *NSString) RangeOfString(searchString *NSString) NSRange
- func (o *NSString) RangeOfStringOptions(searchString *NSString, mask NSStringCompareOptions) NSRange
- func (o *NSString) RangeOfStringOptionsRange(searchString *NSString, mask NSStringCompareOptions, ...) NSRange
- func (o *NSString) RangeOfStringOptionsRangeLocale(searchString *NSString, mask NSStringCompareOptions, ...) NSRange
- func (o *NSString) SmallestEncoding() uint
- func (o *NSString) StringByAbbreviatingWithTildeInPath() *NSString
- func (o *NSString) StringByAddingPercentEncodingWithAllowedCharacters(allowedCharacters *NSCharacterSet) *NSString
- func (o *NSString) StringByAddingPercentEscapesUsingEncoding(enc uint) *NSString
- func (o *NSString) StringByAppendingFormat(format *NSString) *NSString
- func (o *NSString) StringByAppendingPathComponent(str *NSString) *NSString
- func (o *NSString) StringByAppendingPathExtension(str *NSString) *NSString
- func (o *NSString) StringByAppendingString(aString *NSString) *NSString
- func (o *NSString) StringByApplyingTransformReverse(transform *NSString, reverse bool) *NSString
- func (o *NSString) StringByDeletingLastPathComponent() *NSString
- func (o *NSString) StringByDeletingPathExtension() *NSString
- func (o *NSString) StringByExpandingTildeInPath() *NSString
- func (o *NSString) StringByFoldingWithOptionsLocale(options NSStringCompareOptions, locale *NSLocale) *NSString
- func (o *NSString) StringByPaddingToLengthWithStringStartingAtIndex(newLength uint, padString *NSString, padIndex uint) *NSString
- func (o *NSString) StringByRemovingPercentEncoding() *NSString
- func (o *NSString) StringByReplacingCharactersInRangeWithString(range_ NSRange, replacement *NSString) *NSString
- func (o *NSString) StringByReplacingOccurrencesOfStringWithString(target *NSString, replacement *NSString) *NSString
- func (o *NSString) StringByReplacingOccurrencesOfStringWithStringOptionsRange(target *NSString, replacement *NSString, options NSStringCompareOptions, ...) *NSString
- func (o *NSString) StringByReplacingPercentEscapesUsingEncoding(enc uint) *NSString
- func (o *NSString) StringByResolvingSymlinksInPath() *NSString
- func (o *NSString) StringByStandardizingPath() *NSString
- func (o *NSString) StringByTrimmingCharactersInSet(set *NSCharacterSet) *NSString
- func (o *NSString) StringsByAppendingPaths(paths *NSArray[*NSString]) *NSArray[*NSString]
- func (o *NSString) SubstringFromIndex(from uint) *NSString
- func (o *NSString) SubstringToIndex(to uint) *NSString
- func (o *NSString) SubstringWithRange(range_ NSRange) *NSString
- func (o *NSString) UTF8String() unsafe.Pointer
- func (o *NSString) UppercaseString() *NSString
- func (o *NSString) UppercaseStringWithLocale(locale *NSLocale) *NSString
- func (o *NSString) VariantFittingPresentationWidth(width int) *NSString
- func (o *NSString) WriteToFileAtomically(path *NSString, useAuxiliaryFile bool) bool
- func (o *NSString) WriteToFileAtomicallyEncodingError(path *NSString, useAuxiliaryFile bool, enc uint) (bool, error)
- func (o *NSString) WriteToURLAtomically(url *NSURL, atomically bool) bool
- func (o *NSString) WriteToURLAtomicallyEncodingError(url *NSURL, useAuxiliaryFile bool, enc uint) (bool, error)
- type NSStringCompareOptions
- type NSStringEncodingConversionOptions
- type NSStringEnumerationOptions
- type NSSwappedDouble
- type NSSwappedFloat
- type NSTask
- func NSTaskFromID(id objc.ID) *NSTask
- func NSTaskLaunchedTaskWithExecutableURLArgumentsErrorTerminationHandler(url *NSURL, arguments *NSArray[*NSString], error_ unsafe.Pointer, ...) *NSTask
- func NSTaskLaunchedTaskWithLaunchPathArguments(path *NSString, arguments *NSArray[*NSString]) *NSTaskdeprecated
- func (o *NSTask) Arguments() *NSArray[*NSString]
- func (o *NSTask) CurrentDirectoryPath() unsafe.Pointerdeprecated
- func (o *NSTask) CurrentDirectoryURL() *NSURL
- func (o *NSTask) Environment() *NSDictionary[*NSString, *NSString]
- func (o *NSTask) ExecutableURL() *NSURL
- func (o *NSTask) Init() *NSTask
- func (o *NSTask) Interrupt()
- func (o *NSTask) IsRunning() bool
- func (o *NSTask) Launch()deprecated
- func (o *NSTask) LaunchAndReturnError() (bool, error)
- func (o *NSTask) LaunchPath() unsafe.Pointerdeprecated
- func (o *NSTask) LaunchRequirementData() *NSData
- func (o *NSTask) ProcessIdentifier() int
- func (o *NSTask) QualityOfService() NSQualityOfService
- func (o *NSTask) Resume() bool
- func (o *NSTask) SetArguments(arguments *NSArray[*NSString])
- func (o *NSTask) SetCurrentDirectoryPath(currentDirectoryPath unsafe.Pointer)deprecated
- func (o *NSTask) SetCurrentDirectoryURL(currentDirectoryURL *NSURL)
- func (o *NSTask) SetEnvironment(environment *NSDictionary[*NSString, *NSString])
- func (o *NSTask) SetExecutableURL(executableURL *NSURL)
- func (o *NSTask) SetLaunchPath(launchPath unsafe.Pointer)deprecated
- func (o *NSTask) SetLaunchRequirementData(launchRequirementData *NSData)
- func (o *NSTask) SetQualityOfService(qualityOfService NSQualityOfService)
- func (o *NSTask) SetStandardError(standardError objc.ID)
- func (o *NSTask) SetStandardInput(standardInput objc.ID)
- func (o *NSTask) SetStandardOutput(standardOutput objc.ID)
- func (o *NSTask) SetTerminationHandler(terminationHandler func(*NSTask))
- func (o *NSTask) StandardError() objc.ID
- func (o *NSTask) StandardInput() objc.ID
- func (o *NSTask) StandardOutput() objc.ID
- func (o *NSTask) Suspend() bool
- func (o *NSTask) Terminate()
- func (o *NSTask) TerminationHandler() objc.Block
- func (o *NSTask) TerminationReason() NSTaskTerminationReason
- func (o *NSTask) TerminationStatus() int
- func (o *NSTask) WaitUntilExit()
- type NSTaskTerminationReason
- type NSTermOfAddress
- func NSTermOfAddressCurrentUser() *NSTermOfAddress
- func NSTermOfAddressFeminine() *NSTermOfAddress
- func NSTermOfAddressFromID(id objc.ID) *NSTermOfAddress
- func NSTermOfAddressLocalizedForLanguageIdentifierWithPronouns(language *NSString, pronouns *NSArray[*NSMorphologyPronoun]) *NSTermOfAddress
- func NSTermOfAddressMasculine() *NSTermOfAddress
- func NSTermOfAddressNeutral() *NSTermOfAddress
- type NSTestComparisonOperation
- type NSTextCheckingResult
- func NSTextCheckingResultAddressCheckingResultWithRangeComponents(range_ NSRange, components *NSDictionary[*NSString, *NSString]) *NSTextCheckingResult
- func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult
- func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementStringAlternativeStrings(range_ NSRange, replacementString *NSString, ...) *NSTextCheckingResult
- func NSTextCheckingResultDashCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult
- func NSTextCheckingResultDateCheckingResultWithRangeDate(range_ NSRange, date *NSDate) *NSTextCheckingResult
- func NSTextCheckingResultDateCheckingResultWithRangeDateTimeZoneDuration(range_ NSRange, date *NSDate, timeZone *NSTimeZone, duration float64) *NSTextCheckingResult
- func NSTextCheckingResultFromID(id objc.ID) *NSTextCheckingResult
- func NSTextCheckingResultGrammarCheckingResultWithRangeDetails(range_ NSRange, details *NSArray[objc.ID]) *NSTextCheckingResult
- func NSTextCheckingResultLinkCheckingResultWithRangeURL(range_ NSRange, url *NSURL) *NSTextCheckingResult
- func NSTextCheckingResultOrthographyCheckingResultWithRangeOrthography(range_ NSRange, orthography *NSOrthography) *NSTextCheckingResult
- func NSTextCheckingResultPhoneNumberCheckingResultWithRangePhoneNumber(range_ NSRange, phoneNumber *NSString) *NSTextCheckingResult
- func NSTextCheckingResultQuoteCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult
- func NSTextCheckingResultRegularExpressionCheckingResultWithRangesCountRegularExpression(ranges *NSRange, count uint, regularExpression *NSRegularExpression) *NSTextCheckingResult
- func NSTextCheckingResultReplacementCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult
- func NSTextCheckingResultSpellCheckingResultWithRange(range_ NSRange) *NSTextCheckingResult
- func NSTextCheckingResultTransitInformationCheckingResultWithRangeComponents(range_ NSRange, components *NSDictionary[*NSString, *NSString]) *NSTextCheckingResult
- func (o *NSTextCheckingResult) AddressComponents() *NSDictionary[*NSString, *NSString]
- func (o *NSTextCheckingResult) AlternativeStrings() *NSArray[*NSString]
- func (o *NSTextCheckingResult) Components() *NSDictionary[*NSString, *NSString]
- func (o *NSTextCheckingResult) Date() *NSDate
- func (o *NSTextCheckingResult) Duration() float64
- func (o *NSTextCheckingResult) GrammarDetails() *NSArray[objc.ID]
- func (o *NSTextCheckingResult) NumberOfRanges() uint
- func (o *NSTextCheckingResult) Orthography() *NSOrthography
- func (o *NSTextCheckingResult) PhoneNumber() *NSString
- func (o *NSTextCheckingResult) Range() NSRange
- func (o *NSTextCheckingResult) RangeAtIndex(idx uint) NSRange
- func (o *NSTextCheckingResult) RangeWithName(name *NSString) NSRange
- func (o *NSTextCheckingResult) RegularExpression() *NSRegularExpression
- func (o *NSTextCheckingResult) ReplacementString() *NSString
- func (o *NSTextCheckingResult) ResultByAdjustingRangesWithOffset(offset int) *NSTextCheckingResult
- func (o *NSTextCheckingResult) ResultType() NSTextCheckingType
- func (o *NSTextCheckingResult) TimeZone() *NSTimeZone
- func (o *NSTextCheckingResult) URL() *NSURL
- type NSTextCheckingType
- type NSThread
- func (o *NSThread) Cancel()
- func (o *NSThread) Init() *NSThread
- func (o *NSThread) InitWith(block func()) *NSThread
- func (o *NSThread) InitWithTargetSelectorObject(target objc.ID, selector objc.SEL, argument objc.ID) *NSThread
- func (o *NSThread) IsCancelled() bool
- func (o *NSThread) IsExecuting() bool
- func (o *NSThread) IsFinished() bool
- func (o *NSThread) IsMainThread() bool
- func (o *NSThread) Main()
- func (o *NSThread) Name() *NSString
- func (o *NSThread) QualityOfService() NSQualityOfService
- func (o *NSThread) SetName(name *NSString)
- func (o *NSThread) SetQualityOfService(qualityOfService NSQualityOfService)
- func (o *NSThread) SetStackSize(stackSize uint)
- func (o *NSThread) SetThreadPriority(threadPriority float64)
- func (o *NSThread) StackSize() uint
- func (o *NSThread) Start()
- func (o *NSThread) ThreadDictionary() *NSMutableDictionary[objc.ID, objc.ID]
- func (o *NSThread) ThreadPriority() float64
- type NSTimeZone
- func NSTimeZoneDefaultTimeZone() *NSTimeZone
- func NSTimeZoneFromID(id objc.ID) *NSTimeZone
- func NSTimeZoneLocalTimeZone() *NSTimeZone
- func NSTimeZoneSystemTimeZone() *NSTimeZone
- func NSTimeZoneTimeZoneForSecondsFromGMT(seconds int) *NSTimeZone
- func NSTimeZoneTimeZoneWithAbbreviation(abbreviation *NSString) *NSTimeZone
- func NSTimeZoneTimeZoneWithName(tzName *NSString) *NSTimeZone
- func NSTimeZoneTimeZoneWithNameData(tzName *NSString, aData *NSData) *NSTimeZone
- func (o *NSTimeZone) Abbreviation() *NSString
- func (o *NSTimeZone) AbbreviationForDate(aDate *NSDate) *NSString
- func (o *NSTimeZone) Data() *NSData
- func (o *NSTimeZone) DaylightSavingTimeOffset() float64
- func (o *NSTimeZone) DaylightSavingTimeOffsetForDate(aDate *NSDate) float64
- func (o *NSTimeZone) InitWithName(tzName *NSString) *NSTimeZone
- func (o *NSTimeZone) InitWithNameData(tzName *NSString, aData *NSData) *NSTimeZone
- func (o *NSTimeZone) IsDaylightSavingTime() bool
- func (o *NSTimeZone) IsDaylightSavingTimeForDate(aDate *NSDate) bool
- func (o *NSTimeZone) IsEqualToTimeZone(aTimeZone *NSTimeZone) bool
- func (o *NSTimeZone) LocalizedNameLocale(style NSTimeZoneNameStyle, locale *NSLocale) *NSString
- func (o *NSTimeZone) Name() *NSString
- func (o *NSTimeZone) NextDaylightSavingTimeTransition() *NSDate
- func (o *NSTimeZone) NextDaylightSavingTimeTransitionAfterDate(aDate *NSDate) *NSDate
- func (o *NSTimeZone) SecondsFromGMT() int
- func (o *NSTimeZone) SecondsFromGMTForDate(aDate *NSDate) int
- type NSTimeZoneNameStyle
- type NSTimer
- func NSTimerFromID(id objc.ID) *NSTimer
- func NSTimerScheduledTimerWithTimeIntervalInvocationRepeats(ti float64, invocation *NSInvocation, yesOrNo bool) *NSTimer
- func NSTimerScheduledTimerWithTimeIntervalRepeatsBlock(interval float64, repeats bool, block func(*NSTimer)) *NSTimer
- func NSTimerScheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats(ti float64, aTarget objc.ID, aSelector objc.SEL, userInfo objc.ID, ...) *NSTimer
- func NSTimerTimerWithTimeIntervalInvocationRepeats(ti float64, invocation *NSInvocation, yesOrNo bool) *NSTimer
- func NSTimerTimerWithTimeIntervalRepeatsBlock(interval float64, repeats bool, block func(*NSTimer)) *NSTimer
- func NSTimerTimerWithTimeIntervalTargetSelectorUserInfoRepeats(ti float64, aTarget objc.ID, aSelector objc.SEL, userInfo objc.ID, ...) *NSTimer
- func (o *NSTimer) Fire()
- func (o *NSTimer) FireDate() *NSDate
- func (o *NSTimer) InitWithFireDateIntervalRepeatsBlock(date *NSDate, interval float64, repeats bool, block func(*NSTimer)) *NSTimer
- func (o *NSTimer) InitWithFireDateIntervalTargetSelectorUserInfoRepeats(date *NSDate, ti float64, t objc.ID, s objc.SEL, ui objc.ID, rep bool) *NSTimer
- func (o *NSTimer) Invalidate()
- func (o *NSTimer) IsValid() bool
- func (o *NSTimer) SetFireDate(fireDate *NSDate)
- func (o *NSTimer) SetTolerance(tolerance float64)
- func (o *NSTimer) TimeInterval() float64
- func (o *NSTimer) Tolerance() float64
- func (o *NSTimer) UserInfo() objc.ID
- type NSURL
- func NSBundleURLForResourceWithExtensionSubdirectoryInBundleWithURL(name *NSString, ext *NSString, subpath *NSString, bundleURL *NSURL) *NSURL
- func NSFileVersionTemporaryDirectoryURLForNewVersionOfItemAtURL(url *NSURL) *NSURL
- func NSURLAbsoluteURLWithDataRepresentationRelativeToURL(data *NSData, baseURL *NSURL) *NSURL
- func NSURLFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path string, isDir bool, baseURL *NSURL) *NSURL
- func NSURLFileURLWithPath(path *NSString) *NSURL
- func NSURLFileURLWithPathComponents(components *NSArray[*NSString]) *NSURL
- func NSURLFileURLWithPathIsDirectory(path *NSString, isDir bool) *NSURL
- func NSURLFileURLWithPathIsDirectoryRelativeToURL(path *NSString, isDir bool, baseURL *NSURL) *NSURL
- func NSURLFileURLWithPathRelativeToURL(path *NSString, baseURL *NSURL) *NSURL
- func NSURLFromID(id objc.ID) *NSURL
- func NSURLURLByResolvingAliasFileAtURLOptionsError(url *NSURL, options NSURLBookmarkResolutionOptions) (*NSURL, error)
- func NSURLURLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData *NSData, options NSURLBookmarkResolutionOptions, ...) (*NSURL, error)
- func NSURLURLWithDataRepresentationRelativeToURL(data *NSData, baseURL *NSURL) *NSURL
- func NSURLURLWithString(uRLString *NSString) *NSURL
- func NSURLURLWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURL
- func NSURLURLWithStringRelativeToURL(uRLString *NSString, baseURL *NSURL) *NSURL
- func (o *NSURL) AbsoluteString() *NSString
- func (o *NSURL) AbsoluteURL() *NSURL
- func (o *NSURL) BaseURL() *NSURL
- func (o *NSURL) BookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError(options NSURLBookmarkCreationOptions, keys *NSArray[*NSString], ...) (*NSData, error)
- func (o *NSURL) CheckPromisedItemIsReachableAndReturnError() (bool, error)
- func (o *NSURL) CheckResourceIsReachableAndReturnError() (bool, error)
- func (o *NSURL) DataRepresentation() *NSData
- func (o *NSURL) FilePathURL() *NSURL
- func (o *NSURL) FileReferenceURL() *NSURL
- func (o *NSURL) FileSystemRepresentation() unsafe.Pointer
- func (o *NSURL) Fragment() *NSString
- func (o *NSURL) GetFileSystemRepresentationMaxLength(buffer string, maxBufferLength uint) bool
- func (o *NSURL) GetPromisedItemResourceValueForKeyError(value **ObjcObject, key *NSString) (bool, error)
- func (o *NSURL) GetResourceValueForKeyError(value **ObjcObject, key *NSString) (bool, error)
- func (o *NSURL) HasDirectoryPath() bool
- func (o *NSURL) Host() *NSString
- func (o *NSURL) InitAbsoluteURLWithDataRepresentationRelativeToURL(data *NSData, baseURL *NSURL) *NSURL
- func (o *NSURL) InitByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData *NSData, options NSURLBookmarkResolutionOptions, ...) (*NSURL, error)
- func (o *NSURL) InitFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path string, isDir bool, baseURL *NSURL) *NSURL
- func (o *NSURL) InitFileURLWithPath(path *NSString) *NSURL
- func (o *NSURL) InitFileURLWithPathIsDirectory(path *NSString, isDir bool) *NSURL
- func (o *NSURL) InitFileURLWithPathIsDirectoryRelativeToURL(path *NSString, isDir bool, baseURL *NSURL) *NSURL
- func (o *NSURL) InitFileURLWithPathRelativeToURL(path *NSString, baseURL *NSURL) *NSURL
- func (o *NSURL) InitWithDataRepresentationRelativeToURL(data *NSData, baseURL *NSURL) *NSURL
- func (o *NSURL) InitWithSchemeHostPath(scheme *NSString, host *NSString, path *NSString) *NSURL
- func (o *NSURL) InitWithString(uRLString *NSString) *NSURL
- func (o *NSURL) InitWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURL
- func (o *NSURL) InitWithStringRelativeToURL(uRLString *NSString, baseURL *NSURL) *NSURL
- func (o *NSURL) IsFileReferenceURL() bool
- func (o *NSURL) IsFileURL() bool
- func (o *NSURL) LastPathComponent() *NSString
- func (o *NSURL) LoadResourceDataNotifyingClientUsingCache(client objc.ID, shouldUseCache bool)
- func (o *NSURL) ParameterString() *NSStringdeprecated
- func (o *NSURL) Password() *NSString
- func (o *NSURL) Path() *NSString
- func (o *NSURL) PathComponents() *NSArray[*NSString]
- func (o *NSURL) PathExtension() *NSString
- func (o *NSURL) Port() *NSNumber
- func (o *NSURL) PromisedItemResourceValuesForKeysError(keys *NSArray[*NSString]) (*NSDictionary[*NSString, objc.ID], error)
- func (o *NSURL) PropertyForKey(propertyKey *NSString) objc.ID
- func (o *NSURL) Query() *NSStringdeprecated
- func (o *NSURL) RelativePath() *NSStringdeprecated
- func (o *NSURL) RelativeString() *NSString
- func (o *NSURL) RemoveAllCachedResourceValues()
- func (o *NSURL) RemoveCachedResourceValueForKey(key *NSString)
- func (o *NSURL) ResourceDataUsingCache(shouldUseCache bool) *NSData
- func (o *NSURL) ResourceSpecifier() *NSString
- func (o *NSURL) ResourceValuesForKeysError(keys *NSArray[*NSString]) (*NSDictionary[*NSString, objc.ID], error)
- func (o *NSURL) Scheme() *NSString
- func (o *NSURL) SetPropertyForKey(property objc.ID, propertyKey *NSString) bool
- func (o *NSURL) SetResourceData(data *NSData) bool
- func (o *NSURL) SetResourceValueForKeyError(value objc.ID, key *NSString) (bool, error)
- func (o *NSURL) SetResourceValuesError(keyedValues *NSDictionary[*NSString, objc.ID]) (bool, error)
- func (o *NSURL) SetTemporaryResourceValueForKey(value objc.ID, key *NSString)
- func (o *NSURL) StandardizedURL() *NSURL
- func (o *NSURL) StartAccessingSecurityScopedResource() bool
- func (o *NSURL) StopAccessingSecurityScopedResource()
- func (o *NSURL) URLByAppendingPathComponent(pathComponent *NSString) *NSURL
- func (o *NSURL) URLByAppendingPathComponentIsDirectory(pathComponent *NSString, isDirectory bool) *NSURL
- func (o *NSURL) URLByAppendingPathExtension(pathExtension *NSString) *NSURL
- func (o *NSURL) URLByDeletingLastPathComponent() *NSURL
- func (o *NSURL) URLByDeletingPathExtension() *NSURL
- func (o *NSURL) URLByResolvingSymlinksInPath() *NSURL
- func (o *NSURL) URLByStandardizingPath() *NSURL
- func (o *NSURL) URLHandleUsingCache(shouldUseCache bool) *NSURLHandle
- func (o *NSURL) User() *NSString
- type NSURLAuthenticationChallenge
- func (o *NSURLAuthenticationChallenge) Error() unsafe.Pointer
- func (o *NSURLAuthenticationChallenge) FailureResponse() *NSURLResponse
- func (o *NSURLAuthenticationChallenge) InitWithAuthenticationChallengeSender(challenge *NSURLAuthenticationChallenge, ...) *NSURLAuthenticationChallenge
- func (o *NSURLAuthenticationChallenge) InitWithProtectionSpaceProposedCredentialPreviousFailureCountFailureResponseErrorSender(space *NSURLProtectionSpace, credential *NSURLCredential, ...) *NSURLAuthenticationChallenge
- func (o *NSURLAuthenticationChallenge) PreviousFailureCount() int
- func (o *NSURLAuthenticationChallenge) ProposedCredential() *NSURLCredential
- func (o *NSURLAuthenticationChallenge) ProtectionSpace() *NSURLProtectionSpace
- func (o *NSURLAuthenticationChallenge) Sender() NSURLAuthenticationChallengeSender
- type NSURLAuthenticationChallengeSender
- type NSURLBookmarkCreationOptions
- type NSURLBookmarkResolutionOptions
- type NSURLCache
- func (o *NSURLCache) CachedResponseForRequest(request *NSURLRequest) *NSCachedURLResponse
- func (o *NSURLCache) CurrentDiskUsage() uint
- func (o *NSURLCache) CurrentMemoryUsage() uint
- func (o *NSURLCache) DiskCapacity() uint
- func (o *NSURLCache) GetCachedResponseForDataTaskCompletionHandler(dataTask *NSURLSessionDataTask, completionHandler func(*NSCachedURLResponse))
- func (o *NSURLCache) InitWithMemoryCapacityDiskCapacityDirectoryURL(memoryCapacity uint, diskCapacity uint, directoryURL *NSURL) *NSURLCache
- func (o *NSURLCache) InitWithMemoryCapacityDiskCapacityDiskPath(memoryCapacity uint, diskCapacity uint, path *NSString) *NSURLCache
- func (o *NSURLCache) MemoryCapacity() uint
- func (o *NSURLCache) RemoveAllCachedResponses()
- func (o *NSURLCache) RemoveCachedResponseForDataTask(dataTask *NSURLSessionDataTask)
- func (o *NSURLCache) RemoveCachedResponseForRequest(request *NSURLRequest)
- func (o *NSURLCache) RemoveCachedResponsesSinceDate(date *NSDate)
- func (o *NSURLCache) SetDiskCapacity(diskCapacity uint)
- func (o *NSURLCache) SetMemoryCapacity(memoryCapacity uint)
- func (o *NSURLCache) StoreCachedResponseForDataTask(cachedResponse *NSCachedURLResponse, dataTask *NSURLSessionDataTask)
- func (o *NSURLCache) StoreCachedResponseForRequest(cachedResponse *NSCachedURLResponse, request *NSURLRequest)
- type NSURLCacheStoragePolicy
- type NSURLComponents
- func NSURLComponentsComponentsWithString(uRLString *NSString) *NSURLComponents
- func NSURLComponentsComponentsWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURLComponents
- func NSURLComponentsComponentsWithURLResolvingAgainstBaseURL(url *NSURL, resolve bool) *NSURLComponents
- func NSURLComponentsFromID(id objc.ID) *NSURLComponents
- func (o *NSURLComponents) EncodedHost() *NSString
- func (o *NSURLComponents) Fragment() *NSString
- func (o *NSURLComponents) Host() *NSString
- func (o *NSURLComponents) Init() *NSURLComponents
- func (o *NSURLComponents) InitWithString(uRLString *NSString) *NSURLComponents
- func (o *NSURLComponents) InitWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURLComponents
- func (o *NSURLComponents) InitWithURLResolvingAgainstBaseURL(url *NSURL, resolve bool) *NSURLComponents
- func (o *NSURLComponents) Password() *NSString
- func (o *NSURLComponents) Path() *NSString
- func (o *NSURLComponents) PercentEncodedFragment() *NSStringdeprecated
- func (o *NSURLComponents) PercentEncodedHost() *NSStringdeprecated
- func (o *NSURLComponents) PercentEncodedPassword() *NSString
- func (o *NSURLComponents) PercentEncodedPath() *NSStringdeprecated
- func (o *NSURLComponents) PercentEncodedQuery() *NSStringdeprecated
- func (o *NSURLComponents) PercentEncodedQueryItems() *NSArray[*NSURLQueryItem]
- func (o *NSURLComponents) PercentEncodedUser() *NSString
- func (o *NSURLComponents) Port() *NSNumber
- func (o *NSURLComponents) Query() *NSString
- func (o *NSURLComponents) QueryItems() *NSArray[*NSURLQueryItem]
- func (o *NSURLComponents) RangeOfFragment() NSRange
- func (o *NSURLComponents) RangeOfHost() NSRange
- func (o *NSURLComponents) RangeOfPassword() NSRange
- func (o *NSURLComponents) RangeOfPath() NSRange
- func (o *NSURLComponents) RangeOfPort() NSRange
- func (o *NSURLComponents) RangeOfQuery() NSRange
- func (o *NSURLComponents) RangeOfScheme() NSRange
- func (o *NSURLComponents) RangeOfUser() NSRange
- func (o *NSURLComponents) Scheme() *NSString
- func (o *NSURLComponents) SetEncodedHost(encodedHost *NSString)
- func (o *NSURLComponents) SetFragment(fragment *NSString)
- func (o *NSURLComponents) SetHost(host *NSString)
- func (o *NSURLComponents) SetPassword(password *NSString)
- func (o *NSURLComponents) SetPath(path *NSString)
- func (o *NSURLComponents) SetPercentEncodedFragment(percentEncodedFragment *NSString)
- func (o *NSURLComponents) SetPercentEncodedHost(percentEncodedHost *NSString)deprecated
- func (o *NSURLComponents) SetPercentEncodedPassword(percentEncodedPassword *NSString)
- func (o *NSURLComponents) SetPercentEncodedPath(percentEncodedPath *NSString)
- func (o *NSURLComponents) SetPercentEncodedQuery(percentEncodedQuery *NSString)
- func (o *NSURLComponents) SetPercentEncodedQueryItems(percentEncodedQueryItems *NSArray[*NSURLQueryItem])
- func (o *NSURLComponents) SetPercentEncodedUser(percentEncodedUser *NSString)
- func (o *NSURLComponents) SetPort(port *NSNumber)
- func (o *NSURLComponents) SetQuery(query *NSString)
- func (o *NSURLComponents) SetQueryItems(queryItems *NSArray[*NSURLQueryItem])
- func (o *NSURLComponents) SetScheme(scheme *NSString)
- func (o *NSURLComponents) SetUser(user *NSString)
- func (o *NSURLComponents) String() *NSString
- func (o *NSURLComponents) URL() *NSURL
- func (o *NSURLComponents) URLRelativeToURL(baseURL *NSURL) *NSURL
- func (o *NSURLComponents) User() *NSString
- type NSURLConnection
- func (o *NSURLConnection) Cancel()
- func (o *NSURLConnection) CurrentRequest() *NSURLRequest
- func (o *NSURLConnection) InitWithRequestDelegate(request *NSURLRequest, delegate objc.ID) *NSURLConnection
- func (o *NSURLConnection) InitWithRequestDelegateStartImmediately(request *NSURLRequest, delegate objc.ID, startImmediately bool) *NSURLConnection
- func (o *NSURLConnection) OriginalRequest() *NSURLRequest
- func (o *NSURLConnection) ScheduleInRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
- func (o *NSURLConnection) SetDelegateQueue(queue *NSOperationQueue)
- func (o *NSURLConnection) Start()
- func (o *NSURLConnection) UnscheduleFromRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
- type NSURLConnectionDataDelegate
- type NSURLConnectionDelegate
- type NSURLConnectionDownloadDelegate
- type NSURLCredential
- func NSURLCredentialCredentialForTrust(trust unsafe.Pointer) *NSURLCredential
- func NSURLCredentialCredentialWithIdentityCertificatesPersistence(identity unsafe.Pointer, certArray *NSArray[objc.ID], ...) *NSURLCredential
- func NSURLCredentialCredentialWithUserPasswordPersistence(user *NSString, password *NSString, persistence NSURLCredentialPersistence) *NSURLCredential
- func NSURLCredentialFromID(id objc.ID) *NSURLCredential
- func (o *NSURLCredential) Certificates() *NSArray[objc.ID]
- func (o *NSURLCredential) HasPassword() bool
- func (o *NSURLCredential) Identity() unsafe.Pointer
- func (o *NSURLCredential) InitWithIdentityCertificatesPersistence(identity unsafe.Pointer, certArray *NSArray[objc.ID], ...) *NSURLCredential
- func (o *NSURLCredential) InitWithTrust(trust unsafe.Pointer) *NSURLCredential
- func (o *NSURLCredential) InitWithUserPasswordPersistence(user *NSString, password *NSString, persistence NSURLCredentialPersistence) *NSURLCredential
- func (o *NSURLCredential) Password() *NSString
- func (o *NSURLCredential) Persistence() NSURLCredentialPersistence
- func (o *NSURLCredential) User() *NSString
- type NSURLCredentialPersistence
- type NSURLCredentialStorage
- func (o *NSURLCredentialStorage) AllCredentials() *NSDictionary[*NSURLProtectionSpace, objc.ID]
- func (o *NSURLCredentialStorage) CredentialsForProtectionSpace(space *NSURLProtectionSpace) *NSDictionary[*NSString, *NSURLCredential]
- func (o *NSURLCredentialStorage) DefaultCredentialForProtectionSpace(space *NSURLProtectionSpace) *NSURLCredential
- func (o *NSURLCredentialStorage) GetCredentialsForProtectionSpaceTaskCompletionHandler(protectionSpace *NSURLProtectionSpace, task *NSURLSessionTask, ...)
- func (o *NSURLCredentialStorage) GetDefaultCredentialForProtectionSpaceTaskCompletionHandler(space *NSURLProtectionSpace, task *NSURLSessionTask, ...)
- func (o *NSURLCredentialStorage) RemoveCredentialForProtectionSpace(credential *NSURLCredential, space *NSURLProtectionSpace)
- func (o *NSURLCredentialStorage) RemoveCredentialForProtectionSpaceOptions(credential *NSURLCredential, space *NSURLProtectionSpace, ...)
- func (o *NSURLCredentialStorage) RemoveCredentialForProtectionSpaceOptionsTask(credential *NSURLCredential, protectionSpace *NSURLProtectionSpace, ...)
- func (o *NSURLCredentialStorage) SetCredentialForProtectionSpace(credential *NSURLCredential, space *NSURLProtectionSpace)
- func (o *NSURLCredentialStorage) SetCredentialForProtectionSpaceTask(credential *NSURLCredential, protectionSpace *NSURLProtectionSpace, ...)
- func (o *NSURLCredentialStorage) SetDefaultCredentialForProtectionSpace(credential *NSURLCredential, space *NSURLProtectionSpace)
- func (o *NSURLCredentialStorage) SetDefaultCredentialForProtectionSpaceTask(credential *NSURLCredential, protectionSpace *NSURLProtectionSpace, ...)
- type NSURLDownload
- func (o *NSURLDownload) Cancel()
- func (o *NSURLDownload) DeletesFileUponFailure() bool
- func (o *NSURLDownload) InitWithRequestDelegate(request *NSURLRequest, delegate NSURLDownloadDelegate) *NSURLDownload
- func (o *NSURLDownload) InitWithResumeDataDelegatePath(resumeData *NSData, delegate NSURLDownloadDelegate, path *NSString) *NSURLDownload
- func (o *NSURLDownload) Request() *NSURLRequest
- func (o *NSURLDownload) ResumeData() *NSData
- func (o *NSURLDownload) SetDeletesFileUponFailure(deletesFileUponFailure bool)
- func (o *NSURLDownload) SetDestinationAllowOverwrite(path *NSString, allowOverwrite bool)
- type NSURLDownloadDelegate
- type NSURLErrorNetworkUnavailableReason
- type NSURLHandle
- func (o *NSURLHandle) AddClient(client NSURLHandleClient)
- func (o *NSURLHandle) AvailableResourceData() *NSData
- func (o *NSURLHandle) BackgroundLoadDidFailWithReason(reason *NSString)
- func (o *NSURLHandle) BeginLoadInBackground()
- func (o *NSURLHandle) CancelLoadInBackground()
- func (o *NSURLHandle) DidLoadBytesLoadComplete(newBytes *NSData, yorn bool)
- func (o *NSURLHandle) EndLoadInBackground()
- func (o *NSURLHandle) ExpectedResourceDataSize() int64
- func (o *NSURLHandle) FailureReason() *NSString
- func (o *NSURLHandle) FlushCachedData()
- func (o *NSURLHandle) InitWithURLCached(anURL *NSURL, willCache bool) objc.ID
- func (o *NSURLHandle) LoadInBackground()
- func (o *NSURLHandle) LoadInForeground() *NSData
- func (o *NSURLHandle) PropertyForKey(propertyKey *NSString) objc.ID
- func (o *NSURLHandle) PropertyForKeyIfAvailable(propertyKey *NSString) objc.ID
- func (o *NSURLHandle) RemoveClient(client NSURLHandleClient)
- func (o *NSURLHandle) ResourceData() *NSData
- func (o *NSURLHandle) Status() NSURLHandleStatus
- func (o *NSURLHandle) WriteData(data *NSData) bool
- func (o *NSURLHandle) WritePropertyForKey(propertyValue objc.ID, propertyKey *NSString) bool
- type NSURLHandleClient
- type NSURLHandleStatus
- type NSURLProtectionSpace
- func (o *NSURLProtectionSpace) AuthenticationMethod() *NSString
- func (o *NSURLProtectionSpace) DistinguishedNames() *NSArray[*NSData]
- func (o *NSURLProtectionSpace) Host() *NSString
- func (o *NSURLProtectionSpace) InitWithHostPortProtocolRealmAuthenticationMethod(host *NSString, port int, protocol *NSString, realm *NSString, ...) *NSURLProtectionSpace
- func (o *NSURLProtectionSpace) InitWithProxyHostPortTypeRealmAuthenticationMethod(host *NSString, port int, type_ *NSString, realm *NSString, ...) *NSURLProtectionSpace
- func (o *NSURLProtectionSpace) IsProxy() bool
- func (o *NSURLProtectionSpace) Port() int
- func (o *NSURLProtectionSpace) Protocol() *NSString
- func (o *NSURLProtectionSpace) ProxyType() *NSString
- func (o *NSURLProtectionSpace) Realm() *NSString
- func (o *NSURLProtectionSpace) ReceivesCredentialSecurely() bool
- func (o *NSURLProtectionSpace) ServerTrust() unsafe.Pointer
- type NSURLProtocol
- func (o *NSURLProtocol) CachedResponse() *NSCachedURLResponse
- func (o *NSURLProtocol) Client() NSURLProtocolClient
- func (o *NSURLProtocol) InitWithRequestCachedResponseClient(request *NSURLRequest, cachedResponse *NSCachedURLResponse, ...) *NSURLProtocol
- func (o *NSURLProtocol) InitWithTaskCachedResponseClient(task *NSURLSessionTask, cachedResponse *NSCachedURLResponse, ...) *NSURLProtocol
- func (o *NSURLProtocol) Request() *NSURLRequest
- func (o *NSURLProtocol) StartLoading()
- func (o *NSURLProtocol) StopLoading()
- func (o *NSURLProtocol) Task() *NSURLSessionTask
- type NSURLProtocolClient
- type NSURLQueryItem
- type NSURLRelationship
- type NSURLRequest
- func NSURLProtocolCanonicalRequestForRequest(request *NSURLRequest) *NSURLRequest
- func NSURLRequestFromID(id objc.ID) *NSURLRequest
- func NSURLRequestRequestWithURL(uRL *NSURL) *NSURLRequest
- func NSURLRequestRequestWithURLCachePolicyTimeoutInterval(uRL *NSURL, cachePolicy NSURLRequestCachePolicy, timeoutInterval float64) *NSURLRequest
- func (o *NSURLRequest) AllHTTPHeaderFields() *NSDictionary[*NSString, *NSString]
- func (o *NSURLRequest) AllowsCellularAccess() bool
- func (o *NSURLRequest) AllowsConstrainedNetworkAccess() bool
- func (o *NSURLRequest) AllowsExpensiveNetworkAccess() bool
- func (o *NSURLRequest) AllowsPersistentDNS() bool
- func (o *NSURLRequest) AllowsUltraConstrainedNetworkAccess() bool
- func (o *NSURLRequest) AssumesHTTP3Capable() bool
- func (o *NSURLRequest) Attribution() NSURLRequestAttribution
- func (o *NSURLRequest) CachePolicy() NSURLRequestCachePolicy
- func (o *NSURLRequest) CookiePartitionIdentifier() *NSString
- func (o *NSURLRequest) HTTPBody() *NSData
- func (o *NSURLRequest) HTTPBodyStream() *NSInputStream
- func (o *NSURLRequest) HTTPMethod() *NSString
- func (o *NSURLRequest) HTTPShouldHandleCookies() bool
- func (o *NSURLRequest) HTTPShouldUsePipelining() bool
- func (o *NSURLRequest) InitWithURL(uRL *NSURL) *NSURLRequest
- func (o *NSURLRequest) InitWithURLCachePolicyTimeoutInterval(uRL *NSURL, cachePolicy NSURLRequestCachePolicy, timeoutInterval float64) *NSURLRequest
- func (o *NSURLRequest) MainDocumentURL() *NSURL
- func (o *NSURLRequest) NetworkServiceType() NSURLRequestNetworkServiceType
- func (o *NSURLRequest) RequiresDNSSECValidation() bool
- func (o *NSURLRequest) TimeoutInterval() float64
- func (o *NSURLRequest) URL() *NSURL
- func (o *NSURLRequest) ValueForHTTPHeaderField(field *NSString) *NSString
- type NSURLRequestAttribution
- type NSURLRequestCachePolicy
- type NSURLRequestNetworkServiceType
- type NSURLResponse
- func (o *NSURLResponse) ExpectedContentLength() int64
- func (o *NSURLResponse) InitWithURLMIMETypeExpectedContentLengthTextEncodingName(uRL *NSURL, mIMEType *NSString, length int, name *NSString) *NSURLResponse
- func (o *NSURLResponse) MIMEType() *NSString
- func (o *NSURLResponse) SuggestedFilename() *NSString
- func (o *NSURLResponse) TextEncodingName() *NSString
- func (o *NSURLResponse) URL() *NSURL
- type NSURLSession
- func NSURLSessionFromID(id objc.ID) *NSURLSession
- func NSURLSessionNew() *NSURLSessiondeprecated
- func NSURLSessionSessionWithConfiguration(configuration *NSURLSessionConfiguration) *NSURLSession
- func NSURLSessionSessionWithConfigurationDelegateDelegateQueue(configuration *NSURLSessionConfiguration, delegate NSURLSessionDelegate, ...) *NSURLSession
- func NSURLSessionSharedSession() *NSURLSession
- func (o *NSURLSession) Configuration() *NSURLSessionConfiguration
- func (o *NSURLSession) DataTaskWithRequest(request *NSURLRequest) *NSURLSessionDataTask
- func (o *NSURLSession) DataTaskWithRequestCompletionHandler(request *NSURLRequest, ...) *NSURLSessionDataTask
- func (o *NSURLSession) DataTaskWithURL(url *NSURL) *NSURLSessionDataTask
- func (o *NSURLSession) DataTaskWithURLCompletionHandler(url *NSURL, completionHandler func(*NSData, *NSURLResponse, unsafe.Pointer)) *NSURLSessionDataTask
- func (o *NSURLSession) Delegate() NSURLSessionDelegate
- func (o *NSURLSession) DelegateQueue() *NSOperationQueue
- func (o *NSURLSession) DownloadTaskWithRequest(request *NSURLRequest) *NSURLSessionDownloadTask
- func (o *NSURLSession) DownloadTaskWithRequestCompletionHandler(request *NSURLRequest, ...) *NSURLSessionDownloadTask
- func (o *NSURLSession) DownloadTaskWithResumeData(resumeData *NSData) *NSURLSessionDownloadTask
- func (o *NSURLSession) DownloadTaskWithResumeDataCompletionHandler(resumeData *NSData, ...) *NSURLSessionDownloadTask
- func (o *NSURLSession) DownloadTaskWithURL(url *NSURL) *NSURLSessionDownloadTask
- func (o *NSURLSession) DownloadTaskWithURLCompletionHandler(url *NSURL, completionHandler func(*NSURL, *NSURLResponse, unsafe.Pointer)) *NSURLSessionDownloadTask
- func (o *NSURLSession) FinishTasksAndInvalidate()
- func (o *NSURLSession) FlushWithCompletionHandler(completionHandler func())
- func (o *NSURLSession) GetAllTasksWithCompletionHandler(completionHandler func(*NSArray[*NSURLSessionTask]))
- func (o *NSURLSession) GetTasksWithCompletionHandler(...)
- func (o *NSURLSession) Init() *NSURLSessiondeprecated
- func (o *NSURLSession) InvalidateAndCancel()
- func (o *NSURLSession) ResetWithCompletionHandler(completionHandler func())
- func (o *NSURLSession) SessionDescription() *NSString
- func (o *NSURLSession) SetSessionDescription(sessionDescription *NSString)
- func (o *NSURLSession) StreamTaskWithHostNamePort(hostname *NSString, port int) *NSURLSessionStreamTask
- func (o *NSURLSession) StreamTaskWithNetService(service *NSNetService) *NSURLSessionStreamTaskdeprecated
- func (o *NSURLSession) UploadTaskWithRequestFromData(request *NSURLRequest, bodyData *NSData) *NSURLSessionUploadTask
- func (o *NSURLSession) UploadTaskWithRequestFromDataCompletionHandler(request *NSURLRequest, bodyData *NSData, ...) *NSURLSessionUploadTask
- func (o *NSURLSession) UploadTaskWithRequestFromFile(request *NSURLRequest, fileURL *NSURL) *NSURLSessionUploadTask
- func (o *NSURLSession) UploadTaskWithRequestFromFileCompletionHandler(request *NSURLRequest, fileURL *NSURL, ...) *NSURLSessionUploadTask
- func (o *NSURLSession) UploadTaskWithResumeData(resumeData *NSData) *NSURLSessionUploadTask
- func (o *NSURLSession) UploadTaskWithResumeDataCompletionHandler(resumeData *NSData, ...) *NSURLSessionUploadTask
- func (o *NSURLSession) UploadTaskWithStreamedRequest(request *NSURLRequest) *NSURLSessionUploadTask
- func (o *NSURLSession) WebSocketTaskWithRequest(request *NSURLRequest) *NSURLSessionWebSocketTask
- func (o *NSURLSession) WebSocketTaskWithURL(url *NSURL) *NSURLSessionWebSocketTask
- func (o *NSURLSession) WebSocketTaskWithURLProtocols(url *NSURL, protocols *NSArray[*NSString]) *NSURLSessionWebSocketTask
- type NSURLSessionAuthChallengeDisposition
- type NSURLSessionConfiguration
- func NSURLSessionConfigurationBackgroundSessionConfiguration(identifier *NSString) *NSURLSessionConfigurationdeprecated
- func NSURLSessionConfigurationBackgroundSessionConfigurationWithIdentifier(identifier *NSString) *NSURLSessionConfiguration
- func NSURLSessionConfigurationDefaultSessionConfiguration() *NSURLSessionConfiguration
- func NSURLSessionConfigurationEphemeralSessionConfiguration() *NSURLSessionConfiguration
- func NSURLSessionConfigurationFromID(id objc.ID) *NSURLSessionConfiguration
- func NSURLSessionConfigurationNew() *NSURLSessionConfigurationdeprecated
- func (o *NSURLSessionConfiguration) AllowsCellularAccess() bool
- func (o *NSURLSessionConfiguration) AllowsConstrainedNetworkAccess() bool
- func (o *NSURLSessionConfiguration) AllowsExpensiveNetworkAccess() bool
- func (o *NSURLSessionConfiguration) AllowsUltraConstrainedNetworkAccess() bool
- func (o *NSURLSessionConfiguration) ConnectionProxyDictionary() *NSDictionary[objc.ID, objc.ID]
- func (o *NSURLSessionConfiguration) EnablesEarlyData() bool
- func (o *NSURLSessionConfiguration) HTTPAdditionalHeaders() *NSDictionary[objc.ID, objc.ID]
- func (o *NSURLSessionConfiguration) HTTPCookieAcceptPolicy() NSHTTPCookieAcceptPolicy
- func (o *NSURLSessionConfiguration) HTTPCookieStorage() *NSHTTPCookieStorage
- func (o *NSURLSessionConfiguration) HTTPMaximumConnectionsPerHost() int
- func (o *NSURLSessionConfiguration) HTTPShouldSetCookies() booldeprecated
- func (o *NSURLSessionConfiguration) HTTPShouldUsePipelining() booldeprecated
- func (o *NSURLSessionConfiguration) Identifier() *NSString
- func (o *NSURLSessionConfiguration) Init() *NSURLSessionConfigurationdeprecated
- func (o *NSURLSessionConfiguration) IsDiscretionary() bool
- func (o *NSURLSessionConfiguration) NetworkServiceType() NSURLRequestNetworkServiceType
- func (o *NSURLSessionConfiguration) ProtocolClasses() *NSArray[objc.Class]
- func (o *NSURLSessionConfiguration) RequestCachePolicy() NSURLRequestCachePolicy
- func (o *NSURLSessionConfiguration) RequiresDNSSECValidation() bool
- func (o *NSURLSessionConfiguration) SessionSendsLaunchEvents() bool
- func (o *NSURLSessionConfiguration) SetAllowsCellularAccess(allowsCellularAccess bool)
- func (o *NSURLSessionConfiguration) SetAllowsConstrainedNetworkAccess(allowsConstrainedNetworkAccess bool)
- func (o *NSURLSessionConfiguration) SetAllowsExpensiveNetworkAccess(allowsExpensiveNetworkAccess bool)
- func (o *NSURLSessionConfiguration) SetAllowsUltraConstrainedNetworkAccess(allowsUltraConstrainedNetworkAccess bool)
- func (o *NSURLSessionConfiguration) SetConnectionProxyDictionary(connectionProxyDictionary *NSDictionary[objc.ID, objc.ID])
- func (o *NSURLSessionConfiguration) SetDiscretionary(discretionary bool)
- func (o *NSURLSessionConfiguration) SetEnablesEarlyData(enablesEarlyData bool)
- func (o *NSURLSessionConfiguration) SetHTTPAdditionalHeaders(hTTPAdditionalHeaders *NSDictionary[objc.ID, objc.ID])
- func (o *NSURLSessionConfiguration) SetHTTPCookieAcceptPolicy(hTTPCookieAcceptPolicy NSHTTPCookieAcceptPolicy)
- func (o *NSURLSessionConfiguration) SetHTTPCookieStorage(hTTPCookieStorage *NSHTTPCookieStorage)
- func (o *NSURLSessionConfiguration) SetHTTPMaximumConnectionsPerHost(hTTPMaximumConnectionsPerHost int)
- func (o *NSURLSessionConfiguration) SetHTTPShouldSetCookies(hTTPShouldSetCookies bool)
- func (o *NSURLSessionConfiguration) SetHTTPShouldUsePipelining(hTTPShouldUsePipelining bool)deprecated
- func (o *NSURLSessionConfiguration) SetNetworkServiceType(networkServiceType NSURLRequestNetworkServiceType)
- func (o *NSURLSessionConfiguration) SetProtocolClasses(protocolClasses *NSArray[objc.Class])
- func (o *NSURLSessionConfiguration) SetRequestCachePolicy(requestCachePolicy NSURLRequestCachePolicy)
- func (o *NSURLSessionConfiguration) SetRequiresDNSSECValidation(requiresDNSSECValidation bool)
- func (o *NSURLSessionConfiguration) SetSessionSendsLaunchEvents(sessionSendsLaunchEvents bool)
- func (o *NSURLSessionConfiguration) SetSharedContainerIdentifier(sharedContainerIdentifier *NSString)
- func (o *NSURLSessionConfiguration) SetShouldUseExtendedBackgroundIdleMode(shouldUseExtendedBackgroundIdleMode bool)deprecated
- func (o *NSURLSessionConfiguration) SetTLSMaximumSupportedProtocol(tLSMaximumSupportedProtocol security.SSLProtocol)deprecated
- func (o *NSURLSessionConfiguration) SetTLSMaximumSupportedProtocolVersion(tLSMaximumSupportedProtocolVersion security.Tls_protocol_version_t)
- func (o *NSURLSessionConfiguration) SetTLSMinimumSupportedProtocol(tLSMinimumSupportedProtocol security.SSLProtocol)deprecated
- func (o *NSURLSessionConfiguration) SetTLSMinimumSupportedProtocolVersion(tLSMinimumSupportedProtocolVersion security.Tls_protocol_version_t)
- func (o *NSURLSessionConfiguration) SetTimeoutIntervalForRequest(timeoutIntervalForRequest float64)
- func (o *NSURLSessionConfiguration) SetTimeoutIntervalForResource(timeoutIntervalForResource float64)
- func (o *NSURLSessionConfiguration) SetURLCache(uRLCache *NSURLCache)
- func (o *NSURLSessionConfiguration) SetURLCredentialStorage(uRLCredentialStorage *NSURLCredentialStorage)
- func (o *NSURLSessionConfiguration) SetUsesClassicLoadingMode(usesClassicLoadingMode bool)
- func (o *NSURLSessionConfiguration) SetWaitsForConnectivity(waitsForConnectivity bool)
- func (o *NSURLSessionConfiguration) SharedContainerIdentifier() *NSString
- func (o *NSURLSessionConfiguration) ShouldUseExtendedBackgroundIdleMode() booldeprecated
- func (o *NSURLSessionConfiguration) TLSMaximumSupportedProtocol() security.SSLProtocoldeprecated
- func (o *NSURLSessionConfiguration) TLSMaximumSupportedProtocolVersion() security.Tls_protocol_version_t
- func (o *NSURLSessionConfiguration) TLSMinimumSupportedProtocol() security.SSLProtocoldeprecated
- func (o *NSURLSessionConfiguration) TLSMinimumSupportedProtocolVersion() security.Tls_protocol_version_t
- func (o *NSURLSessionConfiguration) TimeoutIntervalForRequest() float64
- func (o *NSURLSessionConfiguration) TimeoutIntervalForResource() float64
- func (o *NSURLSessionConfiguration) URLCache() *NSURLCache
- func (o *NSURLSessionConfiguration) URLCredentialStorage() *NSURLCredentialStorage
- func (o *NSURLSessionConfiguration) UsesClassicLoadingMode() bool
- func (o *NSURLSessionConfiguration) WaitsForConnectivity() bool
- type NSURLSessionDataDelegate
- type NSURLSessionDataTask
- type NSURLSessionDelayedRequestDisposition
- type NSURLSessionDelegate
- type NSURLSessionDownloadDelegate
- type NSURLSessionDownloadTask
- type NSURLSessionResponseDisposition
- type NSURLSessionStreamDelegate
- type NSURLSessionStreamTask
- func (o *NSURLSessionStreamTask) CaptureStreams()
- func (o *NSURLSessionStreamTask) CloseRead()
- func (o *NSURLSessionStreamTask) CloseWrite()
- func (o *NSURLSessionStreamTask) Init() *NSURLSessionStreamTaskdeprecated
- func (o *NSURLSessionStreamTask) ReadDataOfMinLengthMaxLengthTimeoutCompletionHandler(minBytes uint, maxBytes uint, timeout float64, ...)
- func (o *NSURLSessionStreamTask) StartSecureConnection()
- func (o *NSURLSessionStreamTask) StopSecureConnection()deprecated
- func (o *NSURLSessionStreamTask) WriteDataTimeoutCompletionHandler(data *NSData, timeout float64, completionHandler func(unsafe.Pointer))
- type NSURLSessionTask
- func (o *NSURLSessionTask) Cancel()
- func (o *NSURLSessionTask) CountOfBytesClientExpectsToReceive() int64
- func (o *NSURLSessionTask) CountOfBytesClientExpectsToSend() int64
- func (o *NSURLSessionTask) CountOfBytesExpectedToReceive() int64
- func (o *NSURLSessionTask) CountOfBytesExpectedToSend() int64
- func (o *NSURLSessionTask) CountOfBytesReceived() int64
- func (o *NSURLSessionTask) CountOfBytesSent() int64
- func (o *NSURLSessionTask) CurrentRequest() *NSURLRequest
- func (o *NSURLSessionTask) Delegate() NSURLSessionTaskDelegate
- func (o *NSURLSessionTask) EarliestBeginDate() *NSDate
- func (o *NSURLSessionTask) Error() unsafe.Pointer
- func (o *NSURLSessionTask) Init() *NSURLSessionTaskdeprecated
- func (o *NSURLSessionTask) OriginalRequest() *NSURLRequest
- func (o *NSURLSessionTask) PrefersIncrementalDelivery() bool
- func (o *NSURLSessionTask) Priority() float32
- func (o *NSURLSessionTask) Progress() *NSProgress
- func (o *NSURLSessionTask) Response() *NSURLResponse
- func (o *NSURLSessionTask) Resume()
- func (o *NSURLSessionTask) SetCountOfBytesClientExpectsToReceive(countOfBytesClientExpectsToReceive int64)
- func (o *NSURLSessionTask) SetCountOfBytesClientExpectsToSend(countOfBytesClientExpectsToSend int64)
- func (o *NSURLSessionTask) SetDelegate(delegate NSURLSessionTaskDelegate)
- func (o *NSURLSessionTask) SetEarliestBeginDate(earliestBeginDate *NSDate)
- func (o *NSURLSessionTask) SetPrefersIncrementalDelivery(prefersIncrementalDelivery bool)
- func (o *NSURLSessionTask) SetPriority(priority float32)
- func (o *NSURLSessionTask) SetTaskDescription(taskDescription *NSString)
- func (o *NSURLSessionTask) State() NSURLSessionTaskState
- func (o *NSURLSessionTask) Suspend()
- func (o *NSURLSessionTask) TaskDescription() *NSString
- func (o *NSURLSessionTask) TaskIdentifier() uint
- type NSURLSessionTaskDelegate
- type NSURLSessionTaskMetrics
- type NSURLSessionTaskMetricsDomainResolutionProtocol
- type NSURLSessionTaskMetricsResourceFetchType
- type NSURLSessionTaskState
- type NSURLSessionTaskTransactionMetrics
- func (o *NSURLSessionTaskTransactionMetrics) ConnectEndDate() *NSDate
- func (o *NSURLSessionTaskTransactionMetrics) ConnectStartDate() *NSDate
- func (o *NSURLSessionTaskTransactionMetrics) CountOfRequestBodyBytesBeforeEncoding() int64
- func (o *NSURLSessionTaskTransactionMetrics) CountOfRequestBodyBytesSent() int64
- func (o *NSURLSessionTaskTransactionMetrics) CountOfRequestHeaderBytesSent() int64
- func (o *NSURLSessionTaskTransactionMetrics) CountOfResponseBodyBytesAfterDecoding() int64
- func (o *NSURLSessionTaskTransactionMetrics) CountOfResponseBodyBytesReceived() int64
- func (o *NSURLSessionTaskTransactionMetrics) CountOfResponseHeaderBytesReceived() int64
- func (o *NSURLSessionTaskTransactionMetrics) DomainLookupEndDate() *NSDate
- func (o *NSURLSessionTaskTransactionMetrics) DomainLookupStartDate() *NSDate
- func (o *NSURLSessionTaskTransactionMetrics) DomainResolutionProtocol() NSURLSessionTaskMetricsDomainResolutionProtocol
- func (o *NSURLSessionTaskTransactionMetrics) FetchStartDate() *NSDate
- func (o *NSURLSessionTaskTransactionMetrics) Init() *NSURLSessionTaskTransactionMetricsdeprecated
- func (o *NSURLSessionTaskTransactionMetrics) IsCellular() bool
- func (o *NSURLSessionTaskTransactionMetrics) IsConstrained() bool
- func (o *NSURLSessionTaskTransactionMetrics) IsExpensive() bool
- func (o *NSURLSessionTaskTransactionMetrics) IsMultipath() bool
- func (o *NSURLSessionTaskTransactionMetrics) IsProxyConnection() bool
- func (o *NSURLSessionTaskTransactionMetrics) IsReusedConnection() bool
- func (o *NSURLSessionTaskTransactionMetrics) LocalAddress() *NSString
- func (o *NSURLSessionTaskTransactionMetrics) LocalPort() *NSNumber
- func (o *NSURLSessionTaskTransactionMetrics) NegotiatedTLSCipherSuite() *NSNumber
- func (o *NSURLSessionTaskTransactionMetrics) NegotiatedTLSProtocolVersion() *NSNumber
- func (o *NSURLSessionTaskTransactionMetrics) NetworkProtocolName() *NSString
- func (o *NSURLSessionTaskTransactionMetrics) RemoteAddress() *NSString
- func (o *NSURLSessionTaskTransactionMetrics) RemotePort() *NSNumber
- func (o *NSURLSessionTaskTransactionMetrics) Request() *NSURLRequest
- func (o *NSURLSessionTaskTransactionMetrics) RequestEndDate() *NSDate
- func (o *NSURLSessionTaskTransactionMetrics) RequestStartDate() *NSDate
- func (o *NSURLSessionTaskTransactionMetrics) ResourceFetchType() NSURLSessionTaskMetricsResourceFetchType
- func (o *NSURLSessionTaskTransactionMetrics) Response() *NSURLResponse
- func (o *NSURLSessionTaskTransactionMetrics) ResponseEndDate() *NSDate
- func (o *NSURLSessionTaskTransactionMetrics) ResponseStartDate() *NSDate
- func (o *NSURLSessionTaskTransactionMetrics) SecureConnectionEndDate() *NSDate
- func (o *NSURLSessionTaskTransactionMetrics) SecureConnectionStartDate() *NSDate
- type NSURLSessionUploadTask
- type NSURLSessionWebSocketCloseCode
- type NSURLSessionWebSocketDelegate
- type NSURLSessionWebSocketMessage
- func (o *NSURLSessionWebSocketMessage) Data() *NSData
- func (o *NSURLSessionWebSocketMessage) InitWithData(data *NSData) *NSURLSessionWebSocketMessage
- func (o *NSURLSessionWebSocketMessage) InitWithString(string_ *NSString) *NSURLSessionWebSocketMessage
- func (o *NSURLSessionWebSocketMessage) String() *NSString
- func (o *NSURLSessionWebSocketMessage) Type() NSURLSessionWebSocketMessageType
- type NSURLSessionWebSocketMessageType
- type NSURLSessionWebSocketTask
- func (o *NSURLSessionWebSocketTask) CancelWithCloseCodeReason(closeCode NSURLSessionWebSocketCloseCode, reason *NSData)
- func (o *NSURLSessionWebSocketTask) CloseCode() NSURLSessionWebSocketCloseCode
- func (o *NSURLSessionWebSocketTask) CloseReason() *NSData
- func (o *NSURLSessionWebSocketTask) MaximumMessageSize() int
- func (o *NSURLSessionWebSocketTask) ReceiveMessageWithCompletionHandler(completionHandler func(*NSURLSessionWebSocketMessage, unsafe.Pointer))
- func (o *NSURLSessionWebSocketTask) SendMessageCompletionHandler(message *NSURLSessionWebSocketMessage, completionHandler func(unsafe.Pointer))
- func (o *NSURLSessionWebSocketTask) SendPingWithPongReceiveHandler(pongReceiveHandler func(unsafe.Pointer))
- func (o *NSURLSessionWebSocketTask) SetMaximumMessageSize(maximumMessageSize int)
- type NSUUID
- type NSUbiquitousKeyValueStore
- func (o *NSUbiquitousKeyValueStore) ArrayForKey(aKey *NSString) *NSArray[objc.ID]
- func (o *NSUbiquitousKeyValueStore) BoolForKey(aKey *NSString) bool
- func (o *NSUbiquitousKeyValueStore) DataForKey(aKey *NSString) *NSData
- func (o *NSUbiquitousKeyValueStore) DictionaryForKey(aKey *NSString) *NSDictionary[*NSString, objc.ID]
- func (o *NSUbiquitousKeyValueStore) DictionaryRepresentation() *NSDictionary[*NSString, objc.ID]
- func (o *NSUbiquitousKeyValueStore) DoubleForKey(aKey *NSString) float64
- func (o *NSUbiquitousKeyValueStore) LongLongForKey(aKey *NSString) int64
- func (o *NSUbiquitousKeyValueStore) ObjectForKey(aKey *NSString) objc.ID
- func (o *NSUbiquitousKeyValueStore) RemoveObjectForKey(aKey *NSString)
- func (o *NSUbiquitousKeyValueStore) SetArrayForKey(anArray *NSArray[objc.ID], aKey *NSString)
- func (o *NSUbiquitousKeyValueStore) SetBoolForKey(value bool, aKey *NSString)
- func (o *NSUbiquitousKeyValueStore) SetDataForKey(aData *NSData, aKey *NSString)
- func (o *NSUbiquitousKeyValueStore) SetDictionaryForKey(aDictionary *NSDictionary[*NSString, objc.ID], aKey *NSString)
- func (o *NSUbiquitousKeyValueStore) SetDoubleForKey(value float64, aKey *NSString)
- func (o *NSUbiquitousKeyValueStore) SetLongLongForKey(value int64, aKey *NSString)
- func (o *NSUbiquitousKeyValueStore) SetObjectForKey(anObject objc.ID, aKey *NSString)
- func (o *NSUbiquitousKeyValueStore) SetStringForKey(aString *NSString, aKey *NSString)
- func (o *NSUbiquitousKeyValueStore) StringForKey(aKey *NSString) *NSString
- func (o *NSUbiquitousKeyValueStore) Synchronize() bool
- type NSUnarchiver
- func (o *NSUnarchiver) ClassNameDecodedForArchiveClassName(inArchiveName *NSString) *NSString
- func (o *NSUnarchiver) DecodeClassNameAsClassName(inArchiveName *NSString, trueName *NSString)
- func (o *NSUnarchiver) InitForReadingWithData(data *NSData) *NSUnarchiver
- func (o *NSUnarchiver) IsAtEnd() bool
- func (o *NSUnarchiver) ReplaceObjectWithObject(object objc.ID, newObject objc.ID)
- type NSUndoManager
- func (o *NSUndoManager) BeginUndoGrouping()
- func (o *NSUndoManager) CanRedo() bool
- func (o *NSUndoManager) CanUndo() bool
- func (o *NSUndoManager) DisableUndoRegistration()
- func (o *NSUndoManager) EnableUndoRegistration()
- func (o *NSUndoManager) EndUndoGrouping()
- func (o *NSUndoManager) GroupingLevel() int
- func (o *NSUndoManager) GroupsByEvent() bool
- func (o *NSUndoManager) IsRedoing() bool
- func (o *NSUndoManager) IsUndoRegistrationEnabled() bool
- func (o *NSUndoManager) IsUndoing() bool
- func (o *NSUndoManager) LevelsOfUndo() uint
- func (o *NSUndoManager) PrepareWithInvocationTarget(target objc.ID) objc.ID
- func (o *NSUndoManager) Redo()
- func (o *NSUndoManager) RedoActionIsDiscardable() bool
- func (o *NSUndoManager) RedoActionName() *NSString
- func (o *NSUndoManager) RedoActionUserInfoValueForKey(key *NSString) objc.ID
- func (o *NSUndoManager) RedoCount() uint
- func (o *NSUndoManager) RedoMenuItemTitle() *NSString
- func (o *NSUndoManager) RedoMenuTitleForUndoActionName(actionName *NSString) *NSString
- func (o *NSUndoManager) RegisterUndoWithTargetHandler(target objc.ID, undoHandler func(objc.ID))
- func (o *NSUndoManager) RegisterUndoWithTargetSelectorObject(target objc.ID, selector objc.SEL, object objc.ID)
- func (o *NSUndoManager) RemoveAllActions()
- func (o *NSUndoManager) RemoveAllActionsWithTarget(target objc.ID)
- func (o *NSUndoManager) RunLoopModes() *NSArray[*NSString]
- func (o *NSUndoManager) SetActionIsDiscardable(discardable bool)
- func (o *NSUndoManager) SetActionName(actionName *NSString)
- func (o *NSUndoManager) SetActionUserInfoValueForKey(info objc.ID, key *NSString)
- func (o *NSUndoManager) SetGroupsByEvent(groupsByEvent bool)
- func (o *NSUndoManager) SetLevelsOfUndo(levelsOfUndo uint)
- func (o *NSUndoManager) SetRunLoopModes(runLoopModes *NSArray[*NSString])
- func (o *NSUndoManager) Undo()
- func (o *NSUndoManager) UndoActionIsDiscardable() bool
- func (o *NSUndoManager) UndoActionName() *NSString
- func (o *NSUndoManager) UndoActionUserInfoValueForKey(key *NSString) objc.ID
- func (o *NSUndoManager) UndoCount() uint
- func (o *NSUndoManager) UndoMenuItemTitle() *NSString
- func (o *NSUndoManager) UndoMenuTitleForUndoActionName(actionName *NSString) *NSString
- func (o *NSUndoManager) UndoNestedGroup()
- type NSUniqueIDSpecifier
- func (o *NSUniqueIDSpecifier) InitWithCoder(inCoder *NSCoder) *NSUniqueIDSpecifier
- func (o *NSUniqueIDSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyUniqueID(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, ...) *NSUniqueIDSpecifier
- func (o *NSUniqueIDSpecifier) SetUniqueID(uniqueID objc.ID)
- func (o *NSUniqueIDSpecifier) UniqueID() objc.ID
- type NSUnit
- type NSUnitAcceleration
- type NSUnitAngle
- type NSUnitArea
- func NSUnitAreaAcres() *NSUnitArea
- func NSUnitAreaAres() *NSUnitArea
- func NSUnitAreaFromID(id objc.ID) *NSUnitArea
- func NSUnitAreaHectares() *NSUnitArea
- func NSUnitAreaSquareCentimeters() *NSUnitArea
- func NSUnitAreaSquareFeet() *NSUnitArea
- func NSUnitAreaSquareInches() *NSUnitArea
- func NSUnitAreaSquareKilometers() *NSUnitArea
- func NSUnitAreaSquareMegameters() *NSUnitArea
- func NSUnitAreaSquareMeters() *NSUnitArea
- func NSUnitAreaSquareMicrometers() *NSUnitArea
- func NSUnitAreaSquareMiles() *NSUnitArea
- func NSUnitAreaSquareMillimeters() *NSUnitArea
- func NSUnitAreaSquareNanometers() *NSUnitArea
- func NSUnitAreaSquareYards() *NSUnitArea
- type NSUnitConcentrationMass
- func NSUnitConcentrationMassFromID(id objc.ID) *NSUnitConcentrationMass
- func NSUnitConcentrationMassGramsPerLiter() *NSUnitConcentrationMass
- func NSUnitConcentrationMassMilligramsPerDeciliter() *NSUnitConcentrationMass
- func NSUnitConcentrationMassMillimolesPerLiterWithGramsPerMole(gramsPerMole float64) *NSUnitConcentrationMass
- type NSUnitConverter
- type NSUnitConverterLinear
- func (o *NSUnitConverterLinear) Coefficient() float64
- func (o *NSUnitConverterLinear) Constant() float64
- func (o *NSUnitConverterLinear) InitWithCoefficient(coefficient float64) *NSUnitConverterLinear
- func (o *NSUnitConverterLinear) InitWithCoefficientConstant(coefficient float64, constant float64) *NSUnitConverterLinear
- type NSUnitDispersion
- type NSUnitDuration
- func NSUnitDurationFromID(id objc.ID) *NSUnitDuration
- func NSUnitDurationHours() *NSUnitDuration
- func NSUnitDurationMicroseconds() *NSUnitDuration
- func NSUnitDurationMilliseconds() *NSUnitDuration
- func NSUnitDurationMinutes() *NSUnitDuration
- func NSUnitDurationNanoseconds() *NSUnitDuration
- func NSUnitDurationPicoseconds() *NSUnitDuration
- func NSUnitDurationSeconds() *NSUnitDuration
- type NSUnitElectricCharge
- func NSUnitElectricChargeAmpereHours() *NSUnitElectricCharge
- func NSUnitElectricChargeCoulombs() *NSUnitElectricCharge
- func NSUnitElectricChargeFromID(id objc.ID) *NSUnitElectricCharge
- func NSUnitElectricChargeKiloampereHours() *NSUnitElectricCharge
- func NSUnitElectricChargeMegaampereHours() *NSUnitElectricCharge
- func NSUnitElectricChargeMicroampereHours() *NSUnitElectricCharge
- func NSUnitElectricChargeMilliampereHours() *NSUnitElectricCharge
- type NSUnitElectricCurrent
- func NSUnitElectricCurrentAmperes() *NSUnitElectricCurrent
- func NSUnitElectricCurrentFromID(id objc.ID) *NSUnitElectricCurrent
- func NSUnitElectricCurrentKiloamperes() *NSUnitElectricCurrent
- func NSUnitElectricCurrentMegaamperes() *NSUnitElectricCurrent
- func NSUnitElectricCurrentMicroamperes() *NSUnitElectricCurrent
- func NSUnitElectricCurrentMilliamperes() *NSUnitElectricCurrent
- type NSUnitElectricPotentialDifference
- func NSUnitElectricPotentialDifferenceFromID(id objc.ID) *NSUnitElectricPotentialDifference
- func NSUnitElectricPotentialDifferenceKilovolts() *NSUnitElectricPotentialDifference
- func NSUnitElectricPotentialDifferenceMegavolts() *NSUnitElectricPotentialDifference
- func NSUnitElectricPotentialDifferenceMicrovolts() *NSUnitElectricPotentialDifference
- func NSUnitElectricPotentialDifferenceMillivolts() *NSUnitElectricPotentialDifference
- func NSUnitElectricPotentialDifferenceVolts() *NSUnitElectricPotentialDifference
- type NSUnitElectricResistance
- func NSUnitElectricResistanceFromID(id objc.ID) *NSUnitElectricResistance
- func NSUnitElectricResistanceKiloohms() *NSUnitElectricResistance
- func NSUnitElectricResistanceMegaohms() *NSUnitElectricResistance
- func NSUnitElectricResistanceMicroohms() *NSUnitElectricResistance
- func NSUnitElectricResistanceMilliohms() *NSUnitElectricResistance
- func NSUnitElectricResistanceOhms() *NSUnitElectricResistance
- type NSUnitEnergy
- type NSUnitFrequency
- func NSUnitFrequencyFramesPerSecond() *NSUnitFrequency
- func NSUnitFrequencyFromID(id objc.ID) *NSUnitFrequency
- func NSUnitFrequencyGigahertz() *NSUnitFrequency
- func NSUnitFrequencyHertz() *NSUnitFrequency
- func NSUnitFrequencyKilohertz() *NSUnitFrequency
- func NSUnitFrequencyMegahertz() *NSUnitFrequency
- func NSUnitFrequencyMicrohertz() *NSUnitFrequency
- func NSUnitFrequencyMillihertz() *NSUnitFrequency
- func NSUnitFrequencyNanohertz() *NSUnitFrequency
- func NSUnitFrequencyTerahertz() *NSUnitFrequency
- type NSUnitFuelEfficiency
- type NSUnitIlluminance
- type NSUnitInformationStorage
- func NSUnitInformationStorageBits() *NSUnitInformationStorage
- func NSUnitInformationStorageBytes() *NSUnitInformationStorage
- func NSUnitInformationStorageExabits() *NSUnitInformationStorage
- func NSUnitInformationStorageExabytes() *NSUnitInformationStorage
- func NSUnitInformationStorageExbibits() *NSUnitInformationStorage
- func NSUnitInformationStorageExbibytes() *NSUnitInformationStorage
- func NSUnitInformationStorageFromID(id objc.ID) *NSUnitInformationStorage
- func NSUnitInformationStorageGibibits() *NSUnitInformationStorage
- func NSUnitInformationStorageGibibytes() *NSUnitInformationStorage
- func NSUnitInformationStorageGigabits() *NSUnitInformationStorage
- func NSUnitInformationStorageGigabytes() *NSUnitInformationStorage
- func NSUnitInformationStorageKibibits() *NSUnitInformationStorage
- func NSUnitInformationStorageKibibytes() *NSUnitInformationStorage
- func NSUnitInformationStorageKilobits() *NSUnitInformationStorage
- func NSUnitInformationStorageKilobytes() *NSUnitInformationStorage
- func NSUnitInformationStorageMebibits() *NSUnitInformationStorage
- func NSUnitInformationStorageMebibytes() *NSUnitInformationStorage
- func NSUnitInformationStorageMegabits() *NSUnitInformationStorage
- func NSUnitInformationStorageMegabytes() *NSUnitInformationStorage
- func NSUnitInformationStorageNibbles() *NSUnitInformationStorage
- func NSUnitInformationStoragePebibits() *NSUnitInformationStorage
- func NSUnitInformationStoragePebibytes() *NSUnitInformationStorage
- func NSUnitInformationStoragePetabits() *NSUnitInformationStorage
- func NSUnitInformationStoragePetabytes() *NSUnitInformationStorage
- func NSUnitInformationStorageTebibits() *NSUnitInformationStorage
- func NSUnitInformationStorageTebibytes() *NSUnitInformationStorage
- func NSUnitInformationStorageTerabits() *NSUnitInformationStorage
- func NSUnitInformationStorageTerabytes() *NSUnitInformationStorage
- func NSUnitInformationStorageYobibits() *NSUnitInformationStorage
- func NSUnitInformationStorageYobibytes() *NSUnitInformationStorage
- func NSUnitInformationStorageYottabits() *NSUnitInformationStorage
- func NSUnitInformationStorageYottabytes() *NSUnitInformationStorage
- func NSUnitInformationStorageZebibits() *NSUnitInformationStorage
- func NSUnitInformationStorageZebibytes() *NSUnitInformationStorage
- func NSUnitInformationStorageZettabits() *NSUnitInformationStorage
- func NSUnitInformationStorageZettabytes() *NSUnitInformationStorage
- type NSUnitLength
- func NSUnitLengthAstronomicalUnits() *NSUnitLength
- func NSUnitLengthCentimeters() *NSUnitLength
- func NSUnitLengthDecameters() *NSUnitLength
- func NSUnitLengthDecimeters() *NSUnitLength
- func NSUnitLengthFathoms() *NSUnitLength
- func NSUnitLengthFeet() *NSUnitLength
- func NSUnitLengthFromID(id objc.ID) *NSUnitLength
- func NSUnitLengthFurlongs() *NSUnitLength
- func NSUnitLengthHectometers() *NSUnitLength
- func NSUnitLengthInches() *NSUnitLength
- func NSUnitLengthKilometers() *NSUnitLength
- func NSUnitLengthLightyears() *NSUnitLength
- func NSUnitLengthMegameters() *NSUnitLength
- func NSUnitLengthMeters() *NSUnitLength
- func NSUnitLengthMicrometers() *NSUnitLength
- func NSUnitLengthMiles() *NSUnitLength
- func NSUnitLengthMillimeters() *NSUnitLength
- func NSUnitLengthNanometers() *NSUnitLength
- func NSUnitLengthNauticalMiles() *NSUnitLength
- func NSUnitLengthParsecs() *NSUnitLength
- func NSUnitLengthPicometers() *NSUnitLength
- func NSUnitLengthScandinavianMiles() *NSUnitLength
- func NSUnitLengthYards() *NSUnitLength
- type NSUnitMass
- func NSUnitMassCarats() *NSUnitMass
- func NSUnitMassCentigrams() *NSUnitMass
- func NSUnitMassDecigrams() *NSUnitMass
- func NSUnitMassFromID(id objc.ID) *NSUnitMass
- func NSUnitMassGrams() *NSUnitMass
- func NSUnitMassKilograms() *NSUnitMass
- func NSUnitMassMetricTons() *NSUnitMass
- func NSUnitMassMicrograms() *NSUnitMass
- func NSUnitMassMilligrams() *NSUnitMass
- func NSUnitMassNanograms() *NSUnitMass
- func NSUnitMassOunces() *NSUnitMass
- func NSUnitMassOuncesTroy() *NSUnitMass
- func NSUnitMassPicograms() *NSUnitMass
- func NSUnitMassPoundsMass() *NSUnitMass
- func NSUnitMassShortTons() *NSUnitMass
- func NSUnitMassSlugs() *NSUnitMass
- func NSUnitMassStones() *NSUnitMass
- type NSUnitPower
- func NSUnitPowerFemtowatts() *NSUnitPower
- func NSUnitPowerFromID(id objc.ID) *NSUnitPower
- func NSUnitPowerGigawatts() *NSUnitPower
- func NSUnitPowerHorsepower() *NSUnitPower
- func NSUnitPowerKilowatts() *NSUnitPower
- func NSUnitPowerMegawatts() *NSUnitPower
- func NSUnitPowerMicrowatts() *NSUnitPower
- func NSUnitPowerMilliwatts() *NSUnitPower
- func NSUnitPowerNanowatts() *NSUnitPower
- func NSUnitPowerPicowatts() *NSUnitPower
- func NSUnitPowerTerawatts() *NSUnitPower
- func NSUnitPowerWatts() *NSUnitPower
- type NSUnitPressure
- func NSUnitPressureBars() *NSUnitPressure
- func NSUnitPressureFromID(id objc.ID) *NSUnitPressure
- func NSUnitPressureGigapascals() *NSUnitPressure
- func NSUnitPressureHectopascals() *NSUnitPressure
- func NSUnitPressureInchesOfMercury() *NSUnitPressure
- func NSUnitPressureKilopascals() *NSUnitPressure
- func NSUnitPressureMegapascals() *NSUnitPressure
- func NSUnitPressureMillibars() *NSUnitPressure
- func NSUnitPressureMillimetersOfMercury() *NSUnitPressure
- func NSUnitPressureNewtonsPerMetersSquared() *NSUnitPressure
- func NSUnitPressurePoundsForcePerSquareInch() *NSUnitPressure
- type NSUnitSpeed
- type NSUnitTemperature
- type NSUnitVolume
- func NSUnitVolumeAcreFeet() *NSUnitVolume
- func NSUnitVolumeBushels() *NSUnitVolume
- func NSUnitVolumeCentiliters() *NSUnitVolume
- func NSUnitVolumeCubicCentimeters() *NSUnitVolume
- func NSUnitVolumeCubicDecimeters() *NSUnitVolume
- func NSUnitVolumeCubicFeet() *NSUnitVolume
- func NSUnitVolumeCubicInches() *NSUnitVolume
- func NSUnitVolumeCubicKilometers() *NSUnitVolume
- func NSUnitVolumeCubicMeters() *NSUnitVolume
- func NSUnitVolumeCubicMiles() *NSUnitVolume
- func NSUnitVolumeCubicMillimeters() *NSUnitVolume
- func NSUnitVolumeCubicYards() *NSUnitVolume
- func NSUnitVolumeCups() *NSUnitVolume
- func NSUnitVolumeDeciliters() *NSUnitVolume
- func NSUnitVolumeFluidOunces() *NSUnitVolume
- func NSUnitVolumeFromID(id objc.ID) *NSUnitVolume
- func NSUnitVolumeGallons() *NSUnitVolume
- func NSUnitVolumeImperialFluidOunces() *NSUnitVolume
- func NSUnitVolumeImperialGallons() *NSUnitVolume
- func NSUnitVolumeImperialPints() *NSUnitVolume
- func NSUnitVolumeImperialQuarts() *NSUnitVolume
- func NSUnitVolumeImperialTablespoons() *NSUnitVolume
- func NSUnitVolumeImperialTeaspoons() *NSUnitVolume
- func NSUnitVolumeKiloliters() *NSUnitVolume
- func NSUnitVolumeLiters() *NSUnitVolume
- func NSUnitVolumeMegaliters() *NSUnitVolume
- func NSUnitVolumeMetricCups() *NSUnitVolume
- func NSUnitVolumeMilliliters() *NSUnitVolume
- func NSUnitVolumePints() *NSUnitVolume
- func NSUnitVolumeQuarts() *NSUnitVolume
- func NSUnitVolumeTablespoons() *NSUnitVolume
- func NSUnitVolumeTeaspoons() *NSUnitVolume
- type NSUserActivity
- func (o *NSUserActivity) ActivityType() *NSStringdeprecated
- func (o *NSUserActivity) AddUserInfoEntriesFromDictionary(otherDictionary *NSDictionary[objc.ID, objc.ID])
- func (o *NSUserActivity) BecomeCurrent()
- func (o *NSUserActivity) Delegate() NSUserActivityDelegate
- func (o *NSUserActivity) ExpirationDate() *NSDate
- func (o *NSUserActivity) GetContinuationStreamsWithCompletionHandler(completionHandler func(*NSInputStream, *NSOutputStream, unsafe.Pointer))
- func (o *NSUserActivity) Init() *NSUserActivity
- func (o *NSUserActivity) InitWithActivityType(activityType *NSString) *NSUserActivity
- func (o *NSUserActivity) Invalidate()
- func (o *NSUserActivity) IsEligibleForHandoff() bool
- func (o *NSUserActivity) IsEligibleForPublicIndexing() bool
- func (o *NSUserActivity) IsEligibleForSearch() bool
- func (o *NSUserActivity) Keywords() *NSSet[*NSString]
- func (o *NSUserActivity) NeedsSave() bool
- func (o *NSUserActivity) PersistentIdentifier() *NSString
- func (o *NSUserActivity) ReferrerURL() *NSURL
- func (o *NSUserActivity) RequiredUserInfoKeys() *NSSet[*NSString]
- func (o *NSUserActivity) ResignCurrent()
- func (o *NSUserActivity) SetDelegate(delegate NSUserActivityDelegate)
- func (o *NSUserActivity) SetEligibleForHandoff(eligibleForHandoff bool)
- func (o *NSUserActivity) SetEligibleForPublicIndexing(eligibleForPublicIndexing bool)
- func (o *NSUserActivity) SetEligibleForSearch(eligibleForSearch bool)
- func (o *NSUserActivity) SetExpirationDate(expirationDate *NSDate)
- func (o *NSUserActivity) SetKeywords(keywords *NSSet[*NSString])
- func (o *NSUserActivity) SetNeedsSave(needsSave bool)
- func (o *NSUserActivity) SetPersistentIdentifier(persistentIdentifier *NSString)
- func (o *NSUserActivity) SetReferrerURL(referrerURL *NSURL)
- func (o *NSUserActivity) SetRequiredUserInfoKeys(requiredUserInfoKeys *NSSet[*NSString])
- func (o *NSUserActivity) SetSupportsContinuationStreams(supportsContinuationStreams bool)
- func (o *NSUserActivity) SetTargetContentIdentifier(targetContentIdentifier *NSString)
- func (o *NSUserActivity) SetTitle(title *NSString)
- func (o *NSUserActivity) SetUserInfo(userInfo *NSDictionary[objc.ID, objc.ID])
- func (o *NSUserActivity) SetWebpageURL(webpageURL *NSURL)
- func (o *NSUserActivity) SupportsContinuationStreams() bool
- func (o *NSUserActivity) TargetContentIdentifier() *NSString
- func (o *NSUserActivity) Title() *NSString
- func (o *NSUserActivity) UserInfo() *NSDictionary[objc.ID, objc.ID]
- func (o *NSUserActivity) WebpageURL() *NSURL
- type NSUserActivityDelegate
- type NSUserAppleScriptTask
- type NSUserAutomatorTask
- type NSUserDefaults
- func (o *NSUserDefaults) AddSuiteNamed(suiteName *NSString)
- func (o *NSUserDefaults) ArrayForKey(defaultName *NSString) *NSArray[objc.ID]
- func (o *NSUserDefaults) BoolForKey(defaultName *NSString) bool
- func (o *NSUserDefaults) DataForKey(defaultName *NSString) *NSData
- func (o *NSUserDefaults) DictionaryForKey(defaultName *NSString) *NSDictionary[*NSString, objc.ID]
- func (o *NSUserDefaults) DictionaryRepresentation() *NSDictionary[*NSString, objc.ID]
- func (o *NSUserDefaults) DoubleForKey(defaultName *NSString) float64
- func (o *NSUserDefaults) FloatForKey(defaultName *NSString) float32
- func (o *NSUserDefaults) Init() *NSUserDefaults
- func (o *NSUserDefaults) InitWithSuiteName(suitename *NSString) *NSUserDefaults
- func (o *NSUserDefaults) InitWithUser(username *NSString) objc.ID
- func (o *NSUserDefaults) IntegerForKey(defaultName *NSString) int
- func (o *NSUserDefaults) ObjectForKey(defaultName *NSString) objc.ID
- func (o *NSUserDefaults) ObjectIsForcedForKey(key *NSString) bool
- func (o *NSUserDefaults) ObjectIsForcedForKeyInDomain(key *NSString, domain *NSString) bool
- func (o *NSUserDefaults) PersistentDomainForName(domainName *NSString) *NSDictionary[*NSString, objc.ID]
- func (o *NSUserDefaults) PersistentDomainNames() *NSArray[objc.ID]
- func (o *NSUserDefaults) RegisterDefaults(registrationDictionary *NSDictionary[*NSString, objc.ID])
- func (o *NSUserDefaults) RemoveObjectForKey(defaultName *NSString)
- func (o *NSUserDefaults) RemovePersistentDomainForName(domainName *NSString)
- func (o *NSUserDefaults) RemoveSuiteNamed(suiteName *NSString)
- func (o *NSUserDefaults) RemoveVolatileDomainForName(domainName *NSString)
- func (o *NSUserDefaults) SetBoolForKey(value bool, defaultName *NSString)
- func (o *NSUserDefaults) SetDoubleForKey(value float64, defaultName *NSString)
- func (o *NSUserDefaults) SetFloatForKey(value float32, defaultName *NSString)
- func (o *NSUserDefaults) SetIntegerForKey(value int, defaultName *NSString)
- func (o *NSUserDefaults) SetObjectForKey(value objc.ID, defaultName *NSString)
- func (o *NSUserDefaults) SetPersistentDomainForName(domain *NSDictionary[*NSString, objc.ID], domainName *NSString)
- func (o *NSUserDefaults) SetURLForKey(url *NSURL, defaultName *NSString)
- func (o *NSUserDefaults) SetVolatileDomainForName(domain *NSDictionary[*NSString, objc.ID], domainName *NSString)
- func (o *NSUserDefaults) StringArrayForKey(defaultName *NSString) *NSArray[*NSString]
- func (o *NSUserDefaults) StringForKey(defaultName *NSString) *NSString
- func (o *NSUserDefaults) Synchronize() bool
- func (o *NSUserDefaults) URLForKey(defaultName *NSString) *NSURL
- func (o *NSUserDefaults) VolatileDomainForName(domainName *NSString) *NSDictionary[*NSString, objc.ID]
- func (o *NSUserDefaults) VolatileDomainNames() *NSArray[*NSString]
- type NSUserNotification
- func (o *NSUserNotification) ActionButtonTitle() *NSString
- func (o *NSUserNotification) ActivationType() NSUserNotificationActivationType
- func (o *NSUserNotification) ActualDeliveryDate() *NSDate
- func (o *NSUserNotification) AdditionalActions() *NSArray[*NSUserNotificationAction]
- func (o *NSUserNotification) AdditionalActivationAction() *NSUserNotificationAction
- func (o *NSUserNotification) ContentImage() objc.ID
- func (o *NSUserNotification) DeliveryDate() *NSDate
- func (o *NSUserNotification) DeliveryRepeatInterval() *NSDateComponents
- func (o *NSUserNotification) DeliveryTimeZone() *NSTimeZone
- func (o *NSUserNotification) HasActionButton() bool
- func (o *NSUserNotification) HasReplyButton() bool
- func (o *NSUserNotification) Identifier() *NSString
- func (o *NSUserNotification) InformativeText() *NSString
- func (o *NSUserNotification) Init() *NSUserNotification
- func (o *NSUserNotification) IsPresented() bool
- func (o *NSUserNotification) IsRemote() bool
- func (o *NSUserNotification) OtherButtonTitle() *NSString
- func (o *NSUserNotification) Response() *NSAttributedString
- func (o *NSUserNotification) ResponsePlaceholder() *NSString
- func (o *NSUserNotification) SetActionButtonTitle(actionButtonTitle *NSString)
- func (o *NSUserNotification) SetAdditionalActions(additionalActions *NSArray[*NSUserNotificationAction])
- func (o *NSUserNotification) SetContentImage(contentImage objc.ID)
- func (o *NSUserNotification) SetDeliveryDate(deliveryDate *NSDate)
- func (o *NSUserNotification) SetDeliveryRepeatInterval(deliveryRepeatInterval *NSDateComponents)
- func (o *NSUserNotification) SetDeliveryTimeZone(deliveryTimeZone *NSTimeZone)
- func (o *NSUserNotification) SetHasActionButton(hasActionButton bool)
- func (o *NSUserNotification) SetHasReplyButton(hasReplyButton bool)
- func (o *NSUserNotification) SetIdentifier(identifier *NSString)
- func (o *NSUserNotification) SetInformativeText(informativeText *NSString)
- func (o *NSUserNotification) SetOtherButtonTitle(otherButtonTitle *NSString)
- func (o *NSUserNotification) SetResponsePlaceholder(responsePlaceholder *NSString)
- func (o *NSUserNotification) SetSoundName(soundName *NSString)
- func (o *NSUserNotification) SetSubtitle(subtitle *NSString)
- func (o *NSUserNotification) SetTitle(title *NSString)
- func (o *NSUserNotification) SetUserInfo(userInfo *NSDictionary[*NSString, objc.ID])
- func (o *NSUserNotification) SoundName() *NSString
- func (o *NSUserNotification) Subtitle() *NSString
- func (o *NSUserNotification) Title() *NSString
- func (o *NSUserNotification) UserInfo() *NSDictionary[*NSString, objc.ID]
- type NSUserNotificationAction
- type NSUserNotificationActivationType
- type NSUserNotificationCenter
- func (o *NSUserNotificationCenter) Delegate() NSUserNotificationCenterDelegate
- func (o *NSUserNotificationCenter) DeliverNotification(notification *NSUserNotification)
- func (o *NSUserNotificationCenter) DeliveredNotifications() *NSArray[*NSUserNotification]
- func (o *NSUserNotificationCenter) RemoveAllDeliveredNotifications()
- func (o *NSUserNotificationCenter) RemoveDeliveredNotification(notification *NSUserNotification)
- func (o *NSUserNotificationCenter) RemoveScheduledNotification(notification *NSUserNotification)
- func (o *NSUserNotificationCenter) ScheduleNotification(notification *NSUserNotification)
- func (o *NSUserNotificationCenter) ScheduledNotifications() *NSArray[*NSUserNotification]
- func (o *NSUserNotificationCenter) SetDelegate(delegate NSUserNotificationCenterDelegate)
- func (o *NSUserNotificationCenter) SetScheduledNotifications(scheduledNotifications *NSArray[*NSUserNotification])
- type NSUserNotificationCenterDelegate
- type NSUserScriptTask
- type NSUserUnixTask
- func (o *NSUserUnixTask) ExecuteWithArgumentsCompletionHandler(arguments *NSArray[*NSString], handler func(unsafe.Pointer))
- func (o *NSUserUnixTask) SetStandardError(standardError *NSFileHandle)
- func (o *NSUserUnixTask) SetStandardInput(standardInput *NSFileHandle)
- func (o *NSUserUnixTask) SetStandardOutput(standardOutput *NSFileHandle)
- func (o *NSUserUnixTask) StandardError() *NSFileHandle
- func (o *NSUserUnixTask) StandardInput() *NSFileHandle
- func (o *NSUserUnixTask) StandardOutput() *NSFileHandle
- type NSValue
- func NSValueFromID(id objc.ID) *NSValue
- func NSValueValueWithBytesObjCType(value unsafe.Pointer, type_ string) *NSValue
- func NSValueValueWithEdgeInsets(insets NSEdgeInsets) *NSValue
- func NSValueValueWithNonretainedObject(anObject objc.ID) *NSValue
- func NSValueValueWithObjCType(value unsafe.Pointer, type_ string) *NSValue
- func NSValueValueWithPoint(point corefoundation.CGPoint) *NSValue
- func NSValueValueWithPointer(pointer unsafe.Pointer) *NSValue
- func NSValueValueWithRange(range_ NSRange) *NSValue
- func NSValueValueWithRect(rect corefoundation.CGRect) *NSValue
- func NSValueValueWithSize(size corefoundation.CGSize) *NSValue
- func (o *NSValue) EdgeInsetsValue() NSEdgeInsets
- func (o *NSValue) GetValue(value unsafe.Pointer)
- func (o *NSValue) GetValueSize(value unsafe.Pointer, size uint)
- func (o *NSValue) InitWithBytesObjCType(value unsafe.Pointer, type_ string) *NSValue
- func (o *NSValue) InitWithCoder(coder *NSCoder) *NSValue
- func (o *NSValue) IsEqualToValue(value *NSValue) bool
- func (o *NSValue) NonretainedObjectValue() objc.ID
- func (o *NSValue) ObjCType() unsafe.Pointer
- func (o *NSValue) PointValue() corefoundation.CGPoint
- func (o *NSValue) PointerValue() unsafe.Pointer
- func (o *NSValue) RangeValue() NSRange
- func (o *NSValue) RectValue() corefoundation.CGRect
- func (o *NSValue) SizeValue() corefoundation.CGSize
- type NSValueTransformer
- type NSVolumeEnumerationOptions
- type NSWhoseSpecifier
- func (o *NSWhoseSpecifier) EndSubelementIdentifier() NSWhoseSubelementIdentifier
- func (o *NSWhoseSpecifier) EndSubelementIndex() int
- func (o *NSWhoseSpecifier) InitWithCoder(inCoder *NSCoder) *NSWhoseSpecifier
- func (o *NSWhoseSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyTest(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, ...) *NSWhoseSpecifier
- func (o *NSWhoseSpecifier) SetEndSubelementIdentifier(endSubelementIdentifier NSWhoseSubelementIdentifier)
- func (o *NSWhoseSpecifier) SetEndSubelementIndex(endSubelementIndex int)
- func (o *NSWhoseSpecifier) SetStartSubelementIdentifier(startSubelementIdentifier NSWhoseSubelementIdentifier)
- func (o *NSWhoseSpecifier) SetStartSubelementIndex(startSubelementIndex int)
- func (o *NSWhoseSpecifier) SetTest(test *NSScriptWhoseTest)
- func (o *NSWhoseSpecifier) StartSubelementIdentifier() NSWhoseSubelementIdentifier
- func (o *NSWhoseSpecifier) StartSubelementIndex() int
- func (o *NSWhoseSpecifier) Test() *NSScriptWhoseTest
- type NSWhoseSubelementIdentifier
- type NSXMLDTD
- func (o *NSXMLDTD) AddChild(child *NSXMLNode)
- func (o *NSXMLDTD) AttributeDeclarationForNameElementName(name *NSString, elementName *NSString) *NSXMLDTDNode
- func (o *NSXMLDTD) ElementDeclarationForName(name *NSString) *NSXMLDTDNode
- func (o *NSXMLDTD) EntityDeclarationForName(name *NSString) *NSXMLDTDNode
- func (o *NSXMLDTD) Init() *NSXMLDTD
- func (o *NSXMLDTD) InsertChildAtIndex(child *NSXMLNode, index uint)
- func (o *NSXMLDTD) InsertChildrenAtIndex(children *NSArray[*NSXMLNode], index uint)
- func (o *NSXMLDTD) NotationDeclarationForName(name *NSString) *NSXMLDTDNode
- func (o *NSXMLDTD) PublicID() *NSString
- func (o *NSXMLDTD) RemoveChildAtIndex(index uint)
- func (o *NSXMLDTD) ReplaceChildAtIndexWithNode(index uint, node *NSXMLNode)
- func (o *NSXMLDTD) SetChildren(children *NSArray[*NSXMLNode])
- func (o *NSXMLDTD) SetPublicID(publicID *NSString)
- func (o *NSXMLDTD) SetSystemID(systemID *NSString)
- func (o *NSXMLDTD) SystemID() *NSString
- type NSXMLDTDNode
- func (o *NSXMLDTDNode) DTDKind() NSXMLDTDNodeKind
- func (o *NSXMLDTDNode) Init() *NSXMLDTDNode
- func (o *NSXMLDTDNode) InitWithKindOptions(kind NSXMLNodeKind, options NSXMLNodeOptions) *NSXMLDTDNode
- func (o *NSXMLDTDNode) InitWithXMLString(string_ *NSString) *NSXMLDTDNode
- func (o *NSXMLDTDNode) IsExternal() bool
- func (o *NSXMLDTDNode) NotationName() *NSString
- func (o *NSXMLDTDNode) PublicID() *NSString
- func (o *NSXMLDTDNode) SetDTDKind(dTDKind NSXMLDTDNodeKind)
- func (o *NSXMLDTDNode) SetNotationName(notationName *NSString)
- func (o *NSXMLDTDNode) SetPublicID(publicID *NSString)
- func (o *NSXMLDTDNode) SetSystemID(systemID *NSString)
- func (o *NSXMLDTDNode) SystemID() *NSString
- type NSXMLDTDNodeKind
- type NSXMLDocument
- func (o *NSXMLDocument) AddChild(child *NSXMLNode)
- func (o *NSXMLDocument) CharacterEncoding() *NSString
- func (o *NSXMLDocument) DTD() *NSXMLDTD
- func (o *NSXMLDocument) DocumentContentKind() NSXMLDocumentContentKind
- func (o *NSXMLDocument) Init() *NSXMLDocument
- func (o *NSXMLDocument) InitWithContentsOfURLOptionsError(url *NSURL, mask NSXMLNodeOptions) (*NSXMLDocument, error)
- func (o *NSXMLDocument) InitWithDataOptionsError(data *NSData, mask NSXMLNodeOptions) (*NSXMLDocument, error)
- func (o *NSXMLDocument) InitWithRootElement(element *NSXMLElement) *NSXMLDocument
- func (o *NSXMLDocument) InitWithXMLStringOptionsError(string_ *NSString, mask NSXMLNodeOptions) (*NSXMLDocument, error)
- func (o *NSXMLDocument) InsertChildAtIndex(child *NSXMLNode, index uint)
- func (o *NSXMLDocument) InsertChildrenAtIndex(children *NSArray[*NSXMLNode], index uint)
- func (o *NSXMLDocument) IsStandalone() bool
- func (o *NSXMLDocument) MIMEType() *NSString
- func (o *NSXMLDocument) ObjectByApplyingXSLTArgumentsError(xslt *NSData, arguments *NSDictionary[*NSString, *NSString]) (objc.ID, error)
- func (o *NSXMLDocument) ObjectByApplyingXSLTAtURLArgumentsError(xsltURL *NSURL, argument *NSDictionary[*NSString, *NSString]) (objc.ID, error)
- func (o *NSXMLDocument) ObjectByApplyingXSLTStringArgumentsError(xslt *NSString, arguments *NSDictionary[*NSString, *NSString]) (objc.ID, error)
- func (o *NSXMLDocument) RemoveChildAtIndex(index uint)
- func (o *NSXMLDocument) ReplaceChildAtIndexWithNode(index uint, node *NSXMLNode)
- func (o *NSXMLDocument) RootElement() *NSXMLElement
- func (o *NSXMLDocument) SetCharacterEncoding(characterEncoding *NSString)
- func (o *NSXMLDocument) SetChildren(children *NSArray[*NSXMLNode])
- func (o *NSXMLDocument) SetDTD(dTD *NSXMLDTD)
- func (o *NSXMLDocument) SetDocumentContentKind(documentContentKind NSXMLDocumentContentKind)
- func (o *NSXMLDocument) SetMIMEType(mIMEType *NSString)
- func (o *NSXMLDocument) SetRootElement(root *NSXMLElement)
- func (o *NSXMLDocument) SetStandalone(standalone bool)
- func (o *NSXMLDocument) ValidateAndReturnError() (bool, error)
- func (o *NSXMLDocument) XMLData() *NSData
- func (o *NSXMLDocument) XMLDataWithOptions(options NSXMLNodeOptions) *NSData
- type NSXMLDocumentContentKind
- type NSXMLElement
- func (o *NSXMLElement) AddAttribute(attribute *NSXMLNode)
- func (o *NSXMLElement) AddChild(child *NSXMLNode)
- func (o *NSXMLElement) AddNamespace(aNamespace *NSXMLNode)
- func (o *NSXMLElement) AttributeForLocalNameURI(localName *NSString, uRI *NSString) *NSXMLNode
- func (o *NSXMLElement) AttributeForName(name *NSString) *NSXMLNode
- func (o *NSXMLElement) Attributes() *NSArray[*NSXMLNode]
- func (o *NSXMLElement) ElementsForLocalNameURI(localName *NSString, uRI *NSString) *NSArray[*NSXMLElement]
- func (o *NSXMLElement) ElementsForName(name *NSString) *NSArray[*NSXMLElement]
- func (o *NSXMLElement) InitWithKindOptions(kind NSXMLNodeKind, options NSXMLNodeOptions) *NSXMLElement
- func (o *NSXMLElement) InitWithName(name *NSString) *NSXMLElement
- func (o *NSXMLElement) InitWithNameStringValue(name *NSString, string_ *NSString) *NSXMLElement
- func (o *NSXMLElement) InitWithNameURI(name *NSString, uRI *NSString) *NSXMLElement
- func (o *NSXMLElement) InitWithXMLStringError(string_ *NSString) (*NSXMLElement, error)
- func (o *NSXMLElement) InsertChildAtIndex(child *NSXMLNode, index uint)
- func (o *NSXMLElement) InsertChildrenAtIndex(children *NSArray[*NSXMLNode], index uint)
- func (o *NSXMLElement) NamespaceForPrefix(name *NSString) *NSXMLNode
- func (o *NSXMLElement) Namespaces() *NSArray[*NSXMLNode]
- func (o *NSXMLElement) NormalizeAdjacentTextNodesPreservingCDATA(preserve bool)
- func (o *NSXMLElement) RemoveAttributeForName(name *NSString)
- func (o *NSXMLElement) RemoveChildAtIndex(index uint)
- func (o *NSXMLElement) RemoveNamespaceForPrefix(name *NSString)
- func (o *NSXMLElement) ReplaceChildAtIndexWithNode(index uint, node *NSXMLNode)
- func (o *NSXMLElement) ResolveNamespaceForName(name *NSString) *NSXMLNode
- func (o *NSXMLElement) ResolvePrefixForNamespaceURI(namespaceURI *NSString) *NSString
- func (o *NSXMLElement) SetAttributes(attributes *NSArray[*NSXMLNode])
- func (o *NSXMLElement) SetAttributesAsDictionary(attributes *NSDictionary[objc.ID, objc.ID])
- func (o *NSXMLElement) SetAttributesWithDictionary(attributes *NSDictionary[*NSString, *NSString])
- func (o *NSXMLElement) SetChildren(children *NSArray[*NSXMLNode])
- func (o *NSXMLElement) SetNamespaces(namespaces *NSArray[*NSXMLNode])
- type NSXMLNode
- func (o *NSXMLNode) CanonicalXMLStringPreservingComments(comments bool) *NSString
- func (o *NSXMLNode) ChildAtIndex(index uint) *NSXMLNode
- func (o *NSXMLNode) ChildCount() uint
- func (o *NSXMLNode) Children() *NSArray[*NSXMLNode]
- func (o *NSXMLNode) Detach()
- func (o *NSXMLNode) Index() uint
- func (o *NSXMLNode) Init() *NSXMLNode
- func (o *NSXMLNode) InitWithKind(kind NSXMLNodeKind) *NSXMLNode
- func (o *NSXMLNode) InitWithKindOptions(kind NSXMLNodeKind, options NSXMLNodeOptions) *NSXMLNode
- func (o *NSXMLNode) Kind() NSXMLNodeKind
- func (o *NSXMLNode) Level() uint
- func (o *NSXMLNode) LocalName() *NSString
- func (o *NSXMLNode) Name() *NSString
- func (o *NSXMLNode) NextNode() *NSXMLNode
- func (o *NSXMLNode) NextSibling() *NSXMLNode
- func (o *NSXMLNode) NodesForXPathError(xpath *NSString) (*NSArray[*NSXMLNode], error)
- func (o *NSXMLNode) ObjectValue() objc.ID
- func (o *NSXMLNode) ObjectsForXQueryConstantsError(xquery *NSString, constants *NSDictionary[*NSString, objc.ID]) (*NSArray[objc.ID], error)
- func (o *NSXMLNode) ObjectsForXQueryError(xquery *NSString) (*NSArray[objc.ID], error)
- func (o *NSXMLNode) Parent() *NSXMLNode
- func (o *NSXMLNode) Prefix() *NSString
- func (o *NSXMLNode) PreviousNode() *NSXMLNode
- func (o *NSXMLNode) PreviousSibling() *NSXMLNode
- func (o *NSXMLNode) RootDocument() *NSXMLDocument
- func (o *NSXMLNode) SetName(name *NSString)
- func (o *NSXMLNode) SetObjectValue(objectValue objc.ID)
- func (o *NSXMLNode) SetStringValue(stringValue *NSString)
- func (o *NSXMLNode) SetStringValueResolvingEntities(string_ *NSString, resolve bool)
- func (o *NSXMLNode) SetURI(uRI *NSString)
- func (o *NSXMLNode) StringValue() *NSString
- func (o *NSXMLNode) URI() *NSString
- func (o *NSXMLNode) XMLString() *NSString
- func (o *NSXMLNode) XMLStringWithOptions(options NSXMLNodeOptions) *NSString
- func (o *NSXMLNode) XPath() *NSString
- type NSXMLNodeKind
- type NSXMLNodeOptions
- type NSXMLParser
- func (o *NSXMLParser) AbortParsing()
- func (o *NSXMLParser) AllowedExternalEntityURLs() *NSSet[*NSURL]
- func (o *NSXMLParser) ColumnNumber() int
- func (o *NSXMLParser) Delegate() NSXMLParserDelegate
- func (o *NSXMLParser) ExternalEntityResolvingPolicy() NSXMLParserExternalEntityResolvingPolicy
- func (o *NSXMLParser) InitWithContentsOfURL(url *NSURL) *NSXMLParser
- func (o *NSXMLParser) InitWithData(data *NSData) *NSXMLParser
- func (o *NSXMLParser) InitWithStream(stream *NSInputStream) *NSXMLParser
- func (o *NSXMLParser) LineNumber() int
- func (o *NSXMLParser) Parse() bool
- func (o *NSXMLParser) ParserError() unsafe.Pointer
- func (o *NSXMLParser) PublicID() *NSString
- func (o *NSXMLParser) SetAllowedExternalEntityURLs(allowedExternalEntityURLs *NSSet[*NSURL])
- func (o *NSXMLParser) SetDelegate(delegate NSXMLParserDelegate)
- func (o *NSXMLParser) SetExternalEntityResolvingPolicy(externalEntityResolvingPolicy NSXMLParserExternalEntityResolvingPolicy)
- func (o *NSXMLParser) SetShouldProcessNamespaces(shouldProcessNamespaces bool)
- func (o *NSXMLParser) SetShouldReportNamespacePrefixes(shouldReportNamespacePrefixes bool)
- func (o *NSXMLParser) SetShouldResolveExternalEntities(shouldResolveExternalEntities bool)
- func (o *NSXMLParser) ShouldProcessNamespaces() bool
- func (o *NSXMLParser) ShouldReportNamespacePrefixes() bool
- func (o *NSXMLParser) ShouldResolveExternalEntities() bool
- func (o *NSXMLParser) SystemID() *NSString
- type NSXMLParserDelegate
- type NSXMLParserError
- type NSXMLParserExternalEntityResolvingPolicy
- type NSXPCCoder
- func (o *NSXPCCoder) Connection() *NSXPCConnection
- func (o *NSXPCCoder) DecodeXPCObjectOfTypeForKey(type_ unsafe.Pointer, key *NSString) *NSObject
- func (o *NSXPCCoder) EncodeXPCObjectForKey(xpcObject *NSObject, key *NSString)
- func (o *NSXPCCoder) SetUserInfo(userInfo NSObjectProtocol)
- func (o *NSXPCCoder) UserInfo() NSObjectProtocol
- type NSXPCConnection
- func (o *NSXPCConnection) Activate()
- func (o *NSXPCConnection) AuditSessionIdentifier() int
- func (o *NSXPCConnection) EffectiveGroupIdentifier() uint
- func (o *NSXPCConnection) EffectiveUserIdentifier() uint
- func (o *NSXPCConnection) Endpoint() *NSXPCListenerEndpoint
- func (o *NSXPCConnection) ExportedInterface() *NSXPCInterface
- func (o *NSXPCConnection) ExportedObject() objc.ID
- func (o *NSXPCConnection) InitWithListenerEndpoint(endpoint *NSXPCListenerEndpoint) *NSXPCConnection
- func (o *NSXPCConnection) InitWithMachServiceNameOptions(name *NSString, options NSXPCConnectionOptions) *NSXPCConnection
- func (o *NSXPCConnection) InitWithServiceName(serviceName *NSString) *NSXPCConnection
- func (o *NSXPCConnection) InterruptionHandler() objc.Block
- func (o *NSXPCConnection) Invalidate()
- func (o *NSXPCConnection) InvalidationHandler() objc.Block
- func (o *NSXPCConnection) ProcessIdentifier() int
- func (o *NSXPCConnection) RemoteObjectInterface() *NSXPCInterface
- func (o *NSXPCConnection) RemoteObjectProxy() objc.ID
- func (o *NSXPCConnection) RemoteObjectProxyWithErrorHandler(handler func(unsafe.Pointer)) objc.ID
- func (o *NSXPCConnection) Resume()
- func (o *NSXPCConnection) ScheduleSendBarrierBlock(block func())
- func (o *NSXPCConnection) ServiceName() *NSString
- func (o *NSXPCConnection) SetCodeSigningRequirement(requirement *NSString)
- func (o *NSXPCConnection) SetExportedInterface(exportedInterface *NSXPCInterface)
- func (o *NSXPCConnection) SetExportedObject(exportedObject objc.ID)
- func (o *NSXPCConnection) SetInterruptionHandler(interruptionHandler func())
- func (o *NSXPCConnection) SetInvalidationHandler(invalidationHandler func())
- func (o *NSXPCConnection) SetRemoteObjectInterface(remoteObjectInterface *NSXPCInterface)
- func (o *NSXPCConnection) Suspend()
- func (o *NSXPCConnection) SynchronousRemoteObjectProxyWithErrorHandler(handler func(unsafe.Pointer)) objc.ID
- type NSXPCConnectionOptions
- type NSXPCInterface
- func (o *NSXPCInterface) ClassesForSelectorArgumentIndexOfReply(sel objc.SEL, arg uint, ofReply bool) *NSSet[objc.Class]
- func (o *NSXPCInterface) InterfaceForSelectorArgumentIndexOfReply(sel objc.SEL, arg uint, ofReply bool) *NSXPCInterface
- func (o *NSXPCInterface) Protocol() unsafe.Pointer
- func (o *NSXPCInterface) SetClassesForSelectorArgumentIndexOfReply(classes *NSSet[objc.Class], sel objc.SEL, arg uint, ofReply bool)
- func (o *NSXPCInterface) SetInterfaceForSelectorArgumentIndexOfReply(ifc *NSXPCInterface, sel objc.SEL, arg uint, ofReply bool)
- func (o *NSXPCInterface) SetProtocol(protocol unsafe.Pointer)
- func (o *NSXPCInterface) SetXPCTypeForSelectorArgumentIndexOfReply(type_ unsafe.Pointer, sel objc.SEL, arg uint, ofReply bool)
- func (o *NSXPCInterface) XPCTypeForSelectorArgumentIndexOfReply(sel objc.SEL, arg uint, ofReply bool) unsafe.Pointer
- type NSXPCListener
- func (o *NSXPCListener) Activate()
- func (o *NSXPCListener) Delegate() NSXPCListenerDelegate
- func (o *NSXPCListener) Endpoint() *NSXPCListenerEndpoint
- func (o *NSXPCListener) InitWithMachServiceName(name *NSString) *NSXPCListener
- func (o *NSXPCListener) Invalidate()
- func (o *NSXPCListener) Resume()
- func (o *NSXPCListener) SetConnectionCodeSigningRequirement(requirement *NSString)
- func (o *NSXPCListener) SetDelegate(delegate NSXPCListenerDelegate)
- func (o *NSXPCListener) Suspend()
- type NSXPCListenerDelegate
- type NSXPCListenerEndpoint
- type NSXPCProxyCreating
- type NSZone
- type ObjcClass
- type ObjcObject
- type ObjcSelector
- type Os_clockid_t
- type Ptrauth_key
- type Qos_class_t
- type Virtual_memory_guard_exception_code_t
- type Xpc_listener_create_flags_t
- type Xpc_session_create_flags_t
Constants ¶
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 )
const ( NSBundleExecutableArchitectureARM64 = 16777228 NSBundleExecutableArchitectureI386 = 7 NSBundleExecutableArchitecturePPC = 18 NSBundleExecutableArchitecturePPC64 = 16777234 NSBundleExecutableArchitectureX86_64 = 16777223 )
const ( NSDateComponentUndefined = 9223372036854775807 NSUndefinedDateComponent = 9223372036854775807 )
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 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 )
const ( NSArgumentEvaluationScriptError = 3 NSArgumentsWrongScriptError = 6 NSCannotCreateScriptCommandError = 10 NSInternalScriptError = 8 NSKeySpecifierEvaluationScriptError = 2 NSNoScriptError = 0 NSOperationNotSupportedForKeyScriptError = 9 NSReceiverEvaluationScriptError = 1 NSReceiversCantHandleCommandScriptError = 4 NSRequiredArgumentsMissingScriptError = 5 NSUnknownKeyScriptError = 7 )
const ( NSContainerSpecifierError = 2 NSInternalSpecifierError = 5 NSInvalidIndexSpecifierError = 4 NSNoSpecifierError = 0 NSNoTopLevelContainersSpecifierError = 1 NSOperationNotSupportedForKeySpecifierError = 6 NSUnknownKeySpecifierError = 3 )
const ( NSCollectorDisabledOption = 2 NSScannedOption = 1 )
const ( NSTextCheckingAllCustomTypes = 18446744069414584320 NSTextCheckingAllSystemTypes = 4294967295 NSTextCheckingAllTypes = 18446744073709551615 )
const ( NSURLErrorCancelledReasonBackgroundUpdatesDisabled = 1 NSURLErrorCancelledReasonInsufficientSystemResources = 2 NSURLErrorCancelledReasonUserForceQuitApplication = 0 )
const ( NSURLErrorAppTransportSecurityRequiresSecureConnection = -1022 NSURLErrorBackgroundSessionInUseByAnotherProcess = -996 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 NSURLErrorSecureConnectionFailed = -1200 NSURLErrorServerCertificateHasBadDate = -1201 NSURLErrorServerCertificateHasUnknownRoot = -1203 NSURLErrorServerCertificateNotYetValid = -1204 NSURLErrorServerCertificateUntrusted = -1202 NSURLErrorTimedOut = -1001 NSURLErrorUnknown = -1 NSURLErrorUnsupportedURL = -1002 NSURLErrorUserAuthenticationRequired = -1013 NSURLErrorUserCancelledAuthentication = -1012 NSURLErrorZeroByteResource = -1014 )
const ( NSUbiquitousKeyValueStoreAccountChange = 3 NSUbiquitousKeyValueStoreInitialSyncChange = 1 NSUbiquitousKeyValueStoreQuotaViolationChange = 2 NSUbiquitousKeyValueStoreServerChange = 0 )
const ( NSHPUXOperatingSystem = 4 NSMACHOperatingSystem = 5 NSOSF1OperatingSystem = 7 NSSolarisOperatingSystem = 3 NSSunOSOperatingSystem = 6 NSWindows95OperatingSystem = 2 NSWindowsNTOperatingSystem = 1 )
const ( NS_BigEndian = 2 NS_LittleEndian = 1 NS_UnknownByteOrder = 0 )
const (
NSOpenStepUnicodeReservedBase = 62464
)
const (
NSProprietaryStringEncoding = 65536
)
const (
NSWrapCalendarComponents = 1
)
Variables ¶
This section is empty.
Functions ¶
func NSAMPMDesignation
deprecated
func NSAMPMDesignation() uintptr
Deprecated: since macOS 10.5.
func NSAllocateMemoryPages ¶
func NSAllocateObject ¶
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 ¶
Creates a temporary instance of NSArchiver and archives an object graph by encoding it into a data object and writing the resulting data object to a specified file.
func NSAutoreleasePoolAddObject ¶
Adds a given object to the active autorelease pool in the current thread.
func NSCalendarDateCalendarDate
deprecated
func NSCalendarDateDateWithStringCalendarFormat
deprecated
func NSCalendarDateDateWithYearMonthDayHourMinuteSecondTimeZone
deprecated
func NSClassDescriptionInvalidateClassDescriptionCache ¶
func NSClassDescriptionInvalidateClassDescriptionCache()
Removes all NSClassDescription objects from the cache.
func NSClassDescriptionRegisterClassDescriptionForClass ¶
func NSClassDescriptionRegisterClassDescriptionForClass(description *NSClassDescription, aClass objc.Class)
Registers an NSClassDescription object for a given class in the NSClassDescription cache.
func NSClassFromString ¶
func NSCompareHashTables ¶
func NSCompareHashTables(table1 *NSHashTable[objc.ID], table2 *NSHashTable[objc.ID]) bool
func NSCompareMapTables ¶
func NSConnectionCurrentConversation ¶
Returns a token object representing any conversation in progress in the current thread.
func NSConnectionDidDieNotification
deprecated
func NSConnectionDidDieNotification() uintptr
Deprecated: Use NSXPCConnection instead
func NSConnectionDidInitializeNotification
deprecated
func NSConnectionDidInitializeNotification() uintptr
Deprecated: Use NSXPCConnection instead
func NSConnectionReplyMode
deprecated
func NSConnectionReplyMode() uintptr
Deprecated: Use NSXPCConnection instead
func NSContainsRect ¶
func NSContainsRect(aRect corefoundation.CGRect, bRect corefoundation.CGRect) bool
func NSConvertSwappedDoubleToHost ¶
func NSConvertSwappedDoubleToHost(x NSSwappedDouble) float64
func NSConvertSwappedFloatToHost ¶
func NSConvertSwappedFloatToHost(x NSSwappedFloat) float32
func NSCopyMapTableWithZone ¶
func NSCopyMemoryPages ¶
func NSCountHashTable ¶
func NSCountHashTable(table *NSHashTable[objc.ID]) uint
func NSCountMapTable ¶
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 NSCurrencySymbol
deprecated
func NSCurrencySymbol() uintptr
Deprecated: since macOS 10.5.
func NSDataDataWithContentsOfMappedFile ¶
Creates a data object from the mapped file at a given path. Deprecated: Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.
func NSDateDateWithNaturalLanguageString ¶
Creates and returns a date object set to the date and time specified by a given string. Deprecated: Create an NSDateFormatter with `init` and set the dateFormat property instead.
func NSDateDateWithNaturalLanguageStringLocale ¶
Creates and returns a date object set to the date and time specified by a given string. Deprecated: Create an NSDateFormatter with `init` and set the dateFormat property instead.
func NSDateDateWithString ¶
Creates and returns a date object with a date and time value specified by a given string in the international string representation format (YYYY-MM-DD HH:MM:SS ±HHMM). Deprecated: Use NSDateFormatter instead
func NSDateFormatString
deprecated
func NSDateFormatString() uintptr
Deprecated: since macOS 10.5.
func NSDateFormatterSetDefaultFormatterBehavior ¶
func NSDateFormatterSetDefaultFormatterBehavior(defaultFormatterBehavior NSDateFormatterBehavior)
func NSDateTimeIntervalSinceReferenceDate ¶
func NSDateTimeIntervalSinceReferenceDate() float64
func NSDateTimeOrdering
deprecated
func NSDateTimeOrdering() uintptr
Deprecated: since macOS 10.5.
func NSDeallocateMemoryPages ¶
func NSDeallocateObject ¶
func NSDecimalCompact ¶
func NSDecimalCompact(number *NSDecimal)
func NSDecimalCopy ¶
func NSDecimalDigits
deprecated
func NSDecimalDigits() uintptr
Deprecated: since macOS 10.5.
func NSDecimalIsNotANumber ¶
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 NSDefaultMallocZone ¶
func NSDictionarySharedKeySetForKeys ¶
Creates a shared key set object for the specified keys.
func NSDistantObjectProxyWithLocalConnection ¶
func NSDistantObjectProxyWithLocalConnection(target objc.ID, connection *NSConnection) objc.ID
Returns a local proxy for a given object and connection, creating the proxy if necessary.
func NSDistantObjectProxyWithTargetConnection ¶
func NSDistantObjectProxyWithTargetConnection(target objc.ID, connection *NSConnection) objc.ID
Returns a remote proxy for a given object and connection, creating the proxy if necessary.
func NSDivideRect ¶
func NSDivideRect(inRect corefoundation.CGRect, slice *corefoundation.CGRect, rem *corefoundation.CGRect, amount float64, edge NSRectEdge)
func NSEarlierTimeDesignations
deprecated
func NSEarlierTimeDesignations() uintptr
Deprecated: since macOS 10.5.
func NSEdgeInsetsEqual ¶
func NSEdgeInsetsEqual(aInsets NSEdgeInsets, bInsets NSEdgeInsets) bool
func NSEndHashTableEnumeration ¶
func NSEndHashTableEnumeration(enumerator *NSHashEnumerator)
func NSEndMapTableEnumeration ¶
func NSEndMapTableEnumeration(enumerator *NSMapEnumerator)
func NSEqualPoints ¶
func NSEqualPoints(aPoint corefoundation.CGPoint, bPoint corefoundation.CGPoint) bool
func NSEqualRanges ¶
func NSEqualRects ¶
func NSEqualRects(aRect corefoundation.CGRect, bRect corefoundation.CGRect) bool
func NSEqualSizes ¶
func NSEqualSizes(aSize corefoundation.CGSize, bSize corefoundation.CGSize) bool
func NSErrorSetUserInfoValueProviderForDomainProvider ¶
func NSErrorSetUserInfoValueProviderForDomainProvider(errorDomain *NSString, provider func(unsafe.Pointer, *NSString) objc.ID)
Specifies a block to call when the corresponding property is not present in the user info dictionary.
func NSErrorUserInfoValueProviderForDomain ¶
Returns any user info provider specified for a given error domain.
func NSExceptionRaiseFormat ¶
A convenience method that creates and raises an exception.
func NSExceptionRaiseFormatArguments ¶
Creates and raises an exception with the specified name, reason, and arguments.
func NSExtraRefCount ¶
func NSFailedAuthenticationException
deprecated
func NSFailedAuthenticationException() uintptr
Deprecated: Use NSXPCConnection instead
func NSFileCoordinatorAddFilePresenter ¶
func NSFileCoordinatorAddFilePresenter(filePresenter NSFilePresenter)
Registers the specified file presenter object so that it can receive notifications.
func NSFileCoordinatorRemoveFilePresenter ¶
func NSFileCoordinatorRemoveFilePresenter(filePresenter NSFilePresenter)
Unregisters the specified file presenter object.
func NSFileManagerUnmountDissentingProcessIdentifierErrorKey ¶
func NSFileManagerUnmountDissentingProcessIdentifierErrorKey() uintptr
func NSFileVersionGetNonlocalVersionsOfItemAtURLCompletionHandler ¶
func NSFileVersionGetNonlocalVersionsOfItemAtURLCompletionHandler(url *NSURL, completionHandler func(*NSArray[*NSFileVersion], unsafe.Pointer))
Asynchronously returns an array of NSFileVersions associated with the file located by the given URL, or nil if there is no such file or another error occurs.
func NSFileVersionRemoveOtherVersionsOfItemAtURLError ¶
Removes all versions of a file, except the current one, from the version store.
func NSFoundationVersionNumber ¶
func NSFoundationVersionNumber() float64
func NSFreeHashTable ¶
func NSFreeHashTable(table *NSHashTable[objc.ID])
func NSFreeMapTable ¶
func NSFreeMapTable(table *NSMapTable[objc.ID, objc.ID])
func NSGarbageCollectorDefaultCollector ¶
Returns the default garbage collector.
func NSGetSizeAndAlignment ¶
func NSGrammarCorrections ¶
func NSGrammarCorrections() uintptr
func NSGrammarRange ¶
func NSGrammarRange() uintptr
func NSGrammarUserDescription ¶
func NSGrammarUserDescription() uintptr
func NSHashInsert ¶
func NSHashInsert(table *NSHashTable[objc.ID], pointer unsafe.Pointer)
func NSHashInsertIfAbsent ¶
func NSHashInsertKnownAbsent ¶
func NSHashInsertKnownAbsent(table *NSHashTable[objc.ID], pointer unsafe.Pointer)
func NSHashRemove ¶
func NSHashRemove(table *NSHashTable[objc.ID], pointer unsafe.Pointer)
func NSHashTableHashTableWithWeakObjects ¶
Returns a new hash table for storing weak references to its contents. Deprecated: GC no longer supported
func NSHeight ¶
func NSHeight(aRect corefoundation.CGRect) float64
func NSHostByteOrder ¶
func NSHostByteOrder() int
func NSHostFlushHostCache ¶
func NSHostFlushHostCache()
Releases the cache of existing NSHost objects so subsequent requests for NSHost objects create new ones. Deprecated: Caching no longer supported
func NSHostIsHostCacheEnabled ¶
func NSHostIsHostCacheEnabled() bool
Indicates whether caching is turned on or off. Deprecated: Caching no longer supported
func NSHostSetHostCacheEnabled ¶
func NSHostSetHostCacheEnabled(flag bool)
Specifies whether the receiver is to cache instances as it creates them to avoid creating duplicate instances. Deprecated: Caching no longer supported
func NSHourNameDesignations
deprecated
func NSHourNameDesignations() uintptr
Deprecated: since macOS 10.5.
func NSImageURLAttributeName ¶
func NSImageURLAttributeName() uintptr
func NSIncrementExtraRefCount
deprecated
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 ¶
Returns a Boolean value that indicates whether the rule can inflect a given language.
func NSInflectionRuleCanInflectPreferredLocalization ¶
func NSInflectionRuleCanInflectPreferredLocalization() bool
func NSInlinePresentationIntentAttributeName ¶
func NSInlinePresentationIntentAttributeName() uintptr
func NSInsetRect ¶
func NSInsetRect(aRect corefoundation.CGRect, dX float64, dY float64) corefoundation.CGRect
func NSIntegralRect ¶
func NSIntegralRect(aRect corefoundation.CGRect) corefoundation.CGRect
func NSIntegralRectWithOptions ¶
func NSIntegralRectWithOptions(aRect corefoundation.CGRect, opts NSAlignmentOptions) corefoundation.CGRect
func NSInternationalCurrencyString
deprecated
func NSInternationalCurrencyString() uintptr
Deprecated: since macOS 10.5.
func NSIntersectionRect ¶
func NSIntersectionRect(aRect corefoundation.CGRect, bRect corefoundation.CGRect) corefoundation.CGRect
func NSIntersectsRect ¶
func NSIntersectsRect(aRect corefoundation.CGRect, bRect corefoundation.CGRect) bool
func NSIsEmptyRect ¶
func NSIsEmptyRect(aRect corefoundation.CGRect) 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 NSKeyedArchiverArchiveRootObjectToFile ¶
Archives an object graph rooted at a given object to a file at a given path. Deprecated: Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead
func NSKeyedArchiverSetClassNameForClass ¶
Sets a global translation mapping to encode instances of a given class with the provided name, rather than their real name.
func NSKeyedUnarchiverClassForClassName ¶
Returns the class from which this unarchiver instantiates an encoded object with a given class name.
func NSKeyedUnarchiverSetClassForClassName ¶
Sets a global translation mapping to decode objects encoded with a given class name as instances of a given class instead.
func NSKeyedUnarchiverUnarchiveObjectWithData ¶
Decodes and returns the object graph previously encoded by NSKeyedArchiver and stored in a given NSData object. Deprecated: Use +unarchivedObjectOfClass:fromData:error: instead
func NSKeyedUnarchiverUnarchiveObjectWithFile ¶
Decodes and returns the object graph previously encoded by NSKeyedArchiver written to the file at a given path. Deprecated: Use +unarchivedObjectOfClass:fromData:error: instead
func NSKeyedUnarchiverUnarchiveTopLevelObjectWithDataError ¶
Decodes a previously-archived object graph, returning the root object. Deprecated: Use +unarchivedObjectOfClass:fromData:error: instead
func NSKeyedUnarchiverUnarchivedObjectOfClassFromDataError ¶
func NSKeyedUnarchiverUnarchivedObjectOfClassFromDataError(cls objc.Class, data *NSData) (objc.ID, error)
Decodes a previously-archived object graph, that returns the root object as the specified type.
func NSKeyedUnarchiverUnarchivedObjectOfClassesFromDataError ¶
func NSKeyedUnarchiverUnarchivedObjectOfClassesFromDataError(classes *NSSet[objc.Class], data *NSData) (objc.ID, error)
Decodes a previously-archived object graph, returning the root object as one of the specified classes.
func NSLanguageIdentifierAttributeName ¶
func NSLanguageIdentifierAttributeName() uintptr
func NSLaterTimeDesignations
deprecated
func NSLaterTimeDesignations() uintptr
Deprecated: since macOS 10.5.
func NSLinguisticTaggerEnumerateTagsForStringRangeUnitSchemeOptionsOrthographyUsing ¶
func NSLinguisticTaggerEnumerateTagsForStringRangeUnitSchemeOptionsOrthographyUsing(string_ *NSString, range_ NSRange, unit NSLinguisticTaggerUnit, scheme *NSString, options NSLinguisticTaggerOptions, orthography *NSOrthography, block objc.Block)
Enumerates over a given string and calls the specified block for each tag. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSListItemDelimiterAttributeName ¶
func NSListItemDelimiterAttributeName() uintptr
func NSLocaleWindowsLocaleCodeFromLocaleIdentifier ¶
Returns a Window locale code from the locale identifier.
func NSLocalizedNumberFormatAttributeName ¶
func NSLocalizedNumberFormatAttributeName() uintptr
func NSLocationInRange ¶
func NSLogPageSize ¶
func NSLogPageSize() uint
func NSMachBootstrapServerSharedInstance ¶
Returns the shared instance of the bootstrap server.
func NSMakePoint ¶
func NSMakePoint(x float64, y float64) corefoundation.CGPoint
func NSMakeRect ¶
func NSMakeSize ¶
func NSMakeSize(w float64, h float64) corefoundation.CGSize
func NSMapInsert ¶
func NSMapInsertIfAbsent ¶
func NSMapInsertKnownAbsent ¶
func NSMapMember ¶
func NSMapRemove ¶
func NSMapTableMapTableWithStrongToStrongObjects ¶
Returns a new map table object which has strong references to the keys and values. Deprecated: GC no longer supported
func NSMapTableMapTableWithStrongToWeakObjects ¶
Returns a new map table object which has strong references to the keys and weak references to the values. Deprecated: GC no longer supported
func NSMapTableMapTableWithWeakToStrongObjects ¶
Returns a new map table object which has weak references to the keys and strong references to the values. Deprecated: GC no longer supported
func NSMapTableMapTableWithWeakToWeakObjects ¶
Returns a new map table object which has weak references to the keys and values. Deprecated: GC no longer supported
func NSMarkdownSourcePositionAttributeName ¶
func NSMarkdownSourcePositionAttributeName() uintptr
func NSMaxRange ¶
func NSMaxX ¶
func NSMaxX(aRect corefoundation.CGRect) float64
func NSMaxY ¶
func NSMaxY(aRect corefoundation.CGRect) float64
func NSMessagePortNameServerSharedInstance ¶
Returns the singleton instance of NSMessagePortNameServer.
func NSMetadataItemAcquisitionMakeKey ¶
func NSMetadataItemAcquisitionMakeKey() uintptr
func NSMetadataItemAcquisitionModelKey ¶
func NSMetadataItemAcquisitionModelKey() uintptr
func NSMetadataItemAlbumKey ¶
func NSMetadataItemAlbumKey() uintptr
func NSMetadataItemAltitudeKey ¶
func NSMetadataItemAltitudeKey() uintptr
func NSMetadataItemApertureKey ¶
func NSMetadataItemApertureKey() uintptr
func NSMetadataItemAppleLoopDescriptorsKey ¶
func NSMetadataItemAppleLoopDescriptorsKey() uintptr
func NSMetadataItemAppleLoopsKeyFilterTypeKey ¶
func NSMetadataItemAppleLoopsKeyFilterTypeKey() uintptr
func NSMetadataItemAppleLoopsLoopModeKey ¶
func NSMetadataItemAppleLoopsLoopModeKey() uintptr
func NSMetadataItemAppleLoopsRootKeyKey ¶
func NSMetadataItemAppleLoopsRootKeyKey() uintptr
func NSMetadataItemApplicationCategoriesKey ¶
func NSMetadataItemApplicationCategoriesKey() uintptr
func NSMetadataItemAttributeChangeDateKey ¶
func NSMetadataItemAttributeChangeDateKey() uintptr
func NSMetadataItemAudiencesKey ¶
func NSMetadataItemAudiencesKey() uintptr
func NSMetadataItemAudioBitRateKey ¶
func NSMetadataItemAudioBitRateKey() uintptr
func NSMetadataItemAudioChannelCountKey ¶
func NSMetadataItemAudioChannelCountKey() uintptr
func NSMetadataItemAudioEncodingApplicationKey ¶
func NSMetadataItemAudioEncodingApplicationKey() uintptr
func NSMetadataItemAudioSampleRateKey ¶
func NSMetadataItemAudioSampleRateKey() uintptr
func NSMetadataItemAudioTrackNumberKey ¶
func NSMetadataItemAudioTrackNumberKey() uintptr
func NSMetadataItemAuthorAddressesKey ¶
func NSMetadataItemAuthorAddressesKey() uintptr
func NSMetadataItemAuthorEmailAddressesKey ¶
func NSMetadataItemAuthorEmailAddressesKey() uintptr
func NSMetadataItemAuthorsKey ¶
func NSMetadataItemAuthorsKey() uintptr
func NSMetadataItemBitsPerSampleKey ¶
func NSMetadataItemBitsPerSampleKey() uintptr
func NSMetadataItemCFBundleIdentifierKey ¶
func NSMetadataItemCFBundleIdentifierKey() uintptr
func NSMetadataItemCameraOwnerKey ¶
func NSMetadataItemCameraOwnerKey() uintptr
func NSMetadataItemCityKey ¶
func NSMetadataItemCityKey() uintptr
func NSMetadataItemCodecsKey ¶
func NSMetadataItemCodecsKey() uintptr
func NSMetadataItemColorSpaceKey ¶
func NSMetadataItemColorSpaceKey() uintptr
func NSMetadataItemCommentKey ¶
func NSMetadataItemCommentKey() uintptr
func NSMetadataItemComposerKey ¶
func NSMetadataItemComposerKey() uintptr
func NSMetadataItemContactKeywordsKey ¶
func NSMetadataItemContactKeywordsKey() uintptr
func NSMetadataItemContentCreationDateKey ¶
func NSMetadataItemContentCreationDateKey() uintptr
func NSMetadataItemContentModificationDateKey ¶
func NSMetadataItemContentModificationDateKey() uintptr
func 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 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 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 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 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 NSMetadataItemVersionKey ¶
func NSMetadataItemVersionKey() uintptr
func NSMetadataItemVideoBitRateKey ¶
func NSMetadataItemVideoBitRateKey() uintptr
func NSMetadataItemWhereFromsKey ¶
func NSMetadataItemWhereFromsKey() uintptr
func NSMetadataItemWhiteBalanceKey ¶
func NSMetadataItemWhiteBalanceKey() uintptr
func NSMetadataQueryIndexedLocalComputerScope ¶
func NSMetadataQueryIndexedLocalComputerScope() uintptr
func NSMetadataQueryIndexedNetworkScope ¶
func NSMetadataQueryIndexedNetworkScope() uintptr
func NSMetadataQueryLocalComputerScope ¶
func NSMetadataQueryLocalComputerScope() uintptr
func NSMetadataQueryNetworkScope ¶
func NSMetadataQueryNetworkScope() uintptr
func NSMetadataQueryUserHomeScope ¶
func NSMetadataQueryUserHomeScope() 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 ¶
Returns a Boolean value that indicates whether the given language supports setting custom pronouns. Deprecated: Use NSTermOfAddress instead
func NSMouseInRect ¶
func NSMouseInRect(aPoint corefoundation.CGPoint, aRect corefoundation.CGRect, flipped bool) bool
func NSNegativeCurrencyFormatString
deprecated
func NSNegativeCurrencyFormatString() uintptr
Deprecated: since macOS 10.5.
func NSNetServicesErrorCode ¶
func NSNetServicesErrorCode() uintptr
func NSNetServicesErrorDomain ¶
func NSNetServicesErrorDomain() uintptr
func NSNextDayDesignations
deprecated
func NSNextDayDesignations() uintptr
Deprecated: since macOS 10.5.
func NSNextHashEnumeratorItem ¶
func NSNextHashEnumeratorItem(enumerator *NSHashEnumerator) unsafe.Pointer
func NSNextMapEnumeratorPair ¶
func NSNextNextDayDesignations
deprecated
func NSNextNextDayDesignations() uintptr
Deprecated: since macOS 10.5.
func NSNumberFormatterSetDefaultFormatterBehavior ¶
func NSNumberFormatterSetDefaultFormatterBehavior(behavior NSNumberFormatterBehavior)
func NSObjectAccessInstanceVariablesDirectly ¶
func NSObjectAccessInstanceVariablesDirectly() bool
func NSObjectClass ¶
func NSObjectHash ¶
func NSObjectHash() uint
func NSObjectSetKeysTriggerChangeNotificationsForDependentKey
deprecated
func NSObjectSetVersion ¶
func NSObjectSetVersion(aVersion int)
func NSObjectSuperclass ¶
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 NSPageSize ¶
func NSPageSize() uint
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 ¶
Returns a new pointer array that maintains strong references to its elements. Deprecated: GC no longer supported
func NSPointerArrayPointerArrayWithWeakObjects ¶
Returns a new pointer array that maintains weak references to its elements. Deprecated: GC no longer supported
func NSPortCoderPortCoderWithReceivePortSendPortComponents ¶
func NSPortCoderPortCoderWithReceivePortSendPortComponents(rcvPort *NSPort, sndPort *NSPort, comps *NSArray[objc.ID]) objc.ID
Creates and returns a new NSPortCoder object. Deprecated: since macOS 10.7.
func NSPositiveCurrencyFormatString
deprecated
func NSPositiveCurrencyFormatString() uintptr
Deprecated: since macOS 10.5.
func NSPriorDayDesignations
deprecated
func NSPriorDayDesignations() uintptr
Deprecated: since macOS 10.5.
func NSProgressFileAnimationImageKey ¶
func NSProgressFileAnimationImageKey() uintptr
func NSProgressFileAnimationImageOriginalRectKey ¶
func NSProgressFileAnimationImageOriginalRectKey() uintptr
func NSProgressFileIconKey ¶
func NSProgressFileIconKey() uintptr
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 NSProxyAllocWithZone ¶
Returns a new instance of the receiving class
func NSProxyRespondsToSelector ¶
Returns a Boolean value that indicates whether the receiving class responds to a given selector.
func NSRealMemoryAvailable
deprecated
func NSRealMemoryAvailable() uint
Deprecated: Use NSProcessInfo instead
func NSReallocateCollectable ¶
func 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 NSReplacementIndexAttributeName ¶
func NSReplacementIndexAttributeName() uintptr
func NSResetHashTable ¶
func NSResetHashTable(table *NSHashTable[objc.ID])
func NSResetMapTable ¶
func NSResetMapTable(table *NSMapTable[objc.ID, objc.ID])
func NSScriptSuiteRegistrySetSharedScriptSuiteRegistry ¶
func NSScriptSuiteRegistrySetSharedScriptSuiteRegistry(registry *NSScriptSuiteRegistry)
Sets the single, shared instance of NSScriptSuiteRegistry to registry.
func NSSelectorFromString ¶
func NSSetZoneName ¶
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 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 ¶
Returns the shared socket port name server.
func NSStreamGetBoundStreamsWithBufferSizeInputStreamOutputStream ¶
func NSStreamGetBoundStreamsWithBufferSizeInputStreamOutputStream(bufferSize uint, inputStream *NSInputStream, outputStream *NSOutputStream)
func NSStreamGetStreamsToHostPortInputStreamOutputStream
deprecated
func NSStreamGetStreamsToHostPortInputStreamOutputStream(host *NSHost, port int, inputStream *NSInputStream, outputStream *NSOutputStream)
Deprecated: Use nw_connection_t in Network framework instead
func NSStreamGetStreamsToHostWithNamePortInputStreamOutputStream
deprecated
func NSStreamGetStreamsToHostWithNamePortInputStreamOutputStream(hostname *NSString, port int, inputStream *NSInputStream, outputStream *NSOutputStream)
Deprecated: Use nw_connection_t in Network framework instead
func NSStringAvailableStringEncodings ¶
func NSStringAvailableStringEncodings() *uint
func NSStringDefaultCStringEncoding ¶
func NSStringDefaultCStringEncoding() uint
func NSStringStringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion ¶
func NSStringStringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data *NSData, opts *NSDictionary[*NSString, objc.ID], string_ *NSString, usedLossyConversion *bool) uint
Returns the string encoding for the given data as detected by attempting to create a string according to the specified encoding options.
func NSStringStringWithCString ¶
Creates a new string using a given C-string. Deprecated: Use +stringWithCString:encoding: instead
func NSStringStringWithCStringLength ¶
Returns a string containing the characters in a given C-string. Deprecated: Use +stringWithCString:encoding:
func NSStringStringWithContentsOfFile ¶
Returns a string created by reading data from the file named by a given path. Deprecated: Use +stringWithContentsOfFile:encoding:error: instead
func NSStringStringWithContentsOfURL ¶
Returns a string created by reading data from the file named by a given URL. Deprecated: Use +stringWithContentsOfURL:encoding:error: instead
func NSSwapBigDoubleToHost ¶
func NSSwapBigDoubleToHost(x NSSwappedDouble) float64
func NSSwapBigFloatToHost ¶
func NSSwapBigFloatToHost(x NSSwappedFloat) float32
func NSSwapBigIntToHost ¶
func NSSwapBigLongLongToHost ¶
func NSSwapBigLongToHost ¶
func NSSwapBigShortToHost ¶
func NSSwapHostIntToBig ¶
func NSSwapHostIntToLittle ¶
func NSSwapHostLongLongToBig ¶
func NSSwapHostLongToBig ¶
func NSSwapHostLongToLittle ¶
func NSSwapHostShortToBig ¶
func NSSwapHostShortToLittle ¶
func NSSwapLittleDoubleToHost ¶
func NSSwapLittleDoubleToHost(x NSSwappedDouble) float64
func NSSwapLittleFloatToHost ¶
func NSSwapLittleFloatToHost(x NSSwappedFloat) float32
func NSSwapLittleIntToHost ¶
func NSSwapLittleLongToHost ¶
func NSSwapLittleShortToHost ¶
func NSSwapLong ¶
func NSSwapLongLong ¶
func NSSwapShort ¶
func NSThisDayDesignations
deprecated
func NSThisDayDesignations() uintptr
Deprecated: since macOS 10.5.
func NSThousandsSeparator
deprecated
func NSThousandsSeparator() uintptr
Deprecated: since macOS 10.5.
func NSThreadDetachNewThreadWith ¶
func NSThreadDetachNewThreadWith(block func())
func NSThreadExit ¶
func NSThreadExit()
func NSThreadIsMainThread ¶
func NSThreadIsMainThread() bool
func NSThreadIsMultiThreaded ¶
func NSThreadIsMultiThreaded() bool
func NSThreadSleepForTimeInterval ¶
func NSThreadSleepForTimeInterval(ti float64)
func NSThreadSleepUntilDate ¶
func NSThreadSleepUntilDate(date *NSDate)
func NSThreadThreadPriority ¶
func NSThreadThreadPriority() float64
func NSTimeDateFormatString
deprecated
func NSTimeDateFormatString() uintptr
Deprecated: since macOS 10.5.
func NSTimeFormatString
deprecated
func NSTimeFormatString() uintptr
Deprecated: since macOS 10.5.
func NSTimeZoneResetSystemTimeZone ¶
func NSTimeZoneResetSystemTimeZone()
Clears any time zone value cached for the systemTimeZone property.
func NSTimeZoneSetAbbreviationDictionary ¶
func NSTimeZoneSetAbbreviationDictionary(abbreviationDictionary *NSDictionary[*NSString, *NSString])
func NSTimeZoneSetDefaultTimeZone ¶
func NSTimeZoneSetDefaultTimeZone(defaultTimeZone *NSTimeZone)
func NSURLApplicationIsScriptableKey ¶
func NSURLApplicationIsScriptableKey() uintptr
func NSURLCacheSetSharedURLCache ¶
func NSURLCacheSetSharedURLCache(sharedURLCache *NSURLCache)
func NSURLConnectionCanHandleRequest ¶
func NSURLConnectionCanHandleRequest(request *NSURLRequest) bool
Returns whether a request can be handled based on a preflight evaluation.
func NSURLConnectionSendAsynchronousRequestQueueCompletionHandler ¶
func NSURLConnectionSendAsynchronousRequestQueueCompletionHandler(request *NSURLRequest, queue *NSOperationQueue, handler func(*NSURLResponse, *NSData, unsafe.Pointer))
Loads the data for a URL request and executes a handler block on an operation queue when the request completes or fails. Deprecated: Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h
func NSURLDownloadCanResumeDownloadDecodedWithEncodingMIMEType ¶
Returns whether a URL download object can resume a download that was decoded with the specified MIME type.
func NSURLHandleCanInitWithURL ¶
Returns whether a URL handle can be initialized with a given URL. Deprecated: since macOS 10.4.
func NSURLHandleRegisterURLHandleClass ¶
Registers a subclass of NSURLHandle as an available subclass for handling URLs Deprecated: since macOS 10.4.
func NSURLHandleURLHandleClassForURL ¶
Returns the class of the URL handle that will be used for a specified URL. Deprecated: since macOS 10.4.
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 ¶
@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 ¶
@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 NSURLSessionTaskPriorityDefault ¶
func NSURLSessionTaskPriorityDefault() uintptr
func NSURLSessionTaskPriorityHigh ¶
func NSURLSessionTaskPriorityHigh() uintptr
func NSURLSessionTaskPriorityLow ¶
func NSURLSessionTaskPriorityLow() uintptr
func NSURLSessionTransferSizeUnknown ¶
func NSURLSessionTransferSizeUnknown() int64
func NSURLTagNamesKey ¶
func NSURLTagNamesKey() uintptr
func NSURLThumbnailKey
deprecated
func NSURLThumbnailKey() uintptr
Deprecated: Use the QuickLookThumbnailing framework and extension point instead
func NSURLWriteBookmarkDataToURLOptionsError ¶
func NSURLWriteBookmarkDataToURLOptionsError(bookmarkData *NSData, bookmarkFileURL *NSURL, options uint) (bool, error)
Creates an alias file on disk at a specified location with specified bookmark data.
func NSUnarchiverDecodeClassNameAsClassName ¶
Instructs instances of NSUnarchiver to use the class with a given name when instantiating objects whose ostensible class, according to the archived data, is another given name.
func NSUnarchiverUnarchiveObjectWithData ¶
Decodes and returns the object archived in a given NSData object.
func NSUnarchiverUnarchiveObjectWithFile ¶
Decodes and returns the object archived in the file path.
func NSUnionRect ¶
func NSUnionRect(aRect corefoundation.CGRect, bRect corefoundation.CGRect) corefoundation.CGRect
func NSUserActivityDeleteAllSavedUserActivitiesWithCompletionHandler ¶
func NSUserActivityDeleteAllSavedUserActivitiesWithCompletionHandler(handler func())
Deletes all user activities created by your app.
func NSUserActivityDeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler ¶
func NSUserActivityDeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(persistentIdentifiers *NSArray[*NSString], handler func())
Deletes user activities created by your app that have the specified persistent identifiers.
func 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 NSWeekDayNameArray
deprecated
func NSWeekDayNameArray() uintptr
Deprecated: since macOS 10.5.
func NSWidth ¶
func NSWidth(aRect corefoundation.CGRect) float64
func NSXMLNodeAttributeWithNameStringValue ¶
@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 ¶
@method commentWithStringValue: @abstract Returns a comment <tt><--stringValue--></tt>.
func NSXMLNodeDTDNodeWithXMLString ¶
@method DTDNodeWithXMLString: @abstract Returns an element, attribute, entity, or notation DTD node based on the full XML string.
func NSXMLNodeDocument ¶
@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 ¶
@method elementWithName: @abstract Returns an element <tt><name></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><name attr1="foo" attr2="bar"><-- child1 -->child2</name></tt>.
func NSXMLNodeElementWithNameStringValue ¶
@method elementWithName:stringValue: @abstract Returns an element with a single text node child <tt><name>string</name></tt>.
func NSXMLNodeElementWithNameURI ¶
@method elementWithName:URI: @abstract Returns an element whose full QName is specified.
func NSXMLNodeNamespaceWithNameStringValue ¶
@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><?name stringValue></tt>.
func NSXMLNodeTextWithStringValue ¶
@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 NSZoneRealloc ¶
func ObjectGetClassName ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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_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 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 ¶
func (e Dispatch_autorelease_frequency_t) String() 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 Ipc_info_object_type_t ¶
type Ipc_info_object_type_t int64
const ( IPC_OTYPE_NONE Ipc_info_object_type_t = 0 IPC_OTYPE_THREAD_CONTROL Ipc_info_object_type_t = 1 IPC_OTYPE_TASK_CONTROL Ipc_info_object_type_t = 2 IPC_OTYPE_HOST Ipc_info_object_type_t = 3 IPC_OTYPE_HOST_PRIV Ipc_info_object_type_t = 4 IPC_OTYPE_PROCESSOR Ipc_info_object_type_t = 5 IPC_OTYPE_PROCESSOR_SET Ipc_info_object_type_t = 6 IPC_OTYPE_PROCESSOR_SET_NAME Ipc_info_object_type_t = 7 IPC_OTYPE_TIMER Ipc_info_object_type_t = 8 IPC_OTYPE_PORT_SUBST_ONCE Ipc_info_object_type_t = 9 IPC_OTYPE_MIG Ipc_info_object_type_t = 10 IPC_OTYPE_MEMORY_OBJECT Ipc_info_object_type_t = 11 IPC_OTYPE_XMM_PAGER Ipc_info_object_type_t = 12 IPC_OTYPE_XMM_KERNEL Ipc_info_object_type_t = 13 IPC_OTYPE_XMM_REPLY Ipc_info_object_type_t = 14 IPC_OTYPE_UND_REPLY Ipc_info_object_type_t = 15 IPC_OTYPE_HOST_NOTIFY Ipc_info_object_type_t = 16 IPC_OTYPE_HOST_SECURITY Ipc_info_object_type_t = 17 IPC_OTYPE_LEDGER Ipc_info_object_type_t = 18 IPC_OTYPE_MAIN_DEVICE Ipc_info_object_type_t = 19 IPC_OTYPE_TASK_NAME Ipc_info_object_type_t = 20 IPC_OTYPE_SUBSYSTEM Ipc_info_object_type_t = 21 IPC_OTYPE_IO_DONE_QUEUE Ipc_info_object_type_t = 22 IPC_OTYPE_SEMAPHORE Ipc_info_object_type_t = 23 IPC_OTYPE_LOCK_SET Ipc_info_object_type_t = 24 IPC_OTYPE_CLOCK Ipc_info_object_type_t = 25 IPC_OTYPE_CLOCK_CTRL Ipc_info_object_type_t = 26 IPC_OTYPE_IOKIT_IDENT Ipc_info_object_type_t = 27 IPC_OTYPE_NAMED_ENTRY Ipc_info_object_type_t = 28 IPC_OTYPE_IOKIT_CONNECT Ipc_info_object_type_t = 29 IPC_OTYPE_IOKIT_OBJECT Ipc_info_object_type_t = 30 IPC_OTYPE_UPL Ipc_info_object_type_t = 31 IPC_OTYPE_MEM_OBJ_CONTROL Ipc_info_object_type_t = 32 IPC_OTYPE_AU_SESSIONPORT Ipc_info_object_type_t = 33 IPC_OTYPE_FILEPORT Ipc_info_object_type_t = 34 IPC_OTYPE_LABELH Ipc_info_object_type_t = 35 IPC_OTYPE_TASK_RESUME Ipc_info_object_type_t = 36 IPC_OTYPE_VOUCHER Ipc_info_object_type_t = 37 IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38 IPC_OTYPE_WORK_INTERVAL Ipc_info_object_type_t = 39 IPC_OTYPE_UX_HANDLER Ipc_info_object_type_t = 40 IPC_OTYPE_UEXT_OBJECT Ipc_info_object_type_t = 41 IPC_OTYPE_ARCADE_REG Ipc_info_object_type_t = 42 IPC_OTYPE_EVENTLINK Ipc_info_object_type_t = 43 IPC_OTYPE_TASK_INSPECT Ipc_info_object_type_t = 44 IPC_OTYPE_TASK_READ Ipc_info_object_type_t = 45 IPC_OTYPE_THREAD_INSPECT Ipc_info_object_type_t = 46 IPC_OTYPE_THREAD_READ Ipc_info_object_type_t = 47 IPC_OTYPE_SUID_CRED Ipc_info_object_type_t = 48 IPC_OTYPE_HYPERVISOR Ipc_info_object_type_t = 49 IPC_OTYPE_TASK_ID_TOKEN Ipc_info_object_type_t = 50 IPC_OTYPE_TASK_FATAL Ipc_info_object_type_t = 51 IPC_OTYPE_KCDATA Ipc_info_object_type_t = 52 IPC_OTYPE_EXCLAVES_RESOURCE Ipc_info_object_type_t = 53 IPC_OTYPE_THREAD_RESUME Ipc_info_object_type_t = 54 IPC_OTYPE_UNKNOWN Ipc_info_object_type_t = 4294967295 )
func (Ipc_info_object_type_t) String ¶
func (e Ipc_info_object_type_t) String() string
type Launch_data_type_t ¶
type Launch_data_type_t int64
const ( LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1 LAUNCH_DATA_ARRAY Launch_data_type_t = 2 LAUNCH_DATA_FD Launch_data_type_t = 3 LAUNCH_DATA_INTEGER Launch_data_type_t = 4 LAUNCH_DATA_REAL Launch_data_type_t = 5 LAUNCH_DATA_BOOL Launch_data_type_t = 6 LAUNCH_DATA_STRING Launch_data_type_t = 7 LAUNCH_DATA_OPAQUE Launch_data_type_t = 8 LAUNCH_DATA_ERRNO Launch_data_type_t = 9 LAUNCH_DATA_MACHPORT Launch_data_type_t = 10 )
func (Launch_data_type_t) String ¶
func (e Launch_data_type_t) String() string
type MDLabelDomain ¶
type MDLabelDomain int64
@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int64
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int64
@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
type Mach_vm_range_flags_t ¶
type Mach_vm_range_flags_t int64
const (
MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)
func (Mach_vm_range_flags_t) String ¶
func (e Mach_vm_range_flags_t) String() string
type Mach_vm_range_flavor_t ¶
type Mach_vm_range_flavor_t int64
const ( MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0 MACH_VM_RANGE_FLAVOR_V1 Mach_vm_range_flavor_t = 1 )
func (Mach_vm_range_flavor_t) String ¶
func (e Mach_vm_range_flavor_t) String() string
type Mach_vm_range_tag_t ¶
type Mach_vm_range_tag_t int64
const ( MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0 MACH_VM_RANGE_DATA Mach_vm_range_tag_t = 1 MACH_VM_RANGE_FIXED Mach_vm_range_tag_t = 2 )
func (Mach_vm_range_tag_t) String ¶
func (e Mach_vm_range_tag_t) String() string
type Mpo_flags_t ¶
type Mpo_flags_t int64
const ( MPO_PORT Mpo_flags_t = 0 MPO_SERVICE_PORT Mpo_flags_t = 1024 MPO_CONNECTION_PORT Mpo_flags_t = 2048 MPO_REPLY_PORT Mpo_flags_t = 4096 MPO_WEAK_REPLY_PORT Mpo_flags_t = 16384 MPO_NOTIFICATION_PORT Mpo_flags_t = 17408 MPO_EXCEPTION_PORT Mpo_flags_t = 32768 MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536 )
func (Mpo_flags_t) String ¶
func (e Mpo_flags_t) String() string
type NSActivityOptions ¶
type NSActivityOptions int64
const ( NSActivityIdleDisplaySleepDisabled NSActivityOptions = 1099511627776 NSActivityIdleSystemSleepDisabled NSActivityOptions = 1048576 NSActivitySuddenTerminationDisabled NSActivityOptions = 16384 NSActivityAutomaticTerminationDisabled NSActivityOptions = 32768 NSActivityAnimationTrackingEnabled NSActivityOptions = 35184372088832 NSActivityTrackingEnabled NSActivityOptions = 70368744177664 NSActivityUserInitiated NSActivityOptions = 16777215 NSActivityUserInitiatedAllowingIdleSystemSleep NSActivityOptions = 15728639 NSActivityBackground NSActivityOptions = 255 NSActivityLatencyCritical NSActivityOptions = 1095216660480 NSActivityUserInteractive NSActivityOptions = 1095233437695 )
func (NSActivityOptions) String ¶
func (e NSActivityOptions) String() string
type NSAffineTransform ¶
type NSAffineTransform struct {
NSObject
}
A graphics coordinate transformation.
Apple documentation: https://developer.apple.com/documentation/foundation/nsaffinetransform
func NSAffineTransformFromID ¶
func NSAffineTransformFromID(id objc.ID) *NSAffineTransform
func NSAffineTransformTransform ¶
func NSAffineTransformTransform() *NSAffineTransform
Creates a new affine transform initialized to the identity matrix.
func (*NSAffineTransform) AppendTransform ¶
func (o *NSAffineTransform) AppendTransform(transform *NSAffineTransform)
Appends the specified matrix to the receiver’s matrix.
func (*NSAffineTransform) Init ¶
func (o *NSAffineTransform) Init() *NSAffineTransform
Initializes an affine transform matrix to the identity matrix.
func (*NSAffineTransform) InitWithTransform ¶
func (o *NSAffineTransform) InitWithTransform(transform *NSAffineTransform) *NSAffineTransform
Initializes the receiver’s matrix using another transform object.
func (*NSAffineTransform) Invert ¶
func (o *NSAffineTransform) Invert()
Replaces the receiver’s matrix with its inverse matrix.
func (*NSAffineTransform) PrependTransform ¶
func (o *NSAffineTransform) PrependTransform(transform *NSAffineTransform)
Prepends the specified matrix to the receiver’s matrix.
func (*NSAffineTransform) RotateByDegrees ¶
func (o *NSAffineTransform) RotateByDegrees(angle float64)
Applies a rotation factor (measured in degrees) to the receiver’s transformation matrix.
func (*NSAffineTransform) RotateByRadians ¶
func (o *NSAffineTransform) RotateByRadians(angle float64)
Applies a rotation factor (measured in radians) to the receiver’s transformation matrix.
func (*NSAffineTransform) ScaleBy ¶
func (o *NSAffineTransform) ScaleBy(scale float64)
Applies the specified scaling factor along both x and y axes to the receiver’s transformation matrix.
func (*NSAffineTransform) ScaleXByYBy ¶
func (o *NSAffineTransform) ScaleXByYBy(scaleX float64, scaleY float64)
Applies scaling factors to each axis of the receiver’s transformation matrix.
func (*NSAffineTransform) SetTransformStruct ¶
func (o *NSAffineTransform) SetTransformStruct(transformStruct NSAffineTransformStruct)
func (*NSAffineTransform) TransformPoint ¶
func (o *NSAffineTransform) TransformPoint(aPoint corefoundation.CGPoint) corefoundation.CGPoint
Applies the receiver’s transform to the specified point and returns the result.
func (*NSAffineTransform) TransformSize ¶
func (o *NSAffineTransform) TransformSize(aSize corefoundation.CGSize) corefoundation.CGSize
Applies the receiver’s transform to the specified size and returns the results.
func (*NSAffineTransform) TransformStruct ¶
func (o *NSAffineTransform) TransformStruct() NSAffineTransformStruct
func (*NSAffineTransform) TranslateXByYBy ¶
func (o *NSAffineTransform) TranslateXByYBy(deltaX float64, deltaY float64)
Applies the specified translation factors to the receiver’s transformation matrix.
type NSAffineTransformStruct ¶
type NSAffineTransformStruct struct {
M11 float64
M12 float64
M21 float64
M22 float64
TX float64
TY float64
}
A structure that defines the three-by-three matrix that performs an affine transform between two coordinate systems.
type NSAlignmentOptions ¶
type NSAlignmentOptions uint64
Values representing alignment operations.
const ( NSAlignMinXInward NSAlignmentOptions = 1 NSAlignMinYInward NSAlignmentOptions = 2 NSAlignMaxXInward NSAlignmentOptions = 4 NSAlignMaxYInward NSAlignmentOptions = 8 NSAlignWidthInward NSAlignmentOptions = 16 NSAlignHeightInward NSAlignmentOptions = 32 NSAlignMinXOutward NSAlignmentOptions = 256 NSAlignMinYOutward NSAlignmentOptions = 512 NSAlignMaxXOutward NSAlignmentOptions = 1024 NSAlignMaxYOutward NSAlignmentOptions = 2048 NSAlignWidthOutward NSAlignmentOptions = 4096 NSAlignHeightOutward NSAlignmentOptions = 8192 NSAlignMinXNearest NSAlignmentOptions = 65536 NSAlignMinYNearest NSAlignmentOptions = 131072 NSAlignMaxXNearest NSAlignmentOptions = 262144 NSAlignMaxYNearest NSAlignmentOptions = 524288 NSAlignWidthNearest NSAlignmentOptions = 1048576 NSAlignHeightNearest NSAlignmentOptions = 2097152 NSAlignRectFlipped NSAlignmentOptions = 9223372036854775808 NSAlignAllEdgesInward NSAlignmentOptions = 15 NSAlignAllEdgesOutward NSAlignmentOptions = 3840 NSAlignAllEdgesNearest NSAlignmentOptions = 983040 )
func (NSAlignmentOptions) String ¶
func (e NSAlignmentOptions) String() string
type NSAppleEventDescriptor ¶
type NSAppleEventDescriptor struct {
NSObject
}
A wrapper for the Apple event descriptor data type.
Apple documentation: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor
func NSAppleEventDescriptorAppleEventWithEventClassEventIDTargetDescriptorReturnIDTransactionID ¶
func NSAppleEventDescriptorAppleEventWithEventClassEventIDTargetDescriptorReturnIDTransactionID(eventClass uint, eventID uint, targetDescriptor *NSAppleEventDescriptor, returnID int16, transactionID int) *NSAppleEventDescriptor
Creates a descriptor that represents an Apple event, initialized according to the specified information.
func NSAppleEventDescriptorCurrentProcessDescriptor ¶
func NSAppleEventDescriptorCurrentProcessDescriptor() *NSAppleEventDescriptor
Creates and returns an application address descriptor using the current process.
func NSAppleEventDescriptorDescriptorWithApplicationURL ¶
func NSAppleEventDescriptorDescriptorWithApplicationURL(applicationURL *NSURL) *NSAppleEventDescriptor
Creates and returns an application address descriptor using the specified application URL.
func NSAppleEventDescriptorDescriptorWithBoolean ¶
func NSAppleEventDescriptorDescriptorWithBoolean(boolean uint8) *NSAppleEventDescriptor
Creates a descriptor initialized with type typeBoolean that stores the specified Boolean value.
func NSAppleEventDescriptorDescriptorWithBundleIdentifier ¶
func NSAppleEventDescriptorDescriptorWithBundleIdentifier(bundleIdentifier *NSString) *NSAppleEventDescriptor
Creates and returns an application address descriptor using the specified bundle identifier.
func NSAppleEventDescriptorDescriptorWithDate ¶
func NSAppleEventDescriptorDescriptorWithDate(date *NSDate) *NSAppleEventDescriptor
Creates a descriptor that stores the specified date value.
func NSAppleEventDescriptorDescriptorWithDescriptorTypeBytesLength ¶
func NSAppleEventDescriptorDescriptorWithDescriptorTypeBytesLength(descriptorType uint, bytes_ unsafe.Pointer, byteCount uint) *NSAppleEventDescriptor
Creates a descriptor initialized with the specified event type that stores the specified data (from a series of bytes).
func NSAppleEventDescriptorDescriptorWithDescriptorTypeData ¶
func NSAppleEventDescriptorDescriptorWithDescriptorTypeData(descriptorType uint, data *NSData) *NSAppleEventDescriptor
Creates a descriptor initialized with the specified event type that stores the specified data (from an instance of NSData).
func NSAppleEventDescriptorDescriptorWithDouble ¶
func NSAppleEventDescriptorDescriptorWithDouble(doubleValue float64) *NSAppleEventDescriptor
Creates a descriptor initialized with Apple event type typeIEEE64BitFloatingPoint that stores the specified double value.
func NSAppleEventDescriptorDescriptorWithEnumCode ¶
func NSAppleEventDescriptorDescriptorWithEnumCode(enumerator uint) *NSAppleEventDescriptor
Creates a descriptor initialized with type typeEnumerated that stores the specified enumerator data type value.
func NSAppleEventDescriptorDescriptorWithFileURL ¶
func NSAppleEventDescriptorDescriptorWithFileURL(fileURL *NSURL) *NSAppleEventDescriptor
Creates a descriptor that stores the specified file URL.
func NSAppleEventDescriptorDescriptorWithInt32 ¶
func NSAppleEventDescriptorDescriptorWithInt32(signedInt int) *NSAppleEventDescriptor
Creates a descriptor initialized with Apple event type typeSInt32 that stores the specified integer value.
func NSAppleEventDescriptorDescriptorWithProcessIdentifier ¶
func NSAppleEventDescriptorDescriptorWithProcessIdentifier(processIdentifier int) *NSAppleEventDescriptor
Creates and returns an application address descriptor using the specified process identifier.
func NSAppleEventDescriptorDescriptorWithString ¶
func NSAppleEventDescriptorDescriptorWithString(string_ *NSString) *NSAppleEventDescriptor
Creates a descriptor initialized with type typeUnicodeText that stores the text from the specified string.
func NSAppleEventDescriptorDescriptorWithTypeCode ¶
func NSAppleEventDescriptorDescriptorWithTypeCode(typeCode uint) *NSAppleEventDescriptor
Creates a descriptor initialized with type typeType that stores the specified type value.
func NSAppleEventDescriptorFromID ¶
func NSAppleEventDescriptorFromID(id objc.ID) *NSAppleEventDescriptor
func NSAppleEventDescriptorListDescriptor ¶
func NSAppleEventDescriptorListDescriptor() *NSAppleEventDescriptor
Creates and initializes an empty list descriptor.
func NSAppleEventDescriptorNullDescriptor ¶
func NSAppleEventDescriptorNullDescriptor() *NSAppleEventDescriptor
Creates and initializes a descriptor with no parameter or attribute values set.
func NSAppleEventDescriptorRecordDescriptor ¶
func NSAppleEventDescriptorRecordDescriptor() *NSAppleEventDescriptor
Creates and initializes a descriptor for an Apple event record whose data has yet to be set.
func (*NSAppleEventDescriptor) AeDesc ¶
func (o *NSAppleEventDescriptor) AeDesc() unsafe.Pointer
func (*NSAppleEventDescriptor) AttributeDescriptorForKeyword ¶
func (o *NSAppleEventDescriptor) AttributeDescriptorForKeyword(keyword uint) *NSAppleEventDescriptor
Returns a descriptor for the receiver’s Apple event attribute identified by the specified keyword.
func (*NSAppleEventDescriptor) BooleanValue ¶
func (o *NSAppleEventDescriptor) BooleanValue() uint8
func (*NSAppleEventDescriptor) CoerceToDescriptorType ¶
func (o *NSAppleEventDescriptor) CoerceToDescriptorType(descriptorType uint) *NSAppleEventDescriptor
Returns a descriptor obtained by coercing the receiver to the specified type.
func (*NSAppleEventDescriptor) Data ¶
func (o *NSAppleEventDescriptor) Data() *NSData
func (*NSAppleEventDescriptor) DateValue ¶
func (o *NSAppleEventDescriptor) DateValue() *NSDate
func (*NSAppleEventDescriptor) DescriptorAtIndex ¶
func (o *NSAppleEventDescriptor) DescriptorAtIndex(index int) *NSAppleEventDescriptor
Returns the descriptor at the specified (one-based) position in the receiving descriptor list.
func (*NSAppleEventDescriptor) DescriptorForKeyword ¶
func (o *NSAppleEventDescriptor) DescriptorForKeyword(keyword uint) *NSAppleEventDescriptor
Returns the receiver’s descriptor for the specified keyword.
func (*NSAppleEventDescriptor) DescriptorType ¶
func (o *NSAppleEventDescriptor) DescriptorType() uint
func (*NSAppleEventDescriptor) DoubleValue ¶
func (o *NSAppleEventDescriptor) DoubleValue() float64
func (*NSAppleEventDescriptor) EnumCodeValue ¶
func (o *NSAppleEventDescriptor) EnumCodeValue() uint
func (*NSAppleEventDescriptor) EventClass ¶
func (o *NSAppleEventDescriptor) EventClass() uint
func (*NSAppleEventDescriptor) EventID ¶
func (o *NSAppleEventDescriptor) EventID() uint
func (*NSAppleEventDescriptor) FileURLValue ¶
func (o *NSAppleEventDescriptor) FileURLValue() *NSURL
func (*NSAppleEventDescriptor) InitListDescriptor ¶
func (o *NSAppleEventDescriptor) InitListDescriptor() *NSAppleEventDescriptor
Initializes a newly allocated instance as an empty list descriptor.
func (*NSAppleEventDescriptor) InitRecordDescriptor ¶
func (o *NSAppleEventDescriptor) InitRecordDescriptor() *NSAppleEventDescriptor
Initializes a newly allocated instance as a descriptor that is an Apple event record.
func (*NSAppleEventDescriptor) InitWithAEDescNoCopy ¶
func (o *NSAppleEventDescriptor) InitWithAEDescNoCopy(aeDesc *ae.AEDesc) *NSAppleEventDescriptor
Initializes a newly allocated instance as a descriptor for the specified Carbon AEDesc structure.
func (*NSAppleEventDescriptor) InitWithDescriptorTypeBytesLength ¶
func (o *NSAppleEventDescriptor) InitWithDescriptorTypeBytesLength(descriptorType uint, bytes_ unsafe.Pointer, byteCount uint) *NSAppleEventDescriptor
Initializes a newly allocated instance as a descriptor with the specified descriptor type and data (from an arbitrary sequence of bytes and a length count).
func (*NSAppleEventDescriptor) InitWithDescriptorTypeData ¶
func (o *NSAppleEventDescriptor) InitWithDescriptorTypeData(descriptorType uint, data *NSData) *NSAppleEventDescriptor
Initializes a newly allocated instance as a descriptor with the specified descriptor type and data (from an instance of NSData).
func (*NSAppleEventDescriptor) InitWithEventClassEventIDTargetDescriptorReturnIDTransactionID ¶
func (o *NSAppleEventDescriptor) InitWithEventClassEventIDTargetDescriptorReturnIDTransactionID(eventClass uint, eventID uint, targetDescriptor *NSAppleEventDescriptor, returnID int16, transactionID int) *NSAppleEventDescriptor
Initializes a newly allocated instance as a descriptor for an Apple event, initialized with the specified values.
func (*NSAppleEventDescriptor) InsertDescriptorAtIndex ¶
func (o *NSAppleEventDescriptor) InsertDescriptorAtIndex(descriptor *NSAppleEventDescriptor, index int)
Inserts a descriptor at the specified (one-based) position in the receiving descriptor list, replacing the existing descriptor, if any, at that position.
func (*NSAppleEventDescriptor) Int32Value ¶
func (o *NSAppleEventDescriptor) Int32Value() int
func (*NSAppleEventDescriptor) IsRecordDescriptor ¶
func (o *NSAppleEventDescriptor) IsRecordDescriptor() bool
func (*NSAppleEventDescriptor) KeywordForDescriptorAtIndex ¶
func (o *NSAppleEventDescriptor) KeywordForDescriptorAtIndex(index int) uint
Returns the keyword for the descriptor at the specified (one-based) position in the receiver.
func (*NSAppleEventDescriptor) NumberOfItems ¶
func (o *NSAppleEventDescriptor) NumberOfItems() int
func (*NSAppleEventDescriptor) ParamDescriptorForKeyword ¶
func (o *NSAppleEventDescriptor) ParamDescriptorForKeyword(keyword uint) *NSAppleEventDescriptor
Returns a descriptor for the receiver’s Apple event parameter identified by the specified keyword.
func (*NSAppleEventDescriptor) RemoveDescriptorAtIndex ¶
func (o *NSAppleEventDescriptor) RemoveDescriptorAtIndex(index int)
Removes the descriptor at the specified (one-based) position in the receiving descriptor list.
func (*NSAppleEventDescriptor) RemoveDescriptorWithKeyword ¶
func (o *NSAppleEventDescriptor) RemoveDescriptorWithKeyword(keyword uint)
Removes the receiver’s descriptor identified by the specified keyword.
func (*NSAppleEventDescriptor) RemoveParamDescriptorWithKeyword ¶
func (o *NSAppleEventDescriptor) RemoveParamDescriptorWithKeyword(keyword uint)
Removes the receiver’s parameter descriptor identified by the specified keyword.
func (*NSAppleEventDescriptor) ReturnID ¶
func (o *NSAppleEventDescriptor) ReturnID() int16
func (*NSAppleEventDescriptor) SendEventWithOptionsTimeoutError ¶
func (o *NSAppleEventDescriptor) SendEventWithOptionsTimeoutError(sendOptions NSAppleEventSendOptions, timeoutInSeconds float64) (*NSAppleEventDescriptor, error)
Sends an Apple event.
func (*NSAppleEventDescriptor) SetAttributeDescriptorForKeyword ¶
func (o *NSAppleEventDescriptor) SetAttributeDescriptorForKeyword(descriptor *NSAppleEventDescriptor, keyword uint)
Adds a descriptor to the receiver as an attribute identified by the specified keyword.
func (*NSAppleEventDescriptor) SetDescriptorForKeyword ¶
func (o *NSAppleEventDescriptor) SetDescriptorForKeyword(descriptor *NSAppleEventDescriptor, keyword uint)
Adds a descriptor, identified by a keyword, to the receiver.
func (*NSAppleEventDescriptor) SetParamDescriptorForKeyword ¶
func (o *NSAppleEventDescriptor) SetParamDescriptorForKeyword(descriptor *NSAppleEventDescriptor, keyword uint)
Adds a descriptor to the receiver as an Apple event parameter identified by the specified keyword.
func (*NSAppleEventDescriptor) StringValue ¶
func (o *NSAppleEventDescriptor) StringValue() *NSString
func (*NSAppleEventDescriptor) TransactionID ¶
func (o *NSAppleEventDescriptor) TransactionID() int
func (*NSAppleEventDescriptor) TypeCodeValue ¶
func (o *NSAppleEventDescriptor) TypeCodeValue() uint
type NSAppleEventManager ¶
type NSAppleEventManager struct {
NSObject
}
A mechanism for registering handler routines for specific types of Apple events and dispatching events to those handlers.
Apple documentation: https://developer.apple.com/documentation/foundation/nsappleeventmanager
func NSAppleEventManagerFromID ¶
func NSAppleEventManagerFromID(id objc.ID) *NSAppleEventManager
func NSAppleEventManagerSharedAppleEventManager ¶
func NSAppleEventManagerSharedAppleEventManager() *NSAppleEventManager
Returns the single instance of NSAppleEventManager, creating it first if it doesn’t exist.
func (*NSAppleEventManager) AppleEventForSuspensionID ¶
func (o *NSAppleEventManager) AppleEventForSuspensionID(suspensionID unsafe.Pointer) *NSAppleEventDescriptor
Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, returns the descriptor for the event whose handling was suspended.
func (*NSAppleEventManager) CurrentAppleEvent ¶
func (o *NSAppleEventManager) CurrentAppleEvent() *NSAppleEventDescriptor
func (*NSAppleEventManager) CurrentReplyAppleEvent ¶
func (o *NSAppleEventManager) CurrentReplyAppleEvent() *NSAppleEventDescriptor
func (*NSAppleEventManager) DispatchRawAppleEventWithRawReplyHandlerRefCon ¶
func (o *NSAppleEventManager) DispatchRawAppleEventWithRawReplyHandlerRefCon(theAppleEvent *ae.AEDesc, theReply *ae.AEDesc, handlerRefCon unsafe.Pointer) int16
Causes the Apple event specified by theAppleEvent to be dispatched to the appropriate Apple event handler, if one has been registered by calling setEventHandler:andSelector:forEventClass:andEventID:.
func (*NSAppleEventManager) RemoveEventHandlerForEventClassAndEventID ¶
func (o *NSAppleEventManager) RemoveEventHandlerForEventClassAndEventID(eventClass uint, eventID uint)
If an Apple event handler has been registered for the event specified by eventClass and eventID, removes it.
func (*NSAppleEventManager) ReplyAppleEventForSuspensionID ¶
func (o *NSAppleEventManager) ReplyAppleEventForSuspensionID(suspensionID unsafe.Pointer) *NSAppleEventDescriptor
Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, returns the corresponding reply event descriptor.
func (*NSAppleEventManager) ResumeWithSuspensionID ¶
func (o *NSAppleEventManager) ResumeWithSuspensionID(suspensionID unsafe.Pointer)
Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, signal that handling of the suspended event may now continue.
func (*NSAppleEventManager) SetCurrentAppleEventAndReplyEventWithSuspensionID ¶
func (o *NSAppleEventManager) SetCurrentAppleEventAndReplyEventWithSuspensionID(suspensionID unsafe.Pointer)
Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, sets the values that will be returned by subsequent invocations of currentAppleEvent and currentReplyAppleEvent to be the event whose handling was suspended and its corresponding reply event, respectively.
func (*NSAppleEventManager) SetEventHandlerAndSelectorForEventClassAndEventID ¶
func (o *NSAppleEventManager) SetEventHandlerAndSelectorForEventClassAndEventID(handler objc.ID, handleEventSelector objc.SEL, eventClass uint, eventID uint)
Registers the Apple event handler specified by handler for the event specified by eventClass and eventID.
func (*NSAppleEventManager) SuspendCurrentAppleEvent ¶
func (o *NSAppleEventManager) SuspendCurrentAppleEvent() unsafe.Pointer
Suspends the handling of the current event and returns an ID that must be used to resume the handling of the event if an Apple event is being handled on the current thread.
type NSAppleEventManagerSuspension ¶
type NSAppleEventManagerSuspension struct{}
C struct: __NSAppleEventManagerSuspension NSAppleEventManagerSuspension is an opaque type.
type NSAppleEventSendOptions ¶
type NSAppleEventSendOptions uint64
const ( NSAppleEventSendNoReply NSAppleEventSendOptions = 1 NSAppleEventSendQueueReply NSAppleEventSendOptions = 2 NSAppleEventSendWaitForReply NSAppleEventSendOptions = 3 NSAppleEventSendNeverInteract NSAppleEventSendOptions = 16 NSAppleEventSendCanInteract NSAppleEventSendOptions = 32 NSAppleEventSendAlwaysInteract NSAppleEventSendOptions = 48 NSAppleEventSendCanSwitchLayer NSAppleEventSendOptions = 64 NSAppleEventSendDontRecord NSAppleEventSendOptions = 4096 NSAppleEventSendDontExecute NSAppleEventSendOptions = 8192 NSAppleEventSendDontAnnotate NSAppleEventSendOptions = 65536 NSAppleEventSendDefaultOptions NSAppleEventSendOptions = 35 )
func (NSAppleEventSendOptions) String ¶
func (e NSAppleEventSendOptions) String() string
type NSAppleScript ¶
type NSAppleScript struct {
NSObject
}
An object that provides the ability to load, compile, and execute scripts.
Apple documentation: https://developer.apple.com/documentation/foundation/nsapplescript
func NSAppleScriptFromID ¶
func NSAppleScriptFromID(id objc.ID) *NSAppleScript
func (*NSAppleScript) CompileAndReturnError ¶
func (o *NSAppleScript) CompileAndReturnError(errorInfo *NSDictionary[*NSString, objc.ID]) bool
Compiles the receiver, if it is not already compiled.
func (*NSAppleScript) ExecuteAndReturnError ¶
func (o *NSAppleScript) ExecuteAndReturnError(errorInfo *NSDictionary[*NSString, objc.ID]) *NSAppleEventDescriptor
Executes the receiver, compiling it first if it is not already compiled.
func (*NSAppleScript) ExecuteAppleEventError ¶
func (o *NSAppleScript) ExecuteAppleEventError(event *NSAppleEventDescriptor, errorInfo *NSDictionary[*NSString, objc.ID]) *NSAppleEventDescriptor
Executes an Apple event in the context of the receiver, as a means of allowing the application to invoke a handler in the script.
func (*NSAppleScript) InitWithContentsOfURLError ¶
func (o *NSAppleScript) InitWithContentsOfURLError(url *NSURL, errorInfo *NSDictionary[*NSString, objc.ID]) *NSAppleScript
Initializes a newly allocated script instance from the source identified by the passed URL.
func (*NSAppleScript) InitWithSource ¶
func (o *NSAppleScript) InitWithSource(source *NSString) *NSAppleScript
Initializes a newly allocated script instance from the passed source.
func (*NSAppleScript) IsCompiled ¶
func (o *NSAppleScript) IsCompiled() bool
func (*NSAppleScript) Source ¶
func (o *NSAppleScript) Source() *NSString
type NSArchiver ¶
type NSArchiver struct {
NSCoder
}
A coder that stores an object’s data to an archive.
Apple documentation: https://developer.apple.com/documentation/foundation/nsarchiver Deprecated: Use NSKeyedArchiver instead
func NSArchiverFromID ¶
func NSArchiverFromID(id objc.ID) *NSArchiver
func (*NSArchiver) ArchiverData ¶
func (o *NSArchiver) ArchiverData() *NSMutableData
func (*NSArchiver) ClassNameEncodedForTrueClassName ¶
func (o *NSArchiver) ClassNameEncodedForTrueClassName(trueName *NSString) *NSString
Returns the name of the class used to archive instances of the class with a given true name.
func (*NSArchiver) EncodeClassNameIntoClassName ¶
func (o *NSArchiver) EncodeClassNameIntoClassName(trueName *NSString, inArchiveName *NSString)
Encodes a substitute name for the class with a given true name.
func (*NSArchiver) InitForWritingWithMutableData ¶
func (o *NSArchiver) InitForWritingWithMutableData(mdata *NSMutableData) *NSArchiver
Returns an archiver, initialized to encode stream and version information into a given mutable data object.
func (*NSArchiver) ReplaceObjectWithObject ¶
func (o *NSArchiver) ReplaceObjectWithObject(object objc.ID, newObject objc.ID)
Causes the receiver to treat subsequent requests to encode a given object as though they were requests to encode another given object.
type NSArray ¶
A static ordered collection of objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nsarray
func NSAllHashTableObjects ¶
func NSAllMapTableKeys ¶
func NSAllMapTableValues ¶
func NSArrayArrayWithArray ¶
Creates and returns an array containing the objects in another given array.
func NSArrayArrayWithContentsOfFile ¶
Creates and returns an array containing the contents of the file specified by a given path. Deprecated: since macOS API_TO_BE_DEPRECATED.
func NSArrayArrayWithContentsOfURL ¶
Creates and returns an array containing the contents specified by a given URL. Deprecated: since macOS API_TO_BE_DEPRECATED.
func NSArrayArrayWithObject ¶
Creates and returns an array containing a given object.
func NSArrayArrayWithObjectsCount ¶
Creates and returns an array that includes a given number of objects from a given C array.
func NSArrayFromID ¶
func NSBundleAllBundles ¶
func NSBundleAllFrameworks ¶
func NSConnectionAllConnections ¶
func NSConnectionAllConnections() *NSArray[*NSConnection]
Returns all valid NSConnection objects in the process.
func NSFileCoordinatorFilePresenters ¶
func NSFileCoordinatorFilePresenters() *NSArray[NSFilePresenter]
func NSFileVersionOtherVersionsOfItemAtURL ¶
func NSFileVersionOtherVersionsOfItemAtURL(url *NSURL) *NSArray[*NSFileVersion]
Returns all versions of the specified file except the current version.
func NSFileVersionUnresolvedConflictVersionsOfItemAtURL ¶
func NSFileVersionUnresolvedConflictVersionsOfItemAtURL(url *NSURL) *NSArray[*NSFileVersion]
Returns an array of version objects that are currently in conflict for the specified URL.
func NSHTTPCookieCookiesWithResponseHeaderFieldsForURL ¶
func NSHTTPCookieCookiesWithResponseHeaderFieldsForURL(headerFields *NSDictionary[*NSString, *NSString], uRL *NSURL) *NSArray[*NSHTTPCookie]
@method cookiesWithResponseHeaderFields:forURL: @abstract Return an array of cookies parsed from the specified response header fields and URL. @param headerFields The response header fields to check for cookies. @param URL The URL that the cookies came from - relevant to how the cookies are interpreted. @result An NSArray of NSHTTPCookie objects @discussion This method will ignore irrelevant header fields so you can pass a dictionary containing data other than cookie data.
func NSKeyedUnarchiverUnarchivedArrayOfObjectsOfClassFromDataError ¶
func NSKeyedUnarchiverUnarchivedArrayOfObjectsOfClassFromDataError(cls objc.Class, data *NSData) (*NSArray[objc.ID], error)
Decodes the \c NSArray root object from \c data which should be an \c NSArray containing the given non-collection class (no nested arrays or arrays of dictionaries, etc) from the given archive, previously encoded by \c NSKeyedArchiver.
func NSKeyedUnarchiverUnarchivedArrayOfObjectsOfClassesFromDataError ¶
func NSKeyedUnarchiverUnarchivedArrayOfObjectsOfClassesFromDataError(classes *NSSet[objc.Class], data *NSData) (*NSArray[objc.ID], error)
Decodes the \c NSArray root object from \c data which should be an \c NSArray, containing the given non-collection classes in \c classes (no nested arrays or arrays of dictionaries, etc) from the given archive, previously encoded by \c NSKeyedArchiver.
func NSLinguisticTaggerAvailableTagSchemesForLanguage ¶
Returns the tag schemes available for a particular language on the current device. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTaggerAvailableTagSchemesForUnitLanguage ¶
func NSLinguisticTaggerAvailableTagSchemesForUnitLanguage(unit NSLinguisticTaggerUnit, language *NSString) *NSArray[*NSString]
Returns the tag schemes available for a particular unit and language on the current device. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTaggerTagsForStringRangeUnitSchemeOptionsOrthographyTokenRanges ¶
func NSLinguisticTaggerTagsForStringRangeUnitSchemeOptionsOrthographyTokenRanges(string_ *NSString, range_ NSRange, unit NSLinguisticTaggerUnit, scheme *NSString, options NSLinguisticTaggerOptions, orthography *NSOrthography, tokenRanges *NSArray[*NSValue]) *NSArray[*NSString]
Returns an array of linguistic tags and token ranges for a given string and linguistic unit. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLocaleISOCountryCodes ¶
func NSMorphologyCustomPronounRequiredKeysForLanguage ¶
Returns a collection of the custom pronoun keys required by this language.
func NSSearchPathForDirectoriesInDomains ¶
func NSSearchPathForDirectoriesInDomains(directory NSSearchPathDirectory, domainMask NSSearchPathDomainMask, expandTilde bool) *NSArray[*NSString]
func (*NSArray[ObjectType]) AddObserverToObjectsAtIndexesForKeyPathOptionsContext ¶
func (o *NSArray[ObjectType]) AddObserverToObjectsAtIndexesForKeyPathOptionsContext(observer *NSObject, indexes *NSIndexSet, keyPath *NSString, options NSKeyValueObservingOptions, context_ unsafe.Pointer)
Registers an observer to receive key value observer notifications for the specified key-path relative to the objects at the indexes.
func (*NSArray[ObjectType]) ArrayByAddingObject ¶
Returns a new array that is a copy of the receiving array with a given object added to the end.
func (*NSArray[ObjectType]) ArrayByAddingObjectsFromArray ¶
func (o *NSArray[ObjectType]) ArrayByAddingObjectsFromArray(otherArray *NSArray[ObjectType]) *NSArray[ObjectType]
Returns a new array that is a copy of the receiving array with the objects contained in another array added to the end.
func (*NSArray[ObjectType]) ArrayByApplyingDifference ¶
func (o *NSArray[ObjectType]) ArrayByApplyingDifference(difference *NSOrderedCollectionDifference[ObjectType]) *NSArray[ObjectType]
Creates a new array by applying a difference object to an existing array.
func (*NSArray[ObjectType]) ComponentsJoinedByString ¶
Constructs and returns an NSString object that is the result of interposing a given separator between the elements of the array.
func (*NSArray[ObjectType]) ContainsObject ¶
Returns a Boolean value that indicates whether a given object is present in the array.
func (*NSArray[ObjectType]) DescriptionWithLocale ¶
Returns a string that represents the contents of the array, formatted as a property list.
func (*NSArray[ObjectType]) DescriptionWithLocaleIndent ¶
Returns a string that represents the contents of the array, formatted as a property list.
func (*NSArray[ObjectType]) DifferenceFromArray ¶
func (o *NSArray[ObjectType]) DifferenceFromArray(other *NSArray[ObjectType]) *NSOrderedCollectionDifference[ObjectType]
Compares two arrays to create a difference object that represents the changes between them.
func (*NSArray[ObjectType]) DifferenceFromArrayWithOptions ¶
func (o *NSArray[ObjectType]) DifferenceFromArrayWithOptions(other *NSArray[ObjectType], options NSOrderedCollectionDifferenceCalculationOptions) *NSOrderedCollectionDifference[ObjectType]
Compares two arrays, with options, to create a difference object that represents the changes between them.
func (*NSArray[ObjectType]) DifferenceFromArrayWithOptionsUsingEquivalenceTest ¶
func (o *NSArray[ObjectType]) DifferenceFromArrayWithOptionsUsingEquivalenceTest(other *NSArray[ObjectType], options NSOrderedCollectionDifferenceCalculationOptions, block objc.Block) *NSOrderedCollectionDifference[ObjectType]
Compares two arrays, using the provided block and with options, to create a difference object that represents the changes between them.
func (*NSArray[ObjectType]) EnumerateObjectsAtIndexesOptionsUsing ¶
func (o *NSArray[ObjectType]) EnumerateObjectsAtIndexesOptionsUsing(s *NSIndexSet, opts NSEnumerationOptions, block objc.Block)
Executes a given block using the objects in the array at the specified indexes.
func (*NSArray[ObjectType]) EnumerateObjectsUsing ¶
Executes a given closure or block using each object in the array, starting with the first object and continuing through the array to the last object.
func (*NSArray[ObjectType]) EnumerateObjectsWithOptionsUsing ¶
func (o *NSArray[ObjectType]) EnumerateObjectsWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)
Executes a given closure or block using each object in the array with the specified options.
func (*NSArray[ObjectType]) FilteredArrayUsingPredicate ¶
func (o *NSArray[ObjectType]) FilteredArrayUsingPredicate(predicate *NSPredicate) *NSArray[ObjectType]
Evaluates a given predicate against each object in the receiving array and returns a new array containing the objects for which the predicate returns true.
func (*NSArray[ObjectType]) FirstObject ¶
func (o *NSArray[ObjectType]) FirstObject() ObjectType
func (*NSArray[ObjectType]) FirstObjectCommonWithArray ¶
func (o *NSArray[ObjectType]) FirstObjectCommonWithArray(otherArray *NSArray[ObjectType]) ObjectType
Returns the first object contained in the receiving array that’s equal to an object in another given array.
func (*NSArray[ObjectType]) GetObjects ¶
Copies all the objects contained in the array to aBuffer. Deprecated: Use -getObjects:range: instead
func (*NSArray[ObjectType]) GetObjectsRange ¶
Copies references to objects contained in the array that fall within the specified range to aBuffer.
func (*NSArray[ObjectType]) IndexOfObject ¶
Returns the lowest index whose corresponding array value is equal to a given object.
func (*NSArray[ObjectType]) IndexOfObjectAtIndexesOptionsPassingTest ¶
func (o *NSArray[ObjectType]) IndexOfObjectAtIndexesOptionsPassingTest(s *NSIndexSet, opts NSEnumerationOptions, predicate objc.Block) uint
Returns the index, from a given set of indexes, of the first object in the array that passes a test in a given block for a given set of enumeration options.
func (*NSArray[ObjectType]) IndexOfObjectIdenticalTo ¶
Returns the lowest index whose corresponding array value is identical to a given object.
func (*NSArray[ObjectType]) IndexOfObjectIdenticalToInRange ¶
func (o *NSArray[ObjectType]) IndexOfObjectIdenticalToInRange(anObject ObjectType, range_ NSRange) uint
Returns the lowest index within a specified range whose corresponding array value is equal to a given object .
func (*NSArray[ObjectType]) IndexOfObjectInRange ¶
Returns the lowest index within a specified range whose corresponding array value is equal to a given object .
func (*NSArray[ObjectType]) IndexOfObjectInSortedRangeOptionsUsingComparator ¶
func (o *NSArray[ObjectType]) IndexOfObjectInSortedRangeOptionsUsingComparator(obj ObjectType, r NSRange, opts NSBinarySearchingOptions, cmp func(objc.ID, objc.ID) NSComparisonResult) uint
Returns the index, within a specified range, of an object compared with elements in the array using a given NSComparator block.
func (*NSArray[ObjectType]) IndexOfObjectPassingTest ¶
Returns the index of the first object in the array that passes a test in a given block.
func (*NSArray[ObjectType]) IndexOfObjectWithOptionsPassingTest ¶
func (o *NSArray[ObjectType]) IndexOfObjectWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) uint
Returns the index of an object in the array that passes a test in a given block for a given set of enumeration options.
func (*NSArray[ObjectType]) IndexesOfObjectsAtIndexesOptionsPassingTest ¶
func (o *NSArray[ObjectType]) IndexesOfObjectsAtIndexesOptionsPassingTest(s *NSIndexSet, opts NSEnumerationOptions, predicate objc.Block) *NSIndexSet
Returns the indexes, from a given set of indexes, of objects in the array that pass a test in a given block for a given set of enumeration options.
func (*NSArray[ObjectType]) IndexesOfObjectsPassingTest ¶
func (o *NSArray[ObjectType]) IndexesOfObjectsPassingTest(predicate objc.Block) *NSIndexSet
Returns the indexes of objects in the array that pass a test in a given block.
func (*NSArray[ObjectType]) IndexesOfObjectsWithOptionsPassingTest ¶
func (o *NSArray[ObjectType]) IndexesOfObjectsWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSIndexSet
Returns the indexes of objects in the array that pass a test in a given block for a given set of enumeration options.
func (*NSArray[ObjectType]) InitWithArray ¶
Initializes a newly allocated array by placing in it the objects contained in a given array.
func (*NSArray[ObjectType]) InitWithArrayCopyItems ¶
func (o *NSArray[ObjectType]) InitWithArrayCopyItems(array *NSArray[ObjectType], flag bool) *NSArray[ObjectType]
Initializes a newly allocated array using anArray as the source of data objects for the array.
func (*NSArray[ObjectType]) InitWithCoder ¶
func (*NSArray[ObjectType]) InitWithContentsOfFile ¶
Initializes a newly allocated array with the contents of the file specified by a given path. Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSArray[ObjectType]) InitWithContentsOfURL ¶
Initializes a newly allocated array with the contents of the location specified by a given URL. Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSArray[ObjectType]) InitWithContentsOfURLError ¶
func (*NSArray[ObjectType]) InitWithObjectsCount ¶
func (o *NSArray[ObjectType]) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSArray[ObjectType]
Initializes a newly allocated array to include a given number of objects from a given C array.
func (*NSArray[ObjectType]) IsEqualToArray ¶
Compares the receiving array to another array.
func (*NSArray[ObjectType]) LastObject ¶
func (o *NSArray[ObjectType]) LastObject() ObjectType
func (*NSArray[ObjectType]) MakeObjectsPerformSelector ¶
Sends to each object in the array the message identified by a given selector, starting with the first object and continuing through the array to the last object.
func (*NSArray[ObjectType]) MakeObjectsPerformSelectorWithObject ¶
func (o *NSArray[ObjectType]) MakeObjectsPerformSelectorWithObject(aSelector objc.SEL, argument objc.ID)
Sends the aSelector message to each object in the array, starting with the first object and continuing through the array to the last object.
func (*NSArray[ObjectType]) ObjectAtIndex ¶
Returns the object located at the specified index.
func (*NSArray[ObjectType]) ObjectAtIndexedSubscript ¶
Returns the object at the specified index.
func (*NSArray[ObjectType]) ObjectEnumerator ¶
func (o *NSArray[ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]
Returns an enumerator object that lets you access each object in the array.
func (*NSArray[ObjectType]) ObjectsAtIndexes ¶
func (o *NSArray[ObjectType]) ObjectsAtIndexes(indexes *NSIndexSet) *NSArray[ObjectType]
Returns an array containing the objects in the array at the indexes specified by a given index set.
func (*NSArray[ObjectType]) PathsMatchingExtensions ¶
func (o *NSArray[ObjectType]) PathsMatchingExtensions(filterTypes *NSArray[*NSString]) *NSArray[*NSString]
Returns an array containing all the pathname elements in the receiving array that have filename extensions from a given array.
func (*NSArray[ObjectType]) RemoveObserverFromObjectsAtIndexesForKeyPath ¶
func (o *NSArray[ObjectType]) RemoveObserverFromObjectsAtIndexesForKeyPath(observer *NSObject, indexes *NSIndexSet, keyPath *NSString)
Removes anObserver from all key value observer notifications associated with the specified keyPath relative to the array’s objects at indexes.
func (*NSArray[ObjectType]) RemoveObserverFromObjectsAtIndexesForKeyPathContext ¶
func (o *NSArray[ObjectType]) RemoveObserverFromObjectsAtIndexesForKeyPathContext(observer *NSObject, indexes *NSIndexSet, keyPath *NSString, context_ unsafe.Pointer)
Raises an exception.
func (*NSArray[ObjectType]) ReverseObjectEnumerator ¶
func (o *NSArray[ObjectType]) ReverseObjectEnumerator() *NSEnumerator[ObjectType]
Returns an enumerator object that lets you access each object in the array, in reverse order.
func (*NSArray[ObjectType]) SortedArrayHint ¶
func (*NSArray[ObjectType]) SortedArrayUsingComparator ¶
func (o *NSArray[ObjectType]) SortedArrayUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[ObjectType]
Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block.
func (*NSArray[ObjectType]) SortedArrayUsingDescriptors ¶
func (o *NSArray[ObjectType]) SortedArrayUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor]) *NSArray[ObjectType]
Returns a copy of the receiving array sorted as specified by a given array of sort descriptors.
func (*NSArray[ObjectType]) SortedArrayUsingFunctionContext ¶
func (o *NSArray[ObjectType]) SortedArrayUsingFunctionContext(comparator unsafe.Pointer, context_ unsafe.Pointer) *NSArray[ObjectType]
Returns a new array that lists the receiving array’s elements in ascending order as defined by the comparison function comparator.
func (*NSArray[ObjectType]) SortedArrayUsingFunctionContextHint ¶
func (o *NSArray[ObjectType]) SortedArrayUsingFunctionContextHint(comparator unsafe.Pointer, context_ unsafe.Pointer, hint *NSData) *NSArray[ObjectType]
Returns a new array that lists the receiving array’s elements in ascending order as defined by the comparison function comparator.
func (*NSArray[ObjectType]) SortedArrayUsingSelector ¶
Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given selector.
func (*NSArray[ObjectType]) SortedArrayWithOptionsUsingComparator ¶
func (o *NSArray[ObjectType]) SortedArrayWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[ObjectType]
Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block.
func (*NSArray[ObjectType]) SubarrayWithRange ¶
Returns a new array containing the receiving array’s elements that fall within the limits specified by a given range.
func (*NSArray[ObjectType]) WriteToFileAtomically ¶
Writes the contents of the array to a file at a given path. Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSArray[ObjectType]) WriteToURLAtomically ¶
Writes the contents of the array to the location specified by a given URL. Deprecated: since macOS API_TO_BE_DEPRECATED.
type NSAssertionHandler ¶
type NSAssertionHandler struct {
NSObject
}
An object that logs an assertion to the console.
Apple documentation: https://developer.apple.com/documentation/foundation/nsassertionhandler
func NSAssertionHandlerCurrentHandler ¶
func NSAssertionHandlerCurrentHandler() *NSAssertionHandler
func NSAssertionHandlerFromID ¶
func NSAssertionHandlerFromID(id objc.ID) *NSAssertionHandler
type NSAttributedString ¶
type NSAttributedString struct {
NSObject
}
A string of text that manages data, layout, and stylistic information for ranges of characters to support rendering.
Apple documentation: https://developer.apple.com/documentation/foundation/nsattributedstring
func NSAttributedStringFromID ¶
func NSAttributedStringFromID(id objc.ID) *NSAttributedString
func NSAttributedStringLocalizedAttributedStringWithFormat ¶
func NSAttributedStringLocalizedAttributedStringWithFormat(format *NSAttributedString) *NSAttributedString
Formats the string using the current locale and default options.
func NSAttributedStringLocalizedAttributedStringWithFormatContext ¶
func NSAttributedStringLocalizedAttributedStringWithFormatContext(format *NSAttributedString, context_ *NSDictionary[*NSString, objc.ID]) *NSAttributedString
Formats the string using the current locale and default options.
func NSAttributedStringLocalizedAttributedStringWithFormatOptions ¶
func NSAttributedStringLocalizedAttributedStringWithFormatOptions(format *NSAttributedString, options NSAttributedStringFormattingOptions) *NSAttributedString
Formats the string using the current locale and the specified options.
func NSAttributedStringLocalizedAttributedStringWithFormatOptionsContext ¶
func NSAttributedStringLocalizedAttributedStringWithFormatOptionsContext(format *NSAttributedString, options NSAttributedStringFormattingOptions, context_ *NSDictionary[*NSString, objc.ID]) *NSAttributedString
Formats the string using the current locale and the specified options.
func (*NSAttributedString) AttributeAtIndexEffectiveRange ¶
func (o *NSAttributedString) AttributeAtIndexEffectiveRange(attrName *NSString, location uint, range_ *NSRange) objc.ID
Returns the value for an attribute with the specified name of the character at the specified index and, by reference, the range where the attribute applies.
func (*NSAttributedString) AttributeAtIndexLongestEffectiveRangeInRange ¶
func (o *NSAttributedString) AttributeAtIndexLongestEffectiveRangeInRange(attrName *NSString, location uint, range_ *NSRange, rangeLimit NSRange) objc.ID
Returns the value for the attribute with the specified name of the character at the specified index and, by reference, the range where the attribute applies.
func (*NSAttributedString) AttributedStringByInflectingString ¶
func (o *NSAttributedString) AttributedStringByInflectingString() *NSAttributedString
If the string has portions tagged with NSInflectionRuleAttributeName that have no format specifiers, create a new string with those portions inflected by following the rule in the attribute.
func (*NSAttributedString) AttributedSubstringFromRange ¶
func (o *NSAttributedString) AttributedSubstringFromRange(range_ NSRange) *NSAttributedString
Returns an attributed string consisting of the characters and attributes within the specified range in the attributed string.
func (*NSAttributedString) AttributesAtIndexEffectiveRange ¶
func (o *NSAttributedString) AttributesAtIndexEffectiveRange(location uint, range_ *NSRange) *NSDictionary[*NSString, objc.ID]
Returns the attributes for the character at the specified index.
func (*NSAttributedString) AttributesAtIndexLongestEffectiveRangeInRange ¶
func (o *NSAttributedString) AttributesAtIndexLongestEffectiveRangeInRange(location uint, range_ *NSRange, rangeLimit NSRange) *NSDictionary[*NSString, objc.ID]
Returns the attributes for the character at the specified index and, by reference, the range where the attributes apply.
func (*NSAttributedString) EnumerateAttributeInRangeOptionsUsing ¶
func (o *NSAttributedString) EnumerateAttributeInRangeOptionsUsing(attrName *NSString, enumerationRange NSRange, opts NSAttributedStringEnumerationOptions, block objc.Block)
Executes the specified closure or block for each range of a particular attribute in the attributed string.
func (*NSAttributedString) EnumerateAttributesInRangeOptionsUsing ¶
func (o *NSAttributedString) EnumerateAttributesInRangeOptionsUsing(enumerationRange NSRange, opts NSAttributedStringEnumerationOptions, block objc.Block)
Executes the specified closure or block for each range of attributes in the attributed string.
func (*NSAttributedString) InitWithAttributedString ¶
func (o *NSAttributedString) InitWithAttributedString(attrStr *NSAttributedString) *NSAttributedString
func (*NSAttributedString) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError ¶
func (o *NSAttributedString) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile *NSURL, options *NSAttributedStringMarkdownParsingOptions, baseURL *NSURL) (*NSAttributedString, error)
func (*NSAttributedString) InitWithFormatOptionsLocale ¶
func (o *NSAttributedString) InitWithFormatOptionsLocale(format *NSAttributedString, options NSAttributedStringFormattingOptions, locale *NSLocale) *NSAttributedString
Formats the string using the specified locale (or the canonical one, if nil).
func (*NSAttributedString) InitWithFormatOptionsLocaleArguments ¶
func (o *NSAttributedString) InitWithFormatOptionsLocaleArguments(format *NSAttributedString, options NSAttributedStringFormattingOptions, locale *NSLocale, arguments string) *NSAttributedString
Formats the string using the arguments list and the specified locale (or the canonical one, if nil).
func (*NSAttributedString) InitWithFormatOptionsLocaleContext ¶
func (o *NSAttributedString) InitWithFormatOptionsLocaleContext(format *NSAttributedString, options NSAttributedStringFormattingOptions, locale *NSLocale, context_ *NSDictionary[*NSString, objc.ID]) *NSAttributedString
Formats the string using the specified locale (or the canonical one, if nil).
func (*NSAttributedString) InitWithFormatOptionsLocaleContextArguments ¶
func (o *NSAttributedString) InitWithFormatOptionsLocaleContextArguments(format *NSAttributedString, options NSAttributedStringFormattingOptions, locale *NSLocale, context_ *NSDictionary[*NSString, objc.ID], arguments string) *NSAttributedString
Formats the string using the arguments list and the specified locale (or the canonical one, if nil).
func (*NSAttributedString) InitWithMarkdownOptionsBaseURLError ¶
func (o *NSAttributedString) InitWithMarkdownOptionsBaseURLError(markdown *NSData, options *NSAttributedStringMarkdownParsingOptions, baseURL *NSURL) (*NSAttributedString, error)
func (*NSAttributedString) InitWithMarkdownStringOptionsBaseURLError ¶
func (o *NSAttributedString) InitWithMarkdownStringOptionsBaseURLError(markdownString *NSString, options *NSAttributedStringMarkdownParsingOptions, baseURL *NSURL) (*NSAttributedString, error)
func (*NSAttributedString) InitWithString ¶
func (o *NSAttributedString) InitWithString(str *NSString) *NSAttributedString
func (*NSAttributedString) InitWithStringAttributes ¶
func (o *NSAttributedString) InitWithStringAttributes(str *NSString, attrs *NSDictionary[*NSString, objc.ID]) *NSAttributedString
func (*NSAttributedString) IsEqualToAttributedString ¶
func (o *NSAttributedString) IsEqualToAttributedString(other *NSAttributedString) bool
Returns a Boolean value that indicates whether the attributed string is equal to the specified string.
func (*NSAttributedString) Length ¶
func (o *NSAttributedString) Length() uint
func (*NSAttributedString) String ¶
func (o *NSAttributedString) String() *NSString
type NSAttributedStringEnumerationOptions ¶
type NSAttributedStringEnumerationOptions uint64
Options for enumerating attributes.
const ( NSAttributedStringEnumerationReverse NSAttributedStringEnumerationOptions = 2 NSAttributedStringEnumerationLongestEffectiveRangeNotRequired NSAttributedStringEnumerationOptions = 1048576 )
func (NSAttributedStringEnumerationOptions) String ¶
func (e NSAttributedStringEnumerationOptions) String() string
type NSAttributedStringFormattingOptions ¶
type NSAttributedStringFormattingOptions uint64
Options to use when creating an attributed string from a format string and variable list of arguments.
const ( // An option to replace the attributes in a substituted string with those of the provided attributed string. NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging NSAttributedStringFormattingOptions = 1 // An option to apply to the replaced portions of text in a format string. NSAttributedStringFormattingApplyReplacementIndexAttribute NSAttributedStringFormattingOptions = 2 )
func (NSAttributedStringFormattingOptions) String ¶
func (e NSAttributedStringFormattingOptions) String() string
type NSAttributedStringMarkdownInterpretedSyntax ¶
type NSAttributedStringMarkdownInterpretedSyntax int64
A type that represents the syntax for intepreting a Markdown string.
const ( // A syntax value that interprets the full Markdown syntax and produces all relevant attributes. NSAttributedStringMarkdownInterpretedSyntaxFull NSAttributedStringMarkdownInterpretedSyntax = 0 // A syntax value that parses all Markdown text, but interprets only attributes that apply to inline spans. NSAttributedStringMarkdownInterpretedSyntaxInlineOnly NSAttributedStringMarkdownInterpretedSyntax = 1 // A syntax value that parses all Markdown text, but interprets only attributes that apply to inline spans, perserving white space. NSAttributedStringMarkdownInterpretedSyntaxInlineOnlyPreservingWhitespace NSAttributedStringMarkdownInterpretedSyntax = 2 )
func (NSAttributedStringMarkdownInterpretedSyntax) String ¶
func (e NSAttributedStringMarkdownInterpretedSyntax) String() string
type NSAttributedStringMarkdownParsingFailurePolicy ¶
type NSAttributedStringMarkdownParsingFailurePolicy int64
A type that represents policies for handling parsing failures.
const ( // A policy to return an error from the initializer if parsing fails. NSAttributedStringMarkdownParsingFailureReturnError NSAttributedStringMarkdownParsingFailurePolicy = 0 // A policy to return a partially parsed string, if possible. NSAttributedStringMarkdownParsingFailureReturnPartiallyParsedIfPossible NSAttributedStringMarkdownParsingFailurePolicy = 1 )
func (NSAttributedStringMarkdownParsingFailurePolicy) String ¶
func (e NSAttributedStringMarkdownParsingFailurePolicy) String() string
type NSAttributedStringMarkdownParsingOptions ¶
type NSAttributedStringMarkdownParsingOptions struct {
NSObject
}
Options that affect the parsing of Markdown content into an attributed string.
Apple documentation: https://developer.apple.com/documentation/foundation/nsattributedstringmarkdownparsingoptions
func NSAttributedStringMarkdownParsingOptionsFromID ¶
func NSAttributedStringMarkdownParsingOptionsFromID(id objc.ID) *NSAttributedStringMarkdownParsingOptions
func (*NSAttributedStringMarkdownParsingOptions) AllowsExtendedAttributes ¶
func (o *NSAttributedStringMarkdownParsingOptions) AllowsExtendedAttributes() bool
func (*NSAttributedStringMarkdownParsingOptions) AppliesSourcePositionAttributes ¶
func (o *NSAttributedStringMarkdownParsingOptions) AppliesSourcePositionAttributes() bool
func (*NSAttributedStringMarkdownParsingOptions) FailurePolicy ¶
func (o *NSAttributedStringMarkdownParsingOptions) FailurePolicy() NSAttributedStringMarkdownParsingFailurePolicy
func (*NSAttributedStringMarkdownParsingOptions) Init ¶
Creates a Markdown parsing options instance with the specified values.
func (*NSAttributedStringMarkdownParsingOptions) InterpretedSyntax ¶
func (o *NSAttributedStringMarkdownParsingOptions) InterpretedSyntax() NSAttributedStringMarkdownInterpretedSyntax
func (*NSAttributedStringMarkdownParsingOptions) LanguageCode ¶
func (o *NSAttributedStringMarkdownParsingOptions) LanguageCode() *NSString
func (*NSAttributedStringMarkdownParsingOptions) SetAllowsExtendedAttributes ¶
func (o *NSAttributedStringMarkdownParsingOptions) SetAllowsExtendedAttributes(allowsExtendedAttributes bool)
func (*NSAttributedStringMarkdownParsingOptions) SetAppliesSourcePositionAttributes ¶
func (o *NSAttributedStringMarkdownParsingOptions) SetAppliesSourcePositionAttributes(appliesSourcePositionAttributes bool)
func (*NSAttributedStringMarkdownParsingOptions) SetFailurePolicy ¶
func (o *NSAttributedStringMarkdownParsingOptions) SetFailurePolicy(failurePolicy NSAttributedStringMarkdownParsingFailurePolicy)
func (*NSAttributedStringMarkdownParsingOptions) SetInterpretedSyntax ¶
func (o *NSAttributedStringMarkdownParsingOptions) SetInterpretedSyntax(interpretedSyntax NSAttributedStringMarkdownInterpretedSyntax)
func (*NSAttributedStringMarkdownParsingOptions) SetLanguageCode ¶
func (o *NSAttributedStringMarkdownParsingOptions) SetLanguageCode(languageCode *NSString)
type NSAttributedStringMarkdownSourcePosition ¶
type NSAttributedStringMarkdownSourcePosition struct {
NSObject
}
The position of attributed string text in its original Markdown source string.
Apple documentation: https://developer.apple.com/documentation/foundation/nsattributedstringmarkdownsourceposition
func NSAttributedStringMarkdownSourcePositionFromID ¶
func NSAttributedStringMarkdownSourcePositionFromID(id objc.ID) *NSAttributedStringMarkdownSourcePosition
func (*NSAttributedStringMarkdownSourcePosition) EndColumn ¶
func (o *NSAttributedStringMarkdownSourcePosition) EndColumn() int
func (*NSAttributedStringMarkdownSourcePosition) EndLine ¶
func (o *NSAttributedStringMarkdownSourcePosition) EndLine() int
func (*NSAttributedStringMarkdownSourcePosition) InitWithStartLineStartColumnEndLineEndColumn ¶
func (o *NSAttributedStringMarkdownSourcePosition) InitWithStartLineStartColumnEndLineEndColumn(startLine int, startColumn int, endLine int, endColumn int) *NSAttributedStringMarkdownSourcePosition
Creates a Markdown source position instance from its start and end line and column.
func (*NSAttributedStringMarkdownSourcePosition) RangeInString ¶
func (o *NSAttributedStringMarkdownSourcePosition) RangeInString(string_ *NSString) NSRange
Returns a range indicating the source portion within a Markdown string.
func (*NSAttributedStringMarkdownSourcePosition) StartColumn ¶
func (o *NSAttributedStringMarkdownSourcePosition) StartColumn() int
func (*NSAttributedStringMarkdownSourcePosition) StartLine ¶
func (o *NSAttributedStringMarkdownSourcePosition) StartLine() int
type NSAutoreleasePool ¶
type NSAutoreleasePool struct {
NSObject
}
An object that supports Cocoa’s reference-counted memory management system.
Apple documentation: https://developer.apple.com/documentation/foundation/nsautoreleasepool
func NSAutoreleasePoolFromID ¶
func NSAutoreleasePoolFromID(id objc.ID) *NSAutoreleasePool
func (*NSAutoreleasePool) AddObject ¶
func (o *NSAutoreleasePool) AddObject(anObject objc.ID)
Adds a given object to the receiver
func (*NSAutoreleasePool) Drain ¶
func (o *NSAutoreleasePool) Drain()
In a reference-counted environment, releases and pops the receiver; in a garbage-collected environment, triggers garbage collection if the memory allocated since the last collection is greater than the current threshold.
type NSBackgroundActivityResult ¶
type NSBackgroundActivityResult int64
These constants indicate whether background activity has been completed successfully or whether additional processing should be deferred until a more optimal time.
const ( NSBackgroundActivityResultFinished NSBackgroundActivityResult = 1 NSBackgroundActivityResultDeferred NSBackgroundActivityResult = 2 )
func (NSBackgroundActivityResult) String ¶
func (e NSBackgroundActivityResult) String() string
type NSBackgroundActivityScheduler ¶
type NSBackgroundActivityScheduler struct {
NSObject
}
A task scheduler suitable for low priority operations that can run in the background.
Apple documentation: https://developer.apple.com/documentation/foundation/nsbackgroundactivityscheduler
func NSBackgroundActivitySchedulerFromID ¶
func NSBackgroundActivitySchedulerFromID(id objc.ID) *NSBackgroundActivityScheduler
func (*NSBackgroundActivityScheduler) Identifier ¶
func (o *NSBackgroundActivityScheduler) Identifier() *NSString
func (*NSBackgroundActivityScheduler) InitWithIdentifier ¶
func (o *NSBackgroundActivityScheduler) InitWithIdentifier(identifier *NSString) *NSBackgroundActivityScheduler
Initializes a background activity scheduler object with a specified unique identifier.
func (*NSBackgroundActivityScheduler) Interval ¶
func (o *NSBackgroundActivityScheduler) Interval() float64
func (*NSBackgroundActivityScheduler) Invalidate ¶
func (o *NSBackgroundActivityScheduler) Invalidate()
Prevents the background activity from being scheduled again.
func (*NSBackgroundActivityScheduler) QualityOfService ¶
func (o *NSBackgroundActivityScheduler) QualityOfService() NSQualityOfService
func (*NSBackgroundActivityScheduler) Repeats ¶
func (o *NSBackgroundActivityScheduler) Repeats() bool
func (*NSBackgroundActivityScheduler) ScheduleWith ¶
func (o *NSBackgroundActivityScheduler) ScheduleWith(block func(objc.Block))
Begins scheduling the background activity.
func (*NSBackgroundActivityScheduler) SetInterval ¶
func (o *NSBackgroundActivityScheduler) SetInterval(interval float64)
func (*NSBackgroundActivityScheduler) SetQualityOfService ¶
func (o *NSBackgroundActivityScheduler) SetQualityOfService(qualityOfService NSQualityOfService)
func (*NSBackgroundActivityScheduler) SetRepeats ¶
func (o *NSBackgroundActivityScheduler) SetRepeats(repeats bool)
func (*NSBackgroundActivityScheduler) SetTolerance ¶
func (o *NSBackgroundActivityScheduler) SetTolerance(tolerance float64)
func (*NSBackgroundActivityScheduler) ShouldDefer ¶
func (o *NSBackgroundActivityScheduler) ShouldDefer() bool
func (*NSBackgroundActivityScheduler) Tolerance ¶
func (o *NSBackgroundActivityScheduler) Tolerance() float64
type NSBinarySearchingOptions ¶
type NSBinarySearchingOptions uint64
Options for searches and insertions using indexOfObject:inSortedRange:options:usingComparator:.
const ( // Specifies that the search should return the first object in the range that is equal to the given object. NSBinarySearchingFirstEqual NSBinarySearchingOptions = 256 // Specifies that the search should return the last object in the range that is equal to the given object. NSBinarySearchingLastEqual NSBinarySearchingOptions = 512 // Returns the index at which you should insert the object in order to maintain a sorted array. NSBinarySearchingInsertionIndex NSBinarySearchingOptions = 1024 )
func (NSBinarySearchingOptions) String ¶
func (e NSBinarySearchingOptions) String() string
type NSBlockOperation ¶
type NSBlockOperation struct {
NSOperation
}
An operation that manages the concurrent execution of one or more blocks.
Apple documentation: https://developer.apple.com/documentation/foundation/nsblockoperation
func NSBlockOperationBlockOperationWith ¶
func NSBlockOperationBlockOperationWith(block func()) *NSBlockOperation
func NSBlockOperationFromID ¶
func NSBlockOperationFromID(id objc.ID) *NSBlockOperation
func (*NSBlockOperation) AddExecutionBlock ¶
func (o *NSBlockOperation) AddExecutionBlock(block func())
func (*NSBlockOperation) ExecutionBlocks ¶
func (o *NSBlockOperation) ExecutionBlocks() unsafe.Pointer
type NSBundle ¶
type NSBundle struct {
NSObject
}
A representation of the code and resources stored in a bundle directory on disk.
Apple documentation: https://developer.apple.com/documentation/foundation/nsbundle
func NSBundleBundleForClass ¶
func NSBundleBundleWithPath ¶
Returns an NSBundle object that corresponds to the specified directory.
func NSBundleBundleWithURL ¶
func NSBundleFromID ¶
func NSBundleMainBundle ¶
func NSBundleMainBundle() *NSBundle
func (*NSBundle) AppStoreReceiptURL ¶
func (*NSBundle) BuiltInPlugInsPath ¶
func (*NSBundle) BuiltInPlugInsURL ¶
func (*NSBundle) BundleIdentifier ¶
func (*NSBundle) BundlePath ¶
func (*NSBundle) DevelopmentLocalization ¶
func (*NSBundle) ExecutableArchitectures ¶
func (*NSBundle) ExecutablePath ¶
func (*NSBundle) ExecutableURL ¶
func (*NSBundle) InfoDictionary ¶
func (o *NSBundle) InfoDictionary() *NSDictionary[*NSString, objc.ID]
func (*NSBundle) InitWithPath ¶
func (*NSBundle) InitWithURL ¶
func (*NSBundle) LoadAndReturnError ¶
func (*NSBundle) Localizations ¶
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 (*NSBundle) LocalizedStringForKeyValueTableLocalizations ¶
func (o *NSBundle) LocalizedStringForKeyValueTableLocalizations(key *NSString, value *NSString, tableName *NSString, localizations *NSArray[*NSString]) *NSString
Look up a localized string given a list of available localizations.
func (*NSBundle) ObjectForInfoDictionaryKey ¶
func (*NSBundle) PathForAuxiliaryExecutable ¶
func (*NSBundle) PathForResourceOfType ¶
func (*NSBundle) PathForResourceOfTypeInDirectory ¶
func (*NSBundle) PathForResourceOfTypeInDirectoryForLocalization ¶
func (*NSBundle) PathsForResourcesOfTypeInDirectory ¶
func (*NSBundle) PathsForResourcesOfTypeInDirectoryForLocalization ¶
func (*NSBundle) PreferredLocalizations ¶
func (*NSBundle) PreflightAndReturnError ¶
func (*NSBundle) PrincipalClass ¶
func (*NSBundle) PrivateFrameworksPath ¶
func (*NSBundle) PrivateFrameworksURL ¶
func (*NSBundle) ResourcePath ¶
func (*NSBundle) ResourceURL ¶
func (*NSBundle) SharedFrameworksPath ¶
func (*NSBundle) SharedFrameworksURL ¶
func (*NSBundle) SharedSupportPath ¶
func (*NSBundle) SharedSupportURL ¶
func (*NSBundle) URLForAuxiliaryExecutable ¶
func (*NSBundle) URLForResourceWithExtension ¶
func (*NSBundle) URLForResourceWithExtensionSubdirectory ¶
func (*NSBundle) URLForResourceWithExtensionSubdirectoryLocalization ¶
func (*NSBundle) URLsForResourcesWithExtensionSubdirectory ¶
func (*NSBundle) URLsForResourcesWithExtensionSubdirectoryLocalization ¶
type NSByteCountFormatter ¶
type NSByteCountFormatter struct {
NSFormatter
}
A formatter that converts a byte count value into a localized description that is formatted with the appropriate byte modifier (KB, MB, GB and so on).
Apple documentation: https://developer.apple.com/documentation/foundation/nsbytecountformatter
func NSByteCountFormatterFromID ¶
func NSByteCountFormatterFromID(id objc.ID) *NSByteCountFormatter
func (*NSByteCountFormatter) AllowedUnits ¶
func (o *NSByteCountFormatter) AllowedUnits() NSByteCountFormatterUnits
func (*NSByteCountFormatter) AllowsNonnumericFormatting ¶
func (o *NSByteCountFormatter) AllowsNonnumericFormatting() bool
func (*NSByteCountFormatter) CountStyle ¶
func (o *NSByteCountFormatter) CountStyle() NSByteCountFormatterCountStyle
func (*NSByteCountFormatter) FormattingContext ¶
func (o *NSByteCountFormatter) FormattingContext() NSFormattingContext
func (*NSByteCountFormatter) IncludesActualByteCount ¶
func (o *NSByteCountFormatter) IncludesActualByteCount() bool
func (*NSByteCountFormatter) IncludesCount ¶
func (o *NSByteCountFormatter) IncludesCount() bool
func (*NSByteCountFormatter) IncludesUnit ¶
func (o *NSByteCountFormatter) IncludesUnit() bool
func (*NSByteCountFormatter) IsAdaptive ¶
func (o *NSByteCountFormatter) IsAdaptive() bool
func (*NSByteCountFormatter) SetAdaptive ¶
func (o *NSByteCountFormatter) SetAdaptive(adaptive bool)
func (*NSByteCountFormatter) SetAllowedUnits ¶
func (o *NSByteCountFormatter) SetAllowedUnits(allowedUnits NSByteCountFormatterUnits)
func (*NSByteCountFormatter) SetAllowsNonnumericFormatting ¶
func (o *NSByteCountFormatter) SetAllowsNonnumericFormatting(allowsNonnumericFormatting bool)
func (*NSByteCountFormatter) SetCountStyle ¶
func (o *NSByteCountFormatter) SetCountStyle(countStyle NSByteCountFormatterCountStyle)
func (*NSByteCountFormatter) SetFormattingContext ¶
func (o *NSByteCountFormatter) SetFormattingContext(formattingContext NSFormattingContext)
func (*NSByteCountFormatter) SetIncludesActualByteCount ¶
func (o *NSByteCountFormatter) SetIncludesActualByteCount(includesActualByteCount bool)
func (*NSByteCountFormatter) SetIncludesCount ¶
func (o *NSByteCountFormatter) SetIncludesCount(includesCount bool)
func (*NSByteCountFormatter) SetIncludesUnit ¶
func (o *NSByteCountFormatter) SetIncludesUnit(includesUnit bool)
func (*NSByteCountFormatter) SetZeroPadsFractionDigits ¶
func (o *NSByteCountFormatter) SetZeroPadsFractionDigits(zeroPadsFractionDigits bool)
func (*NSByteCountFormatter) StringFromByteCount ¶
func (o *NSByteCountFormatter) StringFromByteCount(byteCount int64) *NSString
func (*NSByteCountFormatter) StringFromMeasurement ¶
func (o *NSByteCountFormatter) StringFromMeasurement(measurement *NSMeasurement[*NSUnitInformationStorage]) *NSString
func (*NSByteCountFormatter) ZeroPadsFractionDigits ¶
func (o *NSByteCountFormatter) ZeroPadsFractionDigits() bool
type NSByteCountFormatterCountStyle ¶
type NSByteCountFormatterCountStyle int64
Specifies display of file or storage byte counts. The display style is platform specific.
const ( NSByteCountFormatterCountStyleFile NSByteCountFormatterCountStyle = 0 NSByteCountFormatterCountStyleMemory NSByteCountFormatterCountStyle = 1 NSByteCountFormatterCountStyleDecimal NSByteCountFormatterCountStyle = 2 NSByteCountFormatterCountStyleBinary NSByteCountFormatterCountStyle = 3 )
func (NSByteCountFormatterCountStyle) String ¶
func (e NSByteCountFormatterCountStyle) String() string
type NSByteCountFormatterUnits ¶
type NSByteCountFormatterUnits uint64
Specifies the units appropriate for the formatter to display. Specifying any units explicitly causes just those units to be used in showing the number.
const ( // This causes default units appropriate for the platform to be used. This is the default. NSByteCountFormatterUseDefault NSByteCountFormatterUnits = 0 NSByteCountFormatterUseBytes NSByteCountFormatterUnits = 1 NSByteCountFormatterUseKB NSByteCountFormatterUnits = 2 NSByteCountFormatterUseMB NSByteCountFormatterUnits = 4 NSByteCountFormatterUseGB NSByteCountFormatterUnits = 8 NSByteCountFormatterUseTB NSByteCountFormatterUnits = 16 NSByteCountFormatterUsePB NSByteCountFormatterUnits = 32 NSByteCountFormatterUseEB NSByteCountFormatterUnits = 64 NSByteCountFormatterUseZB NSByteCountFormatterUnits = 128 NSByteCountFormatterUseYBOrHigher NSByteCountFormatterUnits = 65280 NSByteCountFormatterUseAll NSByteCountFormatterUnits = 65535 )
func (NSByteCountFormatterUnits) String ¶
func (e NSByteCountFormatterUnits) String() string
type NSCache ¶
A mutable collection you use to temporarily store transient key-value pairs that are subject to eviction when resources are low.
Apple documentation: https://developer.apple.com/documentation/foundation/nscache
func NSCacheFromID ¶
func (*NSCache[KeyType, ObjectType]) CountLimit ¶
func (*NSCache[KeyType, ObjectType]) Delegate ¶
func (o *NSCache[KeyType, ObjectType]) Delegate() NSCacheDelegate
func (*NSCache[KeyType, ObjectType]) EvictsObjectsWithDiscardedContent ¶
func (*NSCache[KeyType, ObjectType]) ObjectForKey ¶
func (o *NSCache[KeyType, ObjectType]) ObjectForKey(key KeyType) ObjectType
Returns the value associated with a given key.
func (*NSCache[KeyType, ObjectType]) RemoveAllObjects ¶
func (o *NSCache[KeyType, ObjectType]) RemoveAllObjects()
Empties the cache.
func (*NSCache[KeyType, ObjectType]) RemoveObjectForKey ¶
func (o *NSCache[KeyType, ObjectType]) RemoveObjectForKey(key KeyType)
Removes the value of the specified key in the cache.
func (*NSCache[KeyType, ObjectType]) SetCountLimit ¶
func (*NSCache[KeyType, ObjectType]) SetDelegate ¶
func (o *NSCache[KeyType, ObjectType]) SetDelegate(delegate NSCacheDelegate)
func (*NSCache[KeyType, ObjectType]) SetEvictsObjectsWithDiscardedContent ¶
func (*NSCache[KeyType, ObjectType]) SetObjectForKey ¶
func (o *NSCache[KeyType, ObjectType]) SetObjectForKey(obj ObjectType, key KeyType)
Sets the value of the specified key in the cache.
func (*NSCache[KeyType, ObjectType]) SetObjectForKeyCost ¶
Sets the value of the specified key in the cache, and associates the key-value pair with the specified cost.
func (*NSCache[KeyType, ObjectType]) SetTotalCostLimit ¶
func (*NSCache[KeyType, ObjectType]) TotalCostLimit ¶
type NSCacheDelegate ¶
type NSCacheDelegate interface {
}
NSCacheDelegate wraps the ObjC protocol NSCacheDelegate.
type NSCachedURLResponse ¶
type NSCachedURLResponse struct {
NSObject
}
A cached response to a URL request.
Apple documentation: https://developer.apple.com/documentation/foundation/nscachedurlresponse
func NSCachedURLResponseFromID ¶
func NSCachedURLResponseFromID(id objc.ID) *NSCachedURLResponse
func (*NSCachedURLResponse) Data ¶
func (o *NSCachedURLResponse) Data() *NSData
@abstract Returns the data of the receiver. @result The data of the receiver.
func (*NSCachedURLResponse) InitWithResponseData ¶
func (o *NSCachedURLResponse) InitWithResponseData(response *NSURLResponse, data *NSData) *NSCachedURLResponse
@method initWithResponse:data @abstract Initializes an NSCachedURLResponse with the given response and data. @discussion A default NSURLCacheStoragePolicy is used for NSCachedURLResponse objects initialized with this method: NSURLCacheStorageAllowed. @param response a NSURLResponse object. @param data an NSData object representing the URL content corresponding to the given response. @result an initialized NSCachedURLResponse.
func (*NSCachedURLResponse) InitWithResponseDataUserInfoStoragePolicy ¶
func (o *NSCachedURLResponse) InitWithResponseDataUserInfoStoragePolicy(response *NSURLResponse, data *NSData, userInfo *NSDictionary[objc.ID, objc.ID], storagePolicy NSURLCacheStoragePolicy) *NSCachedURLResponse
@method initWithResponse:data:userInfo:storagePolicy: @abstract Initializes an NSCachedURLResponse with the given response, data, user-info dictionary, and storage policy. @param response a NSURLResponse object. @param data an NSData object representing the URL content corresponding to the given response. @param userInfo a dictionary user-specified information to be stored with the NSCachedURLResponse. @param storagePolicy an NSURLCacheStoragePolicy constant. @result an initialized NSCachedURLResponse.
func (*NSCachedURLResponse) Response ¶
func (o *NSCachedURLResponse) Response() *NSURLResponse
@abstract Returns the response wrapped by this instance. @result The response wrapped by this instance.
func (*NSCachedURLResponse) StoragePolicy ¶
func (o *NSCachedURLResponse) StoragePolicy() NSURLCacheStoragePolicy
@abstract Returns the NSURLCacheStoragePolicy constant of the receiver. @result The NSURLCacheStoragePolicy constant of the receiver.
func (*NSCachedURLResponse) UserInfo ¶
func (o *NSCachedURLResponse) UserInfo() *NSDictionary[objc.ID, objc.ID]
@abstract Returns the userInfo dictionary of the receiver. @result The userInfo dictionary of the receiver.
type NSCalculationError ¶
type NSCalculationError uint64
const ( NSCalculationNoError NSCalculationError = 0 NSCalculationLossOfPrecision NSCalculationError = 1 NSCalculationUnderflow NSCalculationError = 2 NSCalculationOverflow NSCalculationError = 3 NSCalculationDivideByZero NSCalculationError = 4 )
func NSDecimalAdd ¶
func NSDecimalAdd(result *NSDecimal, leftOperand *NSDecimal, rightOperand *NSDecimal, roundingMode NSRoundingMode) NSCalculationError
func NSDecimalDivide ¶
func NSDecimalDivide(result *NSDecimal, leftOperand *NSDecimal, rightOperand *NSDecimal, roundingMode NSRoundingMode) NSCalculationError
func NSDecimalMultiply ¶
func NSDecimalMultiply(result *NSDecimal, leftOperand *NSDecimal, rightOperand *NSDecimal, roundingMode NSRoundingMode) NSCalculationError
func NSDecimalMultiplyByPowerOf10 ¶
func NSDecimalMultiplyByPowerOf10(result *NSDecimal, number *NSDecimal, power int16, roundingMode NSRoundingMode) NSCalculationError
func NSDecimalNormalize ¶
func NSDecimalNormalize(number1 *NSDecimal, number2 *NSDecimal, roundingMode NSRoundingMode) NSCalculationError
func NSDecimalPower ¶
func NSDecimalPower(result *NSDecimal, number *NSDecimal, power uint, roundingMode NSRoundingMode) NSCalculationError
func NSDecimalSubtract ¶
func NSDecimalSubtract(result *NSDecimal, leftOperand *NSDecimal, rightOperand *NSDecimal, roundingMode NSRoundingMode) NSCalculationError
func (NSCalculationError) String ¶
func (e NSCalculationError) String() string
type NSCalendar ¶
type NSCalendar struct {
NSObject
}
A definition of the relationships between calendar units and absolute points in time, providing features for calculation and comparison of dates.
Apple documentation: https://developer.apple.com/documentation/foundation/nscalendar Deprecated: since macOS 10.10.
func NSCalendarAutoupdatingCurrentCalendar ¶
func NSCalendarAutoupdatingCurrentCalendar() *NSCalendar
func NSCalendarCalendarWithIdentifier ¶
func NSCalendarCalendarWithIdentifier(calendarIdentifierConstant *NSString) *NSCalendar
Creates a new calendar specified by a given identifier.
func NSCalendarCurrentCalendar ¶
func NSCalendarCurrentCalendar() *NSCalendar
func NSCalendarFromID ¶
func NSCalendarFromID(id objc.ID) *NSCalendar
func (*NSCalendar) AMSymbol ¶
func (o *NSCalendar) AMSymbol() *NSString
func (*NSCalendar) CalendarIdentifier ¶
func (o *NSCalendar) CalendarIdentifier() *NSString
func (*NSCalendar) CompareDateToDateToUnitGranularity ¶
func (o *NSCalendar) CompareDateToDateToUnitGranularity(date1 *NSDate, date2 *NSDate, unit NSCalendarUnit) NSComparisonResult
Indicates the ordering of two given dates based on their components down to a given unit granularity.
func (*NSCalendar) ComponentFromDate ¶
func (o *NSCalendar) ComponentFromDate(unit NSCalendarUnit, date *NSDate) int
Returns the specified date component from a given date.
func (*NSCalendar) ComponentsFromDate ¶
func (o *NSCalendar) ComponentsFromDate(unitFlags NSCalendarUnit, date *NSDate) *NSDateComponents
Returns the date components representing a given date.
func (*NSCalendar) ComponentsFromDateComponentsToDateComponentsOptions ¶
func (o *NSCalendar) ComponentsFromDateComponentsToDateComponentsOptions(unitFlags NSCalendarUnit, startingDateComp *NSDateComponents, resultDateComp *NSDateComponents, options NSCalendarOptions) *NSDateComponents
Returns the difference between start and end dates given as date components.
func (*NSCalendar) ComponentsFromDateToDateOptions ¶
func (o *NSCalendar) ComponentsFromDateToDateOptions(unitFlags NSCalendarUnit, startingDate *NSDate, resultDate *NSDate, opts NSCalendarOptions) *NSDateComponents
Returns the difference between two supplied dates as date components.
func (*NSCalendar) ComponentsInTimeZoneFromDate ¶
func (o *NSCalendar) ComponentsInTimeZoneFromDate(timezone *NSTimeZone, date *NSDate) *NSDateComponents
Returns all the date components of a date, as if in a given time zone (instead of the receiving calendar’s time zone).
func (*NSCalendar) DateByAddingComponentsToDateOptions ¶
func (o *NSCalendar) DateByAddingComponentsToDateOptions(comps *NSDateComponents, date *NSDate, opts NSCalendarOptions) *NSDate
Returns a date representing the absolute time calculated by adding given components to a given date.
func (*NSCalendar) DateByAddingUnitValueToDateOptions ¶
func (o *NSCalendar) DateByAddingUnitValueToDateOptions(unit NSCalendarUnit, value int, date *NSDate, options NSCalendarOptions) *NSDate
Returns a date representing the absolute time calculated by adding the value of a given component to a given date.
func (*NSCalendar) DateBySettingHourMinuteSecondOfDateOptions ¶
func (o *NSCalendar) DateBySettingHourMinuteSecondOfDateOptions(h int, m int, s int, date *NSDate, opts NSCalendarOptions) *NSDate
Creates a new date calculated with the given time.
func (*NSCalendar) DateBySettingUnitValueOfDateOptions ¶
func (o *NSCalendar) DateBySettingUnitValueOfDateOptions(unit NSCalendarUnit, v int, date *NSDate, opts NSCalendarOptions) *NSDate
Returns a new date representing the date calculated by setting a specific component of a given date to a given value, while trying to keep lower components the same.
func (*NSCalendar) DateFromComponents ¶
func (o *NSCalendar) DateFromComponents(comps *NSDateComponents) *NSDate
Returns a date representing the absolute time calculated from given components.
func (*NSCalendar) DateMatchesComponents ¶
func (o *NSCalendar) DateMatchesComponents(date *NSDate, components *NSDateComponents) bool
Returns whether a given date matches all of the given date components.
func (*NSCalendar) DateWithEraYearForWeekOfYearWeekOfYearWeekdayHourMinuteSecondNanosecond ¶
func (o *NSCalendar) DateWithEraYearForWeekOfYearWeekOfYearWeekdayHourMinuteSecondNanosecond(eraValue int, yearValue int, weekValue int, weekdayValue int, hourValue int, minuteValue int, secondValue int, nanosecondValue int) *NSDate
Returns a new date created with the given components base on a week-of-year value.
func (*NSCalendar) DateWithEraYearMonthDayHourMinuteSecondNanosecond ¶
func (o *NSCalendar) DateWithEraYearMonthDayHourMinuteSecondNanosecond(eraValue int, yearValue int, monthValue int, dayValue int, hourValue int, minuteValue int, secondValue int, nanosecondValue int) *NSDate
Returns a date created with the given components.
func (*NSCalendar) EnumerateDatesStartingAfterDateMatchingComponentsOptionsUsing ¶
func (o *NSCalendar) EnumerateDatesStartingAfterDateMatchingComponentsOptionsUsing(start *NSDate, comps *NSDateComponents, opts NSCalendarOptions, block func(*NSDate, bool, *bool))
Computes the dates that match (or most closely match) a given set of components, and calls the block once for each of them, until the enumeration is stopped.
func (*NSCalendar) EraSymbols ¶
func (o *NSCalendar) EraSymbols() *NSArray[*NSString]
func (*NSCalendar) FirstWeekday ¶
func (o *NSCalendar) FirstWeekday() uint
func (*NSCalendar) GetEraYearForWeekOfYearWeekOfYearWeekdayFromDate ¶
func (o *NSCalendar) GetEraYearForWeekOfYearWeekOfYearWeekdayFromDate(eraValuePointer *int64, yearValuePointer *int64, weekValuePointer *int64, weekdayValuePointer *int64, date *NSDate)
Returns by reference the era, year, week of year, and weekday component values for a given date.
func (*NSCalendar) GetEraYearMonthDayFromDate ¶
func (o *NSCalendar) GetEraYearMonthDayFromDate(eraValuePointer *int64, yearValuePointer *int64, monthValuePointer *int64, dayValuePointer *int64, date *NSDate)
Returns by reference the era, year, week of year, and weekday component values for a given date.
func (*NSCalendar) GetHourMinuteSecondNanosecondFromDate ¶
func (o *NSCalendar) GetHourMinuteSecondNanosecondFromDate(hourValuePointer *int64, minuteValuePointer *int64, secondValuePointer *int64, nanosecondValuePointer *int64, date *NSDate)
Returns by reference the hour, minute, second, and nanosecond component values for a given date.
func (*NSCalendar) InitWithCalendarIdentifier ¶
func (o *NSCalendar) InitWithCalendarIdentifier(ident *NSString) objc.ID
Initializes a calendar according to a given identifier.
func (*NSCalendar) IsDateEqualToDateToUnitGranularity ¶
func (o *NSCalendar) IsDateEqualToDateToUnitGranularity(date1 *NSDate, date2 *NSDate, unit NSCalendarUnit) bool
Indicates whether two dates are equal to a given unit of granularity.
func (*NSCalendar) IsDateInSameDayAsDate ¶
func (o *NSCalendar) IsDateInSameDayAsDate(date1 *NSDate, date2 *NSDate) bool
Indicates whether two dates are in the same day.
func (*NSCalendar) IsDateInToday ¶
func (o *NSCalendar) IsDateInToday(date *NSDate) bool
Indicates whether the given date is in “today.”
func (*NSCalendar) IsDateInTomorrow ¶
func (o *NSCalendar) IsDateInTomorrow(date *NSDate) bool
Indicates whether the given date is in “tomorrow.”
func (*NSCalendar) IsDateInWeekend ¶
func (o *NSCalendar) IsDateInWeekend(date *NSDate) bool
Indicates whether a given date falls within a weekend period, as defined by the calendar and the calendar’s locale.
func (*NSCalendar) IsDateInYesterday ¶
func (o *NSCalendar) IsDateInYesterday(date *NSDate) bool
Indicates whether the given date is in “yesterday.”
func (*NSCalendar) Locale ¶
func (o *NSCalendar) Locale() *NSLocale
func (*NSCalendar) LongEraSymbols ¶
func (o *NSCalendar) LongEraSymbols() *NSArray[*NSString]
func (*NSCalendar) MaximumRangeOfUnit ¶
func (o *NSCalendar) MaximumRangeOfUnit(unit NSCalendarUnit) NSRange
Returns the maximum range limits of the values that a given unit can take on.
func (*NSCalendar) MinimumDaysInFirstWeek ¶
func (o *NSCalendar) MinimumDaysInFirstWeek() uint
func (*NSCalendar) MinimumRangeOfUnit ¶
func (o *NSCalendar) MinimumRangeOfUnit(unit NSCalendarUnit) NSRange
Returns the minimum range limits of the values that a given unit can take on.
func (*NSCalendar) MonthSymbols ¶
func (o *NSCalendar) MonthSymbols() *NSArray[*NSString]
func (*NSCalendar) NextDateAfterDateMatchingComponentsOptions ¶
func (o *NSCalendar) NextDateAfterDateMatchingComponentsOptions(date *NSDate, comps *NSDateComponents, options NSCalendarOptions) *NSDate
Returns the next date after a given date matching the given components.
func (*NSCalendar) NextDateAfterDateMatchingHourMinuteSecondOptions ¶
func (o *NSCalendar) NextDateAfterDateMatchingHourMinuteSecondOptions(date *NSDate, hourValue int, minuteValue int, secondValue int, options NSCalendarOptions) *NSDate
Returns the next date after a given date that matches the given hour, minute, and second, component values.
func (*NSCalendar) NextDateAfterDateMatchingUnitValueOptions ¶
func (o *NSCalendar) NextDateAfterDateMatchingUnitValueOptions(date *NSDate, unit NSCalendarUnit, value int, options NSCalendarOptions) *NSDate
Returns the next date after a given date matching the given calendar unit value.
func (*NSCalendar) NextWeekendStartDateIntervalOptionsAfterDate ¶
func (o *NSCalendar) NextWeekendStartDateIntervalOptionsAfterDate(datep *NSDate, tip *float64, options NSCalendarOptions, date *NSDate) bool
Returns by reference the starting date and time interval range of the next weekend period after a given date.
func (*NSCalendar) OrdinalityOfUnitInUnitForDate ¶
func (o *NSCalendar) OrdinalityOfUnitInUnitForDate(smaller NSCalendarUnit, larger NSCalendarUnit, date *NSDate) uint
Returns, for a given absolute time, the ordinal number of a smaller calendar unit (such as a day) within a specified larger calendar unit (such as a week).
func (*NSCalendar) PMSymbol ¶
func (o *NSCalendar) PMSymbol() *NSString
func (*NSCalendar) QuarterSymbols ¶
func (o *NSCalendar) QuarterSymbols() *NSArray[*NSString]
func (*NSCalendar) RangeOfUnitInUnitForDate ¶
func (o *NSCalendar) RangeOfUnitInUnitForDate(smaller NSCalendarUnit, larger NSCalendarUnit, date *NSDate) NSRange
Returns the range of absolute time values that a smaller calendar unit (such as a day) can take on in a larger calendar unit (such as a month) that includes a specified absolute time.
func (*NSCalendar) RangeOfUnitStartDateIntervalForDate ¶
func (o *NSCalendar) RangeOfUnitStartDateIntervalForDate(unit NSCalendarUnit, datep *NSDate, tip *float64, date *NSDate) bool
Returns by reference the starting time and duration of a given calendar unit that contains a given date.
func (*NSCalendar) RangeOfWeekendStartDateIntervalContainingDate ¶
func (o *NSCalendar) RangeOfWeekendStartDateIntervalContainingDate(datep *NSDate, tip *float64, date *NSDate) bool
Returns whether a given date falls within a weekend period, and if so, returns by reference the start date and time interval of the weekend range.
func (*NSCalendar) SetFirstWeekday ¶
func (o *NSCalendar) SetFirstWeekday(firstWeekday uint)
func (*NSCalendar) SetLocale ¶
func (o *NSCalendar) SetLocale(locale *NSLocale)
func (*NSCalendar) SetMinimumDaysInFirstWeek ¶
func (o *NSCalendar) SetMinimumDaysInFirstWeek(minimumDaysInFirstWeek uint)
func (*NSCalendar) SetTimeZone ¶
func (o *NSCalendar) SetTimeZone(timeZone *NSTimeZone)
func (*NSCalendar) ShortMonthSymbols ¶
func (o *NSCalendar) ShortMonthSymbols() *NSArray[*NSString]
func (*NSCalendar) ShortQuarterSymbols ¶
func (o *NSCalendar) ShortQuarterSymbols() *NSArray[*NSString]
func (*NSCalendar) ShortStandaloneMonthSymbols ¶
func (o *NSCalendar) ShortStandaloneMonthSymbols() *NSArray[*NSString]
func (*NSCalendar) ShortStandaloneQuarterSymbols ¶
func (o *NSCalendar) ShortStandaloneQuarterSymbols() *NSArray[*NSString]
func (*NSCalendar) ShortStandaloneWeekdaySymbols ¶
func (o *NSCalendar) ShortStandaloneWeekdaySymbols() *NSArray[*NSString]
func (*NSCalendar) ShortWeekdaySymbols ¶
func (o *NSCalendar) ShortWeekdaySymbols() *NSArray[*NSString]
func (*NSCalendar) StandaloneMonthSymbols ¶
func (o *NSCalendar) StandaloneMonthSymbols() *NSArray[*NSString]
func (*NSCalendar) StandaloneQuarterSymbols ¶
func (o *NSCalendar) StandaloneQuarterSymbols() *NSArray[*NSString]
func (*NSCalendar) StandaloneWeekdaySymbols ¶
func (o *NSCalendar) StandaloneWeekdaySymbols() *NSArray[*NSString]
func (*NSCalendar) StartOfDayForDate ¶
func (o *NSCalendar) StartOfDayForDate(date *NSDate) *NSDate
Returns the first moment of a given date as a date instance.
func (*NSCalendar) TimeZone ¶
func (o *NSCalendar) TimeZone() *NSTimeZone
func (*NSCalendar) VeryShortMonthSymbols ¶
func (o *NSCalendar) VeryShortMonthSymbols() *NSArray[*NSString]
func (*NSCalendar) VeryShortStandaloneMonthSymbols ¶
func (o *NSCalendar) VeryShortStandaloneMonthSymbols() *NSArray[*NSString]
func (*NSCalendar) VeryShortStandaloneWeekdaySymbols ¶
func (o *NSCalendar) VeryShortStandaloneWeekdaySymbols() *NSArray[*NSString]
func (*NSCalendar) VeryShortWeekdaySymbols ¶
func (o *NSCalendar) VeryShortWeekdaySymbols() *NSArray[*NSString]
func (*NSCalendar) WeekdaySymbols ¶
func (o *NSCalendar) WeekdaySymbols() *NSArray[*NSString]
type NSCalendarDate ¶
type NSCalendarDate struct {
NSDate
}
A specialized date object with embedded calendar information.
Apple documentation: https://developer.apple.com/documentation/foundation/nscalendardate Deprecated: Use NSCalendar and NSDateComponents and NSDateFormatter instead
func NSCalendarDateDistantFuture
deprecated
func NSCalendarDateDistantFuture() *NSCalendarDate
Deprecated: since macOS 10.10.
func NSCalendarDateDistantPast
deprecated
func NSCalendarDateDistantPast() *NSCalendarDate
Deprecated: since macOS 10.10.
func NSCalendarDateFromID ¶
func NSCalendarDateFromID(id objc.ID) *NSCalendarDate
func (*NSCalendarDate) CalendarFormat
deprecated
func (o *NSCalendarDate) CalendarFormat() *NSString
Deprecated: since macOS 10.10.
func (*NSCalendarDate) DateByAddingYearsMonthsDaysHoursMinutesSeconds
deprecated
func (o *NSCalendarDate) DateByAddingYearsMonthsDaysHoursMinutesSeconds(year int, month int, day int, hour int, minute int, second int) *NSCalendarDate
Deprecated: Use NSCalendar instead
func (*NSCalendarDate) DayOfCommonEra
deprecated
func (o *NSCalendarDate) DayOfCommonEra() int
Deprecated: since macOS 10.10.
func (*NSCalendarDate) DayOfMonth
deprecated
func (o *NSCalendarDate) DayOfMonth() int
Deprecated: since macOS 10.10.
func (*NSCalendarDate) DayOfWeek
deprecated
func (o *NSCalendarDate) DayOfWeek() int
Deprecated: since macOS 10.10.
func (*NSCalendarDate) DayOfYear
deprecated
func (o *NSCalendarDate) DayOfYear() int
Deprecated: since macOS 10.10.
func (*NSCalendarDate) DescriptionWithCalendarFormat
deprecated
func (o *NSCalendarDate) DescriptionWithCalendarFormat(format *NSString) *NSString
Deprecated: since macOS 10.10.
func (*NSCalendarDate) DescriptionWithCalendarFormatLocale
deprecated
func (o *NSCalendarDate) DescriptionWithCalendarFormatLocale(format *NSString, locale objc.ID) *NSString
Deprecated: since macOS 10.10.
func (*NSCalendarDate) HourOfDay
deprecated
func (o *NSCalendarDate) HourOfDay() int
Deprecated: since macOS 10.10.
func (*NSCalendarDate) InitWithString
deprecated
func (o *NSCalendarDate) InitWithString(description *NSString) objc.ID
Deprecated: Use NSDateFormatter instead
func (*NSCalendarDate) InitWithStringCalendarFormat
deprecated
func (o *NSCalendarDate) InitWithStringCalendarFormat(description *NSString, format *NSString) objc.ID
Deprecated: Use NSDateFormatter instead
func (*NSCalendarDate) InitWithStringCalendarFormatLocale
deprecated
func (*NSCalendarDate) InitWithYearMonthDayHourMinuteSecondTimeZone
deprecated
func (o *NSCalendarDate) InitWithYearMonthDayHourMinuteSecondTimeZone(year int, month uint, day uint, hour uint, minute uint, second uint, aTimeZone *NSTimeZone) objc.ID
Deprecated: Use NSCalendar and NSDateComponents instead
func (*NSCalendarDate) MinuteOfHour
deprecated
func (o *NSCalendarDate) MinuteOfHour() int
Deprecated: since macOS 10.10.
func (*NSCalendarDate) MonthOfYear
deprecated
func (o *NSCalendarDate) MonthOfYear() int
Deprecated: since macOS 10.10.
func (*NSCalendarDate) SecondOfMinute
deprecated
func (o *NSCalendarDate) SecondOfMinute() int
Deprecated: since macOS 10.10.
func (*NSCalendarDate) SetCalendarFormat
deprecated
func (o *NSCalendarDate) SetCalendarFormat(format *NSString)
Deprecated: since macOS 10.10.
func (*NSCalendarDate) SetTimeZone
deprecated
func (o *NSCalendarDate) SetTimeZone(aTimeZone *NSTimeZone)
Deprecated: since macOS 10.10.
func (*NSCalendarDate) TimeZone
deprecated
func (o *NSCalendarDate) TimeZone() *NSTimeZone
Deprecated: since macOS 10.10.
func (*NSCalendarDate) YearOfCommonEra
deprecated
func (o *NSCalendarDate) YearOfCommonEra() int
Deprecated: since macOS 10.10.
func (*NSCalendarDate) YearsMonthsDaysHoursMinutesSecondsSinceDate
deprecated
func (o *NSCalendarDate) YearsMonthsDaysHoursMinutesSecondsSinceDate(yp *int64, mop *int64, dp *int64, hp *int64, mip *int64, sp *int64, date *NSCalendarDate)
Deprecated: since macOS 10.10.
type NSCalendarOptions ¶
type NSCalendarOptions uint64
The options for arithmetic operations involving calendars.
const ( NSCalendarWrapComponents NSCalendarOptions = 1 NSCalendarMatchStrictly NSCalendarOptions = 2 NSCalendarSearchBackwards NSCalendarOptions = 4 NSCalendarMatchPreviousTimePreservingSmallerUnits NSCalendarOptions = 256 NSCalendarMatchNextTimePreservingSmallerUnits NSCalendarOptions = 512 NSCalendarMatchNextTime NSCalendarOptions = 1024 NSCalendarMatchFirst NSCalendarOptions = 4096 NSCalendarMatchLast NSCalendarOptions = 8192 )
func (NSCalendarOptions) String ¶
func (e NSCalendarOptions) String() string
type NSCalendarUnit ¶
type NSCalendarUnit uint64
Calendrical units such as year, month, day and hour.
const ( NSCalendarUnitEra NSCalendarUnit = 2 NSCalendarUnitYear NSCalendarUnit = 4 NSCalendarUnitMonth NSCalendarUnit = 8 NSCalendarUnitDay NSCalendarUnit = 16 NSCalendarUnitHour NSCalendarUnit = 32 NSCalendarUnitMinute NSCalendarUnit = 64 NSCalendarUnitSecond NSCalendarUnit = 128 NSCalendarUnitWeekday NSCalendarUnit = 512 NSCalendarUnitWeekdayOrdinal NSCalendarUnit = 1024 NSCalendarUnitQuarter NSCalendarUnit = 2048 NSCalendarUnitWeekOfMonth NSCalendarUnit = 4096 NSCalendarUnitWeekOfYear NSCalendarUnit = 8192 NSCalendarUnitYearForWeekOfYear NSCalendarUnit = 16384 NSCalendarUnitNanosecond NSCalendarUnit = 32768 NSCalendarUnitDayOfYear NSCalendarUnit = 65536 NSCalendarUnitCalendar NSCalendarUnit = 1048576 NSCalendarUnitTimeZone NSCalendarUnit = 2097152 NSCalendarUnitIsLeapMonth NSCalendarUnit = 1073741824 NSCalendarUnitIsRepeatedDay NSCalendarUnit = 2147483648 NSEraCalendarUnit NSCalendarUnit = 2 NSYearCalendarUnit NSCalendarUnit = 4 NSMonthCalendarUnit NSCalendarUnit = 8 NSDayCalendarUnit NSCalendarUnit = 16 NSHourCalendarUnit NSCalendarUnit = 32 NSMinuteCalendarUnit NSCalendarUnit = 64 NSSecondCalendarUnit NSCalendarUnit = 128 NSWeekCalendarUnit NSCalendarUnit = 256 NSWeekdayCalendarUnit NSCalendarUnit = 512 NSWeekdayOrdinalCalendarUnit NSCalendarUnit = 1024 NSQuarterCalendarUnit NSCalendarUnit = 2048 NSWeekOfMonthCalendarUnit NSCalendarUnit = 4096 NSWeekOfYearCalendarUnit NSCalendarUnit = 8192 NSYearForWeekOfYearCalendarUnit NSCalendarUnit = 16384 NSCalendarCalendarUnit NSCalendarUnit = 1048576 NSTimeZoneCalendarUnit NSCalendarUnit = 2097152 )
func (NSCalendarUnit) String ¶
func (e NSCalendarUnit) String() string
type NSCharacterSet ¶
type NSCharacterSet struct {
NSObject
}
An object representing a fixed set of Unicode character values for use in search operations.
Apple documentation: https://developer.apple.com/documentation/foundation/nscharacterset
func NSCharacterSetAlphanumericCharacterSet ¶
func NSCharacterSetAlphanumericCharacterSet() *NSCharacterSet
func NSCharacterSetCapitalizedLetterCharacterSet ¶
func NSCharacterSetCapitalizedLetterCharacterSet() *NSCharacterSet
func NSCharacterSetCharacterSetWithBitmapRepresentation ¶
func NSCharacterSetCharacterSetWithBitmapRepresentation(data *NSData) *NSCharacterSet
Returns a character set containing characters determined by a given bitmap representation.
func NSCharacterSetCharacterSetWithCharactersInString ¶
func NSCharacterSetCharacterSetWithCharactersInString(aString *NSString) *NSCharacterSet
Returns a character set containing the characters in a given string.
func NSCharacterSetCharacterSetWithContentsOfFile ¶
func NSCharacterSetCharacterSetWithContentsOfFile(fName *NSString) *NSCharacterSet
Returns a character set read from the bitmap representation stored in the file a given path.
func NSCharacterSetCharacterSetWithRange ¶
func NSCharacterSetCharacterSetWithRange(aRange NSRange) *NSCharacterSet
Returns a character set containing characters with Unicode values in a given range.
func NSCharacterSetControlCharacterSet ¶
func NSCharacterSetControlCharacterSet() *NSCharacterSet
func NSCharacterSetDecimalDigitCharacterSet ¶
func NSCharacterSetDecimalDigitCharacterSet() *NSCharacterSet
func NSCharacterSetDecomposableCharacterSet ¶
func NSCharacterSetDecomposableCharacterSet() *NSCharacterSet
func NSCharacterSetFromID ¶
func NSCharacterSetFromID(id objc.ID) *NSCharacterSet
func NSCharacterSetIllegalCharacterSet ¶
func NSCharacterSetIllegalCharacterSet() *NSCharacterSet
func NSCharacterSetLetterCharacterSet ¶
func NSCharacterSetLetterCharacterSet() *NSCharacterSet
func NSCharacterSetLowercaseLetterCharacterSet ¶
func NSCharacterSetLowercaseLetterCharacterSet() *NSCharacterSet
func NSCharacterSetNewlineCharacterSet ¶
func NSCharacterSetNewlineCharacterSet() *NSCharacterSet
func NSCharacterSetNonBaseCharacterSet ¶
func NSCharacterSetNonBaseCharacterSet() *NSCharacterSet
func NSCharacterSetPunctuationCharacterSet ¶
func NSCharacterSetPunctuationCharacterSet() *NSCharacterSet
func NSCharacterSetSymbolCharacterSet ¶
func NSCharacterSetSymbolCharacterSet() *NSCharacterSet
func NSCharacterSetURLFragmentAllowedCharacterSet ¶
func NSCharacterSetURLFragmentAllowedCharacterSet() *NSCharacterSet
func NSCharacterSetURLHostAllowedCharacterSet ¶
func NSCharacterSetURLHostAllowedCharacterSet() *NSCharacterSet
func NSCharacterSetURLPasswordAllowedCharacterSet ¶
func NSCharacterSetURLPasswordAllowedCharacterSet() *NSCharacterSet
func NSCharacterSetURLPathAllowedCharacterSet ¶
func NSCharacterSetURLPathAllowedCharacterSet() *NSCharacterSet
func NSCharacterSetURLQueryAllowedCharacterSet ¶
func NSCharacterSetURLQueryAllowedCharacterSet() *NSCharacterSet
func NSCharacterSetURLUserAllowedCharacterSet ¶
func NSCharacterSetURLUserAllowedCharacterSet() *NSCharacterSet
func NSCharacterSetUppercaseLetterCharacterSet ¶
func NSCharacterSetUppercaseLetterCharacterSet() *NSCharacterSet
func NSCharacterSetWhitespaceAndNewlineCharacterSet ¶
func NSCharacterSetWhitespaceAndNewlineCharacterSet() *NSCharacterSet
func NSCharacterSetWhitespaceCharacterSet ¶
func NSCharacterSetWhitespaceCharacterSet() *NSCharacterSet
func (*NSCharacterSet) BitmapRepresentation ¶
func (o *NSCharacterSet) BitmapRepresentation() *NSData
func (*NSCharacterSet) CharacterIsMember ¶
func (o *NSCharacterSet) CharacterIsMember(aCharacter uint16) bool
Returns a Boolean value that indicates whether a given character is in the receiver.
func (*NSCharacterSet) HasMemberInPlane ¶
func (o *NSCharacterSet) HasMemberInPlane(thePlane uint8) bool
Returns a Boolean value that indicates whether the receiver has at least one member in a given character plane.
func (*NSCharacterSet) InitWithCoder ¶
func (o *NSCharacterSet) InitWithCoder(coder *NSCoder) *NSCharacterSet
func (*NSCharacterSet) InvertedSet ¶
func (o *NSCharacterSet) InvertedSet() *NSCharacterSet
func (*NSCharacterSet) IsSupersetOfSet ¶
func (o *NSCharacterSet) IsSupersetOfSet(theOtherSet *NSCharacterSet) bool
Returns a Boolean value that indicates whether the receiver is a superset of another given character set.
func (*NSCharacterSet) LongCharacterIsMember ¶
func (o *NSCharacterSet) LongCharacterIsMember(theLongChar uint) bool
Returns a Boolean value that indicates whether a given long character is a member of the receiver.
type NSClassDescription ¶
type NSClassDescription struct {
NSObject
}
An abstract class that provides the interface for querying the relationships and properties of a class.
Apple documentation: https://developer.apple.com/documentation/foundation/nsclassdescription
func NSClassDescriptionClassDescriptionForClass ¶
func NSClassDescriptionClassDescriptionForClass(aClass objc.Class) *NSClassDescription
Returns the class description for a given class.
func NSClassDescriptionFromID ¶
func NSClassDescriptionFromID(id objc.ID) *NSClassDescription
type NSCloneCommand ¶
type NSCloneCommand struct {
NSScriptCommand
}
A command that clones one or more scriptable objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nsclonecommand
func NSCloneCommandFromID ¶
func NSCloneCommandFromID(id objc.ID) *NSCloneCommand
func (*NSCloneCommand) KeySpecifier ¶
func (o *NSCloneCommand) KeySpecifier() *NSScriptObjectSpecifier
type NSCloseCommand ¶
type NSCloseCommand struct {
NSScriptCommand
}
A command that closes one or more scriptable objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nsclosecommand
func NSCloseCommandFromID ¶
func NSCloseCommandFromID(id objc.ID) *NSCloseCommand
func (*NSCloseCommand) SaveOptions ¶
func (o *NSCloseCommand) SaveOptions() NSSaveOptions
type NSCoder ¶
type NSCoder struct {
NSObject
}
An abstract class that serves as the basis for objects that enable archiving and distribution of other objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nscoder
func NSCoderFromID ¶
func (*NSCoder) AllowsKeyedCoding ¶
func (*NSCoder) ContainsValueForKey ¶
Returns a Boolean value that indicates whether an encoded value is available for a string.
func (*NSCoder) DecodeArrayOfObjCTypeCountAt ¶
Decodes an array of count items, whose Objective-C type is given by itemType.
func (*NSCoder) DecodeArrayOfObjectsOfClassForKey ¶
func (o *NSCoder) DecodeArrayOfObjectsOfClassForKey(cls objc.Class, key *NSString) *NSArray[objc.ID]
Decodes the \c NSArray object for the given \c key, which should be an \c NSArray, containing the given non-collection class (no nested arrays or arrays of dictionaries, etc) from the coder.
func (*NSCoder) DecodeArrayOfObjectsOfClassesForKey ¶
func (o *NSCoder) DecodeArrayOfObjectsOfClassesForKey(classes *NSSet[objc.Class], key *NSString) *NSArray[objc.ID]
Decodes the \c NSArray object for the given \c key, which should be an \c NSArray, containing the given non-collection classes (no nested arrays or arrays of dictionaries, etc) from the coder.
func (*NSCoder) DecodeBoolForKey ¶
Decodes and returns a boolean value that was previously encoded with encodeBool:forKey: and associated with the string key.
func (*NSCoder) DecodeBytesForKeyMinimumLength ¶
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 ¶
Decodes a buffer of data that was previously encoded with encodeBytes:length:forKey: and associated with the string key.
func (*NSCoder) DecodeBytesWithMinimumLength ¶
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 ¶
Decodes a buffer of data whose types are unspecified.
func (*NSCoder) DecodeDataObject ¶
Decodes and returns an NSData object that was previously encoded with encodeDataObject:. Subclasses must override this method.
func (*NSCoder) DecodeDictionaryWithKeysOfClassObjectsOfClassForKey ¶
func (o *NSCoder) DecodeDictionaryWithKeysOfClassObjectsOfClassForKey(keyCls objc.Class, objectCls objc.Class, key *NSString) *NSDictionary[objc.ID, objc.ID]
Decodes the \c NSDictionary object for the given \c key, which should be an \c NSDictionary<keyCls,objectCls> , with keys of type given in \c keyCls and objects of the given non-collection class \c objectCls (no nested dictionaries or other dictionaries contained in the dictionary, etc) from the coder.
func (*NSCoder) DecodeDictionaryWithKeysOfClassesObjectsOfClassesForKey ¶
func (o *NSCoder) DecodeDictionaryWithKeysOfClassesObjectsOfClassesForKey(keyClasses *NSSet[objc.Class], objectClasses *NSSet[objc.Class], key *NSString) *NSDictionary[objc.ID, objc.ID]
Decodes the \c NSDictionary object for the given \c key, which should be an \c NSDictionary, with keys of the types given in \c keyClasses and objects of the given non-collection classes in \c objectClasses (no nested dictionaries or other dictionaries contained in the dictionary, etc) from the given coder.
func (*NSCoder) DecodeDoubleForKey ¶
Decodes and returns a double value that was previously encoded with either encodeFloat:forKey: or encodeDouble:forKey: and associated with the string key.
func (*NSCoder) DecodeFloatForKey ¶
Decodes and returns a float value that was previously encoded with encodeFloat:forKey: or encodeDouble:forKey: and associated with the string key.
func (*NSCoder) DecodeInt32ForKey ¶
Decodes and returns a 32-bit integer value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key.
func (*NSCoder) DecodeInt64ForKey ¶
Decodes and returns a 64-bit integer value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key.
func (*NSCoder) DecodeIntForKey ¶
Decodes and returns an int value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key.
func (*NSCoder) DecodeIntegerForKey ¶
Decodes and returns an NSInteger value that was previously encoded with encodeInt:forKey:, encodeInteger:forKey:, encodeInt32:forKey:, or encodeInt64:forKey: and associated with the string key.
func (*NSCoder) DecodeNXObject ¶
Decodes an object previously written with encodeNXObject:. Deprecated: Not supported
func (*NSCoder) DecodeObject ¶
Decodes and returns an object that was previously encoded with any of the encode…Object methods.
func (*NSCoder) DecodeObjectForKey ¶
Decodes and returns a previously-encoded object that was previously encoded with encodeObject:forKey: or encodeConditionalObject:forKey: and associated with the string key.
func (*NSCoder) DecodeObjectOfClassForKey ¶
Decodes an object for the key, restricted to the specified class.
func (*NSCoder) DecodeObjectOfClassesForKey ¶
Decodes an object for the key, restricted to the specified classes.
func (*NSCoder) DecodePoint ¶
func (o *NSCoder) DecodePoint() corefoundation.CGPoint
Decodes and returns an NSPoint structure that was previously encoded with encodePoint:.
func (*NSCoder) DecodePointForKey ¶
func (o *NSCoder) DecodePointForKey(key *NSString) corefoundation.CGPoint
Decodes and returns an NSPoint structure that was previously encoded with encodePoint:forKey:.
func (*NSCoder) DecodePropertyList ¶
Decodes a property list that was previously encoded with encodePropertyList:.
func (*NSCoder) DecodePropertyListForKey ¶
Returns a decoded property list for the specified key.
func (*NSCoder) DecodeRect ¶
func (o *NSCoder) DecodeRect() corefoundation.CGRect
Decodes and returns an NSRect structure that was previously encoded with encodeRect:.
func (*NSCoder) DecodeRectForKey ¶
func (o *NSCoder) DecodeRectForKey(key *NSString) corefoundation.CGRect
Decodes and returns an NSRect structure that was previously encoded with encodeRect:forKey:.
func (*NSCoder) DecodeSize ¶
func (o *NSCoder) DecodeSize() corefoundation.CGSize
Decodes and returns an NSSize structure that was previously encoded with encodeSize:.
func (*NSCoder) DecodeSizeForKey ¶
func (o *NSCoder) DecodeSizeForKey(key *NSString) corefoundation.CGSize
Decodes and returns an NSSize structure that was previously encoded with encodeSize:forKey:.
func (*NSCoder) DecodeTopLevelObjectAndReturnError ¶
Decodes a previously-encoded object, populating an error if decoding fails.
func (*NSCoder) DecodeTopLevelObjectForKeyError ¶
Decodes the previously-encoded object associated by a key, populating an error if decoding fails.
func (*NSCoder) DecodeTopLevelObjectOfClassForKeyError ¶
func (o *NSCoder) DecodeTopLevelObjectOfClassForKeyError(aClass objc.Class, key *NSString) (objc.ID, error)
Decode an object as an expected type, failing if the archived type does not match.
func (*NSCoder) DecodeTopLevelObjectOfClassesForKeyError ¶
func (o *NSCoder) DecodeTopLevelObjectOfClassesForKeyError(classes *NSSet[objc.Class], key *NSString) (objc.ID, error)
Decode an object as one of several expected types, failing if the archived type does not match.
func (*NSCoder) DecodeValueOfObjCTypeAt ¶
Decodes a single value, whose Objective-C type is given by valueType. Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSCoder) DecodeValueOfObjCTypeAtSize ¶
Decodes a single value of a known type from the specified data buffer.
func (*NSCoder) DecodingFailurePolicy ¶
func (o *NSCoder) DecodingFailurePolicy() NSDecodingFailurePolicy
@abstract Defines the behavior this NSCoder should take on decode failure (i.e. corrupt archive, invalid data, etc.). @discussion The default result of this property is NSDecodingFailurePolicyRaiseException, subclasses can change this to an alternative policy.
func (*NSCoder) EncodeArrayOfObjCTypeCountAt ¶
Encodes an array of the given Objective-C type, provided the number of items and a pointer.
func (*NSCoder) EncodeBoolForKey ¶
Encodes a Boolean value and associates it with the string key.
func (*NSCoder) EncodeBycopyObject ¶
An encoding method for subclasses to override such that it creates a copy, rather than a proxy, when decoded.
func (*NSCoder) EncodeByrefObject ¶
An encoding method for subclasses to override such that it creates a proxy, rather than a copy, when decoded.
func (*NSCoder) EncodeBytesLength ¶
Encodes a buffer of data of an unspecified type.
func (*NSCoder) EncodeBytesLengthForKey ¶
Encodes a buffer of data, given its length and a pointer, and associates it with a string key.
func (*NSCoder) EncodeConditionalObject ¶
An encoding method for subclasses to override to conditionally encode an object, preserving common references to it.
func (*NSCoder) EncodeConditionalObjectForKey ¶
An encoding method for subclasses to override to conditionally encode an object, preserving common references to it, only if it has been unconditionally encoded.
func (*NSCoder) EncodeDataObject ¶
Encodes a given data object.
func (*NSCoder) EncodeDoubleForKey ¶
Encodes a double-precision floating point value and associates it with the string key.
func (*NSCoder) EncodeFloatForKey ¶
Encodes a floating point value and associates it with the string key.
func (*NSCoder) EncodeInt32ForKey ¶
Encodes a 32-bit integer value and associates it with the string key.
func (*NSCoder) EncodeInt64ForKey ¶
Encodes a 64-bit integer value and associates it with the string key.
func (*NSCoder) EncodeIntForKey ¶
Encodes a C integer value and associates it with the string key.
func (*NSCoder) EncodeIntegerForKey ¶
Encodes an integer value and associates it with the string key.
func (*NSCoder) EncodeNXObject ¶
Encodes an old-style object onto the coder. Deprecated: Not supported
func (*NSCoder) EncodeObjectForKey ¶
Encodes an object and associates it with the string key.
func (*NSCoder) EncodePoint ¶
func (o *NSCoder) EncodePoint(point corefoundation.CGPoint)
Encodes a point.
func (*NSCoder) EncodePointForKey ¶
func (o *NSCoder) EncodePointForKey(point corefoundation.CGPoint, key *NSString)
Encodes a point and associates it with the string key.
func (*NSCoder) EncodePropertyList ¶
Encodes a property list.
func (*NSCoder) EncodeRect ¶
func (o *NSCoder) EncodeRect(rect corefoundation.CGRect)
Encodes a rectangle structure.
func (*NSCoder) EncodeRectForKey ¶
func (o *NSCoder) EncodeRectForKey(rect corefoundation.CGRect, key *NSString)
Encodes a rectangle structure and associates it with the string key.
func (*NSCoder) EncodeRootObject ¶
An encoding method for subclasses to override to encode an interconnected group of objects, starting with the provided root object.
func (*NSCoder) EncodeSize ¶
func (o *NSCoder) EncodeSize(size corefoundation.CGSize)
Encodes a size structure.
func (*NSCoder) EncodeSizeForKey ¶
func (o *NSCoder) EncodeSizeForKey(size corefoundation.CGSize, key *NSString)
Encodes a size structure and associates it with the given string key.
func (*NSCoder) EncodeValueOfObjCTypeAt ¶
Encodes a value of the given type at the given address.
func (*NSCoder) Error ¶
@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 ¶
Signals to this coder that the decode operation has failed.
func (*NSCoder) ObjectZone ¶
This method is present for historical reasons and has no effect.
func (*NSCoder) RequiresSecureCoding ¶
func (*NSCoder) SetObjectZone ¶
This method is present for historical reasons and has no effect.
func (*NSCoder) SystemVersion ¶
func (*NSCoder) VersionForClassName ¶
This method is present for historical reasons and is not used with keyed archivers.
type NSCoding ¶
type NSCoding interface {
EncodeWithCoder(coder *NSCoder)
InitWithCoder(coder *NSCoder) unsafe.Pointer
}
NSCoding wraps the ObjC protocol NSCoding.
type NSCollectionChangeType ¶
type NSCollectionChangeType int64
The type of change represented in computing the difference of an ordered collection.
const ( // A change type that represents the insertion of an object into an ordered collection. NSCollectionChangeInsert NSCollectionChangeType = 0 // A change type that represents the removal of an object from an ordered collection. NSCollectionChangeRemove NSCollectionChangeType = 1 )
func (NSCollectionChangeType) String ¶
func (e NSCollectionChangeType) String() string
type NSComparisonPredicate ¶
type NSComparisonPredicate struct {
NSPredicate
}
A specialized predicate for comparing expressions.
Apple documentation: https://developer.apple.com/documentation/foundation/nscomparisonpredicate
func NSComparisonPredicateFromID ¶
func NSComparisonPredicateFromID(id objc.ID) *NSComparisonPredicate
func NSComparisonPredicatePredicateWithLeftExpressionRightExpressionCustomSelector ¶
func NSComparisonPredicatePredicateWithLeftExpressionRightExpressionCustomSelector(lhs *NSExpression, rhs *NSExpression, selector objc.SEL) *NSComparisonPredicate
Returns a new predicate formed by combining the left and right expressions using a given selector.
func NSComparisonPredicatePredicateWithLeftExpressionRightExpressionModifierTypeOptions ¶
func NSComparisonPredicatePredicateWithLeftExpressionRightExpressionModifierTypeOptions(lhs *NSExpression, rhs *NSExpression, modifier NSComparisonPredicateModifier, type_ NSPredicateOperatorType, options NSComparisonPredicateOptions) *NSComparisonPredicate
Creates and returns a predicate of a given type formed by combining given left and right expressions using a given modifier and options.
func (*NSComparisonPredicate) ComparisonPredicateModifier ¶
func (o *NSComparisonPredicate) ComparisonPredicateModifier() NSComparisonPredicateModifier
func (*NSComparisonPredicate) CustomSelector ¶
func (o *NSComparisonPredicate) CustomSelector() objc.SEL
func (*NSComparisonPredicate) InitWithCoder ¶
func (o *NSComparisonPredicate) InitWithCoder(coder *NSCoder) *NSComparisonPredicate
Creates a predicate by decoding from the coder you specify.
func (*NSComparisonPredicate) InitWithLeftExpressionRightExpressionCustomSelector ¶
func (o *NSComparisonPredicate) InitWithLeftExpressionRightExpressionCustomSelector(lhs *NSExpression, rhs *NSExpression, selector objc.SEL) *NSComparisonPredicate
Creates a predicate that you form by combining specified left and right expressions using a specified selector.
func (*NSComparisonPredicate) InitWithLeftExpressionRightExpressionModifierTypeOptions ¶
func (o *NSComparisonPredicate) InitWithLeftExpressionRightExpressionModifierTypeOptions(lhs *NSExpression, rhs *NSExpression, modifier NSComparisonPredicateModifier, type_ NSPredicateOperatorType, options NSComparisonPredicateOptions) *NSComparisonPredicate
Creates a predicate to a specified type that you form by combining specified left and right expressions using a specified modifier and options.
func (*NSComparisonPredicate) LeftExpression ¶
func (o *NSComparisonPredicate) LeftExpression() *NSExpression
func (*NSComparisonPredicate) Options ¶
func (o *NSComparisonPredicate) Options() NSComparisonPredicateOptions
func (*NSComparisonPredicate) PredicateOperatorType ¶
func (o *NSComparisonPredicate) PredicateOperatorType() NSPredicateOperatorType
func (*NSComparisonPredicate) RightExpression ¶
func (o *NSComparisonPredicate) RightExpression() *NSExpression
type NSComparisonPredicateModifier ¶
type NSComparisonPredicateModifier uint64
Constants that describe the possible types of modifier for a comparison predicate.
const ( NSDirectPredicateModifier NSComparisonPredicateModifier = 0 NSAllPredicateModifier NSComparisonPredicateModifier = 1 NSAnyPredicateModifier NSComparisonPredicateModifier = 2 )
func (NSComparisonPredicateModifier) String ¶
func (e NSComparisonPredicateModifier) String() string
type NSComparisonPredicateOptions ¶
type NSComparisonPredicateOptions uint64
Constants that describe the possible types of string comparison for comparison predicates.
const ( NSCaseInsensitivePredicateOption NSComparisonPredicateOptions = 1 NSDiacriticInsensitivePredicateOption NSComparisonPredicateOptions = 2 NSNormalizedPredicateOption NSComparisonPredicateOptions = 4 )
func (NSComparisonPredicateOptions) String ¶
func (e NSComparisonPredicateOptions) String() string
type NSComparisonResult ¶
type NSComparisonResult int64
Constants that indicate sort order.
const ( NSOrderedAscending NSComparisonResult = -1 NSOrderedSame NSComparisonResult = 0 NSOrderedDescending NSComparisonResult = 1 )
func NSDecimalCompare ¶
func NSDecimalCompare(leftOperand *NSDecimal, rightOperand *NSDecimal) NSComparisonResult
func (NSComparisonResult) String ¶
func (e NSComparisonResult) String() string
type NSCompoundPredicate ¶
type NSCompoundPredicate struct {
NSPredicate
}
A specialized predicate that evaluates logical combinations of other predicates.
Apple documentation: https://developer.apple.com/documentation/foundation/nscompoundpredicate
func NSCompoundPredicateAndPredicateWithSubpredicates ¶
func NSCompoundPredicateAndPredicateWithSubpredicates(subpredicates *NSArray[*NSPredicate]) *NSCompoundPredicate
Returns a new predicate that you form using an AND operation on the predicates in a specified array.
func NSCompoundPredicateFromID ¶
func NSCompoundPredicateFromID(id objc.ID) *NSCompoundPredicate
func NSCompoundPredicateNotPredicateWithSubpredicate ¶
func NSCompoundPredicateNotPredicateWithSubpredicate(predicate *NSPredicate) *NSCompoundPredicate
Returns a new predicate that you form using a NOT operation on a specified predicate.
func NSCompoundPredicateOrPredicateWithSubpredicates ¶
func NSCompoundPredicateOrPredicateWithSubpredicates(subpredicates *NSArray[*NSPredicate]) *NSCompoundPredicate
Returns a new predicate that you form using an OR operation on the predicates in a specified array.
func (*NSCompoundPredicate) CompoundPredicateType ¶
func (o *NSCompoundPredicate) CompoundPredicateType() NSCompoundPredicateType
func (*NSCompoundPredicate) InitWithCoder ¶
func (o *NSCompoundPredicate) InitWithCoder(coder *NSCoder) *NSCompoundPredicate
Creates a predicate by decoding from the coder you specify.
func (*NSCompoundPredicate) InitWithTypeSubpredicates ¶
func (o *NSCompoundPredicate) InitWithTypeSubpredicates(type_ NSCompoundPredicateType, subpredicates *NSArray[*NSPredicate]) *NSCompoundPredicate
Returns the receiver that a specified type initializes using predicates from a specified array.
func (*NSCompoundPredicate) Subpredicates ¶
func (o *NSCompoundPredicate) Subpredicates() *NSArray[objc.ID]
type NSCompoundPredicateType ¶
type NSCompoundPredicateType uint64
Constants that describe the possible types of a compound predicate.
const ( NSNotPredicateType NSCompoundPredicateType = 0 NSAndPredicateType NSCompoundPredicateType = 1 NSOrPredicateType NSCompoundPredicateType = 2 )
func (NSCompoundPredicateType) String ¶
func (e NSCompoundPredicateType) String() string
type NSCondition ¶
type NSCondition struct {
NSObject
}
A condition variable whose semantics follow those used for POSIX-style conditions.
Apple documentation: https://developer.apple.com/documentation/foundation/nscondition
func NSConditionFromID ¶
func NSConditionFromID(id objc.ID) *NSCondition
func (*NSCondition) Broadcast ¶
func (o *NSCondition) Broadcast()
Signals the condition, waking up all threads waiting on it.
func (*NSCondition) Name ¶
func (o *NSCondition) Name() *NSString
func (*NSCondition) SetName ¶
func (o *NSCondition) SetName(name *NSString)
func (*NSCondition) Signal ¶
func (o *NSCondition) Signal()
Signals the condition, waking up one thread waiting on it.
func (*NSCondition) Wait ¶
func (o *NSCondition) Wait()
Blocks the current thread until the condition is signaled.
func (*NSCondition) WaitUntilDate ¶
func (o *NSCondition) WaitUntilDate(limit *NSDate) bool
Blocks the current thread until the condition is signaled or the specified time limit is reached.
type NSConditionLock ¶
type NSConditionLock struct {
NSObject
}
A lock that can be associated with specific, user-defined conditions.
Apple documentation: https://developer.apple.com/documentation/foundation/nsconditionlock
func NSConditionLockFromID ¶
func NSConditionLockFromID(id objc.ID) *NSConditionLock
func (*NSConditionLock) Condition ¶
func (o *NSConditionLock) Condition() int
func (*NSConditionLock) InitWithCondition ¶
func (o *NSConditionLock) InitWithCondition(condition int) *NSConditionLock
Initializes a newly allocated NSConditionLock object and sets its condition.
func (*NSConditionLock) LockBeforeDate ¶
func (o *NSConditionLock) LockBeforeDate(limit *NSDate) bool
Attempts to acquire a lock before a specified moment in time.
func (*NSConditionLock) LockWhenCondition ¶
func (o *NSConditionLock) LockWhenCondition(condition int)
Attempts to acquire a lock.
func (*NSConditionLock) LockWhenConditionBeforeDate ¶
func (o *NSConditionLock) LockWhenConditionBeforeDate(condition int, limit *NSDate) bool
Attempts to acquire a lock before a specified moment in time.
func (*NSConditionLock) Name ¶
func (o *NSConditionLock) Name() *NSString
func (*NSConditionLock) SetName ¶
func (o *NSConditionLock) SetName(name *NSString)
func (*NSConditionLock) TryLock ¶
func (o *NSConditionLock) TryLock() bool
Attempts to acquire a lock without regard to the receiver’s condition.
func (*NSConditionLock) TryLockWhenCondition ¶
func (o *NSConditionLock) TryLockWhenCondition(condition int) bool
Attempts to acquire a lock if the receiver’s condition is equal to the specified condition.
func (*NSConditionLock) UnlockWithCondition ¶
func (o *NSConditionLock) UnlockWithCondition(condition int)
Relinquishes the lock and sets the receiver’s condition.
type NSConnection ¶
type NSConnection struct {
NSObject
}
An object that manages the communication between objects in different threads or between a thread and a process running on a local or remote system.
Apple documentation: https://developer.apple.com/documentation/foundation/nsconnection Deprecated: Use NSXPCConnection instead
func NSConnectionConnectionWithReceivePortSendPort ¶
func NSConnectionConnectionWithReceivePortSendPort(receivePort *NSPort, sendPort *NSPort) *NSConnection
Returns an NSConnection object that communicates using given send and receive ports.
func NSConnectionConnectionWithRegisteredNameHost ¶
func NSConnectionConnectionWithRegisteredNameHost(name *NSString, hostName *NSString) *NSConnection
Returns the NSConnection object whose send port links it to the NSConnection object registered with the default NSPortNameServer under a given name on a given host. Deprecated: since macOS 10.6.
func NSConnectionConnectionWithRegisteredNameHostUsingNameServer ¶
func NSConnectionConnectionWithRegisteredNameHostUsingNameServer(name *NSString, hostName *NSString, server *NSPortNameServer) *NSConnection
Returns the NSConnection object whose send port links it to the NSConnection object registered under a given name with a given server on a given host. Deprecated: since macOS 10.6.
func NSConnectionDefaultConnection ¶
func NSConnectionDefaultConnection() *NSConnection
Returns the default NSConnection object for the current thread. Deprecated: since macOS 10.6.
func NSConnectionFromID ¶
func NSConnectionFromID(id objc.ID) *NSConnection
func NSConnectionServiceConnectionWithNameRootObject ¶
func NSConnectionServiceConnectionWithNameRootObject(name *NSString, root objc.ID) *NSConnection
Creates and returns a new connection object representing a vended service on the default system port name server.
func NSConnectionServiceConnectionWithNameRootObjectUsingNameServer ¶
func NSConnectionServiceConnectionWithNameRootObjectUsingNameServer(name *NSString, root objc.ID, server *NSPortNameServer) *NSConnection
Creates and returns a new connection object representing a vended service on the specified port name server.
func (*NSConnection) AddRequestMode ¶
func (o *NSConnection) AddRequestMode(rmode *NSString)
Adds mode to the set of run-loop input modes that the receiver uses for connection requests.
func (*NSConnection) AddRunLoop ¶
func (o *NSConnection) AddRunLoop(runloop *NSRunLoop)
Adds the specified run loop to the list of run loops the receiver monitors and from which it responds to requests.
func (*NSConnection) Delegate ¶
func (o *NSConnection) Delegate() NSConnectionDelegate
func (*NSConnection) DispatchWithComponents ¶
func (o *NSConnection) DispatchWithComponents(components *NSArray[objc.ID])
Allows subclasses to ask a connection object to dispatch component data.
func (*NSConnection) EnableMultipleThreads ¶
func (o *NSConnection) EnableMultipleThreads()
Configures the receiver to allow requests from multiple threads to the remote object, without requiring each thread to each maintain its own connection.
func (*NSConnection) IndependentConversationQueueing ¶
func (o *NSConnection) IndependentConversationQueueing() bool
func (*NSConnection) InitWithReceivePortSendPort ¶
func (o *NSConnection) InitWithReceivePortSendPort(receivePort *NSPort, sendPort *NSPort) *NSConnection
Returns an NSConnection object initialized with given send and receive ports.
func (*NSConnection) IsValid ¶
func (o *NSConnection) IsValid() bool
func (*NSConnection) LocalObjects ¶
func (o *NSConnection) LocalObjects() *NSArray[objc.ID]
func (*NSConnection) MultipleThreadsEnabled ¶
func (o *NSConnection) MultipleThreadsEnabled() bool
func (*NSConnection) ReceivePort ¶
func (o *NSConnection) ReceivePort() *NSPort
func (*NSConnection) RegisterName ¶
func (o *NSConnection) RegisterName(name *NSString) bool
Registers the specified service using with the default system port name server.
func (*NSConnection) RegisterNameWithNameServer ¶
func (o *NSConnection) RegisterNameWithNameServer(name *NSString, server *NSPortNameServer) bool
Registers a service with the specified port name server.
func (*NSConnection) RemoteObjects ¶
func (o *NSConnection) RemoteObjects() *NSArray[objc.ID]
func (*NSConnection) RemoveRequestMode ¶
func (o *NSConnection) RemoveRequestMode(rmode *NSString)
Removes mode from the set of run-loop input modes the receiver uses for connection requests.
func (*NSConnection) RemoveRunLoop ¶
func (o *NSConnection) RemoveRunLoop(runloop *NSRunLoop)
Removes a given NSRunLoop object from the list of run loops the receiver monitors and from which it responds to requests.
func (*NSConnection) ReplyTimeout ¶
func (o *NSConnection) ReplyTimeout() float64
func (*NSConnection) RequestModes ¶
func (o *NSConnection) RequestModes() *NSArray[*NSString]
func (*NSConnection) RequestTimeout ¶
func (o *NSConnection) RequestTimeout() float64
func (*NSConnection) RootObject ¶
func (o *NSConnection) RootObject() objc.ID
func (*NSConnection) RootProxy ¶
func (o *NSConnection) RootProxy() *NSDistantObject
func (*NSConnection) RunInNewThread ¶
func (o *NSConnection) RunInNewThread()
Creates and starts a new NSThread object and then runs the receiving connection in the new thread.
func (*NSConnection) SendPort ¶
func (o *NSConnection) SendPort() *NSPort
func (*NSConnection) SetDelegate ¶
func (o *NSConnection) SetDelegate(delegate NSConnectionDelegate)
func (*NSConnection) SetIndependentConversationQueueing ¶
func (o *NSConnection) SetIndependentConversationQueueing(independentConversationQueueing bool)
func (*NSConnection) SetReplyTimeout ¶
func (o *NSConnection) SetReplyTimeout(replyTimeout float64)
func (*NSConnection) SetRequestTimeout ¶
func (o *NSConnection) SetRequestTimeout(requestTimeout float64)
func (*NSConnection) SetRootObject ¶
func (o *NSConnection) SetRootObject(rootObject objc.ID)
func (*NSConnection) Statistics ¶
func (o *NSConnection) Statistics() *NSDictionary[*NSString, *NSNumber]
type NSConnectionDelegate ¶
type NSConnectionDelegate interface {
}
NSConnectionDelegate wraps the ObjC protocol NSConnectionDelegate.
type NSConstantString ¶
type NSConstantString struct {
NSSimpleCString
}
Apple documentation: https://developer.apple.com/documentation/foundation/nsconstantstring
func NSConstantStringFromID ¶
func NSConstantStringFromID(id objc.ID) *NSConstantString
type NSCountedSet ¶
type NSCountedSet[ObjectType purego.AnyObject] struct { NSMutableSet[ObjectType] }
A mutable, unordered collection of distinct objects that may appear more than once in the collection.
Apple documentation: https://developer.apple.com/documentation/foundation/nscountedset
func NSCountedSetFromID ¶
func NSCountedSetFromID[ObjectType purego.AnyObject](id objc.ID) *NSCountedSet[ObjectType]
func (*NSCountedSet[ObjectType]) CountForObject ¶
func (o *NSCountedSet[ObjectType]) CountForObject(object ObjectType) uint
Returns the count associated with a given object in the set.
func (*NSCountedSet[ObjectType]) InitWithArray ¶
func (o *NSCountedSet[ObjectType]) InitWithArray(array *NSArray[ObjectType]) *NSCountedSet[ObjectType]
Returns a counted set object initialized with the contents of a given array.
func (*NSCountedSet[ObjectType]) InitWithCapacity ¶
func (o *NSCountedSet[ObjectType]) InitWithCapacity(numItems uint) *NSCountedSet[ObjectType]
Returns a counted set object initialized with enough memory to hold a given number of objects.
func (*NSCountedSet[ObjectType]) InitWithSet ¶
func (o *NSCountedSet[ObjectType]) InitWithSet(set *NSSet[ObjectType]) *NSCountedSet[ObjectType]
Returns a counted set object initialized with the contents of a given set.
type NSCreateCommand ¶
type NSCreateCommand struct {
NSScriptCommand
}
A command that creates a scriptable object.
Apple documentation: https://developer.apple.com/documentation/foundation/nscreatecommand
func NSCreateCommandFromID ¶
func NSCreateCommandFromID(id objc.ID) *NSCreateCommand
func (*NSCreateCommand) CreateClassDescription ¶
func (o *NSCreateCommand) CreateClassDescription() *NSScriptClassDescription
func (*NSCreateCommand) ResolvedKeyDictionary ¶
func (o *NSCreateCommand) ResolvedKeyDictionary() *NSDictionary[*NSString, objc.ID]
type NSData ¶
type NSData struct {
NSObject
}
A static byte buffer in memory.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdata
func NSArchiverArchivedDataWithRootObject ¶
Returns a data object containing the encoded form of the object graph whose root object is given.
func NSDataDataWithBytesLength ¶
Creates a data object containing a given number of bytes copied from a given buffer.
func NSDataDataWithBytesNoCopyLength ¶
Creates a data object that holds a given number of bytes from a given buffer.
func NSDataDataWithBytesNoCopyLengthFreeWhenDone ¶
func NSDataDataWithBytesNoCopyLengthFreeWhenDone(bytes_ unsafe.Pointer, length uint, b bool) *NSData
Creates a data object that holds a given number of bytes from a given buffer.
func NSDataDataWithContentsOfFile ¶
Creates a data object by reading every byte from the file at a given path.
func NSDataDataWithContentsOfFileOptionsError ¶
func NSDataDataWithContentsOfFileOptionsError(path *NSString, readOptionsMask NSDataReadingOptions) (*NSData, error)
Creates a data object by reading every byte from the file at a given path.
func NSDataDataWithContentsOfURL ¶
Creates a data object from the data at the specified file URL.
func NSDataDataWithContentsOfURLOptionsError ¶
func NSDataDataWithContentsOfURLOptionsError(url *NSURL, readOptionsMask NSDataReadingOptions) (*NSData, error)
Creates a data object from the data at the provided file URL using specific reading options.
func NSDataDataWithData ¶
Creates a data object containing the contents of another data object.
func NSDataFromID ¶
func NSJSONSerializationDataWithJSONObjectOptionsError ¶
func NSJSONSerializationDataWithJSONObjectOptionsError(obj objc.ID, opt NSJSONWritingOptions) (*NSData, error)
func NSKeyedArchiverArchivedDataWithRootObject ¶
Returns a data object that contains the encoded form of the object graph formed by the given root object. Deprecated: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
func NSKeyedArchiverArchivedDataWithRootObjectRequiringSecureCodingError ¶
func NSKeyedArchiverArchivedDataWithRootObjectRequiringSecureCodingError(object objc.ID, requiresSecureCoding bool) (*NSData, error)
Encodes an object graph with the given root object into a data representation, optionally requiring secure coding.
func NSNetServiceDataFromTXTRecordDictionary ¶
func NSNetServiceDataFromTXTRecordDictionary(txtDictionary *NSDictionary[*NSString, *NSData]) *NSData
func NSPropertyListSerializationDataFromPropertyListFormatErrorDescription
deprecated
func NSPropertyListSerializationDataFromPropertyListFormatErrorDescription(plist objc.ID, format NSPropertyListFormat, errorString *NSString) *NSData
Deprecated: Use dataWithPropertyList:format:options:error: instead.
func NSURLBookmarkDataWithContentsOfURLError ¶
Initializes and returns bookmark data derived from an alias file pointed to by a specified URL.
func NSURLConnectionSendSynchronousRequestReturningResponseError ¶
func NSURLConnectionSendSynchronousRequestReturningResponseError(request *NSURLRequest, response *NSURLResponse) (*NSData, error)
Performs a synchronous load of the specified URL request. Deprecated: Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h
func (*NSData) Base64EncodedDataWithOptions ¶
func (o *NSData) Base64EncodedDataWithOptions(options NSDataBase64EncodingOptions) *NSData
Creates a Base64, UTF-8 encoded data object from the string using the given options.
func (*NSData) Base64EncodedStringWithOptions ¶
func (o *NSData) Base64EncodedStringWithOptions(options NSDataBase64EncodingOptions) *NSString
Creates a Base64 encoded string from the string using the given options.
func (*NSData) Base64Encoding ¶
Initializes a Base64 encoded string from the string. Deprecated: Use base64EncodedStringWithOptions: instead
func (*NSData) CompressedDataUsingAlgorithmError ¶
func (o *NSData) CompressedDataUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (*NSData, error)
Returns a new data object by compressing the data object’s bytes.
func (*NSData) DecompressedDataUsingAlgorithmError ¶
func (o *NSData) DecompressedDataUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (*NSData, error)
Returns a new data object by decompressing data object’s bytes.
func (*NSData) EnumerateByteRangesUsing ¶
Enumerates each range of bytes in the data object using a block.
func (*NSData) GetBytes ¶
Copies a data object’s contents into a given buffer. Deprecated: This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead.
func (*NSData) GetBytesLength ¶
Copies a number of bytes from the start of the data object into a given buffer.
func (*NSData) GetBytesRange ¶
Copies a range of bytes from the data object into a given buffer.
func (*NSData) InitWithBase64EncodedDataOptions ¶
func (o *NSData) InitWithBase64EncodedDataOptions(base64Data *NSData, options NSDataBase64DecodingOptions) *NSData
Initializes a data object with the given Base64 encoded data.
func (*NSData) InitWithBase64EncodedStringOptions ¶
func (o *NSData) InitWithBase64EncodedStringOptions(base64String *NSString, options NSDataBase64DecodingOptions) *NSData
Initializes a data object with the given Base64 encoded string.
func (*NSData) InitWithBase64Encoding ¶
Initializes a data object initialized with the given Base64 encoded string. Deprecated: Use initWithBase64EncodedString:options: instead
func (*NSData) InitWithBytesLength ¶
Initializes a data object filled with a given number of bytes copied from a given buffer.
func (*NSData) InitWithBytesNoCopyLength ¶
Initializes a data object filled with a given number of bytes of data from a given buffer.
func (*NSData) InitWithBytesNoCopyLengthDeallocator ¶
func (o *NSData) InitWithBytesNoCopyLengthDeallocator(bytes_ unsafe.Pointer, length uint, deallocator func(unsafe.Pointer, uint)) *NSData
Initializes a data object filled with a given number of bytes of data from a given buffer, with a custom deallocator block.
func (*NSData) InitWithBytesNoCopyLengthFreeWhenDone ¶
func (o *NSData) InitWithBytesNoCopyLengthFreeWhenDone(bytes_ unsafe.Pointer, length uint, b bool) *NSData
Initializes a newly allocated data object by adding the given number of bytes from the given buffer.
func (*NSData) InitWithContentsOfFile ¶
Initializes a data object with the content of the file at a given path.
func (*NSData) InitWithContentsOfFileOptionsError ¶
func (o *NSData) InitWithContentsOfFileOptionsError(path *NSString, readOptionsMask NSDataReadingOptions) (*NSData, error)
Initializes a data object with the content of the file at a given path.
func (*NSData) InitWithContentsOfMappedFile ¶
Initializes a data object with the contents of the mapped file specified by a given path. Deprecated: Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead.
func (*NSData) InitWithContentsOfURL ¶
Creates a data object from the data at the specified file URL, or returns nil if the system can’t create one.
func (*NSData) InitWithContentsOfURLOptionsError ¶
func (o *NSData) InitWithContentsOfURLOptionsError(url *NSURL, readOptionsMask NSDataReadingOptions) (*NSData, error)
Creates a data object from the data at the provided file URL using specific reading options.
func (*NSData) InitWithData ¶
Initializes a data object with the contents of another data object.
func (*NSData) IsEqualToData ¶
Returns a Boolean value indicating whether this data object is the same as another.
func (*NSData) RangeOfDataOptionsRange ¶
func (o *NSData) RangeOfDataOptionsRange(dataToFind *NSData, mask NSDataSearchOptions, searchRange NSRange) NSRange
Finds and returns the range of the first occurrence of the given data, within the given range, subject to given options.
func (*NSData) SubdataWithRange ¶
Returns a new data object containing the data object’s bytes that fall within the limits specified by a given range.
func (*NSData) WriteToFileAtomically ¶
Writes the data object’s bytes to the file specified by a given path.
func (*NSData) WriteToFileOptionsError ¶
func (o *NSData) WriteToFileOptionsError(path *NSString, writeOptionsMask NSDataWritingOptions) (bool, error)
Writes the data object’s bytes to the file specified by a given path.
func (*NSData) WriteToURLAtomically ¶
Writes the data object’s bytes to the location specified by a given URL.
func (*NSData) WriteToURLOptionsError ¶
func (o *NSData) WriteToURLOptionsError(url *NSURL, writeOptionsMask NSDataWritingOptions) (bool, error)
Writes the data object’s bytes to the location specified by a given URL.
type NSDataBase64DecodingOptions ¶
type NSDataBase64DecodingOptions uint64
Options to modify the decoding algorithm used to decode Base64 encoded data.
const (
NSDataBase64DecodingIgnoreUnknownCharacters NSDataBase64DecodingOptions = 1
)
func (NSDataBase64DecodingOptions) String ¶
func (e NSDataBase64DecodingOptions) String() string
type NSDataBase64EncodingOptions ¶
type NSDataBase64EncodingOptions uint64
Options for methods used to Base64 encode data.
const ( NSDataBase64Encoding64CharacterLineLength NSDataBase64EncodingOptions = 1 NSDataBase64Encoding76CharacterLineLength NSDataBase64EncodingOptions = 2 NSDataBase64EncodingEndLineWithCarriageReturn NSDataBase64EncodingOptions = 16 NSDataBase64EncodingEndLineWithLineFeed NSDataBase64EncodingOptions = 32 )
func (NSDataBase64EncodingOptions) String ¶
func (e NSDataBase64EncodingOptions) String() string
type NSDataCompressionAlgorithm ¶
type NSDataCompressionAlgorithm int64
An algorithm that indicates how to compress or decompress data.
const ( NSDataCompressionAlgorithmLZFSE NSDataCompressionAlgorithm = 0 NSDataCompressionAlgorithmLZ4 NSDataCompressionAlgorithm = 1 NSDataCompressionAlgorithmLZMA NSDataCompressionAlgorithm = 2 NSDataCompressionAlgorithmZlib NSDataCompressionAlgorithm = 3 )
func (NSDataCompressionAlgorithm) String ¶
func (e NSDataCompressionAlgorithm) String() string
type NSDataDetector ¶
type NSDataDetector struct {
NSRegularExpression
}
A specialized regular expression object that matches natural language text for predefined data patterns.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdatadetector
func NSDataDetectorDataDetectorWithTypesError ¶
func NSDataDetectorDataDetectorWithTypesError(checkingTypes uint64) (*NSDataDetector, error)
Creates and returns a new data detector instance.
func NSDataDetectorFromID ¶
func NSDataDetectorFromID(id objc.ID) *NSDataDetector
func (*NSDataDetector) CheckingTypes ¶
func (o *NSDataDetector) CheckingTypes() uint64
func (*NSDataDetector) InitWithTypesError ¶
func (o *NSDataDetector) InitWithTypesError(checkingTypes uint64) (*NSDataDetector, error)
Initializes and returns a data detector instance.
type NSDataReadingOptions ¶
type NSDataReadingOptions uint64
Options for methods used to read data objects.
const ( NSDataReadingMappedIfSafe NSDataReadingOptions = 1 NSDataReadingUncached NSDataReadingOptions = 2 NSDataReadingMappedAlways NSDataReadingOptions = 8 NSDataReadingMapped NSDataReadingOptions = 1 NSMappedRead NSDataReadingOptions = 1 NSUncachedRead NSDataReadingOptions = 2 )
func (NSDataReadingOptions) String ¶
func (e NSDataReadingOptions) String() string
type NSDataSearchOptions ¶
type NSDataSearchOptions uint64
Options for method used to search data objects.
const ( NSDataSearchBackwards NSDataSearchOptions = 1 NSDataSearchAnchored NSDataSearchOptions = 2 )
func (NSDataSearchOptions) String ¶
func (e NSDataSearchOptions) String() string
type NSDataWritingOptions ¶
type NSDataWritingOptions uint64
Options for methods used to write data objects.
const ( NSDataWritingAtomic NSDataWritingOptions = 1 NSDataWritingWithoutOverwriting NSDataWritingOptions = 2 NSDataWritingFileProtectionNone NSDataWritingOptions = 268435456 NSDataWritingFileProtectionComplete NSDataWritingOptions = 536870912 NSDataWritingFileProtectionCompleteUnlessOpen NSDataWritingOptions = 805306368 NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication NSDataWritingOptions = 1073741824 NSDataWritingFileProtectionMask NSDataWritingOptions = 4026531840 NSAtomicWrite NSDataWritingOptions = 1 )
func (NSDataWritingOptions) String ¶
func (e NSDataWritingOptions) String() string
type NSDate ¶
type NSDate struct {
NSObject
}
A representation of a specific point in time, independent of any calendar or time zone.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdate
func NSDateDate ¶
func NSDateDate() *NSDate
Creates and returns a new date object set to the current date and time.
func NSDateDateWithTimeIntervalSince1970 ¶
Creates and returns a date object set to the given number of seconds from 00:00:00 UTC on 1 January 1970.
func NSDateDateWithTimeIntervalSinceDate ¶
Creates and returns a date object set to a given number of seconds from the specified date.
func NSDateDateWithTimeIntervalSinceNow ¶
Creates and returns a date object set to a given number of seconds from the current date and time.
func NSDateDateWithTimeIntervalSinceReferenceDate ¶
Creates and returns a date object set to a given number of seconds from 00:00:00 UTC on 1 January 2001.
func NSDateDistantFuture ¶
func NSDateDistantFuture() *NSDate
func NSDateDistantPast ¶
func NSDateDistantPast() *NSDate
func NSDateFromID ¶
func (*NSDate) AddTimeInterval ¶
Returns a new date object that is set to a given number of seconds relative to the receiver. Deprecated: Use dateByAddingTimeInterval instead
func (*NSDate) Compare ¶
func (o *NSDate) Compare(other *NSDate) NSComparisonResult
Indicates the temporal ordering of the receiver and another given date.
func (*NSDate) DateByAddingTimeInterval ¶
Returns a new date object that is set to a given number of seconds relative to the receiver.
func (*NSDate) DateWithCalendarFormatTimeZone ¶
func (o *NSDate) DateWithCalendarFormatTimeZone(format *NSString, aTimeZone *NSTimeZone) *NSCalendarDate
Converts the receiver to a calendar date with a given format string and time zone. Deprecated: since macOS 10.10.
func (*NSDate) DescriptionWithCalendarFormatTimeZoneLocale ¶
func (o *NSDate) DescriptionWithCalendarFormatTimeZoneLocale(format *NSString, aTimeZone *NSTimeZone, locale objc.ID) *NSString
Returns a string representation of the date formatted as specified by given conversion specifiers. Deprecated: since macOS 10.10.
func (*NSDate) DescriptionWithLocale ¶
Returns a string representation of the date using the given locale.
func (*NSDate) EarlierDate ¶
Returns the earlier of the receiver and another given date.
func (*NSDate) InitWithCoder ¶
Returns a date object initialized from data in the given unarchiver.
func (*NSDate) InitWithString ¶
Returns a date object initialized with a date and time value specified by a given string in the international string representation format. Deprecated: Use NSDateFormatter instead
func (*NSDate) InitWithTimeIntervalSince1970 ¶
Returns a date object initialized relative to 00:00:00 UTC on 1 January 1970 by a given number of seconds.
func (*NSDate) InitWithTimeIntervalSinceDate ¶
Returns a date object initialized relative to another given date by a given number of seconds.
func (*NSDate) InitWithTimeIntervalSinceNow ¶
Returns a date object initialized relative to the current date and time by a given number of seconds.
func (*NSDate) InitWithTimeIntervalSinceReferenceDate ¶
Returns a date object initialized relative to 00:00:00 UTC on 1 January 2001 by a given number of seconds.
func (*NSDate) IsEqualToDate ¶
Returns a Boolean value that indicates whether a given object is a date that is exactly equal the receiver.
func (*NSDate) TimeIntervalSince1970 ¶
func (*NSDate) TimeIntervalSinceDate ¶
Returns the interval between the receiver and another given date.
func (*NSDate) TimeIntervalSinceNow ¶
func (*NSDate) TimeIntervalSinceReferenceDate ¶
type NSDateComponents ¶
type NSDateComponents struct {
NSObject
}
An object that specifies a date or time in terms of units (such as year, month, day, hour, and minute) to be evaluated in a calendar system and time zone.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdatecomponents Deprecated: since macOS 10.10.
func NSDateComponentsFromID ¶
func NSDateComponentsFromID(id objc.ID) *NSDateComponents
func (*NSDateComponents) Calendar ¶
func (o *NSDateComponents) Calendar() *NSCalendar
func (*NSDateComponents) Date ¶
func (o *NSDateComponents) Date() *NSDate
func (*NSDateComponents) Day ¶
func (o *NSDateComponents) Day() int
func (*NSDateComponents) DayOfYear ¶
func (o *NSDateComponents) DayOfYear() int
func (*NSDateComponents) Era ¶
func (o *NSDateComponents) Era() int
func (*NSDateComponents) Hour ¶
func (o *NSDateComponents) Hour() int
func (*NSDateComponents) IsLeapMonth ¶
func (o *NSDateComponents) IsLeapMonth() bool
func (*NSDateComponents) IsRepeatedDay ¶
func (o *NSDateComponents) IsRepeatedDay() bool
func (*NSDateComponents) IsValidDate ¶
func (o *NSDateComponents) IsValidDate() bool
func (*NSDateComponents) IsValidDateInCalendar ¶
func (o *NSDateComponents) IsValidDateInCalendar(calendar *NSCalendar) bool
Returns a Boolean value that indicates whether the current combination of properties represents a date which exists in the specified calendar.
func (*NSDateComponents) Minute ¶
func (o *NSDateComponents) Minute() int
func (*NSDateComponents) Month ¶
func (o *NSDateComponents) Month() int
func (*NSDateComponents) Nanosecond ¶
func (o *NSDateComponents) Nanosecond() int
func (*NSDateComponents) Quarter ¶
func (o *NSDateComponents) Quarter() int
func (*NSDateComponents) Second ¶
func (o *NSDateComponents) Second() int
func (*NSDateComponents) SetCalendar ¶
func (o *NSDateComponents) SetCalendar(calendar *NSCalendar)
func (*NSDateComponents) SetDay ¶
func (o *NSDateComponents) SetDay(day int)
func (*NSDateComponents) SetDayOfYear ¶
func (o *NSDateComponents) SetDayOfYear(dayOfYear int)
func (*NSDateComponents) SetEra ¶
func (o *NSDateComponents) SetEra(era int)
func (*NSDateComponents) SetHour ¶
func (o *NSDateComponents) SetHour(hour int)
func (*NSDateComponents) SetLeapMonth ¶
func (o *NSDateComponents) SetLeapMonth(leapMonth bool)
func (*NSDateComponents) SetMinute ¶
func (o *NSDateComponents) SetMinute(minute int)
func (*NSDateComponents) SetMonth ¶
func (o *NSDateComponents) SetMonth(month int)
func (*NSDateComponents) SetNanosecond ¶
func (o *NSDateComponents) SetNanosecond(nanosecond int)
func (*NSDateComponents) SetQuarter ¶
func (o *NSDateComponents) SetQuarter(quarter int)
func (*NSDateComponents) SetRepeatedDay ¶
func (o *NSDateComponents) SetRepeatedDay(repeatedDay bool)
func (*NSDateComponents) SetSecond ¶
func (o *NSDateComponents) SetSecond(second int)
func (*NSDateComponents) SetTimeZone ¶
func (o *NSDateComponents) SetTimeZone(timeZone *NSTimeZone)
func (*NSDateComponents) SetValueForComponent ¶
func (o *NSDateComponents) SetValueForComponent(value int, unit NSCalendarUnit)
Sets a value for a given calendar unit.
func (*NSDateComponents) SetWeek ¶
func (o *NSDateComponents) SetWeek(v int)
Sets the number of weeks. Deprecated: Use -setWeekOfMonth: or -setWeekOfYear:, depending on which you mean
func (*NSDateComponents) SetWeekOfMonth ¶
func (o *NSDateComponents) SetWeekOfMonth(weekOfMonth int)
func (*NSDateComponents) SetWeekOfYear ¶
func (o *NSDateComponents) SetWeekOfYear(weekOfYear int)
func (*NSDateComponents) SetWeekday ¶
func (o *NSDateComponents) SetWeekday(weekday int)
func (*NSDateComponents) SetWeekdayOrdinal ¶
func (o *NSDateComponents) SetWeekdayOrdinal(weekdayOrdinal int)
func (*NSDateComponents) SetYear ¶
func (o *NSDateComponents) SetYear(year int)
func (*NSDateComponents) SetYearForWeekOfYear ¶
func (o *NSDateComponents) SetYearForWeekOfYear(yearForWeekOfYear int)
func (*NSDateComponents) TimeZone ¶
func (o *NSDateComponents) TimeZone() *NSTimeZone
func (*NSDateComponents) ValueForComponent ¶
func (o *NSDateComponents) ValueForComponent(unit NSCalendarUnit) int
Returns the value for a given calendar unit.
func (*NSDateComponents) Week ¶
func (o *NSDateComponents) Week() int
Returns the number of weeks. Deprecated: Use -weekOfMonth or -weekOfYear, depending on which you mean
func (*NSDateComponents) WeekOfMonth ¶
func (o *NSDateComponents) WeekOfMonth() int
func (*NSDateComponents) WeekOfYear ¶
func (o *NSDateComponents) WeekOfYear() int
func (*NSDateComponents) Weekday ¶
func (o *NSDateComponents) Weekday() int
func (*NSDateComponents) WeekdayOrdinal ¶
func (o *NSDateComponents) WeekdayOrdinal() int
func (*NSDateComponents) Year ¶
func (o *NSDateComponents) Year() int
func (*NSDateComponents) YearForWeekOfYear ¶
func (o *NSDateComponents) YearForWeekOfYear() int
type NSDateComponentsFormatter ¶
type NSDateComponentsFormatter struct {
NSFormatter
}
A formatter that creates string representations of quantities of time.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdatecomponentsformatter
func NSDateComponentsFormatterFromID ¶
func NSDateComponentsFormatterFromID(id objc.ID) *NSDateComponentsFormatter
func (*NSDateComponentsFormatter) AllowedUnits ¶
func (o *NSDateComponentsFormatter) AllowedUnits() NSCalendarUnit
func (*NSDateComponentsFormatter) AllowsFractionalUnits ¶
func (o *NSDateComponentsFormatter) AllowsFractionalUnits() bool
func (*NSDateComponentsFormatter) Calendar ¶
func (o *NSDateComponentsFormatter) Calendar() *NSCalendar
func (*NSDateComponentsFormatter) CollapsesLargestUnit ¶
func (o *NSDateComponentsFormatter) CollapsesLargestUnit() bool
func (*NSDateComponentsFormatter) FormattingContext ¶
func (o *NSDateComponentsFormatter) FormattingContext() NSFormattingContext
func (*NSDateComponentsFormatter) IncludesApproximationPhrase ¶
func (o *NSDateComponentsFormatter) IncludesApproximationPhrase() bool
func (*NSDateComponentsFormatter) IncludesTimeRemainingPhrase ¶
func (o *NSDateComponentsFormatter) IncludesTimeRemainingPhrase() bool
func (*NSDateComponentsFormatter) MaximumUnitCount ¶
func (o *NSDateComponentsFormatter) MaximumUnitCount() int
func (*NSDateComponentsFormatter) ReferenceDate ¶
func (o *NSDateComponentsFormatter) ReferenceDate() *NSDate
func (*NSDateComponentsFormatter) SetAllowedUnits ¶
func (o *NSDateComponentsFormatter) SetAllowedUnits(allowedUnits NSCalendarUnit)
func (*NSDateComponentsFormatter) SetAllowsFractionalUnits ¶
func (o *NSDateComponentsFormatter) SetAllowsFractionalUnits(allowsFractionalUnits bool)
func (*NSDateComponentsFormatter) SetCalendar ¶
func (o *NSDateComponentsFormatter) SetCalendar(calendar *NSCalendar)
func (*NSDateComponentsFormatter) SetCollapsesLargestUnit ¶
func (o *NSDateComponentsFormatter) SetCollapsesLargestUnit(collapsesLargestUnit bool)
func (*NSDateComponentsFormatter) SetFormattingContext ¶
func (o *NSDateComponentsFormatter) SetFormattingContext(formattingContext NSFormattingContext)
func (*NSDateComponentsFormatter) SetIncludesApproximationPhrase ¶
func (o *NSDateComponentsFormatter) SetIncludesApproximationPhrase(includesApproximationPhrase bool)
func (*NSDateComponentsFormatter) SetIncludesTimeRemainingPhrase ¶
func (o *NSDateComponentsFormatter) SetIncludesTimeRemainingPhrase(includesTimeRemainingPhrase bool)
func (*NSDateComponentsFormatter) SetMaximumUnitCount ¶
func (o *NSDateComponentsFormatter) SetMaximumUnitCount(maximumUnitCount int)
func (*NSDateComponentsFormatter) SetReferenceDate ¶
func (o *NSDateComponentsFormatter) SetReferenceDate(referenceDate *NSDate)
func (*NSDateComponentsFormatter) SetUnitsStyle ¶
func (o *NSDateComponentsFormatter) SetUnitsStyle(unitsStyle NSDateComponentsFormatterUnitsStyle)
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 (o *NSDateComponentsFormatter) UnitsStyle() NSDateComponentsFormatterUnitsStyle
func (*NSDateComponentsFormatter) ZeroFormattingBehavior ¶
func (o *NSDateComponentsFormatter) ZeroFormattingBehavior() NSDateComponentsFormatterZeroFormattingBehavior
type NSDateComponentsFormatterUnitsStyle ¶
type NSDateComponentsFormatterUnitsStyle int64
Constants for specifying how to represent quantities of time.
const ( NSDateComponentsFormatterUnitsStylePositional NSDateComponentsFormatterUnitsStyle = 0 NSDateComponentsFormatterUnitsStyleAbbreviated NSDateComponentsFormatterUnitsStyle = 1 NSDateComponentsFormatterUnitsStyleShort NSDateComponentsFormatterUnitsStyle = 2 NSDateComponentsFormatterUnitsStyleFull NSDateComponentsFormatterUnitsStyle = 3 NSDateComponentsFormatterUnitsStyleSpellOut NSDateComponentsFormatterUnitsStyle = 4 NSDateComponentsFormatterUnitsStyleBrief NSDateComponentsFormatterUnitsStyle = 5 )
func (NSDateComponentsFormatterUnitsStyle) String ¶
func (e NSDateComponentsFormatterUnitsStyle) String() string
type NSDateComponentsFormatterZeroFormattingBehavior ¶
type NSDateComponentsFormatterZeroFormattingBehavior uint64
Formatting constants for when values contain zeroes.
const ( // No formatting behavior. This behavior prevents the dropping of zero values or adding of zeroes for padding. For example, with hours, minutes, and seconds displayed, the abbreviated value for one hour and 10 seconds is “1h 0m 10s”. NSDateComponentsFormatterZeroFormattingBehaviorNone NSDateComponentsFormatterZeroFormattingBehavior = 0 NSDateComponentsFormatterZeroFormattingBehaviorDefault NSDateComponentsFormatterZeroFormattingBehavior = 1 NSDateComponentsFormatterZeroFormattingBehaviorDropLeading NSDateComponentsFormatterZeroFormattingBehavior = 2 NSDateComponentsFormatterZeroFormattingBehaviorDropMiddle NSDateComponentsFormatterZeroFormattingBehavior = 4 NSDateComponentsFormatterZeroFormattingBehaviorDropTrailing NSDateComponentsFormatterZeroFormattingBehavior = 8 NSDateComponentsFormatterZeroFormattingBehaviorDropAll NSDateComponentsFormatterZeroFormattingBehavior = 14 NSDateComponentsFormatterZeroFormattingBehaviorPad NSDateComponentsFormatterZeroFormattingBehavior = 65536 )
func (NSDateComponentsFormatterZeroFormattingBehavior) String ¶
func (e NSDateComponentsFormatterZeroFormattingBehavior) String() string
type NSDateFormatter ¶
type NSDateFormatter struct {
NSFormatter
}
A formatter that converts between dates and their textual representations.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdateformatter
func NSDateFormatterFromID ¶
func NSDateFormatterFromID(id objc.ID) *NSDateFormatter
func (*NSDateFormatter) AMSymbol ¶
func (o *NSDateFormatter) AMSymbol() *NSString
func (*NSDateFormatter) AllowsNaturalLanguage ¶
func (o *NSDateFormatter) AllowsNaturalLanguage() bool
Returns a Boolean value that indicates whether the receiver attempts to process dates entered as a vernacular string. Deprecated: There is no replacement
func (*NSDateFormatter) Calendar ¶
func (o *NSDateFormatter) Calendar() *NSCalendar
func (*NSDateFormatter) DateFormat ¶
func (o *NSDateFormatter) DateFormat() *NSString
func (*NSDateFormatter) DateFromString ¶
func (o *NSDateFormatter) DateFromString(string_ *NSString) *NSDate
func (*NSDateFormatter) DateStyle ¶
func (o *NSDateFormatter) DateStyle() NSDateFormatterStyle
func (*NSDateFormatter) DefaultDate ¶
func (o *NSDateFormatter) DefaultDate() *NSDate
func (*NSDateFormatter) DoesRelativeDateFormatting ¶
func (o *NSDateFormatter) DoesRelativeDateFormatting() bool
func (*NSDateFormatter) EraSymbols ¶
func (o *NSDateFormatter) EraSymbols() *NSArray[*NSString]
func (*NSDateFormatter) FormatterBehavior ¶
func (o *NSDateFormatter) FormatterBehavior() NSDateFormatterBehavior
func (*NSDateFormatter) FormattingContext ¶
func (o *NSDateFormatter) FormattingContext() NSFormattingContext
func (*NSDateFormatter) GeneratesCalendarDates ¶
func (o *NSDateFormatter) GeneratesCalendarDates() bool
func (*NSDateFormatter) GetObjectValueForStringRangeError ¶
func (o *NSDateFormatter) GetObjectValueForStringRangeError(obj **ObjcObject, string_ *NSString, rangep *NSRange) (bool, error)
func (*NSDateFormatter) GregorianStartDate ¶
func (o *NSDateFormatter) GregorianStartDate() *NSDate
func (*NSDateFormatter) InitWithDateFormatAllowNaturalLanguage ¶
func (o *NSDateFormatter) InitWithDateFormatAllowNaturalLanguage(format *NSString, flag bool) objc.ID
Initializes and returns an NSDateFormatter instance that uses the OS X 10.0 formatting behavior and the given date format string in its conversions. Deprecated: Create an NSDateFormatter with `init` and set the dateFormat property instead.
func (*NSDateFormatter) IsLenient ¶
func (o *NSDateFormatter) IsLenient() bool
func (*NSDateFormatter) Locale ¶
func (o *NSDateFormatter) Locale() *NSLocale
func (*NSDateFormatter) LongEraSymbols ¶
func (o *NSDateFormatter) LongEraSymbols() *NSArray[*NSString]
func (*NSDateFormatter) MonthSymbols ¶
func (o *NSDateFormatter) MonthSymbols() *NSArray[*NSString]
func (*NSDateFormatter) PMSymbol ¶
func (o *NSDateFormatter) PMSymbol() *NSString
func (*NSDateFormatter) QuarterSymbols ¶
func (o *NSDateFormatter) QuarterSymbols() *NSArray[*NSString]
func (*NSDateFormatter) SetAMSymbol ¶
func (o *NSDateFormatter) SetAMSymbol(aMSymbol *NSString)
func (*NSDateFormatter) SetCalendar ¶
func (o *NSDateFormatter) SetCalendar(calendar *NSCalendar)
func (*NSDateFormatter) SetDateFormat ¶
func (o *NSDateFormatter) SetDateFormat(dateFormat *NSString)
func (*NSDateFormatter) SetDateStyle ¶
func (o *NSDateFormatter) SetDateStyle(dateStyle NSDateFormatterStyle)
func (*NSDateFormatter) SetDefaultDate ¶
func (o *NSDateFormatter) SetDefaultDate(defaultDate *NSDate)
func (*NSDateFormatter) SetDoesRelativeDateFormatting ¶
func (o *NSDateFormatter) SetDoesRelativeDateFormatting(doesRelativeDateFormatting bool)
func (*NSDateFormatter) SetEraSymbols ¶
func (o *NSDateFormatter) SetEraSymbols(eraSymbols *NSArray[*NSString])
func (*NSDateFormatter) SetFormatterBehavior ¶
func (o *NSDateFormatter) SetFormatterBehavior(formatterBehavior NSDateFormatterBehavior)
func (*NSDateFormatter) SetFormattingContext ¶
func (o *NSDateFormatter) SetFormattingContext(formattingContext NSFormattingContext)
func (*NSDateFormatter) SetGeneratesCalendarDates ¶
func (o *NSDateFormatter) SetGeneratesCalendarDates(generatesCalendarDates bool)
func (*NSDateFormatter) SetGregorianStartDate ¶
func (o *NSDateFormatter) SetGregorianStartDate(gregorianStartDate *NSDate)
func (*NSDateFormatter) SetLenient ¶
func (o *NSDateFormatter) SetLenient(lenient bool)
func (*NSDateFormatter) SetLocale ¶
func (o *NSDateFormatter) SetLocale(locale *NSLocale)
func (*NSDateFormatter) SetLocalizedDateFormatFromTemplate ¶
func (o *NSDateFormatter) SetLocalizedDateFormatFromTemplate(dateFormatTemplate *NSString)
func (*NSDateFormatter) SetLongEraSymbols ¶
func (o *NSDateFormatter) SetLongEraSymbols(longEraSymbols *NSArray[*NSString])
func (*NSDateFormatter) SetMonthSymbols ¶
func (o *NSDateFormatter) SetMonthSymbols(monthSymbols *NSArray[*NSString])
func (*NSDateFormatter) SetPMSymbol ¶
func (o *NSDateFormatter) SetPMSymbol(pMSymbol *NSString)
func (*NSDateFormatter) SetQuarterSymbols ¶
func (o *NSDateFormatter) SetQuarterSymbols(quarterSymbols *NSArray[*NSString])
func (*NSDateFormatter) SetShortMonthSymbols ¶
func (o *NSDateFormatter) SetShortMonthSymbols(shortMonthSymbols *NSArray[*NSString])
func (*NSDateFormatter) SetShortQuarterSymbols ¶
func (o *NSDateFormatter) SetShortQuarterSymbols(shortQuarterSymbols *NSArray[*NSString])
func (*NSDateFormatter) SetShortStandaloneMonthSymbols ¶
func (o *NSDateFormatter) SetShortStandaloneMonthSymbols(shortStandaloneMonthSymbols *NSArray[*NSString])
func (*NSDateFormatter) SetShortStandaloneQuarterSymbols ¶
func (o *NSDateFormatter) SetShortStandaloneQuarterSymbols(shortStandaloneQuarterSymbols *NSArray[*NSString])
func (*NSDateFormatter) SetShortStandaloneWeekdaySymbols ¶
func (o *NSDateFormatter) SetShortStandaloneWeekdaySymbols(shortStandaloneWeekdaySymbols *NSArray[*NSString])
func (*NSDateFormatter) SetShortWeekdaySymbols ¶
func (o *NSDateFormatter) SetShortWeekdaySymbols(shortWeekdaySymbols *NSArray[*NSString])
func (*NSDateFormatter) SetStandaloneMonthSymbols ¶
func (o *NSDateFormatter) SetStandaloneMonthSymbols(standaloneMonthSymbols *NSArray[*NSString])
func (*NSDateFormatter) SetStandaloneQuarterSymbols ¶
func (o *NSDateFormatter) SetStandaloneQuarterSymbols(standaloneQuarterSymbols *NSArray[*NSString])
func (*NSDateFormatter) SetStandaloneWeekdaySymbols ¶
func (o *NSDateFormatter) SetStandaloneWeekdaySymbols(standaloneWeekdaySymbols *NSArray[*NSString])
func (*NSDateFormatter) SetTimeStyle ¶
func (o *NSDateFormatter) SetTimeStyle(timeStyle NSDateFormatterStyle)
func (*NSDateFormatter) SetTimeZone ¶
func (o *NSDateFormatter) SetTimeZone(timeZone *NSTimeZone)
func (*NSDateFormatter) SetTwoDigitStartDate ¶
func (o *NSDateFormatter) SetTwoDigitStartDate(twoDigitStartDate *NSDate)
func (*NSDateFormatter) SetVeryShortMonthSymbols ¶
func (o *NSDateFormatter) SetVeryShortMonthSymbols(veryShortMonthSymbols *NSArray[*NSString])
func (*NSDateFormatter) SetVeryShortStandaloneMonthSymbols ¶
func (o *NSDateFormatter) SetVeryShortStandaloneMonthSymbols(veryShortStandaloneMonthSymbols *NSArray[*NSString])
func (*NSDateFormatter) SetVeryShortStandaloneWeekdaySymbols ¶
func (o *NSDateFormatter) SetVeryShortStandaloneWeekdaySymbols(veryShortStandaloneWeekdaySymbols *NSArray[*NSString])
func (*NSDateFormatter) SetVeryShortWeekdaySymbols ¶
func (o *NSDateFormatter) SetVeryShortWeekdaySymbols(veryShortWeekdaySymbols *NSArray[*NSString])
func (*NSDateFormatter) SetWeekdaySymbols ¶
func (o *NSDateFormatter) SetWeekdaySymbols(weekdaySymbols *NSArray[*NSString])
func (*NSDateFormatter) ShortMonthSymbols ¶
func (o *NSDateFormatter) ShortMonthSymbols() *NSArray[*NSString]
func (*NSDateFormatter) ShortQuarterSymbols ¶
func (o *NSDateFormatter) ShortQuarterSymbols() *NSArray[*NSString]
func (*NSDateFormatter) ShortStandaloneMonthSymbols ¶
func (o *NSDateFormatter) ShortStandaloneMonthSymbols() *NSArray[*NSString]
func (*NSDateFormatter) ShortStandaloneQuarterSymbols ¶
func (o *NSDateFormatter) ShortStandaloneQuarterSymbols() *NSArray[*NSString]
func (*NSDateFormatter) ShortStandaloneWeekdaySymbols ¶
func (o *NSDateFormatter) ShortStandaloneWeekdaySymbols() *NSArray[*NSString]
func (*NSDateFormatter) ShortWeekdaySymbols ¶
func (o *NSDateFormatter) ShortWeekdaySymbols() *NSArray[*NSString]
func (*NSDateFormatter) StandaloneMonthSymbols ¶
func (o *NSDateFormatter) StandaloneMonthSymbols() *NSArray[*NSString]
func (*NSDateFormatter) StandaloneQuarterSymbols ¶
func (o *NSDateFormatter) StandaloneQuarterSymbols() *NSArray[*NSString]
func (*NSDateFormatter) StandaloneWeekdaySymbols ¶
func (o *NSDateFormatter) StandaloneWeekdaySymbols() *NSArray[*NSString]
func (*NSDateFormatter) StringFromDate ¶
func (o *NSDateFormatter) StringFromDate(date *NSDate) *NSString
func (*NSDateFormatter) TimeStyle ¶
func (o *NSDateFormatter) TimeStyle() NSDateFormatterStyle
func (*NSDateFormatter) TimeZone ¶
func (o *NSDateFormatter) TimeZone() *NSTimeZone
func (*NSDateFormatter) TwoDigitStartDate ¶
func (o *NSDateFormatter) TwoDigitStartDate() *NSDate
func (*NSDateFormatter) VeryShortMonthSymbols ¶
func (o *NSDateFormatter) VeryShortMonthSymbols() *NSArray[*NSString]
func (*NSDateFormatter) VeryShortStandaloneMonthSymbols ¶
func (o *NSDateFormatter) VeryShortStandaloneMonthSymbols() *NSArray[*NSString]
func (*NSDateFormatter) VeryShortStandaloneWeekdaySymbols ¶
func (o *NSDateFormatter) VeryShortStandaloneWeekdaySymbols() *NSArray[*NSString]
func (*NSDateFormatter) VeryShortWeekdaySymbols ¶
func (o *NSDateFormatter) VeryShortWeekdaySymbols() *NSArray[*NSString]
func (*NSDateFormatter) WeekdaySymbols ¶
func (o *NSDateFormatter) WeekdaySymbols() *NSArray[*NSString]
type NSDateFormatterBehavior ¶
type NSDateFormatterBehavior uint64
Constants that specify the behavior NSDateFormatter should exhibit.
const ( NSDateFormatterBehaviorDefault NSDateFormatterBehavior = 0 NSDateFormatterBehavior10_0 NSDateFormatterBehavior = 1000 NSDateFormatterBehavior10_4 NSDateFormatterBehavior = 1040 )
func NSDateFormatterDefaultFormatterBehavior ¶
func NSDateFormatterDefaultFormatterBehavior() NSDateFormatterBehavior
func (NSDateFormatterBehavior) String ¶
func (e NSDateFormatterBehavior) String() string
type NSDateFormatterStyle ¶
type NSDateFormatterStyle uint64
The following constants specify predefined format styles for dates and times.
const ( NSDateFormatterNoStyle NSDateFormatterStyle = 0 NSDateFormatterShortStyle NSDateFormatterStyle = 1 NSDateFormatterMediumStyle NSDateFormatterStyle = 2 NSDateFormatterLongStyle NSDateFormatterStyle = 3 NSDateFormatterFullStyle NSDateFormatterStyle = 4 )
func (NSDateFormatterStyle) String ¶
func (e NSDateFormatterStyle) String() string
type NSDateInterval ¶
type NSDateInterval struct {
NSObject
}
An object representing the span of time between a specific start date and end date.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdateinterval
func NSDateIntervalFromID ¶
func NSDateIntervalFromID(id objc.ID) *NSDateInterval
func (*NSDateInterval) Compare ¶
func (o *NSDateInterval) Compare(dateInterval *NSDateInterval) NSComparisonResult
Compares the receiver with the specified date interval.
func (*NSDateInterval) ContainsDate ¶
func (o *NSDateInterval) ContainsDate(date *NSDate) bool
Indicates whether the receiver contains the specified date.
func (*NSDateInterval) Duration ¶
func (o *NSDateInterval) Duration() float64
func (*NSDateInterval) EndDate ¶
func (o *NSDateInterval) EndDate() *NSDate
func (*NSDateInterval) Init ¶
func (o *NSDateInterval) Init() *NSDateInterval
Initializes a date interval by setting the start and end date to the current date.
func (*NSDateInterval) InitWithCoder ¶
func (o *NSDateInterval) InitWithCoder(coder *NSCoder) *NSDateInterval
Returns a date interval initialized from data in the given unarchiver.
func (*NSDateInterval) InitWithStartDateDuration ¶
func (o *NSDateInterval) InitWithStartDateDuration(startDate *NSDate, duration float64) *NSDateInterval
Initializes a date interval with a given start date and duration.
func (*NSDateInterval) InitWithStartDateEndDate ¶
func (o *NSDateInterval) InitWithStartDateEndDate(startDate *NSDate, endDate *NSDate) *NSDateInterval
Initializes a date interval from a given start date and end date.
func (*NSDateInterval) IntersectionWithDateInterval ¶
func (o *NSDateInterval) IntersectionWithDateInterval(dateInterval *NSDateInterval) *NSDateInterval
Returns the intersection between the receiver and the specified date interval.
func (*NSDateInterval) IntersectsDateInterval ¶
func (o *NSDateInterval) IntersectsDateInterval(dateInterval *NSDateInterval) bool
Indicates whether the receiver intersects with the specified date interval.
func (*NSDateInterval) IsEqualToDateInterval ¶
func (o *NSDateInterval) IsEqualToDateInterval(dateInterval *NSDateInterval) bool
Indicates whether the receiver is equal to the specified date interval.
func (*NSDateInterval) StartDate ¶
func (o *NSDateInterval) StartDate() *NSDate
type NSDateIntervalFormatter ¶
type NSDateIntervalFormatter struct {
NSFormatter
}
A formatter that creates string representations of time intervals.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdateintervalformatter
func NSDateIntervalFormatterFromID ¶
func NSDateIntervalFormatterFromID(id objc.ID) *NSDateIntervalFormatter
func (*NSDateIntervalFormatter) Calendar ¶
func (o *NSDateIntervalFormatter) Calendar() *NSCalendar
func (*NSDateIntervalFormatter) DateStyle ¶
func (o *NSDateIntervalFormatter) DateStyle() NSDateIntervalFormatterStyle
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 (o *NSDateIntervalFormatter) TimeStyle() NSDateIntervalFormatterStyle
func (*NSDateIntervalFormatter) TimeZone ¶
func (o *NSDateIntervalFormatter) TimeZone() *NSTimeZone
type NSDateIntervalFormatterStyle ¶
type NSDateIntervalFormatterStyle uint64
Formatting styles for individual date and time values.
const ( NSDateIntervalFormatterNoStyle NSDateIntervalFormatterStyle = 0 NSDateIntervalFormatterShortStyle NSDateIntervalFormatterStyle = 1 NSDateIntervalFormatterMediumStyle NSDateIntervalFormatterStyle = 2 NSDateIntervalFormatterLongStyle NSDateIntervalFormatterStyle = 3 NSDateIntervalFormatterFullStyle NSDateIntervalFormatterStyle = 4 )
func (NSDateIntervalFormatterStyle) String ¶
func (e NSDateIntervalFormatterStyle) String() string
type NSDecimalNumber ¶
type NSDecimalNumber struct {
NSNumber
}
An object for representing and performing arithmetic on base-10 numbers.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdecimalnumber
func NSDecimalNumberDecimalNumberWithDecimal ¶
func NSDecimalNumberDecimalNumberWithDecimal(dcm NSDecimal) *NSDecimalNumber
Creates and returns a decimal number equivalent to a given decimal structure.
func NSDecimalNumberDecimalNumberWithMantissaExponentIsNegative ¶
func NSDecimalNumberDecimalNumberWithMantissaExponentIsNegative(mantissa uint64, exponent int16, flag bool) *NSDecimalNumber
Creates and returns a decimal number equivalent to the number specified by the arguments.
func NSDecimalNumberDecimalNumberWithString ¶
func NSDecimalNumberDecimalNumberWithString(numberValue *NSString) *NSDecimalNumber
Creates a decimal number whose value is equivalent to that in a given numeric string.
func NSDecimalNumberDecimalNumberWithStringLocale ¶
func NSDecimalNumberDecimalNumberWithStringLocale(numberValue *NSString, locale objc.ID) *NSDecimalNumber
Creates a decimal number whose value is equivalent to that in a given numeric string, interpreted using a given locale.
func NSDecimalNumberFromID ¶
func NSDecimalNumberFromID(id objc.ID) *NSDecimalNumber
func NSDecimalNumberMaximumDecimalNumber ¶
func NSDecimalNumberMaximumDecimalNumber() *NSDecimalNumber
func NSDecimalNumberMinimumDecimalNumber ¶
func NSDecimalNumberMinimumDecimalNumber() *NSDecimalNumber
func NSDecimalNumberNotANumber ¶
func NSDecimalNumberNotANumber() *NSDecimalNumber
func NSDecimalNumberOne ¶
func NSDecimalNumberOne() *NSDecimalNumber
func NSDecimalNumberZero ¶
func NSDecimalNumberZero() *NSDecimalNumber
func (*NSDecimalNumber) DecimalNumberByAdding ¶
func (o *NSDecimalNumber) DecimalNumberByAdding(decimalNumber *NSDecimalNumber) *NSDecimalNumber
Adds this number to another given number.
func (*NSDecimalNumber) DecimalNumberByAddingWithBehavior ¶
func (o *NSDecimalNumber) DecimalNumberByAddingWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber
Adds this number to another given number using the specified behavior.
func (*NSDecimalNumber) DecimalNumberByDividingBy ¶
func (o *NSDecimalNumber) DecimalNumberByDividingBy(decimalNumber *NSDecimalNumber) *NSDecimalNumber
Divides the number by another given number.
func (*NSDecimalNumber) DecimalNumberByDividingByWithBehavior ¶
func (o *NSDecimalNumber) DecimalNumberByDividingByWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber
Divides this number by another given number using the specified behavior.
func (*NSDecimalNumber) DecimalNumberByMultiplyingBy ¶
func (o *NSDecimalNumber) DecimalNumberByMultiplyingBy(decimalNumber *NSDecimalNumber) *NSDecimalNumber
Multiplies the number by another given number.
func (*NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10 ¶
func (o *NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10(power int16) *NSDecimalNumber
Multiplies the number by 10 raised to the given power.
func (*NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10WithBehavior ¶
func (o *NSDecimalNumber) DecimalNumberByMultiplyingByPowerOf10WithBehavior(power int16, behavior NSDecimalNumberBehaviors) *NSDecimalNumber
Multiplies the number by 10 raised to the given power using the specified behavior.
func (*NSDecimalNumber) DecimalNumberByMultiplyingByWithBehavior ¶
func (o *NSDecimalNumber) DecimalNumberByMultiplyingByWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber
Multiplies this number by another given number using the specified behavior.
func (*NSDecimalNumber) DecimalNumberByRaisingToPower ¶
func (o *NSDecimalNumber) DecimalNumberByRaisingToPower(power uint) *NSDecimalNumber
Raises the number to a given power.
func (*NSDecimalNumber) DecimalNumberByRaisingToPowerWithBehavior ¶
func (o *NSDecimalNumber) DecimalNumberByRaisingToPowerWithBehavior(power uint, behavior NSDecimalNumberBehaviors) *NSDecimalNumber
Raises the number to a given power using the specified behavior.
func (*NSDecimalNumber) DecimalNumberByRoundingAccordingToBehavior ¶
func (o *NSDecimalNumber) DecimalNumberByRoundingAccordingToBehavior(behavior NSDecimalNumberBehaviors) *NSDecimalNumber
Returns a rounded version of the decimal number using the specified rounding behavior.
func (*NSDecimalNumber) DecimalNumberBySubtracting ¶
func (o *NSDecimalNumber) DecimalNumberBySubtracting(decimalNumber *NSDecimalNumber) *NSDecimalNumber
Subtracts another given number from this one.
func (*NSDecimalNumber) DecimalNumberBySubtractingWithBehavior ¶
func (o *NSDecimalNumber) DecimalNumberBySubtractingWithBehavior(decimalNumber *NSDecimalNumber, behavior NSDecimalNumberBehaviors) *NSDecimalNumber
Subtracts this a given number from this one using the specified behavior.
func (*NSDecimalNumber) InitWithDecimal ¶
func (o *NSDecimalNumber) InitWithDecimal(dcm NSDecimal) *NSDecimalNumber
Initializes a decimal number to represent a given decimal.
func (*NSDecimalNumber) InitWithMantissaExponentIsNegative ¶
func (o *NSDecimalNumber) InitWithMantissaExponentIsNegative(mantissa uint64, exponent int16, flag bool) *NSDecimalNumber
Initializes a decimal number using the given mantissa, exponent, and sign.
func (*NSDecimalNumber) InitWithString ¶
func (o *NSDecimalNumber) InitWithString(numberValue *NSString) *NSDecimalNumber
Initializes a decimal number so that its value is equivalent to that in a given numeric string.
func (*NSDecimalNumber) InitWithStringLocale ¶
func (o *NSDecimalNumber) InitWithStringLocale(numberValue *NSString, locale objc.ID) *NSDecimalNumber
Initializes a decimal number so that its value is equivalent to that in a given numeric string, interpreted using a given locale.
type NSDecimalNumberBehaviors ¶
type NSDecimalNumberBehaviors interface {
RoundingMode() NSRoundingMode
Scale() int16
ExceptionDuringOperationErrorLeftOperandRightOperand(operation objc.SEL, error_ NSCalculationError, leftOperand *NSDecimalNumber, rightOperand *NSDecimalNumber) *NSDecimalNumber
}
NSDecimalNumberBehaviors wraps the ObjC protocol NSDecimalNumberBehaviors.
func NSDecimalNumberDefaultBehavior ¶
func NSDecimalNumberDefaultBehavior() NSDecimalNumberBehaviors
type NSDecimalNumberHandler ¶
type NSDecimalNumberHandler struct {
NSObject
}
A class that adopts the decimal number behaviors protocol.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdecimalnumberhandler
func NSDecimalNumberHandlerDecimalNumberHandlerWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero ¶
func NSDecimalNumberHandlerDecimalNumberHandlerWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero(roundingMode NSRoundingMode, scale int16, exact bool, overflow bool, underflow bool, divideByZero bool) *NSDecimalNumberHandler
Returns an NSDecimalNumberHandler object with customized behavior.
func NSDecimalNumberHandlerDefaultDecimalNumberHandler ¶
func NSDecimalNumberHandlerDefaultDecimalNumberHandler() *NSDecimalNumberHandler
func NSDecimalNumberHandlerFromID ¶
func NSDecimalNumberHandlerFromID(id objc.ID) *NSDecimalNumberHandler
func (*NSDecimalNumberHandler) InitWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero ¶
func (o *NSDecimalNumberHandler) InitWithRoundingModeScaleRaiseOnExactnessRaiseOnOverflowRaiseOnUnderflowRaiseOnDivideByZero(roundingMode NSRoundingMode, scale int16, exact bool, overflow bool, underflow bool, divideByZero bool) *NSDecimalNumberHandler
Returns an NSDecimalNumberHandler object initialized so it behaves as specified by the method’s arguments.
type NSDecodingFailurePolicy ¶
type NSDecodingFailurePolicy int64
Policies describing the action the coder should take when encountering decode failures.
const ( NSDecodingFailurePolicyRaiseException NSDecodingFailurePolicy = 0 NSDecodingFailurePolicySetErrorAndReturn NSDecodingFailurePolicy = 1 )
func (NSDecodingFailurePolicy) String ¶
func (e NSDecodingFailurePolicy) String() string
type NSDeleteCommand ¶
type NSDeleteCommand struct {
NSScriptCommand
}
A command that deletes a scriptable object.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdeletecommand
func NSDeleteCommandFromID ¶
func NSDeleteCommandFromID(id objc.ID) *NSDeleteCommand
func (*NSDeleteCommand) KeySpecifier ¶
func (o *NSDeleteCommand) KeySpecifier() *NSScriptObjectSpecifier
type NSDictionary ¶
A static collection of objects associated with unique keys.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdictionary
func NSDictionaryDictionary ¶
func NSDictionaryDictionary() *NSDictionary[objc.ID, objc.ID]
Creates an empty dictionary.
func NSDictionaryDictionaryWithContentsOfFile ¶
Creates a dictionary using the keys and values found in a file specified by a given path. Deprecated: since macOS API_TO_BE_DEPRECATED.
func NSDictionaryDictionaryWithContentsOfURL ¶
Creates a dictionary using the keys and values found in a resource specified by a given URL. Deprecated: since macOS API_TO_BE_DEPRECATED.
func NSDictionaryDictionaryWithContentsOfURLError ¶
func NSDictionaryDictionaryWithContentsOfURLError(url *NSURL) (*NSDictionary[*NSString, objc.ID], error)
Creates a dictionary using the keys and values found in a resource specified by a given URL.
func NSDictionaryDictionaryWithDictionary ¶
func NSDictionaryDictionaryWithDictionary(dict *NSDictionary[objc.ID, objc.ID]) *NSDictionary[objc.ID, objc.ID]
Creates a dictionary containing the keys and values from another given dictionary.
func NSDictionaryDictionaryWithObjectForKey ¶
func NSDictionaryDictionaryWithObjectForKey(object objc.ID, key NSCopying) *NSDictionary[objc.ID, objc.ID]
Creates a dictionary containing a given key and value.
func NSDictionaryDictionaryWithObjectsForKeys ¶
func NSDictionaryDictionaryWithObjectsForKeys(objects *NSArray[objc.ID], keys *NSArray[NSCopying]) *NSDictionary[objc.ID, objc.ID]
Creates a dictionary containing entries constructed from the contents of an array of keys and an array of values.
func NSDictionaryDictionaryWithObjectsForKeysCount ¶
func NSDictionaryDictionaryWithObjectsForKeysCount(objects unsafe.Pointer, keys NSCopying, cnt uint) *NSDictionary[objc.ID, objc.ID]
Creates a dictionary containing a specified number of objects from a C array.
func NSDictionaryFromID ¶
func NSHTTPCookieRequestHeaderFieldsWithCookies ¶
func NSHTTPCookieRequestHeaderFieldsWithCookies(cookies *NSArray[*NSHTTPCookie]) *NSDictionary[*NSString, *NSString]
@method requestHeaderFieldsWithCookies: @abstract Return a dictionary of header fields that can be used to add the specified cookies to the request. @param cookies The cookies to turn into request headers. @result An NSDictionary where the keys are header field names, and the values are the corresponding header field values.
func NSKeyedUnarchiverUnarchivedDictionaryWithKeysOfClassObjectsOfClassFromDataError ¶
func NSKeyedUnarchiverUnarchivedDictionaryWithKeysOfClassObjectsOfClassFromDataError(keyCls objc.Class, valueCls objc.Class, data *NSData) (*NSDictionary[objc.ID, objc.ID], error)
Decodes the \c NSDictionary root object from \c data which should be an \c NSDictionary<keyCls,objectCls> with keys of type given in \c keyCls and objects of the given non-collection class \c objectCls (no nested dictionaries or other dictionaries contained in the dictionary, etc) from the given archive, previously encoded by \c NSKeyedArchiver.
func NSKeyedUnarchiverUnarchivedDictionaryWithKeysOfClassesObjectsOfClassesFromDataError ¶
func NSKeyedUnarchiverUnarchivedDictionaryWithKeysOfClassesObjectsOfClassesFromDataError(keyClasses *NSSet[objc.Class], valueClasses *NSSet[objc.Class], data *NSData) (*NSDictionary[objc.ID, objc.ID], error)
Decodes the \c NSDictionary root object from \c data which should be an \c NSDictionary, with keys of the types given in \c keyClasses and objects of the given non-collection classes in \c objectClasses (no nested dictionaries or other dictionaries contained in the dictionary, etc) from the given archive, previously encoded by \c NSKeyedArchiver.
func NSLocaleComponentsFromLocaleIdentifier ¶
func NSLocaleComponentsFromLocaleIdentifier(string_ *NSString) *NSDictionary[*NSString, *NSString]
Returns a dictionary that is the result of parsing a locale ID.
func NSNetServiceDictionaryFromTXTRecordData ¶
func NSNetServiceDictionaryFromTXTRecordData(txtData *NSData) *NSDictionary[*NSString, *NSData]
func NSTimeZoneAbbreviationDictionary ¶
func NSTimeZoneAbbreviationDictionary() *NSDictionary[*NSString, *NSString]
func NSURLResourceValuesForKeysFromBookmarkData ¶
func NSURLResourceValuesForKeysFromBookmarkData(keys *NSArray[*NSString], bookmarkData *NSData) *NSDictionary[*NSString, objc.ID]
Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data.
func (*NSDictionary[KeyType, ObjectType]) AllKeys ¶
func (o *NSDictionary[KeyType, ObjectType]) AllKeys() *NSArray[KeyType]
func (*NSDictionary[KeyType, ObjectType]) AllKeysForObject ¶
func (o *NSDictionary[KeyType, ObjectType]) AllKeysForObject(anObject ObjectType) *NSArray[KeyType]
Returns a new array containing the keys corresponding to all occurrences of a given object in the dictionary.
func (*NSDictionary[KeyType, ObjectType]) AllValues ¶
func (o *NSDictionary[KeyType, ObjectType]) AllValues() *NSArray[ObjectType]
func (*NSDictionary[KeyType, ObjectType]) Count ¶
func (o *NSDictionary[KeyType, ObjectType]) Count() uint
func (*NSDictionary[KeyType, ObjectType]) CountByEnumeratingWithStateObjectsCount ¶
func (o *NSDictionary[KeyType, ObjectType]) CountByEnumeratingWithStateObjectsCount(state *NSFastEnumerationState, buffer unsafe.Pointer, len_ uint) uint
Returns by reference a C array of objects over which the sender should iterate.
func (*NSDictionary[KeyType, ObjectType]) DescriptionInStringsFileFormat ¶
func (o *NSDictionary[KeyType, ObjectType]) DescriptionInStringsFileFormat() *NSString
func (*NSDictionary[KeyType, ObjectType]) DescriptionWithLocale ¶
func (o *NSDictionary[KeyType, ObjectType]) DescriptionWithLocale(locale objc.ID) *NSString
Returns a string object that represents the contents of the dictionary, formatted as a property list.
func (*NSDictionary[KeyType, ObjectType]) DescriptionWithLocaleIndent ¶
func (o *NSDictionary[KeyType, ObjectType]) DescriptionWithLocaleIndent(locale objc.ID, level uint) *NSString
Returns a string object that represents the contents of the dictionary, formatted as a property list.
func (*NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsUsing ¶
func (o *NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsUsing(block objc.Block)
Applies a given block object to the entries of the dictionary.
func (*NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsWithOptionsUsing ¶
func (o *NSDictionary[KeyType, ObjectType]) EnumerateKeysAndObjectsWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)
Applies a given block object to the entries of the dictionary, with options specifying how the enumeration is performed.
func (*NSDictionary[KeyType, ObjectType]) FileCreationDate ¶
func (o *NSDictionary[KeyType, ObjectType]) FileCreationDate() *NSDate
Returns the file’s creation date.
func (*NSDictionary[KeyType, ObjectType]) FileExtensionHidden ¶
func (o *NSDictionary[KeyType, ObjectType]) FileExtensionHidden() bool
Returns a Boolean value indicating whether the file hides its extension.
func (*NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountID ¶
func (o *NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountID() *NSNumber
Returns file’s group owner account ID.
func (*NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountName ¶
func (o *NSDictionary[KeyType, ObjectType]) FileGroupOwnerAccountName() *NSString
Returns the file’s group owner account name.
func (*NSDictionary[KeyType, ObjectType]) FileHFSCreatorCode ¶
func (o *NSDictionary[KeyType, ObjectType]) FileHFSCreatorCode() uint
Returns the file’s HFS creator code.
func (*NSDictionary[KeyType, ObjectType]) FileHFSTypeCode ¶
func (o *NSDictionary[KeyType, ObjectType]) FileHFSTypeCode() uint
Returns file’s HFS type code.
func (*NSDictionary[KeyType, ObjectType]) FileIsAppendOnly ¶
func (o *NSDictionary[KeyType, ObjectType]) FileIsAppendOnly() bool
Returns a Boolean value indicating whether the file is append only.
func (*NSDictionary[KeyType, ObjectType]) FileIsImmutable ¶
func (o *NSDictionary[KeyType, ObjectType]) FileIsImmutable() bool
Returns a Boolean value indicating whether the file is immutable.
func (*NSDictionary[KeyType, ObjectType]) FileModificationDate ¶
func (o *NSDictionary[KeyType, ObjectType]) FileModificationDate() *NSDate
Returns file’s modification date.
func (*NSDictionary[KeyType, ObjectType]) FileOwnerAccountID ¶
func (o *NSDictionary[KeyType, ObjectType]) FileOwnerAccountID() *NSNumber
Returns the file’s owner account ID.
func (*NSDictionary[KeyType, ObjectType]) FileOwnerAccountName ¶
func (o *NSDictionary[KeyType, ObjectType]) FileOwnerAccountName() *NSString
Returns the file’s owner account name.
func (*NSDictionary[KeyType, ObjectType]) FilePosixPermissions ¶
func (o *NSDictionary[KeyType, ObjectType]) FilePosixPermissions() uint
Returns the file’s POSIX permissions.
func (*NSDictionary[KeyType, ObjectType]) FileSize ¶
func (o *NSDictionary[KeyType, ObjectType]) FileSize() uint64
Returns the file’s size, in bytes.
func (*NSDictionary[KeyType, ObjectType]) FileSystemFileNumber ¶
func (o *NSDictionary[KeyType, ObjectType]) FileSystemFileNumber() uint
Returns the filesystem file number.
func (*NSDictionary[KeyType, ObjectType]) FileSystemNumber ¶
func (o *NSDictionary[KeyType, ObjectType]) FileSystemNumber() int
Returns the filesystem number.
func (*NSDictionary[KeyType, ObjectType]) FileType ¶
func (o *NSDictionary[KeyType, ObjectType]) FileType() *NSString
Returns the file type.
func (*NSDictionary[KeyType, ObjectType]) GetObjectsAndKeys ¶
func (o *NSDictionary[KeyType, ObjectType]) GetObjectsAndKeys(objects unsafe.Pointer, keys unsafe.Pointer)
Returns by reference C arrays of the keys and values in the dictionary. Deprecated: Use -getObjects:andKeys:count: instead
func (*NSDictionary[KeyType, ObjectType]) GetObjectsAndKeysCount ¶
func (o *NSDictionary[KeyType, ObjectType]) GetObjectsAndKeysCount(objects unsafe.Pointer, keys unsafe.Pointer, count uint)
Returns by reference C arrays of the keys and values in the dictionary.
func (*NSDictionary[KeyType, ObjectType]) Init ¶
func (o *NSDictionary[KeyType, ObjectType]) Init() *NSDictionary[KeyType, ObjectType]
Initializes a newly allocated dictionary.
func (*NSDictionary[KeyType, ObjectType]) InitWithCoder ¶
func (o *NSDictionary[KeyType, ObjectType]) InitWithCoder(coder *NSCoder) *NSDictionary[KeyType, ObjectType]
Creates a dictionary initialized from data in the provided unarchiver.
func (*NSDictionary[KeyType, ObjectType]) InitWithContentsOfFile ¶
func (o *NSDictionary[KeyType, ObjectType]) InitWithContentsOfFile(path *NSString) *NSDictionary[KeyType, ObjectType]
Initializes a newly allocated dictionary using the keys and values found in a file at a given path. Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSDictionary[KeyType, ObjectType]) InitWithContentsOfURL ¶
func (o *NSDictionary[KeyType, ObjectType]) InitWithContentsOfURL(url *NSURL) *NSDictionary[KeyType, ObjectType]
Initializes a newly allocated dictionary using the keys and values found at a given URL. Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSDictionary[KeyType, ObjectType]) InitWithContentsOfURLError ¶
func (o *NSDictionary[KeyType, ObjectType]) InitWithContentsOfURLError(url *NSURL) (*NSDictionary[*NSString, ObjectType], error)
Initializes a newly allocated dictionary using the keys and values found at a given URL.
func (*NSDictionary[KeyType, ObjectType]) InitWithDictionary ¶
func (o *NSDictionary[KeyType, ObjectType]) InitWithDictionary(otherDictionary *NSDictionary[KeyType, ObjectType]) *NSDictionary[KeyType, ObjectType]
Initializes a newly allocated dictionary by placing in it the keys and values contained in another given dictionary.
func (*NSDictionary[KeyType, ObjectType]) InitWithDictionaryCopyItems ¶
func (o *NSDictionary[KeyType, ObjectType]) InitWithDictionaryCopyItems(otherDictionary *NSDictionary[KeyType, ObjectType], flag bool) *NSDictionary[KeyType, ObjectType]
Initializes a newly allocated dictionary using the objects contained in another given dictionary.
func (*NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeys ¶
func (o *NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeys(objects *NSArray[ObjectType], keys *NSArray[NSCopying]) *NSDictionary[KeyType, ObjectType]
Initializes a newly allocated dictionary with key-value pairs constructed from the provided arrays of keys and objects.
func (*NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeysCount ¶
func (o *NSDictionary[KeyType, ObjectType]) InitWithObjectsForKeysCount(objects unsafe.Pointer, keys NSCopying, cnt uint) *NSDictionary[KeyType, ObjectType]
Initializes a newly allocated dictionary with the specified number of key-value pairs constructed from the provided C arrays of keys and objects.
func (*NSDictionary[KeyType, ObjectType]) IsEqualToDictionary ¶
func (o *NSDictionary[KeyType, ObjectType]) IsEqualToDictionary(otherDictionary *NSDictionary[KeyType, ObjectType]) bool
Returns a Boolean value that indicates whether the contents of the receiving dictionary are equal to the contents of another given dictionary.
func (*NSDictionary[KeyType, ObjectType]) KeyEnumerator ¶
func (o *NSDictionary[KeyType, ObjectType]) KeyEnumerator() *NSEnumerator[KeyType]
Provides an enumerator to access the keys in the dictionary.
func (*NSDictionary[KeyType, ObjectType]) KeysOfEntriesPassingTest ¶
func (o *NSDictionary[KeyType, ObjectType]) KeysOfEntriesPassingTest(predicate objc.Block) *NSSet[KeyType]
Returns the set of keys whose corresponding value satisfies a constraint described by a block object.
func (*NSDictionary[KeyType, ObjectType]) KeysOfEntriesWithOptionsPassingTest ¶
func (o *NSDictionary[KeyType, ObjectType]) KeysOfEntriesWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSSet[KeyType]
Returns the set of keys whose corresponding value satisfies a constraint described by a block object.
func (*NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingComparator ¶
func (o *NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[KeyType]
Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values using a given comparator block.
func (*NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingSelector ¶
func (o *NSDictionary[KeyType, ObjectType]) KeysSortedByValueUsingSelector(comparator objc.SEL) *NSArray[KeyType]
Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values.
func (*NSDictionary[KeyType, ObjectType]) KeysSortedByValueWithOptionsUsingComparator ¶
func (o *NSDictionary[KeyType, ObjectType]) KeysSortedByValueWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[KeyType]
Returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values using a given comparator block and a specified set of options.
func (*NSDictionary[KeyType, ObjectType]) ObjectEnumerator ¶
func (o *NSDictionary[KeyType, ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]
Returns an enumerator object that lets you access each value in the dictionary.
func (*NSDictionary[KeyType, ObjectType]) ObjectForKey ¶
func (o *NSDictionary[KeyType, ObjectType]) ObjectForKey(aKey KeyType) ObjectType
Returns the value associated with a given key.
func (*NSDictionary[KeyType, ObjectType]) ObjectForKeyedSubscript ¶
func (o *NSDictionary[KeyType, ObjectType]) ObjectForKeyedSubscript(key KeyType) ObjectType
Returns the value associated with a given key.
func (*NSDictionary[KeyType, ObjectType]) ObjectsForKeysNotFoundMarker ¶
func (o *NSDictionary[KeyType, ObjectType]) ObjectsForKeysNotFoundMarker(keys *NSArray[KeyType], marker ObjectType) *NSArray[ObjectType]
Returns as a static array the set of objects from the dictionary that corresponds to the specified keys.
func (*NSDictionary[KeyType, ObjectType]) WriteToFileAtomically ¶
func (o *NSDictionary[KeyType, ObjectType]) WriteToFileAtomically(path *NSString, useAuxiliaryFile bool) bool
Writes a property list representation of the contents of the dictionary to a given path. Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSDictionary[KeyType, ObjectType]) WriteToURLAtomically ¶
func (o *NSDictionary[KeyType, ObjectType]) WriteToURLAtomically(url *NSURL, atomically bool) bool
Writes a property list representation of the contents of the dictionary to a given URL. Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSDictionary[KeyType, ObjectType]) WriteToURLError ¶
func (o *NSDictionary[KeyType, ObjectType]) WriteToURLError(url *NSURL) (bool, error)
Writes a property list representation of the contents of the dictionary to a given URL.
type NSDimension ¶
type NSDimension struct {
NSUnit
}
An abstract class representing a dimensional unit of measure.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdimension
func NSDimensionBaseUnit ¶
func NSDimensionBaseUnit() *NSDimension
func NSDimensionFromID ¶
func NSDimensionFromID(id objc.ID) *NSDimension
func (*NSDimension) Converter ¶
func (o *NSDimension) Converter() *NSUnitConverter
func (*NSDimension) InitWithSymbolConverter ¶
func (o *NSDimension) InitWithSymbolConverter(symbol *NSString, converter *NSUnitConverter) *NSDimension
type NSDirectoryEnumerationOptions ¶
type NSDirectoryEnumerationOptions uint64
Options for enumerating the contents of directories.
const ( NSDirectoryEnumerationSkipsSubdirectoryDescendants NSDirectoryEnumerationOptions = 1 NSDirectoryEnumerationSkipsPackageDescendants NSDirectoryEnumerationOptions = 2 NSDirectoryEnumerationSkipsHiddenFiles NSDirectoryEnumerationOptions = 4 NSDirectoryEnumerationIncludesDirectoriesPostOrder NSDirectoryEnumerationOptions = 8 NSDirectoryEnumerationProducesRelativePathURLs NSDirectoryEnumerationOptions = 16 )
func (NSDirectoryEnumerationOptions) String ¶
func (e NSDirectoryEnumerationOptions) String() string
type NSDirectoryEnumerator ¶
type NSDirectoryEnumerator[ObjectType purego.AnyObject] struct { NSEnumerator[ObjectType] }
An object that enumerates the contents of a directory.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdirectoryenumerator
func NSDirectoryEnumeratorFromID ¶
func NSDirectoryEnumeratorFromID[ObjectType purego.AnyObject](id objc.ID) *NSDirectoryEnumerator[ObjectType]
func (*NSDirectoryEnumerator[ObjectType]) DirectoryAttributes ¶
func (o *NSDirectoryEnumerator[ObjectType]) DirectoryAttributes() *NSDictionary[*NSString, objc.ID]
func (*NSDirectoryEnumerator[ObjectType]) FileAttributes ¶
func (o *NSDirectoryEnumerator[ObjectType]) FileAttributes() *NSDictionary[*NSString, objc.ID]
func (*NSDirectoryEnumerator[ObjectType]) IsEnumeratingDirectoryPostOrder ¶
func (o *NSDirectoryEnumerator[ObjectType]) IsEnumeratingDirectoryPostOrder() bool
func (*NSDirectoryEnumerator[ObjectType]) Level ¶
func (o *NSDirectoryEnumerator[ObjectType]) Level() uint
func (*NSDirectoryEnumerator[ObjectType]) SkipDescendants ¶
func (o *NSDirectoryEnumerator[ObjectType]) SkipDescendants()
func (*NSDirectoryEnumerator[ObjectType]) SkipDescendents ¶
func (o *NSDirectoryEnumerator[ObjectType]) SkipDescendents()
type NSDiscardableContent ¶
type NSDiscardableContent interface {
BeginContentAccess() bool
EndContentAccess()
DiscardContentIfPossible()
IsContentDiscarded() bool
}
NSDiscardableContent wraps the ObjC protocol NSDiscardableContent.
type NSDistantObject ¶
type NSDistantObject struct {
NSProxy
}
A proxy for objects in other applications or threads.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdistantobject Deprecated: Use NSXPCConnection instead
func NSConnectionRootProxyForConnectionWithRegisteredNameHost ¶
func NSConnectionRootProxyForConnectionWithRegisteredNameHost(name *NSString, hostName *NSString) *NSDistantObject
Returns a proxy for the root object of the NSConnection object registered with the default NSPortNameServer under a given name on a given host. Deprecated: since macOS 10.6.
func NSConnectionRootProxyForConnectionWithRegisteredNameHostUsingNameServer ¶
func NSConnectionRootProxyForConnectionWithRegisteredNameHostUsingNameServer(name *NSString, hostName *NSString, server *NSPortNameServer) *NSDistantObject
Returns a proxy for the root object of the NSConnection object registered with server under name on a given host.
func NSDistantObjectFromID ¶
func NSDistantObjectFromID(id objc.ID) *NSDistantObject
func (*NSDistantObject) ConnectionForProxy ¶
func (o *NSDistantObject) ConnectionForProxy() *NSConnection
func (*NSDistantObject) InitWithCoder ¶
func (o *NSDistantObject) InitWithCoder(inCoder *NSCoder) *NSDistantObject
func (*NSDistantObject) InitWithLocalConnection ¶
func (o *NSDistantObject) InitWithLocalConnection(target objc.ID, connection *NSConnection) *NSDistantObject
Initializes an NSDistantObject object as a local proxy for a given object.
func (*NSDistantObject) InitWithTargetConnection ¶
func (o *NSDistantObject) InitWithTargetConnection(target objc.ID, connection *NSConnection) *NSDistantObject
Initializes a newly allocated NSDistantObject as a remote proxy for target, which is an id in another thread or another application’s address space.
func (*NSDistantObject) SetProtocolForProxy ¶
func (o *NSDistantObject) SetProtocolForProxy(proto unsafe.Pointer)
Sets the methods known to be handled by the receiver to those in a given protocol.
type NSDistantObjectRequest ¶
type NSDistantObjectRequest struct {
NSObject
}
An object used by the distributed objects system to help handle invocations between different processes.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdistantobjectrequest Deprecated: Use NSXPCConnection instead
func NSDistantObjectRequestFromID ¶
func NSDistantObjectRequestFromID(id objc.ID) *NSDistantObjectRequest
func (*NSDistantObjectRequest) Connection ¶
func (o *NSDistantObjectRequest) Connection() *NSConnection
func (*NSDistantObjectRequest) Conversation ¶
func (o *NSDistantObjectRequest) Conversation() objc.ID
func (*NSDistantObjectRequest) Invocation
deprecated
func (o *NSDistantObjectRequest) Invocation() *NSInvocation
Deprecated: Use NSXPCConnection instead
func (*NSDistantObjectRequest) ReplyWithException ¶
func (o *NSDistantObjectRequest) ReplyWithException(exception *NSException)
Sends a reply back to the remote object making the distant object request.
type NSDistributedLock ¶
type NSDistributedLock struct {
NSObject
}
A lock that multiple applications on multiple hosts can use to restrict access to some shared resource, such as a file.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdistributedlock
func NSDistributedLockFromID ¶
func NSDistributedLockFromID(id objc.ID) *NSDistributedLock
func NSDistributedLockLockWithPath ¶
func NSDistributedLockLockWithPath(path *NSString) *NSDistributedLock
Returns an NSDistributedLock object initialized to use as the locking object the file-system entry specified by a given path.
func (*NSDistributedLock) BreakLock ¶
func (o *NSDistributedLock) BreakLock()
Forces the lock to be relinquished.
func (*NSDistributedLock) InitWithPath ¶
func (o *NSDistributedLock) InitWithPath(path *NSString) *NSDistributedLock
Initializes an NSDistributedLock object to use as the lock the file-system entry specified by a given path.
func (*NSDistributedLock) LockDate ¶
func (o *NSDistributedLock) LockDate() *NSDate
func (*NSDistributedLock) TryLock ¶
func (o *NSDistributedLock) TryLock() bool
Attempts to acquire the receiver and immediately returns a Boolean value that indicates whether the attempt was successful.
type NSDistributedNotificationCenter ¶
type NSDistributedNotificationCenter struct {
NSNotificationCenter
}
A notification dispatch mechanism that enables the broadcast of notifications across task boundaries.
Apple documentation: https://developer.apple.com/documentation/foundation/nsdistributednotificationcenter
func NSDistributedNotificationCenterDefaultCenter ¶
func NSDistributedNotificationCenterDefaultCenter() *NSDistributedNotificationCenter
func NSDistributedNotificationCenterFromID ¶
func NSDistributedNotificationCenterFromID(id objc.ID) *NSDistributedNotificationCenter
func NSDistributedNotificationCenterNotificationCenterForType ¶
func NSDistributedNotificationCenterNotificationCenterForType(notificationCenterType *NSString) *NSDistributedNotificationCenter
func (*NSDistributedNotificationCenter) AddObserverSelectorNameObjectSuspensionBehavior ¶
func (o *NSDistributedNotificationCenter) AddObserverSelectorNameObjectSuspensionBehavior(observer objc.ID, selector objc.SEL, name *NSString, object *NSString, suspensionBehavior NSNotificationSuspensionBehavior)
func (*NSDistributedNotificationCenter) PostNotificationNameObjectUserInfoDeliverImmediately ¶
func (o *NSDistributedNotificationCenter) PostNotificationNameObjectUserInfoDeliverImmediately(name *NSString, object *NSString, userInfo *NSDictionary[objc.ID, objc.ID], deliverImmediately bool)
func (*NSDistributedNotificationCenter) PostNotificationNameObjectUserInfoOptions ¶
func (o *NSDistributedNotificationCenter) PostNotificationNameObjectUserInfoOptions(name *NSString, object *NSString, userInfo *NSDictionary[objc.ID, objc.ID], options NSDistributedNotificationOptions)
func (*NSDistributedNotificationCenter) SetSuspended ¶
func (o *NSDistributedNotificationCenter) SetSuspended(suspended bool)
func (*NSDistributedNotificationCenter) Suspended ¶
func (o *NSDistributedNotificationCenter) Suspended() bool
type NSDistributedNotificationOptions ¶
type NSDistributedNotificationOptions uint64
const ( NSDistributedNotificationDeliverImmediately NSDistributedNotificationOptions = 1 NSDistributedNotificationPostToAllSessions NSDistributedNotificationOptions = 2 )
func (NSDistributedNotificationOptions) String ¶
func (e NSDistributedNotificationOptions) String() string
type NSEdgeInsets ¶
A description of the distance between the edges of two rectangles.
func NSEdgeInsetsMake ¶
func NSEdgeInsetsMake(top float64, left float64, bottom float64, right float64) NSEdgeInsets
func NSEdgeInsetsZero ¶
func NSEdgeInsetsZero() NSEdgeInsets
type NSEnergyFormatter ¶
type NSEnergyFormatter struct {
NSFormatter
}
A formatter that provides localized descriptions of energy values.
Apple documentation: https://developer.apple.com/documentation/foundation/nsenergyformatter
func NSEnergyFormatterFromID ¶
func NSEnergyFormatterFromID(id objc.ID) *NSEnergyFormatter
func (*NSEnergyFormatter) IsForFoodEnergyUse ¶
func (o *NSEnergyFormatter) IsForFoodEnergyUse() bool
func (*NSEnergyFormatter) NumberFormatter ¶
func (o *NSEnergyFormatter) NumberFormatter() *NSNumberFormatter
func (*NSEnergyFormatter) SetForFoodEnergyUse ¶
func (o *NSEnergyFormatter) SetForFoodEnergyUse(forFoodEnergyUse bool)
func (*NSEnergyFormatter) SetNumberFormatter ¶
func (o *NSEnergyFormatter) SetNumberFormatter(numberFormatter *NSNumberFormatter)
func (*NSEnergyFormatter) SetUnitStyle ¶
func (o *NSEnergyFormatter) SetUnitStyle(unitStyle NSFormattingUnitStyle)
func (*NSEnergyFormatter) StringFromJoules ¶
func (o *NSEnergyFormatter) StringFromJoules(numberInJoules float64) *NSString
func (*NSEnergyFormatter) StringFromValueUnit ¶
func (o *NSEnergyFormatter) StringFromValueUnit(value float64, unit NSEnergyFormatterUnit) *NSString
func (*NSEnergyFormatter) UnitStringFromJoulesUsedUnit ¶
func (o *NSEnergyFormatter) UnitStringFromJoulesUsedUnit(numberInJoules float64, unitp *NSEnergyFormatterUnit) *NSString
func (*NSEnergyFormatter) UnitStringFromValueUnit ¶
func (o *NSEnergyFormatter) UnitStringFromValueUnit(value float64, unit NSEnergyFormatterUnit) *NSString
func (*NSEnergyFormatter) UnitStyle ¶
func (o *NSEnergyFormatter) UnitStyle() NSFormattingUnitStyle
type NSEnergyFormatterUnit ¶
type NSEnergyFormatterUnit int64
The units supported by the NSEnergyFormatter class.
const ( NSEnergyFormatterUnitJoule NSEnergyFormatterUnit = 11 NSEnergyFormatterUnitKilojoule NSEnergyFormatterUnit = 14 NSEnergyFormatterUnitCalorie NSEnergyFormatterUnit = 1793 NSEnergyFormatterUnitKilocalorie NSEnergyFormatterUnit = 1794 )
func (NSEnergyFormatterUnit) String ¶
func (e NSEnergyFormatterUnit) String() string
type NSEnumerationOptions ¶
type NSEnumerationOptions uint64
Options for block enumeration operations.
const ( // Specifies that the Block enumeration should be concurrent. NSEnumerationConcurrent NSEnumerationOptions = 1 // Specifies that the enumeration should be performed in reverse. NSEnumerationReverse NSEnumerationOptions = 2 )
func (NSEnumerationOptions) String ¶
func (e NSEnumerationOptions) String() string
type NSEnumerator ¶
An abstract class whose subclasses enumerate collections of objects, such as arrays and dictionaries.
Apple documentation: https://developer.apple.com/documentation/foundation/nsenumerator
func NSEnumeratorFromID ¶
func NSEnumeratorFromID[ObjectType purego.AnyObject](id objc.ID) *NSEnumerator[ObjectType]
func (*NSEnumerator[ObjectType]) AllObjects ¶
func (o *NSEnumerator[ObjectType]) AllObjects() *NSArray[ObjectType]
func (*NSEnumerator[ObjectType]) NextObject ¶
func (o *NSEnumerator[ObjectType]) NextObject() ObjectType
Returns the next object from the collection being enumerated.
type NSError ¶
type NSError struct {
NSObject
}
Information about an error condition including a domain, a domain-specific error code, and application-specific information.
Apple documentation: https://developer.apple.com/documentation/foundation/nserror
func NSErrorErrorWithDomainCodeUserInfo ¶
func NSErrorErrorWithDomainCodeUserInfo(domain *NSString, code int, dict *NSDictionary[*NSString, objc.ID]) *NSError
Creates and initializes an NSError object for a given domain and code with a given userInfo dictionary.
func NSErrorFromID ¶
func (*NSError) HelpAnchor ¶
func (*NSError) InitWithDomainCodeUserInfo ¶
func (o *NSError) InitWithDomainCodeUserInfo(domain *NSString, code int, dict *NSDictionary[*NSString, objc.ID]) *NSError
Returns an NSError object initialized for a given domain and code with a given userInfo dictionary.
func (*NSError) LocalizedDescription ¶
func (*NSError) LocalizedFailureReason ¶
func (*NSError) LocalizedRecoveryOptions ¶
func (*NSError) LocalizedRecoverySuggestion ¶
func (*NSError) RecoveryAttempter ¶
type NSException ¶
type NSException struct {
NSObject
}
An object that represents a special condition that interrupts the normal flow of program execution.
Apple documentation: https://developer.apple.com/documentation/foundation/nsexception
func NSExceptionExceptionWithNameReasonUserInfo ¶
func NSExceptionExceptionWithNameReasonUserInfo(name *NSString, reason *NSString, userInfo *NSDictionary[objc.ID, objc.ID]) *NSException
Creates and returns an exception object .
func NSExceptionFromID ¶
func NSExceptionFromID(id objc.ID) *NSException
func (*NSException) CallStackReturnAddresses ¶
func (o *NSException) CallStackReturnAddresses() *NSArray[*NSNumber]
func (*NSException) CallStackSymbols ¶
func (o *NSException) CallStackSymbols() *NSArray[*NSString]
func (*NSException) InitWithNameReasonUserInfo ¶
func (o *NSException) InitWithNameReasonUserInfo(aName *NSString, aReason *NSString, aUserInfo *NSDictionary[objc.ID, objc.ID]) *NSException
Initializes and returns a newly allocated exception object.
func (*NSException) Name ¶
func (o *NSException) Name() *NSString
func (*NSException) Raise ¶
func (o *NSException) Raise()
Raises the receiver, causing program flow to jump to the local exception handler.
func (*NSException) Reason ¶
func (o *NSException) Reason() *NSString
func (*NSException) UserInfo ¶
func (o *NSException) UserInfo() *NSDictionary[objc.ID, objc.ID]
type NSExpression ¶
type NSExpression struct {
NSObject
}
An expression for use in a comparison predicate.
Apple documentation: https://developer.apple.com/documentation/foundation/nsexpression
func NSExpressionExpressionForAggregate ¶
func NSExpressionExpressionForAggregate(subexpressions *NSArray[*NSExpression]) *NSExpression
Creates an aggregate expression for a specified collection.
func NSExpressionExpressionForAnyKey ¶
func NSExpressionExpressionForAnyKey() *NSExpression
Creates an expression that represents any key for a Spotlight query.
func NSExpressionExpressionForBlockArguments ¶
func NSExpressionExpressionForBlockArguments(block func(objc.ID, *NSArray[*NSExpression], *NSMutableDictionary[objc.ID, objc.ID]) objc.ID, arguments *NSArray[*NSExpression]) *NSExpression
Creates an expression object that uses the block for evaluating objects.
func NSExpressionExpressionForConditionalTrueExpressionFalseExpression ¶
func NSExpressionExpressionForConditionalTrueExpressionFalseExpression(predicate *NSPredicate, trueExpression *NSExpression, falseExpression *NSExpression) *NSExpression
Creates an expression that returns a result, depending on the value of predicate.
func NSExpressionExpressionForConstantValue ¶
func NSExpressionExpressionForConstantValue(obj objc.ID) *NSExpression
Creates an expression that represents a specified constant value.
func NSExpressionExpressionForEvaluatedObject ¶
func NSExpressionExpressionForEvaluatedObject() *NSExpression
Creates an expression that represents the object you’re evaluating.
func NSExpressionExpressionForFunctionArguments ¶
func NSExpressionExpressionForFunctionArguments(name *NSString, parameters *NSArray[objc.ID]) *NSExpression
Creates an expression that invokes one of the predefined functions.
func NSExpressionExpressionForFunctionSelectorNameArguments ¶
func NSExpressionExpressionForFunctionSelectorNameArguments(target *NSExpression, name *NSString, parameters *NSArray[objc.ID]) *NSExpression
Creates an expression that returns the result of invoking a selector with a specified name using specified arguments.
func NSExpressionExpressionForIntersectSetWith ¶
func NSExpressionExpressionForIntersectSetWith(left *NSExpression, right *NSExpression) *NSExpression
Creates an expression object that represents the intersection of a specified set and collection.
func NSExpressionExpressionForKeyPath ¶
func NSExpressionExpressionForKeyPath(keyPath *NSString) *NSExpression
Creates an expression that invokes the value function with a specified key path.
func NSExpressionExpressionForMinusSetWith ¶
func NSExpressionExpressionForMinusSetWith(left *NSExpression, right *NSExpression) *NSExpression
Creates an expression object that represents the subtraction of a specified collection from a specified set.
func NSExpressionExpressionForSubqueryUsingIteratorVariablePredicate ¶
func NSExpressionExpressionForSubqueryUsingIteratorVariablePredicate(expression *NSExpression, variable *NSString, predicate *NSPredicate) *NSExpression
Creates an expression that filters a collection by storing elements in the collection in a specified variable and keeping the elements that the qualifier returns as true.
func NSExpressionExpressionForUnionSetWith ¶
func NSExpressionExpressionForUnionSetWith(left *NSExpression, right *NSExpression) *NSExpression
Creates an expression object that represents the union of a specified set and collection.
func NSExpressionExpressionForVariable ¶
func NSExpressionExpressionForVariable(string_ *NSString) *NSExpression
Creates an expression that extracts a value from the variable bindings dictionary for a specified key.
func NSExpressionExpressionWithFormat ¶
func NSExpressionExpressionWithFormat(expressionFormat *NSString) *NSExpression
Creates the expression with the specified expression arguments.
func NSExpressionExpressionWithFormatArgumentArray ¶
func NSExpressionExpressionWithFormatArgumentArray(expressionFormat *NSString, arguments *NSArray[objc.ID]) *NSExpression
Creates the expression with the specified expression format and array of arguments.
func NSExpressionExpressionWithFormatArguments ¶
func NSExpressionExpressionWithFormatArguments(expressionFormat *NSString, argList string) *NSExpression
Creates the expression with the specified expression format and arguments list.
func NSExpressionFromID ¶
func NSExpressionFromID(id objc.ID) *NSExpression
func (*NSExpression) AllowEvaluation ¶
func (o *NSExpression) AllowEvaluation()
Forces a securely decoded expression to allow evaluation.
func (*NSExpression) Arguments ¶
func (o *NSExpression) Arguments() *NSArray[*NSExpression]
func (*NSExpression) Collection ¶
func (o *NSExpression) Collection() objc.ID
func (*NSExpression) ConstantValue ¶
func (o *NSExpression) ConstantValue() objc.ID
func (*NSExpression) ExpressionBlock ¶
func (o *NSExpression) ExpressionBlock() objc.Block
func (*NSExpression) ExpressionType ¶
func (o *NSExpression) ExpressionType() NSExpressionType
func (*NSExpression) ExpressionValueWithObjectContext ¶
func (o *NSExpression) ExpressionValueWithObjectContext(object objc.ID, context_ *NSMutableDictionary[objc.ID, objc.ID]) objc.ID
Evaluates an expression using a specified object and context.
func (*NSExpression) FalseExpression ¶
func (o *NSExpression) FalseExpression() *NSExpression
func (*NSExpression) Function ¶
func (o *NSExpression) Function() *NSString
func (*NSExpression) InitWithCoder ¶
func (o *NSExpression) InitWithCoder(coder *NSCoder) *NSExpression
Creates an expression by decoding from the coder you specify.
func (*NSExpression) InitWithExpressionType ¶
func (o *NSExpression) InitWithExpressionType(type_ NSExpressionType) *NSExpression
Creates the expression with the specified expression type.
func (*NSExpression) KeyPath ¶
func (o *NSExpression) KeyPath() *NSString
func (*NSExpression) LeftExpression ¶
func (o *NSExpression) LeftExpression() *NSExpression
func (*NSExpression) Operand ¶
func (o *NSExpression) Operand() *NSExpression
func (*NSExpression) Predicate ¶
func (o *NSExpression) Predicate() *NSPredicate
func (*NSExpression) RightExpression ¶
func (o *NSExpression) RightExpression() *NSExpression
func (*NSExpression) TrueExpression ¶
func (o *NSExpression) TrueExpression() *NSExpression
func (*NSExpression) Variable ¶
func (o *NSExpression) Variable() *NSString
type NSExpressionType ¶
type NSExpressionType uint64
Defines the possible types of an expression.
const ( NSConstantValueExpressionType NSExpressionType = 0 NSEvaluatedObjectExpressionType NSExpressionType = 1 NSVariableExpressionType NSExpressionType = 2 NSKeyPathExpressionType NSExpressionType = 3 NSFunctionExpressionType NSExpressionType = 4 NSUnionSetExpressionType NSExpressionType = 5 NSIntersectSetExpressionType NSExpressionType = 6 NSMinusSetExpressionType NSExpressionType = 7 NSSubqueryExpressionType NSExpressionType = 13 NSAggregateExpressionType NSExpressionType = 14 NSAnyKeyExpressionType NSExpressionType = 15 NSBlockExpressionType NSExpressionType = 19 NSConditionalExpressionType NSExpressionType = 20 )
func (NSExpressionType) String ¶
func (e NSExpressionType) String() string
type NSExtensionContext ¶
type NSExtensionContext struct {
NSObject
}
The host app context from which an app extension is invoked.
Apple documentation: https://developer.apple.com/documentation/foundation/nsextensioncontext
func NSExtensionContextFromID ¶
func NSExtensionContextFromID(id objc.ID) *NSExtensionContext
func (*NSExtensionContext) CancelRequestWithError ¶
func (o *NSExtensionContext) CancelRequestWithError(error_ unsafe.Pointer)
Tells the host app to cancel the app extension request, with a supplied error.
func (*NSExtensionContext) CompleteRequestReturningItemsCompletionHandler ¶
func (o *NSExtensionContext) CompleteRequestReturningItemsCompletionHandler(items *NSArray[objc.ID], completionHandler func(bool))
Tells the host app to complete the app extension request with an array of result items.
func (*NSExtensionContext) InputItems ¶
func (o *NSExtensionContext) InputItems() *NSArray[objc.ID]
func (*NSExtensionContext) OpenURLCompletionHandler ¶
func (o *NSExtensionContext) OpenURLCompletionHandler(uRL *NSURL, completionHandler func(bool))
Asks the system to open a URL on behalf of the currently running app extension.
type NSExtensionItem ¶
type NSExtensionItem struct {
NSObject
}
An immutable collection of values representing different aspects of an item for an extension to act upon.
Apple documentation: https://developer.apple.com/documentation/foundation/nsextensionitem
func NSExtensionItemFromID ¶
func NSExtensionItemFromID(id objc.ID) *NSExtensionItem
func (*NSExtensionItem) Attachments ¶
func (o *NSExtensionItem) Attachments() *NSArray[*NSItemProvider]
func (*NSExtensionItem) AttributedContentText ¶
func (o *NSExtensionItem) AttributedContentText() *NSAttributedString
func (*NSExtensionItem) AttributedTitle ¶
func (o *NSExtensionItem) AttributedTitle() *NSAttributedString
func (*NSExtensionItem) SetAttachments ¶
func (o *NSExtensionItem) SetAttachments(attachments *NSArray[*NSItemProvider])
func (*NSExtensionItem) SetAttributedContentText ¶
func (o *NSExtensionItem) SetAttributedContentText(attributedContentText *NSAttributedString)
func (*NSExtensionItem) SetAttributedTitle ¶
func (o *NSExtensionItem) SetAttributedTitle(attributedTitle *NSAttributedString)
func (*NSExtensionItem) SetUserInfo ¶
func (o *NSExtensionItem) SetUserInfo(userInfo *NSDictionary[objc.ID, objc.ID])
func (*NSExtensionItem) UserInfo ¶
func (o *NSExtensionItem) UserInfo() *NSDictionary[objc.ID, objc.ID]
type NSExtensionRequestHandling ¶
type NSExtensionRequestHandling interface {
BeginRequestWithExtensionContext(context_ *NSExtensionContext)
}
NSExtensionRequestHandling wraps the ObjC protocol NSExtensionRequestHandling.
type NSFastEnumeration ¶
type NSFastEnumeration interface {
CountByEnumeratingWithStateObjectsCount(state *NSFastEnumerationState, buffer **ObjcObject, len_ uint) uint
}
NSFastEnumeration wraps the ObjC protocol NSFastEnumeration.
type NSFastEnumerationState ¶
type NSFastEnumerationState struct {
State uint
ItemsPtr **ObjcObject
MutationsPtr unsafe.Pointer
Extra [5]uint
}
This defines the structure used as contextual information in the NSFastEnumeration protocol.
type NSFileAccessIntent ¶
type NSFileAccessIntent struct {
NSObject
}
The details of a coordinated-read or coordinated-write operation.
Apple documentation: https://developer.apple.com/documentation/foundation/nsfileaccessintent
func NSFileAccessIntentFromID ¶
func NSFileAccessIntentFromID(id objc.ID) *NSFileAccessIntent
func NSFileAccessIntentReadingIntentWithURLOptions ¶
func NSFileAccessIntentReadingIntentWithURLOptions(url *NSURL, options NSFileCoordinatorReadingOptions) *NSFileAccessIntent
Returns a file access intent object for reading the given URL with the provided options.
func NSFileAccessIntentWritingIntentWithURLOptions ¶
func NSFileAccessIntentWritingIntentWithURLOptions(url *NSURL, options NSFileCoordinatorWritingOptions) *NSFileAccessIntent
Returns a file access intent object for writing to the given URL with the provided options.
func (*NSFileAccessIntent) URL ¶
func (o *NSFileAccessIntent) URL() *NSURL
type NSFileCoordinator ¶
type NSFileCoordinator struct {
NSObject
}
An object that coordinates the reading and writing of files and directories among file presenters.
Apple documentation: https://developer.apple.com/documentation/foundation/nsfilecoordinator
func NSFileCoordinatorFromID ¶
func NSFileCoordinatorFromID(id objc.ID) *NSFileCoordinator
func (*NSFileCoordinator) Cancel ¶
func (o *NSFileCoordinator) Cancel()
Cancels any active file coordination calls.
func (*NSFileCoordinator) CoordinateAccessWithIntentsQueueByAccessor ¶
func (o *NSFileCoordinator) CoordinateAccessWithIntentsQueueByAccessor(intents *NSArray[*NSFileAccessIntent], queue *NSOperationQueue, accessor func(unsafe.Pointer))
Performs a number of coordinated-read or -write operations asynchronously.
func (*NSFileCoordinator) CoordinateReadingItemAtURLOptionsErrorByAccessor ¶
func (o *NSFileCoordinator) CoordinateReadingItemAtURLOptionsErrorByAccessor(url *NSURL, options NSFileCoordinatorReadingOptions, outError unsafe.Pointer, reader func(*NSURL))
Initiates a read operation on a single file or directory using the specified options.
func (*NSFileCoordinator) CoordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor ¶
func (o *NSFileCoordinator) CoordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(readingURL *NSURL, readingOptions NSFileCoordinatorReadingOptions, writingURL *NSURL, writingOptions NSFileCoordinatorWritingOptions, outError unsafe.Pointer, readerWriter func(*NSURL, *NSURL))
Initiates a read operation that contains a follow-up write operation.
func (*NSFileCoordinator) CoordinateWritingItemAtURLOptionsErrorByAccessor ¶
func (o *NSFileCoordinator) CoordinateWritingItemAtURLOptionsErrorByAccessor(url *NSURL, options NSFileCoordinatorWritingOptions, outError unsafe.Pointer, writer func(*NSURL))
Initiates a write operation on a single file or directory using the specified options.
func (*NSFileCoordinator) CoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor ¶
func (o *NSFileCoordinator) CoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(url1 *NSURL, options1 NSFileCoordinatorWritingOptions, url2 *NSURL, options2 NSFileCoordinatorWritingOptions, outError unsafe.Pointer, writer func(*NSURL, *NSURL))
Initiates a write operation that involves a secondary write operation.
func (*NSFileCoordinator) InitWithFilePresenter ¶
func (o *NSFileCoordinator) InitWithFilePresenter(filePresenterOrNil NSFilePresenter) *NSFileCoordinator
Initializes and returns a file coordinator object using the specified file presenter.
func (*NSFileCoordinator) ItemAtURLDidChangeUbiquityAttributes ¶
func (o *NSFileCoordinator) ItemAtURLDidChangeUbiquityAttributes(url *NSURL, attributes *NSSet[*NSString])
Tells observing file providers that the item’s ubiquity attributes have changed.
func (*NSFileCoordinator) ItemAtURLDidMoveToURL ¶
func (o *NSFileCoordinator) ItemAtURLDidMoveToURL(oldURL *NSURL, newURL *NSURL)
Notifies relevant file presenters that the location of a file or directory changed.
func (*NSFileCoordinator) ItemAtURLWillMoveToURL ¶
func (o *NSFileCoordinator) ItemAtURLWillMoveToURL(oldURL *NSURL, newURL *NSURL)
Announces that your app is moving a file to a new URL.
func (*NSFileCoordinator) PrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor ¶
func (o *NSFileCoordinator) PrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor(readingURLs *NSArray[*NSURL], readingOptions NSFileCoordinatorReadingOptions, writingURLs *NSArray[*NSURL], writingOptions NSFileCoordinatorWritingOptions, outError unsafe.Pointer, batchAccessor func(objc.Block))
Prepare to read or write from multiple files in a single batch operation.
func (*NSFileCoordinator) PurposeIdentifier ¶
func (o *NSFileCoordinator) PurposeIdentifier() *NSString
func (*NSFileCoordinator) SetPurposeIdentifier ¶
func (o *NSFileCoordinator) SetPurposeIdentifier(purposeIdentifier *NSString)
type NSFileCoordinatorReadingOptions ¶
type NSFileCoordinatorReadingOptions uint64
Options to use when reading the contents or attributes of a file or directory.
const ( NSFileCoordinatorReadingWithoutChanges NSFileCoordinatorReadingOptions = 1 NSFileCoordinatorReadingResolvesSymbolicLink NSFileCoordinatorReadingOptions = 2 NSFileCoordinatorReadingImmediatelyAvailableMetadataOnly NSFileCoordinatorReadingOptions = 4 NSFileCoordinatorReadingForUploading NSFileCoordinatorReadingOptions = 8 )
func (NSFileCoordinatorReadingOptions) String ¶
func (e NSFileCoordinatorReadingOptions) String() string
type NSFileCoordinatorWritingOptions ¶
type NSFileCoordinatorWritingOptions uint64
Options to use when changing the contents or attributes of a file or directory.
const ( NSFileCoordinatorWritingForDeleting NSFileCoordinatorWritingOptions = 1 NSFileCoordinatorWritingForMoving NSFileCoordinatorWritingOptions = 2 NSFileCoordinatorWritingForMerging NSFileCoordinatorWritingOptions = 4 NSFileCoordinatorWritingForReplacing NSFileCoordinatorWritingOptions = 8 NSFileCoordinatorWritingContentIndependentMetadataOnly NSFileCoordinatorWritingOptions = 16 )
func (NSFileCoordinatorWritingOptions) String ¶
func (e NSFileCoordinatorWritingOptions) String() string
type NSFileHandle ¶
type NSFileHandle struct {
NSObject
}
An object-oriented wrapper for a file descriptor.
Apple documentation: https://developer.apple.com/documentation/foundation/nsfilehandle
func NSFileHandleFileHandleForReadingAtPath ¶
func NSFileHandleFileHandleForReadingAtPath(path *NSString) *NSFileHandle
func NSFileHandleFileHandleForReadingFromURLError ¶
func NSFileHandleFileHandleForReadingFromURLError(url *NSURL) (*NSFileHandle, error)
func NSFileHandleFileHandleForUpdatingAtPath ¶
func NSFileHandleFileHandleForUpdatingAtPath(path *NSString) *NSFileHandle
func NSFileHandleFileHandleForUpdatingURLError ¶
func NSFileHandleFileHandleForUpdatingURLError(url *NSURL) (*NSFileHandle, error)
func NSFileHandleFileHandleForWritingAtPath ¶
func NSFileHandleFileHandleForWritingAtPath(path *NSString) *NSFileHandle
func NSFileHandleFileHandleForWritingToURLError ¶
func NSFileHandleFileHandleForWritingToURLError(url *NSURL) (*NSFileHandle, error)
func NSFileHandleFileHandleWithNullDevice ¶
func NSFileHandleFileHandleWithNullDevice() *NSFileHandle
func NSFileHandleFileHandleWithStandardError ¶
func NSFileHandleFileHandleWithStandardError() *NSFileHandle
func NSFileHandleFileHandleWithStandardInput ¶
func NSFileHandleFileHandleWithStandardInput() *NSFileHandle
func NSFileHandleFileHandleWithStandardOutput ¶
func NSFileHandleFileHandleWithStandardOutput() *NSFileHandle
func NSFileHandleFromID ¶
func NSFileHandleFromID(id objc.ID) *NSFileHandle
func (*NSFileHandle) AcceptConnectionInBackgroundAndNotify ¶
func (o *NSFileHandle) AcceptConnectionInBackgroundAndNotify()
func (*NSFileHandle) AcceptConnectionInBackgroundAndNotifyForModes ¶
func (o *NSFileHandle) AcceptConnectionInBackgroundAndNotifyForModes(modes *NSArray[*NSString])
func (*NSFileHandle) AvailableData ¶
func (o *NSFileHandle) AvailableData() *NSData
func (*NSFileHandle) CloseAndReturnError ¶
func (o *NSFileHandle) CloseAndReturnError() (bool, error)
func (*NSFileHandle) CloseFile ¶
func (o *NSFileHandle) CloseFile()
func (*NSFileHandle) FileDescriptor ¶
func (o *NSFileHandle) FileDescriptor() int
func (*NSFileHandle) GetOffsetError ¶
func (o *NSFileHandle) GetOffsetError(offsetInFile *uint64) (bool, error)
Get the current position of the file pointer within the file.
func (*NSFileHandle) InitWithCoder ¶
func (o *NSFileHandle) InitWithCoder(coder *NSCoder) *NSFileHandle
func (*NSFileHandle) InitWithFileDescriptor ¶
func (o *NSFileHandle) InitWithFileDescriptor(fd int) *NSFileHandle
func (*NSFileHandle) InitWithFileDescriptorCloseOnDealloc ¶
func (o *NSFileHandle) InitWithFileDescriptorCloseOnDealloc(fd int, closeopt bool) *NSFileHandle
func (*NSFileHandle) OffsetInFile ¶
func (o *NSFileHandle) OffsetInFile() uint64
func (*NSFileHandle) ReadDataOfLength ¶
func (o *NSFileHandle) ReadDataOfLength(length uint) *NSData
func (*NSFileHandle) ReadDataToEndOfFile ¶
func (o *NSFileHandle) ReadDataToEndOfFile() *NSData
func (*NSFileHandle) ReadDataToEndOfFileAndReturnError ¶
func (o *NSFileHandle) ReadDataToEndOfFileAndReturnError() (*NSData, error)
Reads the available data synchronously up to the end of file or maximum number of bytes.
func (*NSFileHandle) ReadDataUpToLengthError ¶
func (o *NSFileHandle) ReadDataUpToLengthError(length uint) (*NSData, error)
Reads data synchronously up to the specified number of bytes.
func (*NSFileHandle) ReadInBackgroundAndNotify ¶
func (o *NSFileHandle) ReadInBackgroundAndNotify()
func (*NSFileHandle) ReadInBackgroundAndNotifyForModes
deprecated
func (o *NSFileHandle) ReadInBackgroundAndNotifyForModes(modes *NSArray[*NSString])
Deprecated: Not supported
func (*NSFileHandle) ReadToEndOfFileInBackgroundAndNotify ¶
func (o *NSFileHandle) ReadToEndOfFileInBackgroundAndNotify()
func (*NSFileHandle) ReadToEndOfFileInBackgroundAndNotifyForModes ¶
func (o *NSFileHandle) ReadToEndOfFileInBackgroundAndNotifyForModes(modes *NSArray[*NSString])
func (*NSFileHandle) ReadabilityHandler ¶
func (o *NSFileHandle) ReadabilityHandler() objc.Block
func (*NSFileHandle) SeekToEndOfFile ¶
func (o *NSFileHandle) SeekToEndOfFile() uint64
func (*NSFileHandle) SeekToEndReturningOffsetError ¶
func (o *NSFileHandle) SeekToEndReturningOffsetError(offsetInFile *uint64) (bool, error)
Places the file pointer at the end of the file referenced by the file handle and returns the new file offset.
func (*NSFileHandle) SeekToFileOffset ¶
func (o *NSFileHandle) SeekToFileOffset(offset uint64)
func (*NSFileHandle) SeekToOffsetError ¶
func (o *NSFileHandle) SeekToOffsetError(offset uint64) (bool, error)
func (*NSFileHandle) SetReadabilityHandler ¶
func (o *NSFileHandle) SetReadabilityHandler(readabilityHandler func(*NSFileHandle))
func (*NSFileHandle) SetWriteabilityHandler ¶
func (o *NSFileHandle) SetWriteabilityHandler(writeabilityHandler func(*NSFileHandle))
func (*NSFileHandle) SynchronizeAndReturnError ¶
func (o *NSFileHandle) SynchronizeAndReturnError() (bool, error)
func (*NSFileHandle) SynchronizeFile ¶
func (o *NSFileHandle) SynchronizeFile()
func (*NSFileHandle) TruncateAtOffsetError ¶
func (o *NSFileHandle) TruncateAtOffsetError(offset uint64) (bool, error)
func (*NSFileHandle) TruncateFileAtOffset ¶
func (o *NSFileHandle) TruncateFileAtOffset(offset uint64)
func (*NSFileHandle) WaitForDataInBackgroundAndNotify ¶
func (o *NSFileHandle) WaitForDataInBackgroundAndNotify()
func (*NSFileHandle) WaitForDataInBackgroundAndNotifyForModes ¶
func (o *NSFileHandle) WaitForDataInBackgroundAndNotifyForModes(modes *NSArray[*NSString])
func (*NSFileHandle) WriteData ¶
func (o *NSFileHandle) WriteData(data *NSData)
func (*NSFileHandle) WriteDataError ¶
func (o *NSFileHandle) WriteDataError(data *NSData) (bool, error)
Writes the specified data synchronously to the file handle.
func (*NSFileHandle) WriteabilityHandler ¶
func (o *NSFileHandle) WriteabilityHandler() objc.Block
type NSFileManager ¶
type NSFileManager struct {
NSObject
}
A convenient interface to the contents of the file system, and the primary means of interacting with it.
Apple documentation: https://developer.apple.com/documentation/foundation/nsfilemanager
func NSFileManagerDefaultManager ¶
func NSFileManagerDefaultManager() *NSFileManager
func NSFileManagerFromID ¶
func NSFileManagerFromID(id objc.ID) *NSFileManager
func (*NSFileManager) AttributesOfFileSystemForPathError ¶
func (o *NSFileManager) AttributesOfFileSystemForPathError(path *NSString) (*NSDictionary[*NSString, objc.ID], error)
func (*NSFileManager) AttributesOfItemAtPathError ¶
func (o *NSFileManager) AttributesOfItemAtPathError(path *NSString) (*NSDictionary[*NSString, objc.ID], error)
func (*NSFileManager) ChangeCurrentDirectoryPath ¶
func (o *NSFileManager) ChangeCurrentDirectoryPath(path *NSString) bool
func (*NSFileManager) ChangeFileAttributesAtPath
deprecated
func (o *NSFileManager) ChangeFileAttributesAtPath(attributes *NSDictionary[objc.ID, objc.ID], path *NSString) bool
Deprecated: Use -setAttributes:ofItemAtPath:error: instead
func (*NSFileManager) ComponentsToDisplayForPath ¶
func (o *NSFileManager) ComponentsToDisplayForPath(path *NSString) *NSArray[*NSString]
func (*NSFileManager) ContainerURLForSecurityApplicationGroupIdentifier ¶
func (o *NSFileManager) ContainerURLForSecurityApplicationGroupIdentifier(groupIdentifier *NSString) *NSURL
func (*NSFileManager) ContentsAtPath ¶
func (o *NSFileManager) ContentsAtPath(path *NSString) *NSData
func (*NSFileManager) ContentsEqualAtPathAndPath ¶
func (o *NSFileManager) ContentsEqualAtPathAndPath(path1 *NSString, path2 *NSString) bool
func (*NSFileManager) ContentsOfDirectoryAtPathError ¶
func (o *NSFileManager) ContentsOfDirectoryAtPathError(path *NSString) (*NSArray[*NSString], error)
func (*NSFileManager) ContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError ¶
func (o *NSFileManager) ContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(url *NSURL, keys *NSArray[*NSString], mask NSDirectoryEnumerationOptions) (*NSArray[*NSURL], error)
func (*NSFileManager) CopyItemAtPathToPathError ¶
func (o *NSFileManager) CopyItemAtPathToPathError(srcPath *NSString, dstPath *NSString) (bool, error)
func (*NSFileManager) CopyItemAtURLToURLError ¶
func (o *NSFileManager) CopyItemAtURLToURLError(srcURL *NSURL, dstURL *NSURL) (bool, error)
func (*NSFileManager) CopyPathToPathHandler ¶
Copies the directory or file specified in a given path to a different location in the file system identified by another path. Deprecated: Not supported
func (*NSFileManager) CreateDirectoryAtPathAttributes
deprecated
func (o *NSFileManager) CreateDirectoryAtPathAttributes(path *NSString, attributes *NSDictionary[objc.ID, objc.ID]) bool
Deprecated: Use -createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead
func (*NSFileManager) CreateDirectoryAtPathWithIntermediateDirectoriesAttributesError ¶
func (o *NSFileManager) CreateDirectoryAtPathWithIntermediateDirectoriesAttributesError(path *NSString, createIntermediates bool, attributes *NSDictionary[*NSString, objc.ID]) (bool, error)
func (*NSFileManager) CreateDirectoryAtURLWithIntermediateDirectoriesAttributesError ¶
func (o *NSFileManager) CreateDirectoryAtURLWithIntermediateDirectoriesAttributesError(url *NSURL, createIntermediates bool, attributes *NSDictionary[*NSString, objc.ID]) (bool, error)
func (*NSFileManager) CreateFileAtPathContentsAttributes ¶
func (o *NSFileManager) CreateFileAtPathContentsAttributes(path *NSString, data *NSData, attr *NSDictionary[*NSString, objc.ID]) bool
func (*NSFileManager) CreateSymbolicLinkAtPathPathContent
deprecated
func (o *NSFileManager) CreateSymbolicLinkAtPathPathContent(path *NSString, otherpath *NSString) bool
Deprecated: Use -createSymbolicLinkAtPath:error: instead
func (*NSFileManager) CreateSymbolicLinkAtPathWithDestinationPathError ¶
func (o *NSFileManager) CreateSymbolicLinkAtPathWithDestinationPathError(path *NSString, destPath *NSString) (bool, error)
func (*NSFileManager) CreateSymbolicLinkAtURLWithDestinationURLError ¶
func (o *NSFileManager) CreateSymbolicLinkAtURLWithDestinationURLError(url *NSURL, destURL *NSURL) (bool, error)
func (*NSFileManager) CurrentDirectoryPath ¶
func (o *NSFileManager) CurrentDirectoryPath() *NSString
func (*NSFileManager) Delegate ¶
func (o *NSFileManager) Delegate() NSFileManagerDelegate
func (*NSFileManager) DestinationOfSymbolicLinkAtPathError ¶
func (o *NSFileManager) DestinationOfSymbolicLinkAtPathError(path *NSString) (*NSString, error)
func (*NSFileManager) DirectoryContentsAtPath
deprecated
func (o *NSFileManager) DirectoryContentsAtPath(path *NSString) *NSArray[objc.ID]
Deprecated: Use -contentsOfDirectoryAtPath:error: instead
func (*NSFileManager) DisplayNameAtPath ¶
func (o *NSFileManager) DisplayNameAtPath(path *NSString) *NSString
func (*NSFileManager) EnumeratorAtPath ¶
func (o *NSFileManager) EnumeratorAtPath(path *NSString) *NSDirectoryEnumerator[*NSString]
func (*NSFileManager) EnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler ¶
func (o *NSFileManager) EnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler(url *NSURL, keys *NSArray[*NSString], mask NSDirectoryEnumerationOptions, handler func(*NSURL, unsafe.Pointer) bool) *NSDirectoryEnumerator[*NSURL]
Returns a directory enumerator object that can be used to perform a deep enumeration of the directory at the specified URL.
func (*NSFileManager) EvictUbiquitousItemAtURLError ¶
func (o *NSFileManager) EvictUbiquitousItemAtURLError(url *NSURL) (bool, error)
func (*NSFileManager) FetchLatestRemoteVersionOfItemAtURLCompletionHandler ¶
func (o *NSFileManager) FetchLatestRemoteVersionOfItemAtURLCompletionHandler(url *NSURL, completionHandler func(*NSFileVersion, unsafe.Pointer))
Asynchronously fetches the latest remote version of a given item from the server. Use this method if uploading fails due to a version conflict and sync is paused. In this case, fetching the latest remote version allows you to inspect the newer item from the server, resolve the conflict, and resume uploading. The version provided by this call depends on several factors: * If there is no newer version of the file on the server, the caller receives the current version of the file. * If the server has a newer version and sync isn't paused, this call replaces the local item and provides the version of the new item. * If the server has a newer version but sync is paused, the returned version points to a side location. In this case, call “NSFileVersion/replaceItem(at:options:)“ on the provided version object to replace the local item with the newer item from the server. If the device isn't connected to the network, the call may fail with “NSFileReadUnknownError-enum.case“, with the underlying error of <doc://com.apple.documentation/documentation/FileProvider/NSFileProviderError/serverUnreachable>. - Parameters: - url: The URL of the item for which to check the version. - completionHandler: A closure or block that the framework calls when the fetch action completes. It receives parameters of types “NSFileVersion“ and “NSError“. The error is `nil` if fetching the remote version succeeded; otherwise it indicates the error that caused the call to fail. In Swift, you can omit the completion handler, catching any error in a `do`-`catch` block and receiving the version as the return value.
func (*NSFileManager) FileAttributesAtPathTraverseLink
deprecated
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 ¶
Creates a link from a source to a destination. Deprecated: Not supported
func (*NSFileManager) MountedVolumeURLsIncludingResourceValuesForKeysOptions ¶
func (o *NSFileManager) MountedVolumeURLsIncludingResourceValuesForKeysOptions(propertyKeys *NSArray[*NSString], options NSVolumeEnumerationOptions) *NSArray[*NSURL]
func (*NSFileManager) MoveItemAtPathToPathError ¶
func (o *NSFileManager) MoveItemAtPathToPathError(srcPath *NSString, dstPath *NSString) (bool, error)
func (*NSFileManager) MoveItemAtURLToURLError ¶
func (o *NSFileManager) MoveItemAtURLToURLError(srcURL *NSURL, dstURL *NSURL) (bool, error)
func (*NSFileManager) MovePathToPathHandler ¶
Moves the directory or file specified by a given path to a different location in the file system identified by another path. Deprecated: Not supported
func (*NSFileManager) PathContentOfSymbolicLinkAtPath
deprecated
func (o *NSFileManager) PathContentOfSymbolicLinkAtPath(path *NSString) *NSString
Deprecated: Use -destinationOfSymbolicLinkAtPath:error:
func (*NSFileManager) PauseSyncForUbiquitousItemAtURLCompletionHandler ¶
func (o *NSFileManager) PauseSyncForUbiquitousItemAtURLCompletionHandler(url *NSURL, completionHandler func(unsafe.Pointer))
Asynchronously pauses sync of an item at the given URL. Call this when opening an item to prevent sync from altering the contents of the URL. Once paused, the file provider will not upload local changes nor download remote changes. While paused, call “uploadLocalVersionOfUbiquitousItem(at:withConflictResolutionPolicy:completionHandler:)“ when the document is in a stable state. This action keeps the server version as up-to-date as possible. If the item is already paused, a second call to this method reports success. If the file provider is already applying changes to the item, the pause fails with an “NSFileWriteUnknownError-enum.case“, with an underlying error that has domain “NSPOSIXErrorDomain“ and code “POSIXError/EBUSY“. If the pause fails, wait for the state to stabilize before retrying. Pausing also fails with “CocoaError/featureUnsupported“ if `url` refers to a regular (non-package) directory. Pausing sync is independent of the calling app's lifecycle; sync doesn't automatically resume if the app closes or crashes and relaunches later. To resume syncing, explicitly call “resumeSyncForUbiquitousItem(at:with:completionHandler:)“. Always be sure to resume syncing before you close the item. - Parameters: - url: The URL of the item for which to pause sync. - completionHandler: A closure or block that the framework calls when the pause action completes. It receives a single “NSError“ parameter to indicate an error that prevented pausing; this value is `nil` if the pause succeeded. In Swift, you can omit the completion handler and catch the thrown error instead.
func (*NSFileManager) RemoveFileAtPathHandler ¶
func (o *NSFileManager) RemoveFileAtPathHandler(path *NSString, handler objc.ID) bool
Deletes the file, link, or directory (including, recursively, all subdirectories, files, and links in the directory) identified by a given path. Deprecated: Not supported
func (*NSFileManager) RemoveItemAtPathError ¶
func (o *NSFileManager) RemoveItemAtPathError(path *NSString) (bool, error)
func (*NSFileManager) RemoveItemAtURLError ¶
func (o *NSFileManager) RemoveItemAtURLError(uRL *NSURL) (bool, error)
func (*NSFileManager) ReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError ¶
func (o *NSFileManager) ReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError(originalItemURL *NSURL, newItemURL *NSURL, backupItemName *NSString, options NSFileManagerItemReplacementOptions, resultingURL *NSURL) (bool, error)
func (*NSFileManager) ResumeSyncForUbiquitousItemAtURLWithBehaviorCompletionHandler ¶
func (o *NSFileManager) ResumeSyncForUbiquitousItemAtURLWithBehaviorCompletionHandler(url *NSURL, behavior NSFileManagerResumeSyncBehavior, completionHandler func(unsafe.Pointer))
Asynchronously resumes the sync on a paused item using the given resume behavior. Always call this method when your app closes an item to allow the file provider to sync local changes back to the server. In most situations, the “NSFileManagerResumeSyncBehavior/preserveLocalChanges“ behavior is the best choice to avoid any risk of data loss. The resume call fails with “CocoaError/featureUnsupported“ if `url` isn't currently paused. If the device isn't connected to the network, the call may fail with “NSFileWriteUnknownError-enum.case“, with the underlying error of <doc://com.apple.documentation/documentation/FileProvider/NSFileProviderError/serverUnreachable>. - Parameters: - url: The URL of the item for which to resume sync. - behavior: A “NSFileManagerResumeSyncBehavior“ value that tells the file manager how to handle conflicts between local and remote versions of files. - completionHandler: A closure or block that the framework calls when the resume action completes. It receives a single “NSError“ parameter to indicate an error that prevented the resume action; the value is `nil` if the resume succeeded. In Swift, you can omit the completion handler and catch the thrown error instead.
func (*NSFileManager) SetAttributesOfItemAtPathError ¶
func (o *NSFileManager) SetAttributesOfItemAtPathError(attributes *NSDictionary[*NSString, objc.ID], path *NSString) (bool, error)
func (*NSFileManager) SetDelegate ¶
func (o *NSFileManager) SetDelegate(delegate NSFileManagerDelegate)
func (*NSFileManager) SetUbiquitousItemAtURLDestinationURLError ¶
func (*NSFileManager) StartDownloadingUbiquitousItemAtURLError ¶
func (o *NSFileManager) StartDownloadingUbiquitousItemAtURLError(url *NSURL) (bool, error)
func (*NSFileManager) StringWithFileSystemRepresentationLength ¶
func (o *NSFileManager) StringWithFileSystemRepresentationLength(str string, len_ uint) *NSString
func (*NSFileManager) SubpathsAtPath ¶
func (o *NSFileManager) SubpathsAtPath(path *NSString) *NSArray[*NSString]
func (*NSFileManager) SubpathsOfDirectoryAtPathError ¶
func (o *NSFileManager) SubpathsOfDirectoryAtPathError(path *NSString) (*NSArray[*NSString], error)
func (*NSFileManager) TemporaryDirectory ¶
func (o *NSFileManager) TemporaryDirectory() *NSURL
func (*NSFileManager) TrashItemAtURLResultingItemURLError ¶
func (o *NSFileManager) TrashItemAtURLResultingItemURLError(url *NSURL, outResultingURL *NSURL) (bool, error)
func (*NSFileManager) URLForDirectoryInDomainAppropriateForURLCreateError ¶
func (o *NSFileManager) URLForDirectoryInDomainAppropriateForURLCreateError(directory NSSearchPathDirectory, domain NSSearchPathDomainMask, url *NSURL, shouldCreate bool) (*NSURL, error)
func (*NSFileManager) URLForPublishingUbiquitousItemAtURLExpirationDateError ¶
func (o *NSFileManager) URLForPublishingUbiquitousItemAtURLExpirationDateError(url *NSURL, outDate *NSDate) (*NSURL, error)
func (*NSFileManager) URLForUbiquityContainerIdentifier ¶
func (o *NSFileManager) URLForUbiquityContainerIdentifier(containerIdentifier *NSString) *NSURL
func (*NSFileManager) URLsForDirectoryInDomains ¶
func (o *NSFileManager) URLsForDirectoryInDomains(directory NSSearchPathDirectory, domainMask NSSearchPathDomainMask) *NSArray[*NSURL]
func (*NSFileManager) UbiquityIdentityToken ¶
func (o *NSFileManager) UbiquityIdentityToken() objc.ID
func (*NSFileManager) UnmountVolumeAtURLOptionsCompletionHandler ¶
func (o *NSFileManager) UnmountVolumeAtURLOptionsCompletionHandler(url *NSURL, mask NSFileManagerUnmountOptions, completionHandler func(unsafe.Pointer))
func (*NSFileManager) UploadLocalVersionOfUbiquitousItemAtURLWithConflictResolutionPolicyCompletionHandler ¶
func (o *NSFileManager) UploadLocalVersionOfUbiquitousItemAtURLWithConflictResolutionPolicyCompletionHandler(url *NSURL, conflictResolutionPolicy NSFileManagerUploadLocalVersionConflictPolicy, completionHandler func(*NSFileVersion, unsafe.Pointer))
Asynchronously uploads the local version of the item using the provided conflict resolution policy. Once your app pauses a sync for an item, call this method every time your document is in a stable state. This action keeps the server version as up-to-date as possible. If the server has a newer version than the one to which the app made changes, uploading fails with “NSFileWriteUnknownError-enum.case“, with an underlying error of <doc://com.apple.documentation/documentation/FileProvider/NSFileProviderError/localVersionConflictingWithServer>. In this case, call “FileManager/fetchLatestRemoteVersionOfItem(at:completionHandler:)“, rebase local changes on top of that version, and retry the upload. If the device isn't connected to the network, the call may fail with “NSFileWriteUnknownError-enum.case“, with the underlying error of <doc://com.apple.documentation/documentation/FileProvider/NSFileProviderError/serverUnreachable>. - Parameters: - url: The URL of the item for which to check the version. - conflictResolutionPolicy: The policy the file manager applies if the local and server versions conflict. - completionHandler: A closure or block that the framework calls when the upload completes. It receives parameters of types “NSFileVersion“ and “NSError“. The error is `nil` if fetching the remote version succeeded; otherwise it indicates the error that caused the call to fail. In Swift, you can omit the completion handler, catching any error in a `do`-`catch` block and receiving the version as the return value.
type NSFileManagerDelegate ¶
type NSFileManagerDelegate interface {
}
NSFileManagerDelegate wraps the ObjC protocol NSFileManagerDelegate.
type NSFileManagerItemReplacementOptions ¶
type NSFileManagerItemReplacementOptions uint64
Options for specifying the behavior of file replacement operations.
const ( NSFileManagerItemReplacementUsingNewMetadataOnly NSFileManagerItemReplacementOptions = 1 NSFileManagerItemReplacementWithoutDeletingBackupItem NSFileManagerItemReplacementOptions = 2 )
func (NSFileManagerItemReplacementOptions) String ¶
func (e NSFileManagerItemReplacementOptions) String() string
type NSFileManagerResumeSyncBehavior ¶
type NSFileManagerResumeSyncBehavior int64
The behaviors the file manager can apply to resolve conflicts when resuming a sync.
const ( // Resumes synchronizing by uploading the local version of the file. NSFileManagerResumeSyncBehaviorPreserveLocalChanges NSFileManagerResumeSyncBehavior = 0 // Resumes sync by first uploading the local version of the file, failing if the provider detects a conflict. NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict NSFileManagerResumeSyncBehavior = 1 // Resumes synchronizing by overwriting any local changes with the remote version of the file. NSFileManagerResumeSyncBehaviorDropLocalChanges NSFileManagerResumeSyncBehavior = 2 )
func (NSFileManagerResumeSyncBehavior) String ¶
func (e NSFileManagerResumeSyncBehavior) String() string
type NSFileManagerSupportedSyncControls ¶
type NSFileManagerSupportedSyncControls uint64
An option set of the sync controls available for an item.
const ( // The file provider supports pausing the sync on the item. NSFileManagerSupportedSyncControlsPauseSync NSFileManagerSupportedSyncControls = 1 // The file provider supports failing an upload if the local and server versions conflict. NSFileManagerSupportedSyncControlsFailUploadOnConflict NSFileManagerSupportedSyncControls = 2 )
func (NSFileManagerSupportedSyncControls) String ¶
func (e NSFileManagerSupportedSyncControls) String() string
type NSFileManagerUnmountOptions ¶
type NSFileManagerUnmountOptions uint64
const ( NSFileManagerUnmountAllPartitionsAndEjectDisk NSFileManagerUnmountOptions = 1 NSFileManagerUnmountWithoutUI NSFileManagerUnmountOptions = 2 )
func (NSFileManagerUnmountOptions) String ¶
func (e NSFileManagerUnmountOptions) String() string
type NSFileManagerUploadLocalVersionConflictPolicy ¶
type NSFileManagerUploadLocalVersionConflictPolicy int64
The policies the file manager can apply to resolve conflicts when uploading a local version of a file.
const ( // Resolves the conflict using the policy defined by the file provider. NSFileManagerUploadConflictPolicyDefault NSFileManagerUploadLocalVersionConflictPolicy = 0 // Resolves the conflict by causing the upload to fail. NSFileManagerUploadConflictPolicyFailOnConflict NSFileManagerUploadLocalVersionConflictPolicy = 1 )
func (NSFileManagerUploadLocalVersionConflictPolicy) String ¶
func (e NSFileManagerUploadLocalVersionConflictPolicy) String() string
type NSFilePresenter ¶
type NSFilePresenter interface {
PresentedItemURL() *NSURL
PresentedItemOperationQueue() *NSOperationQueue
}
NSFilePresenter wraps the ObjC protocol NSFilePresenter.
type NSFileProviderService ¶
type NSFileProviderService struct {
NSObject
}
A service that provides a custom communication channel between your app and a File Provider extension.
Apple documentation: https://developer.apple.com/documentation/foundation/nsfileproviderservice
func NSFileProviderServiceFromID ¶
func NSFileProviderServiceFromID(id objc.ID) *NSFileProviderService
func (*NSFileProviderService) GetFileProviderConnectionWithCompletionHandler ¶
func (o *NSFileProviderService) GetFileProviderConnectionWithCompletionHandler(completionHandler func(*NSXPCConnection, unsafe.Pointer))
Asynchronously returns the service’s connection object.
func (*NSFileProviderService) Name ¶
func (o *NSFileProviderService) Name() *NSString
type NSFileSecurity ¶
type NSFileSecurity struct {
NSObject
}
A stub class that encapsulates security information about a file.
Apple documentation: https://developer.apple.com/documentation/foundation/nsfilesecurity
func NSFileSecurityFromID ¶
func NSFileSecurityFromID(id objc.ID) *NSFileSecurity
func (*NSFileSecurity) InitWithCoder ¶
func (o *NSFileSecurity) InitWithCoder(coder *NSCoder) *NSFileSecurity
type NSFileVersion ¶
type NSFileVersion struct {
NSObject
}
A snapshot of a file at a specific point in time.
Apple documentation: https://developer.apple.com/documentation/foundation/nsfileversion
func NSFileVersionAddVersionOfItemAtURLWithContentsOfURLOptionsError ¶
func NSFileVersionAddVersionOfItemAtURLWithContentsOfURLOptionsError(url *NSURL, contentsURL *NSURL, options NSFileVersionAddingOptions) (*NSFileVersion, error)
Creates a version of the file at the specified location.
func NSFileVersionCurrentVersionOfItemAtURL ¶
func NSFileVersionCurrentVersionOfItemAtURL(url *NSURL) *NSFileVersion
Returns the most recent version object for the file at the specified URL.
func NSFileVersionFromID ¶
func NSFileVersionFromID(id objc.ID) *NSFileVersion
func NSFileVersionVersionOfItemAtURLForPersistentIdentifier ¶
func NSFileVersionVersionOfItemAtURLForPersistentIdentifier(url *NSURL, persistentIdentifier objc.ID) *NSFileVersion
Returns the version of the file that has the specified persistent ID.
func (*NSFileVersion) HasLocalContents ¶
func (o *NSFileVersion) HasLocalContents() bool
func (*NSFileVersion) HasThumbnail ¶
func (o *NSFileVersion) HasThumbnail() bool
func (*NSFileVersion) IsConflict ¶
func (o *NSFileVersion) IsConflict() bool
func (*NSFileVersion) IsDiscardable ¶
func (o *NSFileVersion) IsDiscardable() bool
func (*NSFileVersion) IsResolved ¶
func (o *NSFileVersion) IsResolved() bool
func (*NSFileVersion) LocalizedName ¶
func (o *NSFileVersion) LocalizedName() *NSString
func (*NSFileVersion) LocalizedNameOfSavingComputer ¶
func (o *NSFileVersion) LocalizedNameOfSavingComputer() *NSString
func (*NSFileVersion) ModificationDate ¶
func (o *NSFileVersion) ModificationDate() *NSDate
func (*NSFileVersion) OriginatorNameComponents ¶
func (o *NSFileVersion) OriginatorNameComponents() *NSPersonNameComponents
func (*NSFileVersion) PersistentIdentifier ¶
func (o *NSFileVersion) PersistentIdentifier() NSCoding
func (*NSFileVersion) RemoveAndReturnError ¶
func (o *NSFileVersion) RemoveAndReturnError() (bool, error)
Remove this version object and its associated file from the version store.
func (*NSFileVersion) ReplaceItemAtURLOptionsError ¶
func (o *NSFileVersion) ReplaceItemAtURLOptionsError(url *NSURL, options NSFileVersionReplacingOptions) (*NSURL, error)
Replace the contents of the specified file with the contents of the current version’s file.
func (*NSFileVersion) SetDiscardable ¶
func (o *NSFileVersion) SetDiscardable(discardable bool)
func (*NSFileVersion) SetResolved ¶
func (o *NSFileVersion) SetResolved(resolved bool)
func (*NSFileVersion) URL ¶
func (o *NSFileVersion) URL() *NSURL
type NSFileVersionAddingOptions ¶
type NSFileVersionAddingOptions uint64
Options for adding a new file version.
const (
NSFileVersionAddingByMoving NSFileVersionAddingOptions = 1
)
func (NSFileVersionAddingOptions) String ¶
func (e NSFileVersionAddingOptions) String() string
type NSFileVersionReplacingOptions ¶
type NSFileVersionReplacingOptions uint64
Options for replacing a file version.
const (
NSFileVersionReplacingByMoving NSFileVersionReplacingOptions = 1
)
func (NSFileVersionReplacingOptions) String ¶
func (e NSFileVersionReplacingOptions) String() string
type NSFileWrapper ¶
type NSFileWrapper struct {
NSObject
}
A representation of a node (a file, directory, or symbolic link) in the file system.
Apple documentation: https://developer.apple.com/documentation/foundation/nsfilewrapper
func NSFileWrapperFromID ¶
func NSFileWrapperFromID(id objc.ID) *NSFileWrapper
func (*NSFileWrapper) AddFileWithPath
deprecated
func (o *NSFileWrapper) AddFileWithPath(path *NSString) *NSString
Deprecated: Instantiate a new NSFileWrapper with -initWithURL:options:error:, send it -setPreferredFileName: if necessary, then use -addFileWrapper: instead.
func (*NSFileWrapper) AddFileWrapper ¶
func (o *NSFileWrapper) AddFileWrapper(child *NSFileWrapper) *NSString
func (*NSFileWrapper) AddRegularFileWithContentsPreferredFilename ¶
func (o *NSFileWrapper) AddRegularFileWithContentsPreferredFilename(data *NSData, fileName *NSString) *NSString
func (*NSFileWrapper) AddSymbolicLinkWithDestinationPreferredFilename
deprecated
func (o *NSFileWrapper) AddSymbolicLinkWithDestinationPreferredFilename(path *NSString, filename *NSString) *NSString
Deprecated: Instantiate a new NSFileWrapper with -initWithSymbolicLinkDestinationURL:, send it -setPreferredFileName: if necessary, then use -addFileWrapper: instead.
func (*NSFileWrapper) FileAttributes ¶
func (o *NSFileWrapper) FileAttributes() *NSDictionary[*NSString, objc.ID]
func (*NSFileWrapper) FileWrappers ¶
func (o *NSFileWrapper) FileWrappers() *NSDictionary[*NSString, *NSFileWrapper]
func (*NSFileWrapper) Filename ¶
func (o *NSFileWrapper) Filename() *NSString
func (*NSFileWrapper) InitDirectoryWithFileWrappers ¶
func (o *NSFileWrapper) InitDirectoryWithFileWrappers(childrenByPreferredName *NSDictionary[*NSString, *NSFileWrapper]) *NSFileWrapper
func (*NSFileWrapper) InitRegularFileWithContents ¶
func (o *NSFileWrapper) InitRegularFileWithContents(contents *NSData) *NSFileWrapper
func (*NSFileWrapper) InitSymbolicLinkWithDestination
deprecated
func (o *NSFileWrapper) InitSymbolicLinkWithDestination(path *NSString) objc.ID
Deprecated: Use -initSymbolicLinkWithDestinationURL: and -setPreferredFileName:, if necessary, instead.
func (*NSFileWrapper) InitSymbolicLinkWithDestinationURL ¶
func (o *NSFileWrapper) InitSymbolicLinkWithDestinationURL(url *NSURL) *NSFileWrapper
func (*NSFileWrapper) InitWithCoder ¶
func (o *NSFileWrapper) InitWithCoder(inCoder *NSCoder) *NSFileWrapper
func (*NSFileWrapper) InitWithPath
deprecated
func (o *NSFileWrapper) InitWithPath(path *NSString) objc.ID
Deprecated: Use -initWithURL:options:error: instead.
func (*NSFileWrapper) InitWithSerializedRepresentation ¶
func (o *NSFileWrapper) InitWithSerializedRepresentation(serializeRepresentation *NSData) *NSFileWrapper
func (*NSFileWrapper) InitWithURLOptionsError ¶
func (o *NSFileWrapper) InitWithURLOptionsError(url *NSURL, options NSFileWrapperReadingOptions) (*NSFileWrapper, error)
func (*NSFileWrapper) IsDirectory ¶
func (o *NSFileWrapper) IsDirectory() bool
func (*NSFileWrapper) IsRegularFile ¶
func (o *NSFileWrapper) IsRegularFile() bool
func (*NSFileWrapper) IsSymbolicLink ¶
func (o *NSFileWrapper) IsSymbolicLink() bool
func (*NSFileWrapper) KeyForFileWrapper ¶
func (o *NSFileWrapper) KeyForFileWrapper(child *NSFileWrapper) *NSString
func (*NSFileWrapper) MatchesContentsOfURL ¶
func (o *NSFileWrapper) MatchesContentsOfURL(url *NSURL) bool
func (*NSFileWrapper) NeedsToBeUpdatedFromPath
deprecated
func (o *NSFileWrapper) NeedsToBeUpdatedFromPath(path *NSString) bool
Deprecated: Use -matchesContentsOfURL: instead.
func (*NSFileWrapper) PreferredFilename ¶
func (o *NSFileWrapper) PreferredFilename() *NSString
func (*NSFileWrapper) ReadFromURLOptionsError ¶
func (o *NSFileWrapper) ReadFromURLOptionsError(url *NSURL, options NSFileWrapperReadingOptions) (bool, error)
func (*NSFileWrapper) RegularFileContents ¶
func (o *NSFileWrapper) RegularFileContents() *NSData
func (*NSFileWrapper) RemoveFileWrapper ¶
func (o *NSFileWrapper) RemoveFileWrapper(child *NSFileWrapper)
func (*NSFileWrapper) SerializedRepresentation ¶
func (o *NSFileWrapper) SerializedRepresentation() *NSData
func (*NSFileWrapper) SetFileAttributes ¶
func (o *NSFileWrapper) SetFileAttributes(fileAttributes *NSDictionary[*NSString, objc.ID])
func (*NSFileWrapper) SetFilename ¶
func (o *NSFileWrapper) SetFilename(filename *NSString)
func (*NSFileWrapper) SetPreferredFilename ¶
func (o *NSFileWrapper) SetPreferredFilename(preferredFilename *NSString)
func (*NSFileWrapper) SymbolicLinkDestination
deprecated
func (o *NSFileWrapper) SymbolicLinkDestination() *NSString
Deprecated: Use -symbolicLinkDestinationURL instead.
func (*NSFileWrapper) SymbolicLinkDestinationURL ¶
func (o *NSFileWrapper) SymbolicLinkDestinationURL() *NSURL
func (*NSFileWrapper) UpdateFromPath
deprecated
func (o *NSFileWrapper) UpdateFromPath(path *NSString) bool
Deprecated: Use -readFromURL:options:error: instead.
func (*NSFileWrapper) WriteToFileAtomicallyUpdateFilenames
deprecated
func (o *NSFileWrapper) WriteToFileAtomicallyUpdateFilenames(path *NSString, atomicFlag bool, updateFilenamesFlag bool) bool
Deprecated: Use -writeToURL:options:originalContentsURL:error: instead.
func (*NSFileWrapper) WriteToURLOptionsOriginalContentsURLError ¶
func (o *NSFileWrapper) WriteToURLOptionsOriginalContentsURLError(url *NSURL, options NSFileWrapperWritingOptions, originalContentsURL *NSURL) (bool, error)
type NSFileWrapperReadingOptions ¶
type NSFileWrapperReadingOptions uint64
Reading options that can be set by the initWithURL:options:error: and readFromURL:options:error: methods.
const ( NSFileWrapperReadingImmediate NSFileWrapperReadingOptions = 1 NSFileWrapperReadingWithoutMapping NSFileWrapperReadingOptions = 2 )
func (NSFileWrapperReadingOptions) String ¶
func (e NSFileWrapperReadingOptions) String() string
type NSFileWrapperWritingOptions ¶
type NSFileWrapperWritingOptions uint64
Writing options that can be set by the writeToURL:options:originalContentsURL:error: method.
const ( NSFileWrapperWritingAtomic NSFileWrapperWritingOptions = 1 NSFileWrapperWritingWithNameUpdating NSFileWrapperWritingOptions = 2 )
func (NSFileWrapperWritingOptions) String ¶
func (e NSFileWrapperWritingOptions) String() string
type NSFormatter ¶
type NSFormatter struct {
NSObject
}
An abstract class that declares an interface for objects that create, interpret, and validate the textual representation of values.
Apple documentation: https://developer.apple.com/documentation/foundation/nsformatter
func NSFormatterFromID ¶
func NSFormatterFromID(id objc.ID) *NSFormatter
func (*NSFormatter) AttributedStringForObjectValueWithDefaultAttributes ¶
func (o *NSFormatter) AttributedStringForObjectValueWithDefaultAttributes(obj objc.ID, attrs *NSDictionary[*NSString, objc.ID]) *NSAttributedString
func (*NSFormatter) EditingStringForObjectValue ¶
func (o *NSFormatter) EditingStringForObjectValue(obj objc.ID) *NSString
func (*NSFormatter) GetObjectValueForStringErrorDescription ¶
func (o *NSFormatter) GetObjectValueForStringErrorDescription(obj **ObjcObject, string_ *NSString, error_ *NSString) bool
func (*NSFormatter) IsPartialStringValidNewEditingStringErrorDescription ¶
func (o *NSFormatter) IsPartialStringValidNewEditingStringErrorDescription(partialString *NSString, newString *NSString, error_ *NSString) bool
func (*NSFormatter) IsPartialStringValidProposedSelectedRangeOriginalStringOriginalSelectedRangeErrorDescription ¶
func (*NSFormatter) StringForObjectValue ¶
func (o *NSFormatter) StringForObjectValue(obj objc.ID) *NSString
type NSFormattingContext ¶
type NSFormattingContext int64
The formatting context for a formatter.
const ( NSFormattingContextUnknown NSFormattingContext = 0 NSFormattingContextDynamic NSFormattingContext = 1 NSFormattingContextStandalone NSFormattingContext = 2 NSFormattingContextListItem NSFormattingContext = 3 NSFormattingContextBeginningOfSentence NSFormattingContext = 4 NSFormattingContextMiddleOfSentence NSFormattingContext = 5 )
func (NSFormattingContext) String ¶
func (e NSFormattingContext) String() string
type NSFormattingUnitStyle ¶
type NSFormattingUnitStyle int64
Specifies the width of the unit, determining the textual representation.
const ( NSFormattingUnitStyleShort NSFormattingUnitStyle = 1 NSFormattingUnitStyleMedium NSFormattingUnitStyle = 2 NSFormattingUnitStyleLong NSFormattingUnitStyle = 3 )
func (NSFormattingUnitStyle) String ¶
func (e NSFormattingUnitStyle) String() string
type NSGarbageCollector ¶
type NSGarbageCollector struct {
NSObject
}
A convenient interface to the garbage collection system.
Apple documentation: https://developer.apple.com/documentation/foundation/nsgarbagecollector Deprecated: Building Garbage Collected apps is no longer supported.
func NSGarbageCollectorFromID ¶
func NSGarbageCollectorFromID(id objc.ID) *NSGarbageCollector
func (*NSGarbageCollector) CollectExhaustively ¶
func (o *NSGarbageCollector) CollectExhaustively()
Tells the receiver to collect iteratively.
func (*NSGarbageCollector) CollectIfNeeded ¶
func (o *NSGarbageCollector) CollectIfNeeded()
Tells the receiver to collect if memory consumption thresholds have been exceeded.
func (*NSGarbageCollector) Disable ¶
func (o *NSGarbageCollector) Disable()
Temporarily disables collections. Deprecated: since macOS 10.6.
func (*NSGarbageCollector) DisableCollectorForPointer ¶
func (o *NSGarbageCollector) DisableCollectorForPointer(ptr unsafe.Pointer)
Specifies that a given pointer will not be collected.
func (*NSGarbageCollector) Enable ¶
func (o *NSGarbageCollector) Enable()
Enables collection after collection has been disabled. Deprecated: since macOS 10.6.
func (*NSGarbageCollector) EnableCollectorForPointer ¶
func (o *NSGarbageCollector) EnableCollectorForPointer(ptr unsafe.Pointer)
Specifies that a given pointer may be collected.
func (*NSGarbageCollector) IsCollecting ¶
func (o *NSGarbageCollector) IsCollecting() bool
Returns a Boolean value that indicates whether a collection is currently in progress. Deprecated: since macOS 10.6.
func (*NSGarbageCollector) IsEnabled ¶
func (o *NSGarbageCollector) IsEnabled() bool
Returns a Boolean value that indicates whether garbage collection is currently enabled for the current process. Deprecated: since macOS 10.6.
func (*NSGarbageCollector) Zone ¶
func (o *NSGarbageCollector) Zone() unsafe.Pointer
Returns a zone of unscanned memory.
type NSGrammaticalCase ¶
type NSGrammaticalCase int64
const ( NSGrammaticalCaseNotSet NSGrammaticalCase = 0 NSGrammaticalCaseNominative NSGrammaticalCase = 1 NSGrammaticalCaseAccusative NSGrammaticalCase = 2 NSGrammaticalCaseDative NSGrammaticalCase = 3 NSGrammaticalCaseGenitive NSGrammaticalCase = 4 NSGrammaticalCasePrepositional NSGrammaticalCase = 5 NSGrammaticalCaseAblative NSGrammaticalCase = 6 NSGrammaticalCaseAdessive NSGrammaticalCase = 7 NSGrammaticalCaseAllative NSGrammaticalCase = 8 NSGrammaticalCaseElative NSGrammaticalCase = 9 NSGrammaticalCaseIllative NSGrammaticalCase = 10 NSGrammaticalCaseEssive NSGrammaticalCase = 11 NSGrammaticalCaseInessive NSGrammaticalCase = 12 NSGrammaticalCaseLocative NSGrammaticalCase = 13 NSGrammaticalCaseTranslative NSGrammaticalCase = 14 )
func (NSGrammaticalCase) String ¶
func (e NSGrammaticalCase) String() string
type NSGrammaticalDefiniteness ¶
type NSGrammaticalDefiniteness int64
const ( NSGrammaticalDefinitenessNotSet NSGrammaticalDefiniteness = 0 NSGrammaticalDefinitenessIndefinite NSGrammaticalDefiniteness = 1 NSGrammaticalDefinitenessDefinite NSGrammaticalDefiniteness = 2 )
func (NSGrammaticalDefiniteness) String ¶
func (e NSGrammaticalDefiniteness) String() string
type NSGrammaticalDetermination ¶
type NSGrammaticalDetermination int64
const ( NSGrammaticalDeterminationNotSet NSGrammaticalDetermination = 0 NSGrammaticalDeterminationIndependent NSGrammaticalDetermination = 1 NSGrammaticalDeterminationDependent NSGrammaticalDetermination = 2 )
func (NSGrammaticalDetermination) String ¶
func (e NSGrammaticalDetermination) String() string
type NSGrammaticalGender ¶
type NSGrammaticalGender int64
A representation of grammatical gender, used for inflecting strings.
const ( // A value that indicates the gender is unset. NSGrammaticalGenderNotSet NSGrammaticalGender = 0 // The feminine grammatical gender. NSGrammaticalGenderFeminine NSGrammaticalGender = 1 // The masculine grammatical gender. NSGrammaticalGenderMasculine NSGrammaticalGender = 2 // A value to not specify gender when inflecting a string. NSGrammaticalGenderNeuter NSGrammaticalGender = 3 )
func (NSGrammaticalGender) String ¶
func (e NSGrammaticalGender) String() string
type NSGrammaticalNumber ¶
type NSGrammaticalNumber int64
A representation of grammatical number, used for inflecting strings.
const ( // A value that indicates the number is unset. NSGrammaticalNumberNotSet NSGrammaticalNumber = 0 // A single person or thing, as used for a grammatical number. NSGrammaticalNumberSingular NSGrammaticalNumber = 1 // Zero persons or things, as used for a grammatical number. NSGrammaticalNumberZero NSGrammaticalNumber = 2 // Multiple persons or things, as used for a grammatical number. NSGrammaticalNumberPlural NSGrammaticalNumber = 3 // Two persons or things, as used for a grammatical number. NSGrammaticalNumberPluralTwo NSGrammaticalNumber = 4 // A small number of persons or things, as used for a grammatical number. NSGrammaticalNumberPluralFew NSGrammaticalNumber = 5 // A large number of persons or things, as used for a grammatical number. NSGrammaticalNumberPluralMany NSGrammaticalNumber = 6 )
func (NSGrammaticalNumber) String ¶
func (e NSGrammaticalNumber) String() string
type NSGrammaticalPartOfSpeech ¶
type NSGrammaticalPartOfSpeech int64
A representation of grammatical parts of speech, used for inflecting strings.
const ( // A value that indicates the part of speech is unset. NSGrammaticalPartOfSpeechNotSet NSGrammaticalPartOfSpeech = 0 // A determiner, as used as a part of speech. NSGrammaticalPartOfSpeechDeterminer NSGrammaticalPartOfSpeech = 1 // A pronoun, as used as a part of speech. NSGrammaticalPartOfSpeechPronoun NSGrammaticalPartOfSpeech = 2 // A letter, as used as a part of speech. NSGrammaticalPartOfSpeechLetter NSGrammaticalPartOfSpeech = 3 // An adverb, as used as a part of speech. NSGrammaticalPartOfSpeechAdverb NSGrammaticalPartOfSpeech = 4 // A particle, as used as a part of speech. NSGrammaticalPartOfSpeechParticle NSGrammaticalPartOfSpeech = 5 // An adjective, as used as a part of speech. NSGrammaticalPartOfSpeechAdjective NSGrammaticalPartOfSpeech = 6 // An adposition, as used as a part of speech. NSGrammaticalPartOfSpeechAdposition NSGrammaticalPartOfSpeech = 7 // A verb, as used as a part of speech. NSGrammaticalPartOfSpeechVerb NSGrammaticalPartOfSpeech = 8 // A noun, as used as a part of speech. NSGrammaticalPartOfSpeechNoun NSGrammaticalPartOfSpeech = 9 // A conjunction, as used as a part of speech. NSGrammaticalPartOfSpeechConjunction NSGrammaticalPartOfSpeech = 10 // A numeral, as used as a part of speech. NSGrammaticalPartOfSpeechNumeral NSGrammaticalPartOfSpeech = 11 // An interjection, as used as a part of speech. NSGrammaticalPartOfSpeechInterjection NSGrammaticalPartOfSpeech = 12 // A preposition, as used as a part of speech. NSGrammaticalPartOfSpeechPreposition NSGrammaticalPartOfSpeech = 13 // An abbreviation, as used as a part of speech. NSGrammaticalPartOfSpeechAbbreviation NSGrammaticalPartOfSpeech = 14 )
func (NSGrammaticalPartOfSpeech) String ¶
func (e NSGrammaticalPartOfSpeech) String() string
type NSGrammaticalPerson ¶
type NSGrammaticalPerson int64
const ( NSGrammaticalPersonNotSet NSGrammaticalPerson = 0 NSGrammaticalPersonFirst NSGrammaticalPerson = 1 NSGrammaticalPersonSecond NSGrammaticalPerson = 2 NSGrammaticalPersonThird NSGrammaticalPerson = 3 )
func (NSGrammaticalPerson) String ¶
func (e NSGrammaticalPerson) String() string
type NSGrammaticalPronounType ¶
type NSGrammaticalPronounType int64
const ( NSGrammaticalPronounTypeNotSet NSGrammaticalPronounType = 0 NSGrammaticalPronounTypePersonal NSGrammaticalPronounType = 1 NSGrammaticalPronounTypeReflexive NSGrammaticalPronounType = 2 NSGrammaticalPronounTypePossessive NSGrammaticalPronounType = 3 )
func (NSGrammaticalPronounType) String ¶
func (e NSGrammaticalPronounType) String() string
type NSHTTPCookie ¶
type NSHTTPCookie struct {
NSObject
}
A representation of an HTTP cookie.
Apple documentation: https://developer.apple.com/documentation/foundation/nshttpcookie
func NSHTTPCookieCookieWithProperties ¶
func NSHTTPCookieCookieWithProperties(properties *NSDictionary[*NSString, objc.ID]) *NSHTTPCookie
Creates and initializes an HTTP cookie object using the provided properties.
func NSHTTPCookieFromID ¶
func NSHTTPCookieFromID(id objc.ID) *NSHTTPCookie
func (*NSHTTPCookie) Comment ¶
func (o *NSHTTPCookie) Comment() *NSString
@abstract Returns the comment of the receiver. @discussion This value specifies a string which is suitable for presentation to the user explaining the contents and purpose of this cookie. It may be nil. @result The comment of the receiver, or nil if the receiver has no comment.
func (*NSHTTPCookie) CommentURL ¶
func (o *NSHTTPCookie) CommentURL() *NSURL
@abstract Returns the comment URL of the receiver. @discussion This value specifies a URL which is suitable for presentation to the user as a link for further information about this cookie. It may be nil. @result The comment URL of the receiver, or nil if the receiver has no comment URL.
func (*NSHTTPCookie) Domain ¶
func (o *NSHTTPCookie) Domain() *NSString
@abstract Returns the domain of the receiver. @discussion This value specifies URL domain to which the cookie should be sent. A domain with a leading dot means the cookie should be sent to subdomains as well, assuming certain other restrictions are valid. See RFC 2965 for more detail. @result The domain of the receiver.
func (*NSHTTPCookie) ExpiresDate ¶
func (o *NSHTTPCookie) ExpiresDate() *NSDate
@abstract Returns the expires date of the receiver. @result the expires date of the receiver. @discussion The expires date is the date when the cookie should be deleted. The result will be nil if there is no specific expires date. This will be the case only for "session-only" cookies. @result The expires date of the receiver.
func (*NSHTTPCookie) InitWithProperties ¶
func (o *NSHTTPCookie) InitWithProperties(properties *NSDictionary[*NSString, objc.ID]) *NSHTTPCookie
@method initWithProperties: @abstract Initialize a NSHTTPCookie object with a dictionary of parameters @param properties The dictionary of properties to be used to initialize this cookie. @discussion Supported dictionary keys and value types for the given dictionary are as follows. All properties can handle an NSString value, but some can also handle other types. <table border="1" cellspacing="2" cellpadding="4"> <tr> <th>Property key constant</th> <th>Type of value</th> <th>Required</th> <th>Description</th> </tr> <tr> <td>NSHTTPCookieComment</td> <td>NSString</td> <td>NO</td> <td>Comment for the cookie. Only valid for version 1 cookies and later. Default is nil.</td> </tr> <tr> <td>NSHTTPCookieCommentURL</td> <td>NSURL or NSString</td> <td>NO</td> <td>Comment URL for the cookie. Only valid for version 1 cookies and later. Default is nil.</td> </tr> <tr> <td>NSHTTPCookieDomain</td> <td>NSString</td> <td>Special, a value for either NSHTTPCookieOriginURL or NSHTTPCookieDomain must be specified.</td> <td>Domain for the cookie. Inferred from the value for NSHTTPCookieOriginURL if not provided.</td> </tr> <tr> <td>NSHTTPCookieDiscard</td> <td>NSString</td> <td>NO</td> <td>A string stating whether the cookie should be discarded at the end of the session. String value must be either "TRUE" or "FALSE". Default is "FALSE", unless this is cookie is version 1 or greater and a value for NSHTTPCookieMaximumAge is not specified, in which case it is assumed "TRUE".</td> </tr> <tr> <td>NSHTTPCookieExpires</td> <td>NSDate or NSString</td> <td>NO</td> <td>Expiration date for the cookie. Used only for version 0 cookies. Ignored for version 1 or greater.</td> </tr> <tr> <td>NSHTTPCookieMaximumAge</td> <td>NSString</td> <td>NO</td> <td>A string containing an integer value stating how long in seconds the cookie should be kept, at most. Only valid for version 1 cookies and later. Default is "0".</td> </tr> <tr> <td>NSHTTPCookieName</td> <td>NSString</td> <td>YES</td> <td>Name of the cookie</td> </tr> <tr> <td>NSHTTPCookieOriginURL</td> <td>NSURL or NSString</td> <td>Special, a value for either NSHTTPCookieOriginURL or NSHTTPCookieDomain must be specified.</td> <td>URL that set this cookie. Used as default for other fields as noted.</td> </tr> <tr> <td>NSHTTPCookiePath</td> <td>NSString</td> <td>NO</td> <td>Path for the cookie. Inferred from the value for NSHTTPCookieOriginURL if not provided. Default is "/".</td> </tr> <tr> <td>NSHTTPCookiePort</td> <td>NSString</td> <td>NO</td> <td>comma-separated integer values specifying the ports for the cookie. Only valid for version 1 cookies and later. Default is empty string ("").</td> </tr> <tr> <td>NSHTTPCookieSecure</td> <td>NSString</td> <td>NO</td> <td>A string stating whether the cookie should be transmitted only over secure channels. String value must be either "TRUE" or "FALSE". Default is "FALSE".</td> </tr> <tr> <td>NSHTTPCookieValue</td> <td>NSString</td> <td>YES</td> <td>Value of the cookie</td> </tr> <tr> <td>NSHTTPCookieVersion</td> <td>NSString</td> <td>NO</td> <td>Specifies the version of the cookie. Must be either "0" or "1". Default is "0".</td> </tr> <tr> <td>NSHTTPCookieSetByJavaScript</td> <td>NSNumber</td> <td>NO</td> <td>@YES if the cookie is set via JavaScript. @NO if the cookie is not set via JavaScript</td> </tr> </table> <p> All other keys are ignored. @result An initialized NSHTTPCookie, or nil if the set of dictionary keys is invalid, for example because a required key is missing, or a recognized key maps to an illegal value.
func (*NSHTTPCookie) IsHTTPOnly ¶
func (o *NSHTTPCookie) IsHTTPOnly() bool
@abstract Returns whether the receiver should only be sent to HTTP servers per RFC 2965 @discussion Cookies may be marked as HTTPOnly by a server (or by a javascript). Cookies marked as such must only be sent via HTTP Headers in HTTP Requests for URL's that match both the path and domain of the respective Cookies. Specifically these cookies should not be delivered to any javascript applications to prevent cross-site scripting vulnerabilities. @result YES if this cookie should only be sent via HTTP headers, NO otherwise.
func (*NSHTTPCookie) IsSecure ¶
func (o *NSHTTPCookie) IsSecure() bool
@abstract Returns whether the receiver should be sent only over secure channels @discussion Cookies may be marked secure by a server (or by a javascript). Cookies marked as such must only be sent via an encrypted connection to trusted servers (i.e. via SSL or TLS), and should not be delivered to any javascript applications to prevent cross-site scripting vulnerabilities. @result YES if this cookie should be sent only over secure channels, NO otherwise.
func (*NSHTTPCookie) IsSessionOnly ¶
func (o *NSHTTPCookie) IsSessionOnly() bool
@abstract Returns whether the receiver is session-only. @result YES if this receiver should be discarded at the end of the session (regardless of expiration date), NO if receiver need not be discarded at the end of the session.
func (*NSHTTPCookie) Name ¶
func (o *NSHTTPCookie) Name() *NSString
@abstract Returns the name of the receiver. @result the name of the receiver.
func (*NSHTTPCookie) Path ¶
func (o *NSHTTPCookie) Path() *NSString
@abstract Returns the path of the receiver. @discussion This value specifies the URL path under the cookie's domain for which this cookie should be sent. The cookie will also be sent for children of that path, so "/" is the most general. @result The path of the receiver.
func (*NSHTTPCookie) PortList ¶
func (o *NSHTTPCookie) PortList() *NSArray[*NSNumber]
@abstract Returns the list ports to which the receiver should be sent. @discussion This value specifies an NSArray of NSNumbers (containing integers) which specify the only ports to which this cookie should be sent. @result The list ports to which the receiver should be sent. The array may be nil, in which case this cookie can be sent to any port.
func (*NSHTTPCookie) Properties ¶
func (o *NSHTTPCookie) Properties() *NSDictionary[*NSString, objc.ID]
@abstract Returns a dictionary representation of the receiver. @discussion This method returns a dictionary representation of the NSHTTPCookie which can be saved and passed to <tt>-initWithProperties:</tt> or <tt>+cookieWithProperties:</tt> later to reconstitute an equivalent cookie. <p>See the NSHTTPCookie <tt>-initWithProperties:</tt> method for more information on the constraints imposed on the dictionary, and for descriptions of the supported keys and values. @result The dictionary representation of the receiver.
func (*NSHTTPCookie) SameSitePolicy ¶
func (o *NSHTTPCookie) SameSitePolicy() *NSString
@abstract Returns the value of the same site attribute on the cookie. @discussion Cookies can be marked with an attribute Strict or Lax. Cookies marked with "strict" (NSHTTPCookieSameSiteStrict) are not sent along with cross-site requests. Cookies marked with "lax" (NSHTTPCookieSameSiteLax) sent along cross-site requests provided the cross-site requests are top-level-requests (one that changes the url in the address bar). The attribute value is canonicalized and stored. Any value other than the default (strict and lax) will be ignored. @result strict or lax. The result could also be nil, in which case the cookie will be sent along with all cross-site requests.
func (*NSHTTPCookie) Value ¶
func (o *NSHTTPCookie) Value() *NSString
@abstract Returns the value of the receiver. @result the value of the receiver.
type NSHTTPCookieAcceptPolicy ¶
type NSHTTPCookieAcceptPolicy uint64
Cookie acceptance policies implemented by the NSHTTPCookieStorage class.
const ( NSHTTPCookieAcceptPolicyAlways NSHTTPCookieAcceptPolicy = 0 NSHTTPCookieAcceptPolicyNever NSHTTPCookieAcceptPolicy = 1 NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain NSHTTPCookieAcceptPolicy = 2 )
func (NSHTTPCookieAcceptPolicy) String ¶
func (e NSHTTPCookieAcceptPolicy) String() string
type NSHTTPCookieStorage ¶
type NSHTTPCookieStorage struct {
NSObject
}
A container that manages the storage of cookies.
Apple documentation: https://developer.apple.com/documentation/foundation/nshttpcookiestorage
func NSHTTPCookieStorageFromID ¶
func NSHTTPCookieStorageFromID(id objc.ID) *NSHTTPCookieStorage
func NSHTTPCookieStorageSharedCookieStorageForGroupContainerIdentifier ¶
func NSHTTPCookieStorageSharedCookieStorageForGroupContainerIdentifier(identifier *NSString) *NSHTTPCookieStorage
@method sharedCookieStorageForGroupContainerIdentifier: @abstract Get the cookie storage for the container associated with the specified application group identifier @param identifier The application group identifier @result A cookie storage with a persistent store in the application group container @discussion By default, applications and associated app extensions have different data containers, which means that the sharedHTTPCookieStorage singleton will refer to different persistent cookie stores in an application and any app extensions that it contains. This method allows clients to create a persistent cookie storage that can be shared among all applications and extensions with access to the same application group. Subsequent calls to this method with the same identifier will return the same cookie storage instance.
func NSHTTPCookieStorageSharedHTTPCookieStorage ¶
func NSHTTPCookieStorageSharedHTTPCookieStorage() *NSHTTPCookieStorage
@property sharedHTTPCookieStorage @abstract Get the shared cookie storage in the default location. @result The shared cookie storage @discussion Starting in OS X 10.11, each app has its own sharedHTTPCookieStorage singleton, which will not be shared with other applications.
func (*NSHTTPCookieStorage) CookieAcceptPolicy ¶
func (o *NSHTTPCookieStorage) CookieAcceptPolicy() NSHTTPCookieAcceptPolicy
@abstract The cookie accept policy preference of the receiver.
func (*NSHTTPCookieStorage) Cookies ¶
func (o *NSHTTPCookieStorage) Cookies() *NSArray[*NSHTTPCookie]
@abstract Get all the cookies @result An NSArray of NSHTTPCookies
func (*NSHTTPCookieStorage) CookiesForURL ¶
func (o *NSHTTPCookieStorage) CookiesForURL(uRL *NSURL) *NSArray[*NSHTTPCookie]
@method cookiesForURL: @abstract Returns an array of cookies to send to the given URL. @param URL The URL for which to get cookies. @result an NSArray of NSHTTPCookie objects. @discussion The cookie manager examines the cookies it stores and includes those which should be sent to the given URL. You can use <tt>+[NSCookie requestHeaderFieldsWithCookies:]</tt> to turn this array into a set of header fields to add to a request.
func (*NSHTTPCookieStorage) DeleteCookie ¶
func (o *NSHTTPCookieStorage) DeleteCookie(cookie *NSHTTPCookie)
@method deleteCookie: @abstract Delete the specified cookie
func (*NSHTTPCookieStorage) GetCookiesForTaskCompletionHandler ¶
func (o *NSHTTPCookieStorage) GetCookiesForTaskCompletionHandler(task *NSURLSessionTask, completionHandler func(*NSArray[*NSHTTPCookie]))
func (*NSHTTPCookieStorage) RemoveCookiesSinceDate ¶
func (o *NSHTTPCookieStorage) RemoveCookiesSinceDate(date *NSDate)
@method removeCookiesSince: @abstract Delete all cookies from the cookie storage since the provided date.
func (*NSHTTPCookieStorage) SetCookie ¶
func (o *NSHTTPCookieStorage) SetCookie(cookie *NSHTTPCookie)
@method setCookie: @abstract Set a cookie @discussion The cookie will override an existing cookie with the same name, domain and path, if any.
func (*NSHTTPCookieStorage) SetCookieAcceptPolicy ¶
func (o *NSHTTPCookieStorage) SetCookieAcceptPolicy(cookieAcceptPolicy NSHTTPCookieAcceptPolicy)
func (*NSHTTPCookieStorage) SetCookiesForURLMainDocumentURL ¶
func (o *NSHTTPCookieStorage) SetCookiesForURLMainDocumentURL(cookies *NSArray[*NSHTTPCookie], uRL *NSURL, mainDocumentURL *NSURL)
@method setCookies:forURL:mainDocumentURL: @abstract Adds an array cookies to the cookie store, following the cookie accept policy. @param cookies The cookies to set. @param URL The URL from which the cookies were sent. @param mainDocumentURL The main document URL to be used as a base for the "same domain as main document" policy. @discussion For mainDocumentURL, the caller should pass the URL for an appropriate main document, if known. For example, when loading a web page, the URL of the main html document for the top-level frame should be passed. To save cookies based on a set of response headers, you can use <tt>+[NSCookie cookiesWithResponseHeaderFields:forURL:]</tt> on a header field dictionary and then use this method to store the resulting cookies in accordance with policy settings.
func (*NSHTTPCookieStorage) SortedCookiesUsingDescriptors ¶
func (o *NSHTTPCookieStorage) SortedCookiesUsingDescriptors(sortOrder *NSArray[*NSSortDescriptor]) *NSArray[*NSHTTPCookie]
@method sortedCookiesUsingDescriptors: @abstract Returns an array of all cookies in the store, sorted according to the key value and sorting direction of the NSSortDescriptors specified in the parameter. @param sortOrder an array of NSSortDescriptors which represent the preferred sort order of the resulting array. @discussion proper sorting of cookies may require extensive string conversion, which can be avoided by allowing the system to perform the sorting. This API is to be preferred over the more generic -[NSHTTPCookieStorage cookies] API, if sorting is going to be performed.
func (*NSHTTPCookieStorage) StoreCookiesForTask ¶
func (o *NSHTTPCookieStorage) StoreCookiesForTask(cookies *NSArray[*NSHTTPCookie], task *NSURLSessionTask)
type NSHTTPURLResponse ¶
type NSHTTPURLResponse struct {
NSURLResponse
}
The metadata associated with the response to an HTTP protocol URL load request.
Apple documentation: https://developer.apple.com/documentation/foundation/nshttpurlresponse
func NSHTTPURLResponseFromID ¶
func NSHTTPURLResponseFromID(id objc.ID) *NSHTTPURLResponse
func (*NSHTTPURLResponse) AllHeaderFields ¶
func (o *NSHTTPURLResponse) AllHeaderFields() *NSDictionary[objc.ID, objc.ID]
@abstract Returns a dictionary containing all the HTTP header fields of the receiver. @discussion By examining this header dictionary, clients can see the "raw" header information which was reported to the protocol implementation by the HTTP server. This may be of use to sophisticated or special-purpose HTTP clients. @result A dictionary containing all the HTTP header fields of the receiver.
func (*NSHTTPURLResponse) InitWithURLStatusCodeHTTPVersionHeaderFields ¶
func (o *NSHTTPURLResponse) InitWithURLStatusCodeHTTPVersionHeaderFields(url *NSURL, statusCode int, hTTPVersion *NSString, headerFields *NSDictionary[*NSString, *NSString]) *NSHTTPURLResponse
@method initWithURL:statusCode:HTTPVersion:headerFields: @abstract initializer for NSHTTPURLResponse objects. @param url the URL from which the response was generated. @param statusCode an HTTP status code. @param HTTPVersion The version of the HTTP response as represented by the server. This is typically represented as "HTTP/1.1". @param headerFields A dictionary representing the header keys and values of the server response. @result the instance of the object, or NULL if an error occurred during initialization. @discussion This API was introduced in Mac OS X 10.7.2 and iOS 5.0 and is not available prior to those releases.
func (*NSHTTPURLResponse) StatusCode ¶
func (o *NSHTTPURLResponse) StatusCode() int
@abstract Returns the HTTP status code of the receiver. @result The HTTP status code of the receiver.
func (*NSHTTPURLResponse) ValueForHTTPHeaderField ¶
func (o *NSHTTPURLResponse) ValueForHTTPHeaderField(field *NSString) *NSString
@method valueForHTTPHeaderField: @abstract Returns the value which corresponds to the given header field. Note that, in keeping with the HTTP RFC, HTTP header field names are case-insensitive. @param field the header field name to use for the lookup (case-insensitive). @result the value associated with the given header field, or nil if there is no value associated with the given header field.
type NSHashEnumerator ¶
type NSHashEnumerator struct {
}
Allows successive elements of a hash table to be returned each time this structure is passed to NSNextHashEnumeratorItem.
func NSEnumerateHashTable ¶
func NSEnumerateHashTable(table *NSHashTable[objc.ID]) NSHashEnumerator
type NSHashTable ¶
A collection similar to a set, but with broader range of available memory semantics.
Apple documentation: https://developer.apple.com/documentation/foundation/nshashtable
func NSCopyHashTableWithZone ¶
func NSCopyHashTableWithZone(table *NSHashTable[objc.ID], zone unsafe.Pointer) *NSHashTable[objc.ID]
func NSCreateHashTable ¶
func NSCreateHashTable(callBacks NSHashTableCallBacks, capacity uint) *NSHashTable[objc.ID]
func NSCreateHashTableWithZone ¶
func NSCreateHashTableWithZone(callBacks NSHashTableCallBacks, capacity uint, zone unsafe.Pointer) *NSHashTable[objc.ID]
func NSHashTableFromID ¶
func NSHashTableFromID[ObjectType purego.AnyObject](id objc.ID) *NSHashTable[ObjectType]
func NSHashTableHashTableWithOptions ¶
func NSHashTableHashTableWithOptions(options NSPointerFunctionsOptions) *NSHashTable[objc.ID]
Returns a hash table with given pointer functions options.
func NSHashTableWeakObjectsHashTable ¶
func NSHashTableWeakObjectsHashTable() *NSHashTable[objc.ID]
Returns a new hash table for storing weak references to its contents.
func (*NSHashTable[ObjectType]) AddObject ¶
func (o *NSHashTable[ObjectType]) AddObject(object ObjectType)
Adds a given object to the hash table.
func (*NSHashTable[ObjectType]) AllObjects ¶
func (o *NSHashTable[ObjectType]) AllObjects() *NSArray[ObjectType]
func (*NSHashTable[ObjectType]) AnyObject ¶
func (o *NSHashTable[ObjectType]) AnyObject() ObjectType
func (*NSHashTable[ObjectType]) ContainsObject ¶
func (o *NSHashTable[ObjectType]) ContainsObject(anObject ObjectType) bool
Returns a Boolean value that indicates whether the hash table contains a given object.
func (*NSHashTable[ObjectType]) Count ¶
func (o *NSHashTable[ObjectType]) Count() uint
func (*NSHashTable[ObjectType]) InitWithOptionsCapacity ¶
func (o *NSHashTable[ObjectType]) InitWithOptionsCapacity(options NSPointerFunctionsOptions, initialCapacity uint) *NSHashTable[ObjectType]
Returns a hash table initialized with the given attributes.
func (*NSHashTable[ObjectType]) InitWithPointerFunctionsCapacity ¶
func (o *NSHashTable[ObjectType]) InitWithPointerFunctionsCapacity(functions *NSPointerFunctions, initialCapacity uint) *NSHashTable[ObjectType]
Returns a hash table initialized with the given functions and capacity.
func (*NSHashTable[ObjectType]) IntersectHashTable ¶
func (o *NSHashTable[ObjectType]) IntersectHashTable(other *NSHashTable[ObjectType])
Removes from the receiving hash table each element that isn’t a member of another given hash table.
func (*NSHashTable[ObjectType]) IntersectsHashTable ¶
func (o *NSHashTable[ObjectType]) IntersectsHashTable(other *NSHashTable[ObjectType]) bool
Returns a Boolean value that indicates whether a given hash table intersects with the receiving hash table.
func (*NSHashTable[ObjectType]) IsEqualToHashTable ¶
func (o *NSHashTable[ObjectType]) IsEqualToHashTable(other *NSHashTable[ObjectType]) bool
Returns a Boolean value that indicates whether a given hash table is equal to the receiving hash table.
func (*NSHashTable[ObjectType]) IsSubsetOfHashTable ¶
func (o *NSHashTable[ObjectType]) IsSubsetOfHashTable(other *NSHashTable[ObjectType]) bool
Returns a Boolean value that indicates whether every element in the receiving hash table is also present in another given hash table.
func (*NSHashTable[ObjectType]) Member ¶
func (o *NSHashTable[ObjectType]) Member(object ObjectType) ObjectType
Determines whether the hash table contains a given object, and returns that object if it is present
func (*NSHashTable[ObjectType]) MinusHashTable ¶
func (o *NSHashTable[ObjectType]) MinusHashTable(other *NSHashTable[ObjectType])
Removes each element in another given hash table from the receiving hash table, if present.
func (*NSHashTable[ObjectType]) ObjectEnumerator ¶
func (o *NSHashTable[ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]
Returns an enumerator object that lets you access each object in the hash table.
func (*NSHashTable[ObjectType]) PointerFunctions ¶
func (o *NSHashTable[ObjectType]) PointerFunctions() *NSPointerFunctions
func (*NSHashTable[ObjectType]) RemoveAllObjects ¶
func (o *NSHashTable[ObjectType]) RemoveAllObjects()
Removes all objects from the hash table.
func (*NSHashTable[ObjectType]) RemoveObject ¶
func (o *NSHashTable[ObjectType]) RemoveObject(object ObjectType)
Removes a given object from the hash table.
func (*NSHashTable[ObjectType]) SetRepresentation ¶
func (o *NSHashTable[ObjectType]) SetRepresentation() *NSSet[ObjectType]
func (*NSHashTable[ObjectType]) UnionHashTable ¶
func (o *NSHashTable[ObjectType]) UnionHashTable(other *NSHashTable[ObjectType])
Adds each element in another given hash table to the receiving hash table, if not present.
type NSHashTableCallBacks ¶
type NSHashTableCallBacks struct {
Hash unsafe.Pointer
IsEqual unsafe.Pointer
Retain unsafe.Pointer
Release unsafe.Pointer
Describe unsafe.Pointer
}
Defines a structure that contains the function pointers used to configure behavior of NSHashTable with respect to elements within a hash table.
func NSIntHashCallBacks
deprecated
func NSIntHashCallBacks() NSHashTableCallBacks
Deprecated: Not supported
func NSIntegerHashCallBacks ¶
func NSIntegerHashCallBacks() NSHashTableCallBacks
func NSNonOwnedPointerHashCallBacks ¶
func NSNonOwnedPointerHashCallBacks() NSHashTableCallBacks
func NSNonRetainedObjectHashCallBacks ¶
func NSNonRetainedObjectHashCallBacks() NSHashTableCallBacks
func NSObjectHashCallBacks ¶
func NSObjectHashCallBacks() NSHashTableCallBacks
func NSOwnedObjectIdentityHashCallBacks ¶
func NSOwnedObjectIdentityHashCallBacks() NSHashTableCallBacks
func NSOwnedPointerHashCallBacks ¶
func NSOwnedPointerHashCallBacks() NSHashTableCallBacks
func NSPointerToStructHashCallBacks ¶
func NSPointerToStructHashCallBacks() NSHashTableCallBacks
type NSHost ¶
type NSHost struct {
NSObject
}
A representation of an individual host on the network.
Apple documentation: https://developer.apple.com/documentation/foundation/nshost Deprecated: Use Network framework instead, see deprecation notice in <Foundation/NSHost.h>
func NSHostCurrentHost ¶
func NSHostCurrentHost() *NSHost
func NSHostFromID ¶
func NSHostHostWithAddress ¶
func NSHostHostWithName ¶
func (*NSHost) IsEqualToHost ¶
func (*NSHost) LocalizedName ¶
type NSISO8601DateFormatOptions ¶
type NSISO8601DateFormatOptions uint64
Options used to generate and parse ISO 8601 date representations.
const ( NSISO8601DateFormatWithYear NSISO8601DateFormatOptions = 1 NSISO8601DateFormatWithMonth NSISO8601DateFormatOptions = 2 NSISO8601DateFormatWithWeekOfYear NSISO8601DateFormatOptions = 4 NSISO8601DateFormatWithDay NSISO8601DateFormatOptions = 16 NSISO8601DateFormatWithTime NSISO8601DateFormatOptions = 32 NSISO8601DateFormatWithTimeZone NSISO8601DateFormatOptions = 64 NSISO8601DateFormatWithSpaceBetweenDateAndTime NSISO8601DateFormatOptions = 128 NSISO8601DateFormatWithDashSeparatorInDate NSISO8601DateFormatOptions = 256 NSISO8601DateFormatWithColonSeparatorInTime NSISO8601DateFormatOptions = 512 NSISO8601DateFormatWithColonSeparatorInTimeZone NSISO8601DateFormatOptions = 1024 NSISO8601DateFormatWithFractionalSeconds NSISO8601DateFormatOptions = 2048 NSISO8601DateFormatWithFullDate NSISO8601DateFormatOptions = 275 NSISO8601DateFormatWithFullTime NSISO8601DateFormatOptions = 1632 NSISO8601DateFormatWithInternetDateTime NSISO8601DateFormatOptions = 1907 )
func (NSISO8601DateFormatOptions) String ¶
func (e NSISO8601DateFormatOptions) String() string
type NSISO8601DateFormatter ¶
type NSISO8601DateFormatter struct {
NSFormatter
}
A formatter that converts between dates and their ISO 8601 string representations.
Apple documentation: https://developer.apple.com/documentation/foundation/nsiso8601dateformatter
func NSISO8601DateFormatterFromID ¶
func NSISO8601DateFormatterFromID(id objc.ID) *NSISO8601DateFormatter
func (*NSISO8601DateFormatter) DateFromString ¶
func (o *NSISO8601DateFormatter) DateFromString(string_ *NSString) *NSDate
func (*NSISO8601DateFormatter) FormatOptions ¶
func (o *NSISO8601DateFormatter) FormatOptions() NSISO8601DateFormatOptions
func (*NSISO8601DateFormatter) Init ¶
func (o *NSISO8601DateFormatter) Init() *NSISO8601DateFormatter
func (*NSISO8601DateFormatter) SetFormatOptions ¶
func (o *NSISO8601DateFormatter) SetFormatOptions(formatOptions NSISO8601DateFormatOptions)
func (*NSISO8601DateFormatter) SetTimeZone ¶
func (o *NSISO8601DateFormatter) SetTimeZone(timeZone *NSTimeZone)
func (*NSISO8601DateFormatter) StringFromDate ¶
func (o *NSISO8601DateFormatter) StringFromDate(date *NSDate) *NSString
func (*NSISO8601DateFormatter) TimeZone ¶
func (o *NSISO8601DateFormatter) TimeZone() *NSTimeZone
type NSIndexPath ¶
type NSIndexPath struct {
NSObject
}
A list of indexes that together represent the path to a specific location in a tree of nested arrays.
Apple documentation: https://developer.apple.com/documentation/foundation/nsindexpath
func NSIndexPathFromID ¶
func NSIndexPathFromID(id objc.ID) *NSIndexPath
func NSIndexPathIndexPathWithIndex ¶
func NSIndexPathIndexPathWithIndex(index uint) *NSIndexPath
Creates a one-node index path.
func NSIndexPathIndexPathWithIndexesLength ¶
func NSIndexPathIndexPathWithIndexesLength(indexes *uint, length uint) *NSIndexPath
Creates an index path with one or more nodes.
func (*NSIndexPath) Compare ¶
func (o *NSIndexPath) Compare(otherObject *NSIndexPath) NSComparisonResult
Indicates the depth-first traversal order of the receiving index path and another index path.
func (*NSIndexPath) GetIndexes ¶
func (o *NSIndexPath) GetIndexes(indexes *uint)
Copies the objects contained in the index path into indexes. Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSIndexPath) GetIndexesRange ¶
func (o *NSIndexPath) GetIndexesRange(indexes *uint, positionRange NSRange)
Copies the indexes stored in the index path from the positions specified by the position range into the specified indexes.
func (*NSIndexPath) IndexAtPosition ¶
func (o *NSIndexPath) IndexAtPosition(position uint) uint
Provides the value at a particular node in the index path.
func (*NSIndexPath) IndexPathByAddingIndex ¶
func (o *NSIndexPath) IndexPathByAddingIndex(index uint) *NSIndexPath
Returns an index path containing the nodes in the receiving index path plus another given index.
func (*NSIndexPath) IndexPathByRemovingLastIndex ¶
func (o *NSIndexPath) IndexPathByRemovingLastIndex() *NSIndexPath
Returns an index path with the nodes in the receiving index path, excluding the last one.
func (*NSIndexPath) InitWithIndex ¶
func (o *NSIndexPath) InitWithIndex(index uint) *NSIndexPath
Initializes an index path with a single node.
func (*NSIndexPath) InitWithIndexesLength ¶
func (o *NSIndexPath) InitWithIndexesLength(indexes *uint, length uint) *NSIndexPath
Initializes an index path with the given nodes and length.
func (*NSIndexPath) Length ¶
func (o *NSIndexPath) Length() uint
type NSIndexSet ¶
type NSIndexSet struct {
NSObject
}
An immutable collection of unique integer values that represent indexes in another collection.
Apple documentation: https://developer.apple.com/documentation/foundation/nsindexset
func NSIndexSetFromID ¶
func NSIndexSetFromID(id objc.ID) *NSIndexSet
func NSIndexSetIndexSetWithIndex ¶
func NSIndexSetIndexSetWithIndex(value uint) *NSIndexSet
Creates an index set with an index.
func NSIndexSetIndexSetWithIndexesInRange ¶
func NSIndexSetIndexSetWithIndexesInRange(range_ NSRange) *NSIndexSet
Creates an index set with an index range.
func (*NSIndexSet) ContainsIndex ¶
func (o *NSIndexSet) ContainsIndex(value uint) bool
Indicates whether the index set contains a specific index.
func (*NSIndexSet) ContainsIndexes ¶
func (o *NSIndexSet) ContainsIndexes(indexSet *NSIndexSet) bool
Indicates whether the receiving index set contains a superset of the indexes in another index set.
func (*NSIndexSet) ContainsIndexesInRange ¶
func (o *NSIndexSet) ContainsIndexesInRange(range_ NSRange) bool
Indicates whether the index set contains the indexes represented by an index range.
func (*NSIndexSet) Count ¶
func (o *NSIndexSet) Count() uint
func (*NSIndexSet) CountOfIndexesInRange ¶
func (o *NSIndexSet) CountOfIndexesInRange(range_ NSRange) uint
Returns the number of indexes in the index set that are members of a given range.
func (*NSIndexSet) EnumerateIndexesInRangeOptionsUsing ¶
func (o *NSIndexSet) EnumerateIndexesInRangeOptionsUsing(range_ NSRange, opts NSEnumerationOptions, block func(uint, *bool))
Executes a given Block using the indexes in the specified range, using the specified enumeration options.
func (*NSIndexSet) EnumerateIndexesUsing ¶
func (o *NSIndexSet) EnumerateIndexesUsing(block func(uint, *bool))
Executes a given Block using each object in the index set.
func (*NSIndexSet) EnumerateIndexesWithOptionsUsing ¶
func (o *NSIndexSet) EnumerateIndexesWithOptionsUsing(opts NSEnumerationOptions, block func(uint, *bool))
Executes a given Block over the index set’s indexes, using the specified enumeration options.
func (*NSIndexSet) EnumerateRangesInRangeOptionsUsing ¶
func (o *NSIndexSet) EnumerateRangesInRangeOptionsUsing(range_ NSRange, opts NSEnumerationOptions, block objc.Block)
Enumerates over the ranges in the range of objects using the block
func (*NSIndexSet) EnumerateRangesUsing ¶
func (o *NSIndexSet) EnumerateRangesUsing(block objc.Block)
Executes a given block using each object in the index set, in the specified ranges.
func (*NSIndexSet) EnumerateRangesWithOptionsUsing ¶
func (o *NSIndexSet) EnumerateRangesWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)
Executes a given block using each object in the index set, in the specified ranges.
func (*NSIndexSet) FirstIndex ¶
func (o *NSIndexSet) FirstIndex() uint
func (*NSIndexSet) GetIndexesMaxCountInIndexRange ¶
func (o *NSIndexSet) GetIndexesMaxCountInIndexRange(indexBuffer *uint, bufferSize uint, range_ *NSRange) uint
The index set fills an index buffer with the indexes contained both in the index set and in an index range, returning the number of indexes copied.
func (*NSIndexSet) IndexGreaterThanIndex ¶
func (o *NSIndexSet) IndexGreaterThanIndex(value uint) uint
Returns either the closest index in the index set that is greater than a specific index or the not-found indicator.
func (*NSIndexSet) IndexGreaterThanOrEqualToIndex ¶
func (o *NSIndexSet) IndexGreaterThanOrEqualToIndex(value uint) uint
Returns either the closest index in the index set that is greater than or equal to a specific index or the not-found indicator.
func (*NSIndexSet) IndexInRangeOptionsPassingTest ¶
func (o *NSIndexSet) IndexInRangeOptionsPassingTest(range_ NSRange, opts NSEnumerationOptions, predicate func(uint, *bool) bool) uint
Returns the index of the first object in the specified range that passes the predicate Block test.
func (*NSIndexSet) IndexLessThanIndex ¶
func (o *NSIndexSet) IndexLessThanIndex(value uint) uint
Returns either the closest index in the index set that is less than a specific index or the not-found indicator.
func (*NSIndexSet) IndexLessThanOrEqualToIndex ¶
func (o *NSIndexSet) IndexLessThanOrEqualToIndex(value uint) uint
Returns either the closest index in the index set that is less than or equal to a specific index or the not-found indicator.
func (*NSIndexSet) IndexPassingTest ¶
func (o *NSIndexSet) IndexPassingTest(predicate func(uint, *bool) bool) uint
Returns the index of the first object that passes the predicate Block test.
func (*NSIndexSet) IndexWithOptionsPassingTest ¶
func (o *NSIndexSet) IndexWithOptionsPassingTest(opts NSEnumerationOptions, predicate func(uint, *bool) bool) uint
Returns the index of the first object that passes the predicate Block test using the specified enumeration options.
func (*NSIndexSet) IndexesInRangeOptionsPassingTest ¶
func (o *NSIndexSet) IndexesInRangeOptionsPassingTest(range_ NSRange, opts NSEnumerationOptions, predicate func(uint, *bool) bool) *NSIndexSet
Returns an NSIndexSet containing the receiving index set’s objects in the specified range that pass the Block test.
func (*NSIndexSet) IndexesPassingTest ¶
func (o *NSIndexSet) IndexesPassingTest(predicate func(uint, *bool) bool) *NSIndexSet
Returns an NSIndexSet containing the receiving index set’s objects that pass the Block test.
func (*NSIndexSet) IndexesWithOptionsPassingTest ¶
func (o *NSIndexSet) IndexesWithOptionsPassingTest(opts NSEnumerationOptions, predicate func(uint, *bool) bool) *NSIndexSet
Returns an NSIndexSet containing the receiving index set’s objects that pass the Block test using the specified enumeration options.
func (*NSIndexSet) InitWithIndex ¶
func (o *NSIndexSet) InitWithIndex(value uint) *NSIndexSet
Initializes an allocated NSIndexSet object with an index.
func (*NSIndexSet) InitWithIndexSet ¶
func (o *NSIndexSet) InitWithIndexSet(indexSet *NSIndexSet) *NSIndexSet
Initializes an allocated NSIndexSet object with an index set.
func (*NSIndexSet) InitWithIndexesInRange ¶
func (o *NSIndexSet) InitWithIndexesInRange(range_ NSRange) *NSIndexSet
Initializes an allocated NSIndexSet object with an index range.
func (*NSIndexSet) IntersectsIndexesInRange ¶
func (o *NSIndexSet) IntersectsIndexesInRange(range_ NSRange) bool
Indicates whether the index set contains any of the indexes in a range.
func (*NSIndexSet) IsEqualToIndexSet ¶
func (o *NSIndexSet) IsEqualToIndexSet(indexSet *NSIndexSet) bool
Indicates whether the indexes in the receiving index set are the same indexes contained in another index set.
func (*NSIndexSet) LastIndex ¶
func (o *NSIndexSet) LastIndex() uint
type NSIndexSpecifier ¶
type NSIndexSpecifier struct {
NSScriptObjectSpecifier
}
A specifier representing an object in a collection (or container) with an index number.
Apple documentation: https://developer.apple.com/documentation/foundation/nsindexspecifier
func NSIndexSpecifierFromID ¶
func NSIndexSpecifierFromID(id objc.ID) *NSIndexSpecifier
func (*NSIndexSpecifier) Index ¶
func (o *NSIndexSpecifier) Index() int
func (*NSIndexSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyIndex ¶
func (o *NSIndexSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyIndex(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString, index int) *NSIndexSpecifier
Initializes an allocated NSIndexSpecifier object with a class description, container specifier, collection key, and object index.
func (*NSIndexSpecifier) SetIndex ¶
func (o *NSIndexSpecifier) SetIndex(index int)
type NSInflectionRule ¶
type NSInflectionRule struct {
NSObject
}
A rule that affects how an attributed string performs automatic grammatical agreement.
Apple documentation: https://developer.apple.com/documentation/foundation/nsinflectionrule
func NSInflectionRuleAutomaticRule ¶
func NSInflectionRuleAutomaticRule() *NSInflectionRule
func NSInflectionRuleFromID ¶
func NSInflectionRuleFromID(id objc.ID) *NSInflectionRule
type NSInflectionRuleExplicit ¶
type NSInflectionRuleExplicit struct {
NSInflectionRule
}
An inflection rule that uses a morphology instance to determine how to inflect attribued strings.
Apple documentation: https://developer.apple.com/documentation/foundation/nsinflectionruleexplicit
func NSInflectionRuleExplicitFromID ¶
func NSInflectionRuleExplicitFromID(id objc.ID) *NSInflectionRuleExplicit
func (*NSInflectionRuleExplicit) InitWithMorphology ¶
func (o *NSInflectionRuleExplicit) InitWithMorphology(morphology *NSMorphology) *NSInflectionRuleExplicit
Creates an inflection rule with the given morphology.
func (*NSInflectionRuleExplicit) Morphology ¶
func (o *NSInflectionRuleExplicit) Morphology() *NSMorphology
type NSInlinePresentationIntent ¶
type NSInlinePresentationIntent uint64
A type that defines presentation intent for runs of characters for traits like emphasis, strikethrough, and code voice.
const ( NSInlinePresentationIntentEmphasized NSInlinePresentationIntent = 1 NSInlinePresentationIntentStronglyEmphasized NSInlinePresentationIntent = 2 NSInlinePresentationIntentCode NSInlinePresentationIntent = 4 NSInlinePresentationIntentStrikethrough NSInlinePresentationIntent = 32 NSInlinePresentationIntentSoftBreak NSInlinePresentationIntent = 64 NSInlinePresentationIntentLineBreak NSInlinePresentationIntent = 128 NSInlinePresentationIntentInlineHTML NSInlinePresentationIntent = 256 NSInlinePresentationIntentBlockHTML NSInlinePresentationIntent = 512 )
func (NSInlinePresentationIntent) String ¶
func (e NSInlinePresentationIntent) String() string
type NSInputStream ¶
type NSInputStream struct {
NSStream
}
A stream that provides read-only stream functionality.
Apple documentation: https://developer.apple.com/documentation/foundation/nsinputstream
func NSInputStreamFromID ¶
func NSInputStreamFromID(id objc.ID) *NSInputStream
func NSInputStreamInputStreamWithData ¶
func NSInputStreamInputStreamWithData(data *NSData) *NSInputStream
Creates and returns an initialized NSInputStream object for reading from a given NSData object.
func NSInputStreamInputStreamWithFileAtPath ¶
func NSInputStreamInputStreamWithFileAtPath(path *NSString) *NSInputStream
Creates and returns an initialized NSInputStream object that reads data from the file at a given path.
func NSInputStreamInputStreamWithURL ¶
func NSInputStreamInputStreamWithURL(url *NSURL) *NSInputStream
Creates and returns an initialized NSInputStream object that reads data from the file at a given URL.
func (*NSInputStream) GetBufferLength ¶
func (o *NSInputStream) GetBufferLength(buffer *uint8, len_ *uint) bool
func (*NSInputStream) HasBytesAvailable ¶
func (o *NSInputStream) HasBytesAvailable() bool
func (*NSInputStream) InitWithData ¶
func (o *NSInputStream) InitWithData(data *NSData) *NSInputStream
func (*NSInputStream) InitWithFileAtPath ¶
func (o *NSInputStream) InitWithFileAtPath(path *NSString) *NSInputStream
func (*NSInputStream) InitWithURL ¶
func (o *NSInputStream) InitWithURL(url *NSURL) *NSInputStream
func (*NSInputStream) ReadMaxLength ¶
func (o *NSInputStream) ReadMaxLength(buffer *uint8, len_ uint) int
type NSInsertionPosition ¶
type NSInsertionPosition uint64
The following constants are defined by NSPositionalSpecifier to specify an insertion position.
const ( NSPositionAfter NSInsertionPosition = 0 NSPositionBefore NSInsertionPosition = 1 NSPositionBeginning NSInsertionPosition = 2 NSPositionEnd NSInsertionPosition = 3 NSPositionReplace NSInsertionPosition = 4 )
func (NSInsertionPosition) String ¶
func (e NSInsertionPosition) String() string
type NSInvocation ¶
type NSInvocation struct {
NSObject
}
An Objective-C message rendered as an object.
Apple documentation: https://developer.apple.com/documentation/foundation/nsinvocation
func NSInvocationFromID ¶
func NSInvocationFromID(id objc.ID) *NSInvocation
func NSInvocationInvocationWithMethodSignature ¶
func NSInvocationInvocationWithMethodSignature(sig *NSMethodSignature) *NSInvocation
Returns an NSInvocation object able to construct messages using a given method signature.
func (*NSInvocation) ArgumentsRetained ¶
func (o *NSInvocation) ArgumentsRetained() bool
func (*NSInvocation) GetArgumentAtIndex ¶
func (o *NSInvocation) GetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int)
Returns by indirection the receiver’s argument at a specified index.
func (*NSInvocation) GetReturnValue ¶
func (o *NSInvocation) GetReturnValue(retLoc unsafe.Pointer)
Gets the invocation’s return value.
func (*NSInvocation) Invoke ¶
func (o *NSInvocation) Invoke()
Sends the receiver’s message (with arguments) to its target and sets the return value.
func (*NSInvocation) InvokeUsingIMP ¶
func (o *NSInvocation) InvokeUsingIMP(imp unsafe.Pointer)
func (*NSInvocation) InvokeWithTarget ¶
func (o *NSInvocation) InvokeWithTarget(target objc.ID)
Sets the receiver’s target, sends the receiver’s message (with arguments) to that target, and sets the return value.
func (*NSInvocation) MethodSignature ¶
func (o *NSInvocation) MethodSignature() *NSMethodSignature
func (*NSInvocation) RetainArguments ¶
func (o *NSInvocation) RetainArguments()
If the receiver hasn’t already done so, retains the target and all object arguments of the receiver and copies all of its C-string arguments and blocks. If a returnvalue has been set, this is also retained or copied.
func (*NSInvocation) Selector ¶
func (o *NSInvocation) Selector() objc.SEL
func (*NSInvocation) SetArgumentAtIndex ¶
func (o *NSInvocation) SetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int)
Sets an argument of the receiver.
func (*NSInvocation) SetReturnValue ¶
func (o *NSInvocation) SetReturnValue(retLoc unsafe.Pointer)
Sets the receiver’s return value.
func (*NSInvocation) SetSelector ¶
func (o *NSInvocation) SetSelector(selector objc.SEL)
func (*NSInvocation) SetTarget ¶
func (o *NSInvocation) SetTarget(target objc.ID)
func (*NSInvocation) Target ¶
func (o *NSInvocation) Target() objc.ID
type NSInvocationOperation ¶
type NSInvocationOperation struct {
NSOperation
}
An operation that manages the execution of a single encapsulated task specified as an invocation.
Apple documentation: https://developer.apple.com/documentation/foundation/nsinvocationoperation
func NSInvocationOperationFromID ¶
func NSInvocationOperationFromID(id objc.ID) *NSInvocationOperation
func (*NSInvocationOperation) InitWithInvocation ¶
func (o *NSInvocationOperation) InitWithInvocation(inv *NSInvocation) *NSInvocationOperation
Returns an NSInvocationOperation object initialized with the specified invocation object.
func (*NSInvocationOperation) InitWithTargetSelectorObject ¶
func (o *NSInvocationOperation) InitWithTargetSelectorObject(target objc.ID, sel objc.SEL, arg objc.ID) *NSInvocationOperation
Returns an NSInvocationOperation object initialized with the specified target and selector.
func (*NSInvocationOperation) Invocation ¶
func (o *NSInvocationOperation) Invocation() *NSInvocation
func (*NSInvocationOperation) Result ¶
func (o *NSInvocationOperation) Result() objc.ID
type NSItemProvider ¶
type NSItemProvider struct {
NSObject
}
An item provider for conveying data or a file between processes during drag-and-drop or copy-and-paste activities, or from a host app to an app extension.
Apple documentation: https://developer.apple.com/documentation/foundation/nsitemprovider
func NSItemProviderFromID ¶
func NSItemProviderFromID(id objc.ID) *NSItemProvider
func (*NSItemProvider) CanLoadObjectOfClass ¶
func (o *NSItemProvider) CanLoadObjectOfClass(aClass unsafe.Pointer) bool
Returns a Boolean value indicating whether an item provider can load objects of a specified class.
func (*NSItemProvider) HasItemConformingToTypeIdentifier ¶
func (o *NSItemProvider) HasItemConformingToTypeIdentifier(typeIdentifier *NSString) bool
Returns a Boolean value indicating whether an item provider contains a data representation conforming to a specified universal type identifier file options parameter with a value of zero.
func (*NSItemProvider) HasRepresentationConformingToTypeIdentifierFileOptions ¶
func (o *NSItemProvider) HasRepresentationConformingToTypeIdentifierFileOptions(typeIdentifier *NSString, fileOptions NSItemProviderFileOptions) bool
Returns a Boolean value indicating whether an item provider contains a data representation conforming to a specified universal type identifier and to specified open-in-place behavior.
func (*NSItemProvider) Init ¶
func (o *NSItemProvider) Init() *NSItemProvider
Creates an empty item provider to which you can later register a data or file representation.
func (*NSItemProvider) InitWithContentsOfURL ¶
func (o *NSItemProvider) InitWithContentsOfURL(fileURL *NSURL) *NSItemProvider
Provides data-backed content from an existing file.
func (*NSItemProvider) InitWithItemTypeIdentifier ¶
func (o *NSItemProvider) InitWithItemTypeIdentifier(item NSSecureCoding, typeIdentifier *NSString) *NSItemProvider
Creates an item provider with an object, according to the item provider type coercion policy.
func (*NSItemProvider) InitWithObject ¶
func (o *NSItemProvider) InitWithObject(object NSItemProviderWriting) *NSItemProvider
Creates a new item provider, employing a specified object’s type identifiers to specify the data representations eligible for the provider to load.
func (*NSItemProvider) LoadDataRepresentationForTypeIdentifierCompletionHandler ¶
func (o *NSItemProvider) LoadDataRepresentationForTypeIdentifierCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSData, unsafe.Pointer)) *NSProgress
Asynchronously copies the provided, typed data into a generic data object, returning a progress object.
func (*NSItemProvider) LoadFileRepresentationForTypeIdentifierCompletionHandler ¶
func (o *NSItemProvider) LoadFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSURL, unsafe.Pointer)) *NSProgress
Asynchronously writes a copy of the provided, typed data to a temporary file, returning a progress object.
func (*NSItemProvider) LoadInPlaceFileRepresentationForTypeIdentifierCompletionHandler ¶
func (o *NSItemProvider) LoadInPlaceFileRepresentationForTypeIdentifierCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSURL, bool, unsafe.Pointer)) *NSProgress
Asynchronously opens a file in place, if possible, returning a progress object.
func (*NSItemProvider) LoadItemForTypeIdentifierOptionsCompletionHandler ¶
func (o *NSItemProvider) LoadItemForTypeIdentifierOptionsCompletionHandler(typeIdentifier *NSString, options *NSDictionary[objc.ID, objc.ID], completionHandler func(objc.ID, unsafe.Pointer))
Loads the item’s data and coerces it to the specified type.
func (*NSItemProvider) LoadObjectOfClassCompletionHandler ¶
func (o *NSItemProvider) LoadObjectOfClassCompletionHandler(aClass unsafe.Pointer, completionHandler func(objc.ID, unsafe.Pointer)) *NSProgress
Asynchronously loads an object of a specified class to an item provider, returning a progress object.
func (*NSItemProvider) LoadPreviewImageWithOptionsCompletionHandler ¶
func (o *NSItemProvider) LoadPreviewImageWithOptionsCompletionHandler(options *NSDictionary[objc.ID, objc.ID], completionHandler func(objc.ID, unsafe.Pointer))
Loads the preview image for the item that the item provider represents.
func (*NSItemProvider) PreviewImageHandler ¶
func (o *NSItemProvider) PreviewImageHandler() objc.Block
func (*NSItemProvider) RegisterDataRepresentationForTypeIdentifierVisibilityLoadHandler ¶
func (o *NSItemProvider) RegisterDataRepresentationForTypeIdentifierVisibilityLoadHandler(typeIdentifier *NSString, visibility NSItemProviderRepresentationVisibility, loadHandler objc.Block)
Registers a data-backed representation for an item, specifiying item visibility and a load handler.
func (*NSItemProvider) RegisterFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler ¶
func (o *NSItemProvider) RegisterFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler(typeIdentifier *NSString, fileOptions NSItemProviderFileOptions, visibility NSItemProviderRepresentationVisibility, loadHandler objc.Block)
Registers a file-backed representation for an item, specifying file options, item visibility, and a load handler.
func (*NSItemProvider) RegisterItemForTypeIdentifierLoadHandler ¶
func (o *NSItemProvider) RegisterItemForTypeIdentifierLoadHandler(typeIdentifier *NSString, loadHandler func(objc.Block, objc.Class, *NSDictionary[objc.ID, objc.ID]))
Lazily registers an item, according to the item provider type coercion policy.
func (*NSItemProvider) RegisterObjectOfClassVisibilityLoadHandler ¶
func (o *NSItemProvider) RegisterObjectOfClassVisibilityLoadHandler(aClass unsafe.Pointer, visibility NSItemProviderRepresentationVisibility, loadHandler objc.Block)
Lazily adds representations of a specified object class to an item provider, based on the object’s implementation of the item provider writing protocol, and adhering to a visibility specification.
func (*NSItemProvider) RegisterObjectVisibility ¶
func (o *NSItemProvider) RegisterObjectVisibility(object NSItemProviderWriting, visibility NSItemProviderRepresentationVisibility)
Adds representations of a specified object to an item provider, based on the object’s implementation of the item provider writing protocol, and adhering to a visibility specification.
func (*NSItemProvider) RegisteredTypeIdentifiers ¶
func (o *NSItemProvider) RegisteredTypeIdentifiers() *NSArray[*NSString]
func (*NSItemProvider) RegisteredTypeIdentifiersWithFileOptions ¶
func (o *NSItemProvider) RegisteredTypeIdentifiersWithFileOptions(fileOptions NSItemProviderFileOptions) *NSArray[*NSString]
Returns an array with a subset of type identifiers for the item provider, according to the specified file options, in the same order they were registered.
func (*NSItemProvider) SetPreviewImageHandler ¶
func (o *NSItemProvider) SetPreviewImageHandler(previewImageHandler func(objc.Block, objc.Class, *NSDictionary[objc.ID, objc.ID]))
func (*NSItemProvider) SetSuggestedName ¶
func (o *NSItemProvider) SetSuggestedName(suggestedName *NSString)
func (*NSItemProvider) SuggestedName ¶
func (o *NSItemProvider) SuggestedName() *NSString
type NSItemProviderErrorCode ¶
type NSItemProviderErrorCode int64
The error codes that describe problems with consuming data from an item provider.
const ( NSItemProviderUnknownError NSItemProviderErrorCode = -1 NSItemProviderUnexpectedValueClassError NSItemProviderErrorCode = -1100 )
func (NSItemProviderErrorCode) String ¶
func (e NSItemProviderErrorCode) String() string
type NSItemProviderFileOptions ¶
type NSItemProviderFileOptions int64
Data-access specifications that declare how to handle items.
const ( // A data-access specification declaring that items should open in place, rather than being copied. NSItemProviderFileOptionOpenInPlace NSItemProviderFileOptions = 1 )
func (NSItemProviderFileOptions) String ¶
func (e NSItemProviderFileOptions) String() string
type NSItemProviderReading ¶
type NSItemProviderReading interface {
ObjectWithItemProviderDataTypeIdentifierError(data *NSData, typeIdentifier *NSString) (unsafe.Pointer, error)
ReadableTypeIdentifiersForItemProvider() *NSArray[*NSString]
}
NSItemProviderReading wraps the ObjC protocol NSItemProviderReading.
type NSItemProviderRepresentationVisibility ¶
type NSItemProviderRepresentationVisibility int64
Specifications that control which categories of processes can see an item.
const ( // A representation visibility specification conferring item visibility to all processes. NSItemProviderRepresentationVisibilityAll NSItemProviderRepresentationVisibility = 0 // A representation visibility specification confining item visibility to the app’s app group. NSItemProviderRepresentationVisibilityGroup NSItemProviderRepresentationVisibility = 2 // A representation visibility specification confining item visibility to the app that is the source of the item. NSItemProviderRepresentationVisibilityOwnProcess NSItemProviderRepresentationVisibility = 3 )
func (NSItemProviderRepresentationVisibility) String ¶
func (e NSItemProviderRepresentationVisibility) String() string
type NSItemProviderWriting ¶
type NSItemProviderWriting interface {
LoadDataWithTypeIdentifierForItemProviderCompletionHandler(typeIdentifier *NSString, completionHandler func(*NSData, unsafe.Pointer)) *NSProgress
WritableTypeIdentifiersForItemProvider() *NSArray[*NSString]
}
NSItemProviderWriting wraps the ObjC protocol NSItemProviderWriting.
type NSJSONReadingOptions ¶
type NSJSONReadingOptions uint64
Options used when creating Foundation objects from JSON data.
const ( NSJSONReadingMutableContainers NSJSONReadingOptions = 1 NSJSONReadingMutableLeaves NSJSONReadingOptions = 2 NSJSONReadingFragmentsAllowed NSJSONReadingOptions = 4 NSJSONReadingJSON5Allowed NSJSONReadingOptions = 8 NSJSONReadingTopLevelDictionaryAssumed NSJSONReadingOptions = 16 NSJSONReadingAllowFragments NSJSONReadingOptions = 4 )
func (NSJSONReadingOptions) String ¶
func (e NSJSONReadingOptions) String() string
type NSJSONSerialization ¶
type NSJSONSerialization struct {
NSObject
}
An object that converts between JSON and the equivalent Foundation objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nsjsonserialization
func NSJSONSerializationFromID ¶
func NSJSONSerializationFromID(id objc.ID) *NSJSONSerialization
type NSJSONWritingOptions ¶
type NSJSONWritingOptions uint64
Options for writing JSON data.
const ( NSJSONWritingPrettyPrinted NSJSONWritingOptions = 1 NSJSONWritingSortedKeys NSJSONWritingOptions = 2 NSJSONWritingFragmentsAllowed NSJSONWritingOptions = 4 NSJSONWritingWithoutEscapingSlashes NSJSONWritingOptions = 8 )
func (NSJSONWritingOptions) String ¶
func (e NSJSONWritingOptions) String() string
type NSKeyValueChange ¶
type NSKeyValueChange uint64
The kinds of changes that can be observed.
const ( // Indicates that the value of the observed key path was set to a new value. This change can occur when observing an attribute of an object, as well as properties that specify to-one and to-many relationships. NSKeyValueChangeSetting NSKeyValueChange = 1 // Indicates that an object has been inserted into the to-many relationship that is being observed. NSKeyValueChangeInsertion NSKeyValueChange = 2 // Indicates that an object has been removed from the to-many relationship that is being observed. NSKeyValueChangeRemoval NSKeyValueChange = 3 // Indicates that an object has been replaced in the to-many relationship that is being observed. NSKeyValueChangeReplacement NSKeyValueChange = 4 )
func (NSKeyValueChange) String ¶
func (e NSKeyValueChange) String() string
type NSKeyValueObservingOptions ¶
type NSKeyValueObservingOptions uint64
The values that can be returned in a change dictionary.
const ( // Indicates that the change dictionary should provide the new attribute value, if applicable. NSKeyValueObservingOptionNew NSKeyValueObservingOptions = 1 // Indicates that the change dictionary should contain the old attribute value, if applicable. NSKeyValueObservingOptionOld NSKeyValueObservingOptions = 2 // If specified, a notification should be sent to the observer immediately, before the observer registration method even returns. NSKeyValueObservingOptionInitial NSKeyValueObservingOptions = 4 // Whether separate notifications should be sent to the observer before and after each change, instead of a single notification after the change. NSKeyValueObservingOptionPrior NSKeyValueObservingOptions = 8 )
func (NSKeyValueObservingOptions) String ¶
func (e NSKeyValueObservingOptions) String() 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 {
}
A collection of key-value observations which may be registered with multiple observable objects
Apple documentation: https://developer.apple.com/documentation/foundation/nskeyvaluesharedobservers
func NSKeyValueSharedObserversFromID ¶
func NSKeyValueSharedObserversFromID(id objc.ID) *NSKeyValueSharedObservers
func (*NSKeyValueSharedObservers) AddSharedObserverForKeyOptionsContext ¶
func (o *NSKeyValueSharedObservers) AddSharedObserverForKeyOptionsContext(observer *NSObject, key *NSString, options NSKeyValueObservingOptions, context_ unsafe.Pointer)
Add a new observer to the collection.
func (*NSKeyValueSharedObservers) InitWithObservableClass ¶
func (o *NSKeyValueSharedObservers) InitWithObservableClass(observableClass objc.Class) objc.ID
A new collection of observables for an observable object of the given class
func (*NSKeyValueSharedObservers) Snapshot ¶
func (o *NSKeyValueSharedObservers) Snapshot() *NSKeyValueSharedObserversSnapshot
A momentary snapshot of all observers added to the collection thus far, that can be assigned to an observable using -[NSObject setSharedObservers:]
type NSKeyValueSharedObserversSnapshot ¶
type NSKeyValueSharedObserversSnapshot struct {
}
A collection of key-value observations which may be registered with multiple observable objects. Create using -[NSKeyValueSharedObservers snapshot]
Apple documentation: https://developer.apple.com/documentation/foundation/nskeyvaluesharedobserverssnapshot
func NSKeyValueSharedObserversSnapshotFromID ¶
func NSKeyValueSharedObserversSnapshotFromID(id objc.ID) *NSKeyValueSharedObserversSnapshot
type NSKeyedArchiver ¶
type NSKeyedArchiver struct {
NSCoder
}
An encoder that stores an object’s data to an archive referenced by keys.
Apple documentation: https://developer.apple.com/documentation/foundation/nskeyedarchiver
func NSKeyedArchiverFromID ¶
func NSKeyedArchiverFromID(id objc.ID) *NSKeyedArchiver
func (*NSKeyedArchiver) ClassNameForClass ¶
func (o *NSKeyedArchiver) ClassNameForClass(cls objc.Class) *NSString
Returns the class name with which this archiver encodes instances of a given class.
func (*NSKeyedArchiver) Delegate
deprecated
func (o *NSKeyedArchiver) Delegate() NSKeyedArchiverDelegate
Deprecated: Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead
func (*NSKeyedArchiver) EncodedData ¶
func (o *NSKeyedArchiver) EncodedData() *NSData
If encoding has not yet finished, then invoking this property will call finishEncoding and return the data. If you initialized the keyed archiver with a specific mutable data instance, then it will be returned from this property after finishEncoding is called.
func (*NSKeyedArchiver) FinishEncoding ¶
func (o *NSKeyedArchiver) FinishEncoding()
Instructs the receiver to construct the final data stream.
func (*NSKeyedArchiver) Init ¶
func (o *NSKeyedArchiver) Init() *NSKeyedArchiver
Initializes an archiver to encode data. Deprecated: Use -initRequiringSecureCoding: instead
func (*NSKeyedArchiver) InitForWritingWithMutableData ¶
func (o *NSKeyedArchiver) InitForWritingWithMutableData(data *NSMutableData) *NSKeyedArchiver
Initializes an archiver to encode data into a given a mutable-data object. Deprecated: Use -initRequiringSecureCoding: instead
func (*NSKeyedArchiver) InitRequiringSecureCoding ¶
func (o *NSKeyedArchiver) InitRequiringSecureCoding(requiresSecureCoding bool) *NSKeyedArchiver
Creates an archiver to encode data, and optionally disables secure coding.
func (*NSKeyedArchiver) OutputFormat ¶
func (o *NSKeyedArchiver) OutputFormat() NSPropertyListFormat
func (*NSKeyedArchiver) SetClassNameForClass ¶
func (o *NSKeyedArchiver) SetClassNameForClass(codedName *NSString, cls objc.Class)
Sets a mapping for this archiver to encode instances of a given class with the provided name, rather than their real name.
func (*NSKeyedArchiver) SetDelegate ¶
func (o *NSKeyedArchiver) SetDelegate(delegate NSKeyedArchiverDelegate)
func (*NSKeyedArchiver) SetOutputFormat ¶
func (o *NSKeyedArchiver) SetOutputFormat(outputFormat NSPropertyListFormat)
func (*NSKeyedArchiver) SetRequiresSecureCoding ¶
func (o *NSKeyedArchiver) SetRequiresSecureCoding(requiresSecureCoding bool)
type NSKeyedArchiverDelegate ¶
type NSKeyedArchiverDelegate interface {
}
NSKeyedArchiverDelegate wraps the ObjC protocol NSKeyedArchiverDelegate.
type NSKeyedUnarchiver ¶
type NSKeyedUnarchiver struct {
NSCoder
}
A decoder that restores data from an archive referenced by keys.
Apple documentation: https://developer.apple.com/documentation/foundation/nskeyedunarchiver
func NSKeyedUnarchiverFromID ¶
func NSKeyedUnarchiverFromID(id objc.ID) *NSKeyedUnarchiver
func (*NSKeyedUnarchiver) ClassForClassName ¶
func (o *NSKeyedUnarchiver) ClassForClassName(codedName *NSString) objc.Class
Returns the class from which this unarchiver instantiates an encoded object with a given class name.
func (*NSKeyedUnarchiver) Delegate
deprecated
func (o *NSKeyedUnarchiver) Delegate() NSKeyedUnarchiverDelegate
Deprecated: Use +unarchivedObjectOfClass:fromData:error: instead
func (*NSKeyedUnarchiver) FinishDecoding ¶
func (o *NSKeyedUnarchiver) FinishDecoding()
Tells the receiver that you are finished decoding objects.
func (*NSKeyedUnarchiver) Init ¶
func (o *NSKeyedUnarchiver) Init() *NSKeyedUnarchiver
Initializes an archiver to decode data. Deprecated: Use -initForReadingFromData:error: instead
func (*NSKeyedUnarchiver) InitForReadingFromDataError ¶
func (o *NSKeyedUnarchiver) InitForReadingFromDataError(data *NSData) (*NSKeyedUnarchiver, error)
Initializes an archiver to decode data from the specified location.
func (*NSKeyedUnarchiver) InitForReadingWithData ¶
func (o *NSKeyedUnarchiver) InitForReadingWithData(data *NSData) *NSKeyedUnarchiver
Initializes an archiver to decode data from the specified location. Deprecated: Use -initForReadingFromData:error: instead
func (*NSKeyedUnarchiver) SetClassForClassName ¶
func (o *NSKeyedUnarchiver) SetClassForClassName(cls objc.Class, codedName *NSString)
Sets a translation mapping on this unarchiver to decode objects encoded with a given class name as instances of a given class instead.
func (*NSKeyedUnarchiver) SetDecodingFailurePolicy ¶
func (o *NSKeyedUnarchiver) SetDecodingFailurePolicy(decodingFailurePolicy NSDecodingFailurePolicy)
func (*NSKeyedUnarchiver) SetDelegate ¶
func (o *NSKeyedUnarchiver) SetDelegate(delegate NSKeyedUnarchiverDelegate)
func (*NSKeyedUnarchiver) SetRequiresSecureCoding ¶
func (o *NSKeyedUnarchiver) SetRequiresSecureCoding(requiresSecureCoding bool)
type NSKeyedUnarchiverDelegate ¶
type NSKeyedUnarchiverDelegate interface {
}
NSKeyedUnarchiverDelegate wraps the ObjC protocol NSKeyedUnarchiverDelegate.
type NSLengthFormatter ¶
type NSLengthFormatter struct {
NSFormatter
}
A formatter that provides localized descriptions of linear distances, such as length and height measurements.
Apple documentation: https://developer.apple.com/documentation/foundation/nslengthformatter
func NSLengthFormatterFromID ¶
func NSLengthFormatterFromID(id objc.ID) *NSLengthFormatter
func (*NSLengthFormatter) IsForPersonHeightUse ¶
func (o *NSLengthFormatter) IsForPersonHeightUse() bool
func (*NSLengthFormatter) NumberFormatter ¶
func (o *NSLengthFormatter) NumberFormatter() *NSNumberFormatter
func (*NSLengthFormatter) SetForPersonHeightUse ¶
func (o *NSLengthFormatter) SetForPersonHeightUse(forPersonHeightUse bool)
func (*NSLengthFormatter) SetNumberFormatter ¶
func (o *NSLengthFormatter) SetNumberFormatter(numberFormatter *NSNumberFormatter)
func (*NSLengthFormatter) SetUnitStyle ¶
func (o *NSLengthFormatter) SetUnitStyle(unitStyle NSFormattingUnitStyle)
func (*NSLengthFormatter) StringFromMeters ¶
func (o *NSLengthFormatter) StringFromMeters(numberInMeters float64) *NSString
func (*NSLengthFormatter) StringFromValueUnit ¶
func (o *NSLengthFormatter) StringFromValueUnit(value float64, unit NSLengthFormatterUnit) *NSString
func (*NSLengthFormatter) UnitStringFromMetersUsedUnit ¶
func (o *NSLengthFormatter) UnitStringFromMetersUsedUnit(numberInMeters float64, unitp *NSLengthFormatterUnit) *NSString
func (*NSLengthFormatter) UnitStringFromValueUnit ¶
func (o *NSLengthFormatter) UnitStringFromValueUnit(value float64, unit NSLengthFormatterUnit) *NSString
func (*NSLengthFormatter) UnitStyle ¶
func (o *NSLengthFormatter) UnitStyle() NSFormattingUnitStyle
type NSLengthFormatterUnit ¶
type NSLengthFormatterUnit int64
The units supported by the NSLengthFormatter class.
const ( NSLengthFormatterUnitMillimeter NSLengthFormatterUnit = 8 NSLengthFormatterUnitCentimeter NSLengthFormatterUnit = 9 NSLengthFormatterUnitMeter NSLengthFormatterUnit = 11 NSLengthFormatterUnitKilometer NSLengthFormatterUnit = 14 NSLengthFormatterUnitInch NSLengthFormatterUnit = 1281 NSLengthFormatterUnitFoot NSLengthFormatterUnit = 1282 NSLengthFormatterUnitYard NSLengthFormatterUnit = 1283 NSLengthFormatterUnitMile NSLengthFormatterUnit = 1284 )
func (NSLengthFormatterUnit) String ¶
func (e NSLengthFormatterUnit) String() string
type NSLinguisticTagger ¶
type NSLinguisticTagger struct {
NSObject
}
Analyze natural language text to tag part of speech and lexical class, identify names, perform lemmatization, and determine the language and script.
Apple documentation: https://developer.apple.com/documentation/foundation/nslinguistictagger Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTaggerFromID ¶
func NSLinguisticTaggerFromID(id objc.ID) *NSLinguisticTagger
func (*NSLinguisticTagger) DominantLanguage
deprecated
func (o *NSLinguisticTagger) DominantLanguage() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) EnumerateTagsInRangeSchemeOptionsUsing ¶
func (o *NSLinguisticTagger) EnumerateTagsInRangeSchemeOptionsUsing(range_ NSRange, tagScheme *NSString, opts NSLinguisticTaggerOptions, block objc.Block)
Enumerates over a given range of the string and calls the specified block for each tag. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) EnumerateTagsInRangeUnitSchemeOptionsUsing ¶
func (o *NSLinguisticTagger) EnumerateTagsInRangeUnitSchemeOptionsUsing(range_ NSRange, unit NSLinguisticTaggerUnit, scheme *NSString, options NSLinguisticTaggerOptions, block objc.Block)
Enumerates over a given range of the string for a particular unit and calls the specified block for each tag. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) InitWithTagSchemesOptions ¶
func (o *NSLinguisticTagger) InitWithTagSchemesOptions(tagSchemes *NSArray[*NSString], opts uint) *NSLinguisticTagger
Creates a linguistic tagger instance using the specified tag schemes and options. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) OrthographyAtIndexEffectiveRange ¶
func (o *NSLinguisticTagger) OrthographyAtIndexEffectiveRange(charIndex uint, effectiveRange *NSRange) *NSOrthography
Returns the orthography at the index and also returns the effective range. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) PossibleTagsAtIndexSchemeTokenRangeSentenceRangeScores ¶
func (o *NSLinguisticTagger) PossibleTagsAtIndexSchemeTokenRangeSentenceRangeScores(charIndex uint, tagScheme *NSString, tokenRange *NSRange, sentenceRange *NSRange, scores *NSArray[*NSValue]) *NSArray[*NSString]
Returns an array of possible tags for the given scheme at the specified range, supplying matching scores. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) SentenceRangeForRange ¶
func (o *NSLinguisticTagger) SentenceRangeForRange(range_ NSRange) NSRange
Returns the range of a sentence containing the specified range. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) SetOrthographyRange ¶
func (o *NSLinguisticTagger) SetOrthographyRange(orthography *NSOrthography, range_ NSRange)
Sets the orthography for the specified range. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) SetString
deprecated
func (o *NSLinguisticTagger) SetString(string_ *NSString)
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) String
deprecated
func (o *NSLinguisticTagger) String() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) StringEditedInRangeChangeInLength ¶
func (o *NSLinguisticTagger) StringEditedInRangeChangeInLength(newRange NSRange, delta int)
Notifies the linguistic tagger that the string (if mutable) has changed as specified by the parameters. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) TagAtIndexSchemeTokenRangeSentenceRange ¶
func (o *NSLinguisticTagger) TagAtIndexSchemeTokenRangeSentenceRange(charIndex uint, scheme *NSString, tokenRange *NSRange, sentenceRange *NSRange) *NSString
Returns a tag for a single scheme at the specified character position. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) TagAtIndexUnitSchemeTokenRange ¶
func (o *NSLinguisticTagger) TagAtIndexUnitSchemeTokenRange(charIndex uint, unit NSLinguisticTaggerUnit, scheme *NSString, tokenRange *NSRange) *NSString
Returns a tag for a single scheme, for a given linguistic unit, at the specified character position. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) TagSchemes
deprecated
func (o *NSLinguisticTagger) TagSchemes() *NSArray[*NSString]
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) TagsInRangeSchemeOptionsTokenRanges ¶
func (o *NSLinguisticTagger) TagsInRangeSchemeOptionsTokenRanges(range_ NSRange, tagScheme *NSString, opts NSLinguisticTaggerOptions, tokenRanges *NSArray[*NSValue]) *NSArray[*NSString]
Returns an array of linguistic tags and token ranges for a given string range. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) TagsInRangeUnitSchemeOptionsTokenRanges ¶
func (o *NSLinguisticTagger) TagsInRangeUnitSchemeOptionsTokenRanges(range_ NSRange, unit NSLinguisticTaggerUnit, scheme *NSString, options NSLinguisticTaggerOptions, tokenRanges *NSArray[*NSValue]) *NSArray[*NSString]
Returns an array of linguistic tags and token ranges for a given string range and linguistic unit. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSLinguisticTagger) TokenRangeAtIndexUnit ¶
func (o *NSLinguisticTagger) TokenRangeAtIndexUnit(charIndex uint, unit NSLinguisticTaggerUnit) NSRange
Returns the range of the linguistic unit containing the specified character index. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
type NSLinguisticTaggerOptions ¶
type NSLinguisticTaggerOptions uint64
Constants for linguistic tagger enumeration specifying which tokens to omit and whether to join names.
const ( NSLinguisticTaggerOmitWords NSLinguisticTaggerOptions = 1 NSLinguisticTaggerOmitPunctuation NSLinguisticTaggerOptions = 2 NSLinguisticTaggerOmitWhitespace NSLinguisticTaggerOptions = 4 NSLinguisticTaggerOmitOther NSLinguisticTaggerOptions = 8 NSLinguisticTaggerJoinNames NSLinguisticTaggerOptions = 16 )
func (NSLinguisticTaggerOptions) String ¶
func (e NSLinguisticTaggerOptions) String() string
type NSLinguisticTaggerUnit ¶
type NSLinguisticTaggerUnit int64
Constants representing linguistic units.
const ( // An individual word. NSLinguisticTaggerUnitWord NSLinguisticTaggerUnit = 0 // An individual sentence. NSLinguisticTaggerUnitSentence NSLinguisticTaggerUnit = 1 // An individual paragraph. NSLinguisticTaggerUnitParagraph NSLinguisticTaggerUnit = 2 // The document in its entirety. NSLinguisticTaggerUnitDocument NSLinguisticTaggerUnit = 3 )
func (NSLinguisticTaggerUnit) String ¶
func (e NSLinguisticTaggerUnit) String() string
type NSListFormatter ¶
type NSListFormatter struct {
NSFormatter
}
An object that provides locale-correct formatting of a list of items using the appropriate separator and conjunction.
Apple documentation: https://developer.apple.com/documentation/foundation/nslistformatter
func NSListFormatterFromID ¶
func NSListFormatterFromID(id objc.ID) *NSListFormatter
func (*NSListFormatter) ItemFormatter ¶
func (o *NSListFormatter) ItemFormatter() *NSFormatter
func (*NSListFormatter) Locale ¶
func (o *NSListFormatter) Locale() *NSLocale
func (*NSListFormatter) SetItemFormatter ¶
func (o *NSListFormatter) SetItemFormatter(itemFormatter *NSFormatter)
func (*NSListFormatter) SetLocale ¶
func (o *NSListFormatter) SetLocale(locale *NSLocale)
func (*NSListFormatter) StringFromItems ¶
func (o *NSListFormatter) StringFromItems(items *NSArray[objc.ID]) *NSString
type NSLocale ¶
type NSLocale struct {
NSObject
}
Information about linguistic, cultural, and technological conventions for use in formatting data for presentation.
Apple documentation: https://developer.apple.com/documentation/foundation/nslocale
func NSLocaleAutoupdatingCurrentLocale ¶
func NSLocaleAutoupdatingCurrentLocale() *NSLocale
func NSLocaleCurrentLocale ¶
func NSLocaleCurrentLocale() *NSLocale
func NSLocaleFromID ¶
func NSLocaleLocaleWithLocaleIdentifier ¶
Returns a locale initialized using the given locale identifier.
func NSLocaleSystemLocale ¶
func NSLocaleSystemLocale() *NSLocale
func (*NSLocale) AlternateQuotationBeginDelimiter ¶
func (*NSLocale) AlternateQuotationEndDelimiter ¶
func (*NSLocale) CalendarIdentifier ¶
func (*NSLocale) CollationIdentifier ¶
func (*NSLocale) CollatorIdentifier ¶
func (*NSLocale) CountryCode
deprecated
func (*NSLocale) CurrencyCode ¶
func (*NSLocale) CurrencySymbol ¶
func (*NSLocale) DecimalSeparator ¶
func (*NSLocale) DisplayNameForKeyValue ¶
Returns the display name for the given locale component value.
func (*NSLocale) ExemplarCharacterSet ¶
func (o *NSLocale) ExemplarCharacterSet() *NSCharacterSet
func (*NSLocale) GroupingSeparator ¶
func (*NSLocale) InitWithCoder ¶
Returns a locale initialized from data in the given unarchiver.
func (*NSLocale) InitWithLocaleIdentifier ¶
Initializes a locale using a given locale identifier.
func (*NSLocale) LanguageCode ¶
func (*NSLocale) LanguageIdentifier ¶
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 (*NSLocale) LocalizedStringForCalendarIdentifier ¶
Returns the localized string for the specified calendar identifier.
func (*NSLocale) LocalizedStringForCollationIdentifier ¶
Returns the localized string for the specified collation identifier.
func (*NSLocale) LocalizedStringForCollatorIdentifier ¶
Returns the localized string for the specified collator identifier.
func (*NSLocale) LocalizedStringForCountryCode ¶
Returns the localized string for a country or region code.
func (*NSLocale) LocalizedStringForCurrencyCode ¶
Returns the localized string for the specified currency code.
func (*NSLocale) LocalizedStringForLanguageCode ¶
Returns the localized string for the specified language code.
func (*NSLocale) LocalizedStringForLocaleIdentifier ¶
Returns the localized string for the specified locale identifier.
func (*NSLocale) LocalizedStringForScriptCode ¶
Returns the localized string for the specified script code.
func (*NSLocale) LocalizedStringForVariantCode ¶
Returns the localized string for the specified variant code.
func (*NSLocale) ObjectForKey ¶
Returns the value of the component corresponding to the specified key.
func (*NSLocale) QuotationBeginDelimiter ¶
func (*NSLocale) QuotationEndDelimiter ¶
func (*NSLocale) RegionCode ¶
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 (*NSLocale) UsesMetricSystem ¶
func (*NSLocale) VariantCode ¶
type NSLocaleLanguageDirection ¶
type NSLocaleLanguageDirection uint64
The directions that a language may take across a page of text.
const ( NSLocaleLanguageDirectionUnknown NSLocaleLanguageDirection = 0 NSLocaleLanguageDirectionLeftToRight NSLocaleLanguageDirection = 1 NSLocaleLanguageDirectionRightToLeft NSLocaleLanguageDirection = 2 NSLocaleLanguageDirectionTopToBottom NSLocaleLanguageDirection = 3 NSLocaleLanguageDirectionBottomToTop NSLocaleLanguageDirection = 4 )
func NSLocaleCharacterDirectionForLanguage ¶
func NSLocaleCharacterDirectionForLanguage(isoLangCode *NSString) NSLocaleLanguageDirection
Returns the direction of the sequence of characters in a line for the specified ISO language code.
func NSLocaleLineDirectionForLanguage ¶
func NSLocaleLineDirectionForLanguage(isoLangCode *NSString) NSLocaleLanguageDirection
Returns the direction of the sequence of lines for the specified ISO language code.
func (NSLocaleLanguageDirection) String ¶
func (e NSLocaleLanguageDirection) String() string
type NSLocalizedNumberFormatRule ¶
type NSLocalizedNumberFormatRule struct {
NSObject
}
Apple documentation: https://developer.apple.com/documentation/foundation/nslocalizednumberformatrule
func NSLocalizedNumberFormatRuleAutomatic ¶
func NSLocalizedNumberFormatRuleAutomatic() *NSLocalizedNumberFormatRule
func NSLocalizedNumberFormatRuleFromID ¶
func NSLocalizedNumberFormatRuleFromID(id objc.ID) *NSLocalizedNumberFormatRule
type NSLock ¶
type NSLock struct {
NSObject
}
An object that coordinates the operation of multiple threads of execution within the same application.
Apple documentation: https://developer.apple.com/documentation/foundation/nslock
func NSLockFromID ¶
func (*NSLock) LockBeforeDate ¶
Attempts to acquire a lock before a given time and returns a Boolean value indicating whether the attempt was successful.
type NSLocking ¶
type NSLocking interface {
Lock()
Unlock()
}
NSLocking wraps the ObjC protocol NSLocking.
type NSLogicalTest ¶
type NSLogicalTest struct {
NSScriptWhoseTest
}
The logical combination of one or more specifier tests.
Apple documentation: https://developer.apple.com/documentation/foundation/nslogicaltest
func NSLogicalTestFromID ¶
func NSLogicalTestFromID(id objc.ID) *NSLogicalTest
func (*NSLogicalTest) InitAndTestWithTests ¶
func (o *NSLogicalTest) InitAndTestWithTests(subTests *NSArray[*NSSpecifierTest]) *NSLogicalTest
Returns an NSLogicalTest object initialized to perform an AND operation with the NSSpecifierTest objects in a given array.
func (*NSLogicalTest) InitNotTestWithTest ¶
func (o *NSLogicalTest) InitNotTestWithTest(subTest *NSScriptWhoseTest) *NSLogicalTest
Returns an NSLogicalTest object initialized to perform a NOT operation on the given NSScriptWhoseTest object.
func (*NSLogicalTest) InitOrTestWithTests ¶
func (o *NSLogicalTest) InitOrTestWithTests(subTests *NSArray[*NSSpecifierTest]) *NSLogicalTest
Returns an NSLogicalTest object initialized to perform an OR operation with the NSSpecifierTest objects in a given array.
type NSMachBootstrapServer ¶
type NSMachBootstrapServer struct {
NSPortNameServer
}
A port name server that takes and returns Mach port objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmachbootstrapserver Deprecated: Use NSXPCConnection instead
func NSMachBootstrapServerFromID ¶
func NSMachBootstrapServerFromID(id objc.ID) *NSMachBootstrapServer
func (*NSMachBootstrapServer) ServicePortWithName ¶
func (o *NSMachBootstrapServer) ServicePortWithName(name *NSString) *NSPort
Looks up and returns the port for the vended service that is registered under the specified name.
type NSMachPort ¶
type NSMachPort struct {
NSPort
}
A port that can be used as an endpoint for distributed object connections (or raw messaging).
Apple documentation: https://developer.apple.com/documentation/foundation/nsmachport
func NSMachPortFromID ¶
func NSMachPortFromID(id objc.ID) *NSMachPort
func (*NSMachPort) InitWithMachPort ¶
func (o *NSMachPort) InitWithMachPort(machPort uint32) *NSMachPort
Initializes a newly allocated NSMachPort object with a given Mach port.
func (*NSMachPort) InitWithMachPortOptions ¶
func (o *NSMachPort) InitWithMachPortOptions(machPort uint32, f NSMachPortOptions) *NSMachPort
Initializes a newly allocated NSMachPort object with a given Mach port and the specified options.
func (*NSMachPort) MachPort ¶
func (o *NSMachPort) MachPort() uint32
type NSMachPortDelegate ¶
type NSMachPortDelegate interface {
NSPortDelegate
}
NSMachPortDelegate wraps the ObjC protocol NSMachPortDelegate.
type NSMachPortOptions ¶
type NSMachPortOptions uint64
Used to remove access rights to a mach port when the NSMachPort object is invalidated or destroyed.
const ( // Do not remove any send or receive rights. NSMachPortDeallocateNone NSMachPortOptions = 0 NSMachPortDeallocateSendRight NSMachPortOptions = 1 NSMachPortDeallocateReceiveRight NSMachPortOptions = 2 )
func (NSMachPortOptions) String ¶
func (e NSMachPortOptions) String() string
type NSMapEnumerator ¶
type NSMapEnumerator struct {
}
Allows successive elements of a map table to be returned each time this structure is passed to NSNextMapEnumeratorPair.
func NSEnumerateMapTable ¶
func NSEnumerateMapTable(table *NSMapTable[objc.ID, objc.ID]) NSMapEnumerator
type NSMapTable ¶
A collection similar to a dictionary, but with a broader range of available memory semantics.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmaptable
func NSMapTableFromID ¶
func NSMapTableMapTableWithKeyOptionsValueOptions ¶
func NSMapTableMapTableWithKeyOptionsValueOptions(keyOptions NSPointerFunctionsOptions, valueOptions NSPointerFunctionsOptions) *NSMapTable[objc.ID, objc.ID]
Returns a new map table, initialized with the given options
func NSMapTableStrongToStrongObjectsMapTable ¶
func NSMapTableStrongToStrongObjectsMapTable() *NSMapTable[objc.ID, objc.ID]
Returns a new map table object which has strong references to the keys and values.
func NSMapTableStrongToWeakObjectsMapTable ¶
func NSMapTableStrongToWeakObjectsMapTable() *NSMapTable[objc.ID, objc.ID]
Returns a new map table object which has strong references to the keys and weak references to the values.
func NSMapTableWeakToStrongObjectsMapTable ¶
func NSMapTableWeakToStrongObjectsMapTable() *NSMapTable[objc.ID, objc.ID]
Returns a new map table object which has weak references to the keys and strong references to the values.
func NSMapTableWeakToWeakObjectsMapTable ¶
func NSMapTableWeakToWeakObjectsMapTable() *NSMapTable[objc.ID, objc.ID]
Returns a new map table object which has weak references to the keys and values.
func (*NSMapTable[KeyType, ObjectType]) Count ¶
func (o *NSMapTable[KeyType, ObjectType]) Count() uint
func (*NSMapTable[KeyType, ObjectType]) DictionaryRepresentation ¶
func (o *NSMapTable[KeyType, ObjectType]) DictionaryRepresentation() *NSDictionary[KeyType, ObjectType]
Returns a dictionary representation of the map table.
func (*NSMapTable[KeyType, ObjectType]) InitWithKeyOptionsValueOptionsCapacity ¶
func (o *NSMapTable[KeyType, ObjectType]) InitWithKeyOptionsValueOptionsCapacity(keyOptions NSPointerFunctionsOptions, valueOptions NSPointerFunctionsOptions, initialCapacity uint) *NSMapTable[KeyType, ObjectType]
Returns a map table, initialized with the given options.
func (*NSMapTable[KeyType, ObjectType]) InitWithKeyPointerFunctionsValuePointerFunctionsCapacity ¶
func (o *NSMapTable[KeyType, ObjectType]) InitWithKeyPointerFunctionsValuePointerFunctionsCapacity(keyFunctions *NSPointerFunctions, valueFunctions *NSPointerFunctions, initialCapacity uint) *NSMapTable[KeyType, ObjectType]
Returns a map table, initialized with the given functions.
func (*NSMapTable[KeyType, ObjectType]) KeyEnumerator ¶
func (o *NSMapTable[KeyType, ObjectType]) KeyEnumerator() *NSEnumerator[KeyType]
Returns an enumerator object that lets you access each key in the map table.
func (*NSMapTable[KeyType, ObjectType]) KeyPointerFunctions ¶
func (o *NSMapTable[KeyType, ObjectType]) KeyPointerFunctions() *NSPointerFunctions
func (*NSMapTable[KeyType, ObjectType]) ObjectEnumerator ¶
func (o *NSMapTable[KeyType, ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]
Returns an enumerator object that lets you access each value in the map table.
func (*NSMapTable[KeyType, ObjectType]) ObjectForKey ¶
func (o *NSMapTable[KeyType, ObjectType]) ObjectForKey(aKey KeyType) ObjectType
Returns a the value associated with a given key.
func (*NSMapTable[KeyType, ObjectType]) RemoveAllObjects ¶
func (o *NSMapTable[KeyType, ObjectType]) RemoveAllObjects()
Empties the map table of its entries.
func (*NSMapTable[KeyType, ObjectType]) RemoveObjectForKey ¶
func (o *NSMapTable[KeyType, ObjectType]) RemoveObjectForKey(aKey KeyType)
Removes a given key and its associated value from the map table.
func (*NSMapTable[KeyType, ObjectType]) SetObjectForKey ¶
func (o *NSMapTable[KeyType, ObjectType]) SetObjectForKey(anObject ObjectType, aKey KeyType)
Adds a given key-value pair to the map table.
func (*NSMapTable[KeyType, ObjectType]) ValuePointerFunctions ¶
func (o *NSMapTable[KeyType, ObjectType]) ValuePointerFunctions() *NSPointerFunctions
type NSMapTableKeyCallBacks ¶
type NSMapTableKeyCallBacks struct {
Hash unsafe.Pointer
IsEqual unsafe.Pointer
Retain unsafe.Pointer
Release unsafe.Pointer
Describe unsafe.Pointer
NotAKeyMarker unsafe.Pointer
}
The function pointers used to configure behavior of NSMapTable with respect to key elements within a map table.
func NSIntMapKeyCallBacks
deprecated
func NSIntMapKeyCallBacks() NSMapTableKeyCallBacks
Deprecated: Not supported
func NSIntegerMapKeyCallBacks ¶
func NSIntegerMapKeyCallBacks() NSMapTableKeyCallBacks
func NSNonOwnedPointerMapKeyCallBacks ¶
func NSNonOwnedPointerMapKeyCallBacks() NSMapTableKeyCallBacks
func NSNonOwnedPointerOrNullMapKeyCallBacks ¶
func NSNonOwnedPointerOrNullMapKeyCallBacks() NSMapTableKeyCallBacks
func NSNonRetainedObjectMapKeyCallBacks ¶
func NSNonRetainedObjectMapKeyCallBacks() NSMapTableKeyCallBacks
func NSObjectMapKeyCallBacks ¶
func NSObjectMapKeyCallBacks() NSMapTableKeyCallBacks
func NSOwnedPointerMapKeyCallBacks ¶
func NSOwnedPointerMapKeyCallBacks() NSMapTableKeyCallBacks
type NSMapTableValueCallBacks ¶
type NSMapTableValueCallBacks struct {
Retain unsafe.Pointer
Release unsafe.Pointer
Describe unsafe.Pointer
}
The function pointers used to configure behavior of NSMapTable with respect to value elements within a map table.
func NSIntMapValueCallBacks
deprecated
func NSIntMapValueCallBacks() NSMapTableValueCallBacks
Deprecated: Not supported
func NSIntegerMapValueCallBacks ¶
func NSIntegerMapValueCallBacks() NSMapTableValueCallBacks
func NSNonOwnedPointerMapValueCallBacks ¶
func NSNonOwnedPointerMapValueCallBacks() NSMapTableValueCallBacks
func NSNonRetainedObjectMapValueCallBacks ¶
func NSNonRetainedObjectMapValueCallBacks() NSMapTableValueCallBacks
func NSObjectMapValueCallBacks ¶
func NSObjectMapValueCallBacks() NSMapTableValueCallBacks
func NSOwnedPointerMapValueCallBacks ¶
func NSOwnedPointerMapValueCallBacks() NSMapTableValueCallBacks
type NSMassFormatter ¶
type NSMassFormatter struct {
NSFormatter
}
A formatter that provides localized descriptions of mass and weight values.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmassformatter
func NSMassFormatterFromID ¶
func NSMassFormatterFromID(id objc.ID) *NSMassFormatter
func (*NSMassFormatter) IsForPersonMassUse ¶
func (o *NSMassFormatter) IsForPersonMassUse() bool
func (*NSMassFormatter) NumberFormatter ¶
func (o *NSMassFormatter) NumberFormatter() *NSNumberFormatter
func (*NSMassFormatter) SetForPersonMassUse ¶
func (o *NSMassFormatter) SetForPersonMassUse(forPersonMassUse bool)
func (*NSMassFormatter) SetNumberFormatter ¶
func (o *NSMassFormatter) SetNumberFormatter(numberFormatter *NSNumberFormatter)
func (*NSMassFormatter) SetUnitStyle ¶
func (o *NSMassFormatter) SetUnitStyle(unitStyle NSFormattingUnitStyle)
func (*NSMassFormatter) StringFromKilograms ¶
func (o *NSMassFormatter) StringFromKilograms(numberInKilograms float64) *NSString
func (*NSMassFormatter) StringFromValueUnit ¶
func (o *NSMassFormatter) StringFromValueUnit(value float64, unit NSMassFormatterUnit) *NSString
func (*NSMassFormatter) UnitStringFromKilogramsUsedUnit ¶
func (o *NSMassFormatter) UnitStringFromKilogramsUsedUnit(numberInKilograms float64, unitp *NSMassFormatterUnit) *NSString
func (*NSMassFormatter) UnitStringFromValueUnit ¶
func (o *NSMassFormatter) UnitStringFromValueUnit(value float64, unit NSMassFormatterUnit) *NSString
func (*NSMassFormatter) UnitStyle ¶
func (o *NSMassFormatter) UnitStyle() NSFormattingUnitStyle
type NSMassFormatterUnit ¶
type NSMassFormatterUnit int64
The units supported by the NSMassFormatter class.
const ( NSMassFormatterUnitGram NSMassFormatterUnit = 11 NSMassFormatterUnitKilogram NSMassFormatterUnit = 14 NSMassFormatterUnitOunce NSMassFormatterUnit = 1537 NSMassFormatterUnitPound NSMassFormatterUnit = 1538 NSMassFormatterUnitStone NSMassFormatterUnit = 1539 )
func (NSMassFormatterUnit) String ¶
func (e NSMassFormatterUnit) String() string
type NSMatchingFlags ¶
type NSMatchingFlags uint64
const ( NSMatchingProgress NSMatchingFlags = 1 NSMatchingCompleted NSMatchingFlags = 2 NSMatchingHitEnd NSMatchingFlags = 4 NSMatchingRequiredEnd NSMatchingFlags = 8 NSMatchingInternalError NSMatchingFlags = 16 )
func (NSMatchingFlags) String ¶
func (e NSMatchingFlags) String() string
type NSMatchingOptions ¶
type NSMatchingOptions uint64
The matching options constants specify the reporting, completion and matching rules to the expression matching methods. These constants are used by all methods that search for, or replace values, using a regular expression.
const ( NSMatchingReportProgress NSMatchingOptions = 1 NSMatchingReportCompletion NSMatchingOptions = 2 NSMatchingAnchored NSMatchingOptions = 4 NSMatchingWithTransparentBounds NSMatchingOptions = 8 NSMatchingWithoutAnchoringBounds NSMatchingOptions = 16 )
func (NSMatchingOptions) String ¶
func (e NSMatchingOptions) String() string
type NSMeasurement ¶
A numeric quantity labeled with a unit of measure, with support for unit conversion and unit-aware calculations.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmeasurement
func NSMeasurementFromID ¶
func NSMeasurementFromID[UnitType purego.AnyObject](id objc.ID) *NSMeasurement[UnitType]
func (*NSMeasurement[UnitType]) CanBeConvertedToUnit ¶
func (o *NSMeasurement[UnitType]) CanBeConvertedToUnit(unit *NSUnit) bool
Indicates whether the measurement can be converted to the given unit.
func (*NSMeasurement[UnitType]) DoubleValue ¶
func (o *NSMeasurement[UnitType]) DoubleValue() float64
func (*NSMeasurement[UnitType]) InitWithDoubleValueUnit ¶
func (o *NSMeasurement[UnitType]) InitWithDoubleValueUnit(doubleValue float64, unit UnitType) *NSMeasurement[UnitType]
Initializes a new measurement with a specified double-precision floating-point value and unit.
func (*NSMeasurement[UnitType]) MeasurementByAddingMeasurement ¶
func (o *NSMeasurement[UnitType]) MeasurementByAddingMeasurement(measurement *NSMeasurement[UnitType]) *NSMeasurement[UnitType]
Returns a new measurement by adding the receiver to the specified measurement.
func (*NSMeasurement[UnitType]) MeasurementByConvertingToUnit ¶
func (o *NSMeasurement[UnitType]) MeasurementByConvertingToUnit(unit *NSUnit) *NSMeasurement[objc.ID]
Returns a measurement created by converting the receiver to the specified unit.
func (*NSMeasurement[UnitType]) MeasurementBySubtractingMeasurement ¶
func (o *NSMeasurement[UnitType]) MeasurementBySubtractingMeasurement(measurement *NSMeasurement[UnitType]) *NSMeasurement[UnitType]
Returns a new measurement by subtracting the specified measurement from the receiver.
func (*NSMeasurement[UnitType]) Unit ¶
func (o *NSMeasurement[UnitType]) Unit() UnitType
type NSMeasurementFormatter ¶
type NSMeasurementFormatter struct {
NSFormatter
}
A formatter that provides localized representations of units and measurements.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmeasurementformatter
func NSMeasurementFormatterFromID ¶
func NSMeasurementFormatterFromID(id objc.ID) *NSMeasurementFormatter
func (*NSMeasurementFormatter) Locale ¶
func (o *NSMeasurementFormatter) Locale() *NSLocale
func (*NSMeasurementFormatter) NumberFormatter ¶
func (o *NSMeasurementFormatter) NumberFormatter() *NSNumberFormatter
func (*NSMeasurementFormatter) SetLocale ¶
func (o *NSMeasurementFormatter) SetLocale(locale *NSLocale)
func (*NSMeasurementFormatter) SetNumberFormatter ¶
func (o *NSMeasurementFormatter) SetNumberFormatter(numberFormatter *NSNumberFormatter)
func (*NSMeasurementFormatter) SetUnitOptions ¶
func (o *NSMeasurementFormatter) SetUnitOptions(unitOptions NSMeasurementFormatterUnitOptions)
func (*NSMeasurementFormatter) SetUnitStyle ¶
func (o *NSMeasurementFormatter) SetUnitStyle(unitStyle NSFormattingUnitStyle)
func (*NSMeasurementFormatter) StringFromMeasurement ¶
func (o *NSMeasurementFormatter) StringFromMeasurement(measurement *NSMeasurement[objc.ID]) *NSString
func (*NSMeasurementFormatter) StringFromUnit ¶
func (o *NSMeasurementFormatter) StringFromUnit(unit *NSUnit) *NSString
func (*NSMeasurementFormatter) UnitOptions ¶
func (o *NSMeasurementFormatter) UnitOptions() NSMeasurementFormatterUnitOptions
func (*NSMeasurementFormatter) UnitStyle ¶
func (o *NSMeasurementFormatter) UnitStyle() NSFormattingUnitStyle
type NSMeasurementFormatterUnitOptions ¶
type NSMeasurementFormatterUnitOptions uint64
Measurement formatter options.
const ( NSMeasurementFormatterUnitOptionsProvidedUnit NSMeasurementFormatterUnitOptions = 1 NSMeasurementFormatterUnitOptionsNaturalScale NSMeasurementFormatterUnitOptions = 2 NSMeasurementFormatterUnitOptionsTemperatureWithoutUnit NSMeasurementFormatterUnitOptions = 4 )
func (NSMeasurementFormatterUnitOptions) String ¶
func (e NSMeasurementFormatterUnitOptions) String() string
type NSMessagePort ¶
type NSMessagePort struct {
NSPort
}
A port that can be used as an endpoint for distributed object connections (or raw messaging).
Apple documentation: https://developer.apple.com/documentation/foundation/nsmessageport
func NSMessagePortFromID ¶
func NSMessagePortFromID(id objc.ID) *NSMessagePort
type NSMessagePortNameServer ¶
type NSMessagePortNameServer struct {
NSPortNameServer
}
A server takes and returns message ports.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmessageportnameserver Deprecated: Use NSXPCConnection instead
func NSMessagePortNameServerFromID ¶
func NSMessagePortNameServerFromID(id objc.ID) *NSMessagePortNameServer
type NSMetadataItem ¶
type NSMetadataItem struct {
NSObject
}
The metadata associated with a file.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmetadataitem
func NSMetadataItemFromID ¶
func NSMetadataItemFromID(id objc.ID) *NSMetadataItem
func (*NSMetadataItem) Attributes ¶
func (o *NSMetadataItem) Attributes() *NSArray[*NSString]
func (*NSMetadataItem) InitWithURL ¶
func (o *NSMetadataItem) InitWithURL(url *NSURL) *NSMetadataItem
Initializes a metadata item with a given URL.
func (*NSMetadataItem) ValueForAttribute ¶
func (o *NSMetadataItem) ValueForAttribute(key *NSString) objc.ID
Returns the receiver’s metadata attribute name specified by a given key.
func (*NSMetadataItem) ValuesForAttributes ¶
func (o *NSMetadataItem) ValuesForAttributes(keys *NSArray[*NSString]) *NSDictionary[*NSString, objc.ID]
Returns a dictionary containing the key-value pairs for the attribute names specified by a given array of keys.
type NSMetadataQuery ¶
type NSMetadataQuery struct {
NSObject
}
A query that you perform against Spotlight metadata.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmetadataquery
func NSMetadataQueryFromID ¶
func NSMetadataQueryFromID(id objc.ID) *NSMetadataQuery
func (*NSMetadataQuery) Delegate ¶
func (o *NSMetadataQuery) Delegate() NSMetadataQueryDelegate
func (*NSMetadataQuery) DisableUpdates ¶
func (o *NSMetadataQuery) DisableUpdates()
Disables updates to the query results.
func (*NSMetadataQuery) EnableUpdates ¶
func (o *NSMetadataQuery) EnableUpdates()
Enables updates to the query results.
func (*NSMetadataQuery) EnumerateResultsUsing ¶
func (o *NSMetadataQuery) EnumerateResultsUsing(block func(objc.ID, uint, *bool))
Enumerates the current set of results using the given block.
func (*NSMetadataQuery) EnumerateResultsWithOptionsUsing ¶
func (o *NSMetadataQuery) EnumerateResultsWithOptionsUsing(opts NSEnumerationOptions, block func(objc.ID, uint, *bool))
Enumerates the current set of results using the given options and block.
func (*NSMetadataQuery) GroupedResults ¶
func (o *NSMetadataQuery) GroupedResults() *NSArray[*NSMetadataQueryResultGroup]
func (*NSMetadataQuery) GroupingAttributes ¶
func (o *NSMetadataQuery) GroupingAttributes() *NSArray[*NSString]
func (*NSMetadataQuery) IndexOfResult ¶
func (o *NSMetadataQuery) IndexOfResult(result objc.ID) uint
Returns the index of a query result object in the receiver’s results array.
func (*NSMetadataQuery) IsGathering ¶
func (o *NSMetadataQuery) IsGathering() bool
func (*NSMetadataQuery) IsStarted ¶
func (o *NSMetadataQuery) IsStarted() bool
func (*NSMetadataQuery) IsStopped ¶
func (o *NSMetadataQuery) IsStopped() bool
func (*NSMetadataQuery) NotificationBatchingInterval ¶
func (o *NSMetadataQuery) NotificationBatchingInterval() float64
func (*NSMetadataQuery) OperationQueue ¶
func (o *NSMetadataQuery) OperationQueue() *NSOperationQueue
func (*NSMetadataQuery) Predicate ¶
func (o *NSMetadataQuery) Predicate() *NSPredicate
func (*NSMetadataQuery) ResultAtIndex ¶
func (o *NSMetadataQuery) ResultAtIndex(idx uint) objc.ID
Returns the query result at a specific index.
func (*NSMetadataQuery) ResultCount ¶
func (o *NSMetadataQuery) ResultCount() uint
func (*NSMetadataQuery) SearchItems ¶
func (o *NSMetadataQuery) SearchItems() *NSArray[objc.ID]
func (*NSMetadataQuery) SearchScopes ¶
func (o *NSMetadataQuery) SearchScopes() *NSArray[objc.ID]
func (*NSMetadataQuery) SetDelegate ¶
func (o *NSMetadataQuery) SetDelegate(delegate NSMetadataQueryDelegate)
func (*NSMetadataQuery) SetGroupingAttributes ¶
func (o *NSMetadataQuery) SetGroupingAttributes(groupingAttributes *NSArray[*NSString])
func (*NSMetadataQuery) SetNotificationBatchingInterval ¶
func (o *NSMetadataQuery) SetNotificationBatchingInterval(notificationBatchingInterval float64)
func (*NSMetadataQuery) SetOperationQueue ¶
func (o *NSMetadataQuery) SetOperationQueue(operationQueue *NSOperationQueue)
func (*NSMetadataQuery) SetPredicate ¶
func (o *NSMetadataQuery) SetPredicate(predicate *NSPredicate)
func (*NSMetadataQuery) SetSearchItems ¶
func (o *NSMetadataQuery) SetSearchItems(searchItems *NSArray[objc.ID])
func (*NSMetadataQuery) SetSearchScopes ¶
func (o *NSMetadataQuery) SetSearchScopes(searchScopes *NSArray[objc.ID])
func (*NSMetadataQuery) SetSortDescriptors ¶
func (o *NSMetadataQuery) SetSortDescriptors(sortDescriptors *NSArray[*NSSortDescriptor])
func (*NSMetadataQuery) SetValueListAttributes ¶
func (o *NSMetadataQuery) SetValueListAttributes(valueListAttributes *NSArray[*NSString])
func (*NSMetadataQuery) SortDescriptors ¶
func (o *NSMetadataQuery) SortDescriptors() *NSArray[*NSSortDescriptor]
func (*NSMetadataQuery) StartQuery ¶
func (o *NSMetadataQuery) StartQuery() bool
Attempts to start the query.
func (*NSMetadataQuery) StopQuery ¶
func (o *NSMetadataQuery) StopQuery()
Stops the receiver’s current query from gathering any further results.
func (*NSMetadataQuery) ValueListAttributes ¶
func (o *NSMetadataQuery) ValueListAttributes() *NSArray[*NSString]
func (*NSMetadataQuery) ValueLists ¶
func (o *NSMetadataQuery) ValueLists() *NSDictionary[*NSString, objc.ID]
func (*NSMetadataQuery) ValueOfAttributeForResultAtIndex ¶
func (o *NSMetadataQuery) ValueOfAttributeForResultAtIndex(attrName *NSString, idx uint) objc.ID
Returns the value for the attribute name attrName at the index in the results specified by idx.
type NSMetadataQueryAttributeValueTuple ¶
type NSMetadataQueryAttributeValueTuple struct {
NSObject
}
The NSMetadataQueryAttributeValueTuple class represents attribute-value tuples, which are objects that contain the attribute name and value of a metadata attribute.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmetadataqueryattributevaluetuple
func NSMetadataQueryAttributeValueTupleFromID ¶
func NSMetadataQueryAttributeValueTupleFromID(id objc.ID) *NSMetadataQueryAttributeValueTuple
func (*NSMetadataQueryAttributeValueTuple) Attribute ¶
func (o *NSMetadataQueryAttributeValueTuple) Attribute() *NSString
func (*NSMetadataQueryAttributeValueTuple) Count ¶
func (o *NSMetadataQueryAttributeValueTuple) Count() uint
func (*NSMetadataQueryAttributeValueTuple) Value ¶
func (o *NSMetadataQueryAttributeValueTuple) Value() objc.ID
type NSMetadataQueryDelegate ¶
type NSMetadataQueryDelegate interface {
}
NSMetadataQueryDelegate wraps the ObjC protocol NSMetadataQueryDelegate.
type NSMetadataQueryResultGroup ¶
type NSMetadataQueryResultGroup struct {
NSObject
}
The NSMetadataQueryResultGroup class represents a collection of grouped attribute results returned by an NSMetadataQuery object.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmetadataqueryresultgroup
func NSMetadataQueryResultGroupFromID ¶
func NSMetadataQueryResultGroupFromID(id objc.ID) *NSMetadataQueryResultGroup
func (*NSMetadataQueryResultGroup) Attribute ¶
func (o *NSMetadataQueryResultGroup) Attribute() *NSString
func (*NSMetadataQueryResultGroup) ResultAtIndex ¶
func (o *NSMetadataQueryResultGroup) ResultAtIndex(idx uint) objc.ID
Returns the query result at a specific index.
func (*NSMetadataQueryResultGroup) ResultCount ¶
func (o *NSMetadataQueryResultGroup) ResultCount() uint
func (*NSMetadataQueryResultGroup) Results ¶
func (o *NSMetadataQueryResultGroup) Results() *NSArray[objc.ID]
func (*NSMetadataQueryResultGroup) Subgroups ¶
func (o *NSMetadataQueryResultGroup) Subgroups() *NSArray[*NSMetadataQueryResultGroup]
func (*NSMetadataQueryResultGroup) Value ¶
func (o *NSMetadataQueryResultGroup) Value() objc.ID
type NSMethodSignature ¶
type NSMethodSignature struct {
NSObject
}
A record of the type information for the return value and parameters of a method.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmethodsignature
func NSMethodSignatureFromID ¶
func NSMethodSignatureFromID(id objc.ID) *NSMethodSignature
func NSMethodSignatureSignatureWithObjCTypes ¶
func NSMethodSignatureSignatureWithObjCTypes(types string) *NSMethodSignature
Returns an NSMethodSignature object for the given Objective-C method type string.
func NSObjectInstanceMethodSignatureForSelector ¶
func NSObjectInstanceMethodSignatureForSelector(aSelector objc.SEL) *NSMethodSignature
func (*NSMethodSignature) FrameLength ¶
func (o *NSMethodSignature) FrameLength() uint
func (*NSMethodSignature) GetArgumentTypeAtIndex ¶
func (o *NSMethodSignature) GetArgumentTypeAtIndex(idx uint) string
Returns the type encoding for the argument at a given index.
func (*NSMethodSignature) IsOneway ¶
func (o *NSMethodSignature) IsOneway() bool
Whether the receiver is asynchronous when invoked through distributed objects.
func (*NSMethodSignature) MethodReturnLength ¶
func (o *NSMethodSignature) MethodReturnLength() uint
func (*NSMethodSignature) MethodReturnType ¶
func (o *NSMethodSignature) MethodReturnType() unsafe.Pointer
func (*NSMethodSignature) NumberOfArguments ¶
func (o *NSMethodSignature) NumberOfArguments() uint
type NSMorphology ¶
type NSMorphology struct {
NSObject
}
A description of the grammatical properties of a string.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmorphology
func NSMorphologyFromID ¶
func NSMorphologyFromID(id objc.ID) *NSMorphology
func NSMorphologyUserMorphology ¶
func NSMorphologyUserMorphology() *NSMorphology
func (*NSMorphology) CustomPronounForLanguage ¶
func (o *NSMorphology) CustomPronounForLanguage(language *NSString) *NSMorphologyCustomPronoun
Returns any custom pronoun behavior this morphology applies to the given language. Deprecated: Use NSTermOfAddress instead
func (*NSMorphology) Definiteness ¶
func (o *NSMorphology) Definiteness() NSGrammaticalDefiniteness
func (*NSMorphology) Determination ¶
func (o *NSMorphology) Determination() NSGrammaticalDetermination
func (*NSMorphology) GrammaticalCase ¶
func (o *NSMorphology) GrammaticalCase() NSGrammaticalCase
func (*NSMorphology) GrammaticalGender ¶
func (o *NSMorphology) GrammaticalGender() NSGrammaticalGender
func (*NSMorphology) GrammaticalPerson ¶
func (o *NSMorphology) GrammaticalPerson() NSGrammaticalPerson
func (*NSMorphology) IsUnspecified ¶
func (o *NSMorphology) IsUnspecified() bool
func (*NSMorphology) Number ¶
func (o *NSMorphology) Number() NSGrammaticalNumber
func (*NSMorphology) PartOfSpeech ¶
func (o *NSMorphology) PartOfSpeech() NSGrammaticalPartOfSpeech
func (*NSMorphology) PronounType ¶
func (o *NSMorphology) PronounType() NSGrammaticalPronounType
func (*NSMorphology) SetCustomPronounForLanguageError ¶
func (o *NSMorphology) SetCustomPronounForLanguageError(features *NSMorphologyCustomPronoun, language *NSString) (bool, error)
Sets a custom pronoun behavior for this morphology to apply to the given language. Deprecated: Use NSTermOfAddress instead
func (*NSMorphology) SetDefiniteness ¶
func (o *NSMorphology) SetDefiniteness(definiteness NSGrammaticalDefiniteness)
func (*NSMorphology) SetDetermination ¶
func (o *NSMorphology) SetDetermination(determination NSGrammaticalDetermination)
func (*NSMorphology) SetGrammaticalCase ¶
func (o *NSMorphology) SetGrammaticalCase(grammaticalCase NSGrammaticalCase)
func (*NSMorphology) SetGrammaticalGender ¶
func (o *NSMorphology) SetGrammaticalGender(grammaticalGender NSGrammaticalGender)
func (*NSMorphology) SetGrammaticalPerson ¶
func (o *NSMorphology) SetGrammaticalPerson(grammaticalPerson NSGrammaticalPerson)
func (*NSMorphology) SetNumber ¶
func (o *NSMorphology) SetNumber(number NSGrammaticalNumber)
func (*NSMorphology) SetPartOfSpeech ¶
func (o *NSMorphology) SetPartOfSpeech(partOfSpeech NSGrammaticalPartOfSpeech)
func (*NSMorphology) SetPronounType ¶
func (o *NSMorphology) SetPronounType(pronounType NSGrammaticalPronounType)
type NSMorphologyCustomPronoun ¶
type NSMorphologyCustomPronoun struct {
NSObject
}
A custom pronoun behavior for use in a specific langauge.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmorphologycustompronoun Deprecated: Use NSTermOfAddress instead
func NSMorphologyCustomPronounFromID ¶
func NSMorphologyCustomPronounFromID(id objc.ID) *NSMorphologyCustomPronoun
func (*NSMorphologyCustomPronoun) ObjectForm ¶
func (o *NSMorphologyCustomPronoun) ObjectForm() *NSString
func (*NSMorphologyCustomPronoun) PossessiveAdjectiveForm ¶
func (o *NSMorphologyCustomPronoun) PossessiveAdjectiveForm() *NSString
func (*NSMorphologyCustomPronoun) PossessiveForm ¶
func (o *NSMorphologyCustomPronoun) PossessiveForm() *NSString
func (*NSMorphologyCustomPronoun) ReflexiveForm ¶
func (o *NSMorphologyCustomPronoun) ReflexiveForm() *NSString
func (*NSMorphologyCustomPronoun) SetObjectForm ¶
func (o *NSMorphologyCustomPronoun) SetObjectForm(objectForm *NSString)
func (*NSMorphologyCustomPronoun) SetPossessiveAdjectiveForm ¶
func (o *NSMorphologyCustomPronoun) SetPossessiveAdjectiveForm(possessiveAdjectiveForm *NSString)
func (*NSMorphologyCustomPronoun) SetPossessiveForm ¶
func (o *NSMorphologyCustomPronoun) SetPossessiveForm(possessiveForm *NSString)
func (*NSMorphologyCustomPronoun) SetReflexiveForm ¶
func (o *NSMorphologyCustomPronoun) SetReflexiveForm(reflexiveForm *NSString)
func (*NSMorphologyCustomPronoun) SetSubjectForm ¶
func (o *NSMorphologyCustomPronoun) SetSubjectForm(subjectForm *NSString)
func (*NSMorphologyCustomPronoun) SubjectForm ¶
func (o *NSMorphologyCustomPronoun) SubjectForm() *NSString
type NSMorphologyPronoun ¶
type NSMorphologyPronoun struct {
NSObject
}
A custom pronoun for referring to a third person.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmorphologypronoun
func NSMorphologyPronounFromID ¶
func NSMorphologyPronounFromID(id objc.ID) *NSMorphologyPronoun
func (*NSMorphologyPronoun) DependentMorphology ¶
func (o *NSMorphologyPronoun) DependentMorphology() *NSMorphology
func (*NSMorphologyPronoun) InitWithPronounMorphologyDependentMorphology ¶
func (o *NSMorphologyPronoun) InitWithPronounMorphologyDependentMorphology(pronoun *NSString, morphology *NSMorphology, dependentMorphology *NSMorphology) *NSMorphologyPronoun
func (*NSMorphologyPronoun) Morphology ¶
func (o *NSMorphologyPronoun) Morphology() *NSMorphology
func (*NSMorphologyPronoun) Pronoun ¶
func (o *NSMorphologyPronoun) Pronoun() *NSString
type NSMoveCommand ¶
type NSMoveCommand struct {
NSScriptCommand
}
A command that moves one or more scriptable objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmovecommand
func NSMoveCommandFromID ¶
func NSMoveCommandFromID(id objc.ID) *NSMoveCommand
func (*NSMoveCommand) KeySpecifier ¶
func (o *NSMoveCommand) KeySpecifier() *NSScriptObjectSpecifier
type NSMutableArray ¶
A dynamic ordered collection of objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmutablearray
func NSMutableArrayArrayWithCapacity ¶
func NSMutableArrayArrayWithCapacity(numItems uint) *NSMutableArray[objc.ID]
Creates and returns an NSMutableArray object with enough allocated memory to initially hold a given number of objects.
func NSMutableArrayArrayWithContentsOfFile ¶
func NSMutableArrayArrayWithContentsOfFile(path *NSString) *NSMutableArray[objc.ID]
Creates and returns a mutable array containing the contents of the file specified by the given path.
func NSMutableArrayArrayWithContentsOfURL ¶
func NSMutableArrayArrayWithContentsOfURL(url *NSURL) *NSMutableArray[objc.ID]
Creates and returns a mutable array containing the contents specified by a given URL.
func NSMutableArrayFromID ¶
func NSMutableArrayFromID[ObjectType purego.AnyObject](id objc.ID) *NSMutableArray[ObjectType]
func (*NSMutableArray[ObjectType]) AddObject ¶
func (o *NSMutableArray[ObjectType]) AddObject(anObject ObjectType)
Inserts a given object at the end of the array.
func (*NSMutableArray[ObjectType]) AddObjectsFromArray ¶
func (o *NSMutableArray[ObjectType]) AddObjectsFromArray(otherArray *NSArray[ObjectType])
Adds the objects contained in another given array to the end of the receiving array’s content.
func (*NSMutableArray[ObjectType]) ApplyDifference ¶
func (o *NSMutableArray[ObjectType]) ApplyDifference(difference *NSOrderedCollectionDifference[ObjectType])
func (*NSMutableArray[ObjectType]) ExchangeObjectAtIndexWithObjectAtIndex ¶
func (o *NSMutableArray[ObjectType]) ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, idx2 uint)
Exchanges the objects in the array at given indexes.
func (*NSMutableArray[ObjectType]) FilterUsingPredicate ¶
func (o *NSMutableArray[ObjectType]) FilterUsingPredicate(predicate *NSPredicate)
Evaluates a given predicate against the array’s content and leaves only objects that match.
func (*NSMutableArray[ObjectType]) Init ¶
func (o *NSMutableArray[ObjectType]) Init() *NSMutableArray[ObjectType]
Initializes a newly allocated array.
func (*NSMutableArray[ObjectType]) InitWithCapacity ¶
func (o *NSMutableArray[ObjectType]) InitWithCapacity(numItems uint) *NSMutableArray[ObjectType]
Returns an array, initialized with enough memory to initially hold a given number of objects.
func (*NSMutableArray[ObjectType]) InitWithCoder ¶
func (o *NSMutableArray[ObjectType]) InitWithCoder(coder *NSCoder) *NSMutableArray[ObjectType]
func (*NSMutableArray[ObjectType]) InitWithContentsOfFile ¶
func (o *NSMutableArray[ObjectType]) InitWithContentsOfFile(path *NSString) *NSMutableArray[ObjectType]
Initializes a newly allocated mutable array with the contents of the file specified by a given path
func (*NSMutableArray[ObjectType]) InitWithContentsOfURL ¶
func (o *NSMutableArray[ObjectType]) InitWithContentsOfURL(url *NSURL) *NSMutableArray[ObjectType]
Initialized a newly allocated mutable array with the contents of the location specified by a given URL.
func (*NSMutableArray[ObjectType]) InsertObjectAtIndex ¶
func (o *NSMutableArray[ObjectType]) InsertObjectAtIndex(anObject ObjectType, index uint)
Inserts a given object into the array’s contents at a given index.
func (*NSMutableArray[ObjectType]) InsertObjectsAtIndexes ¶
func (o *NSMutableArray[ObjectType]) InsertObjectsAtIndexes(objects *NSArray[ObjectType], indexes *NSIndexSet)
Inserts the objects in the provided array into the receiving array at the specified indexes.
func (*NSMutableArray[ObjectType]) RemoveAllObjects ¶
func (o *NSMutableArray[ObjectType]) RemoveAllObjects()
Empties the array of all its elements.
func (*NSMutableArray[ObjectType]) RemoveLastObject ¶
func (o *NSMutableArray[ObjectType]) RemoveLastObject()
Removes the object with the highest-valued index in the array
func (*NSMutableArray[ObjectType]) RemoveObject ¶
func (o *NSMutableArray[ObjectType]) RemoveObject(anObject ObjectType)
Removes all occurrences in the array of a given object.
func (*NSMutableArray[ObjectType]) RemoveObjectAtIndex ¶
func (o *NSMutableArray[ObjectType]) RemoveObjectAtIndex(index uint)
Removes the object at index .
func (*NSMutableArray[ObjectType]) RemoveObjectIdenticalTo ¶
func (o *NSMutableArray[ObjectType]) RemoveObjectIdenticalTo(anObject ObjectType)
Removes all occurrences of a given object in the array.
func (*NSMutableArray[ObjectType]) RemoveObjectIdenticalToInRange ¶
func (o *NSMutableArray[ObjectType]) RemoveObjectIdenticalToInRange(anObject ObjectType, range_ NSRange)
Removes all occurrences of anObject within the specified range in the array.
func (*NSMutableArray[ObjectType]) RemoveObjectInRange ¶
func (o *NSMutableArray[ObjectType]) RemoveObjectInRange(anObject ObjectType, range_ NSRange)
Removes all occurrences within a specified range in the array of a given object.
func (*NSMutableArray[ObjectType]) RemoveObjectsAtIndexes ¶
func (o *NSMutableArray[ObjectType]) RemoveObjectsAtIndexes(indexes *NSIndexSet)
Removes the objects at the specified indexes from the array.
func (*NSMutableArray[ObjectType]) RemoveObjectsFromIndicesNumIndices ¶
func (o *NSMutableArray[ObjectType]) RemoveObjectsFromIndicesNumIndices(indices *uint, cnt uint)
Removes the specified number of objects from the array, beginning at the specified index. Deprecated: Not supported
func (*NSMutableArray[ObjectType]) RemoveObjectsInArray ¶
func (o *NSMutableArray[ObjectType]) RemoveObjectsInArray(otherArray *NSArray[ObjectType])
Removes from the receiving array the objects in another given array. Deprecated: Not supported
func (*NSMutableArray[ObjectType]) RemoveObjectsInRange ¶
func (o *NSMutableArray[ObjectType]) RemoveObjectsInRange(range_ NSRange)
Removes from the array each of the objects within a given range. Deprecated: Not supported
func (*NSMutableArray[ObjectType]) ReplaceObjectAtIndexWithObject ¶
func (o *NSMutableArray[ObjectType]) ReplaceObjectAtIndexWithObject(index uint, anObject ObjectType)
Replaces the object at index with anObject.
func (*NSMutableArray[ObjectType]) ReplaceObjectsAtIndexesWithObjects ¶
func (o *NSMutableArray[ObjectType]) ReplaceObjectsAtIndexesWithObjects(indexes *NSIndexSet, objects *NSArray[ObjectType])
Replaces the objects in the receiving array at locations specified with the objects from a given array.
func (*NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArray ¶
func (o *NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArray(range_ NSRange, otherArray *NSArray[ObjectType])
Replaces the objects in the receiving array specified by a given range with all of the objects from a given array. Deprecated: Not supported
func (*NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArrayRange ¶
func (o *NSMutableArray[ObjectType]) ReplaceObjectsInRangeWithObjectsFromArrayRange(range_ NSRange, otherArray *NSArray[ObjectType], otherRange NSRange)
Replaces the objects in the receiving array specified by one given range with the objects in another array specified by another range. Deprecated: Not supported
func (*NSMutableArray[ObjectType]) SetArray ¶
func (o *NSMutableArray[ObjectType]) SetArray(otherArray *NSArray[ObjectType])
Sets the receiving array’s elements to those in another given array.
func (*NSMutableArray[ObjectType]) SetObjectAtIndexedSubscript ¶
func (o *NSMutableArray[ObjectType]) SetObjectAtIndexedSubscript(obj ObjectType, idx uint)
Replaces the object at the index with the new object, possibly adding the object.
func (*NSMutableArray[ObjectType]) SortUsingComparator ¶
func (o *NSMutableArray[ObjectType]) SortUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult)
Sorts the receiver in ascending order using the comparison method specified by a given NSComparator block.
func (*NSMutableArray[ObjectType]) SortUsingDescriptors ¶
func (o *NSMutableArray[ObjectType]) SortUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor])
Sorts the receiver using a given array of sort descriptors.
func (*NSMutableArray[ObjectType]) SortUsingFunctionContext ¶
func (o *NSMutableArray[ObjectType]) SortUsingFunctionContext(compare unsafe.Pointer, context_ unsafe.Pointer)
Sorts the receiver in ascending order as defined by the comparison function compare.
func (*NSMutableArray[ObjectType]) SortUsingSelector ¶
func (o *NSMutableArray[ObjectType]) SortUsingSelector(comparator objc.SEL)
Sorts the receiver in ascending order, as determined by the comparison method specified by a given selector.
func (*NSMutableArray[ObjectType]) SortWithOptionsUsingComparator ¶
func (o *NSMutableArray[ObjectType]) SortWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult)
Sorts the receiver in ascending order using the specified options and the comparison method specified by a given NSComparator block.
type NSMutableAttributedString ¶
type NSMutableAttributedString struct {
NSAttributedString
}
A mutable string with associated attributes (such as visual style, hyperlinks, or accessibility data) for portions of its text.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmutableattributedstring
func NSMutableAttributedStringFromID ¶
func NSMutableAttributedStringFromID(id objc.ID) *NSMutableAttributedString
func (*NSMutableAttributedString) AddAttributeValueRange ¶
func (o *NSMutableAttributedString) AddAttributeValueRange(name *NSString, value objc.ID, range_ NSRange)
Adds an attribute with the given name and value to the characters in the specified range.
func (*NSMutableAttributedString) AddAttributesRange ¶
func (o *NSMutableAttributedString) AddAttributesRange(attrs *NSDictionary[*NSString, objc.ID], range_ NSRange)
Adds the given collection of attributes to the characters in the specified range.
func (*NSMutableAttributedString) AppendAttributedString ¶
func (o *NSMutableAttributedString) AppendAttributedString(attrString *NSAttributedString)
Adds the characters and attributes of a given attributed string to the end of the receiver.
func (*NSMutableAttributedString) AppendLocalizedFormat ¶
func (o *NSMutableAttributedString) AppendLocalizedFormat(format *NSAttributedString)
Formats the specified string and arguments with the current locale, then appends the result to the receiver.
func (*NSMutableAttributedString) BeginEditing ¶
func (o *NSMutableAttributedString) BeginEditing()
Begins the buffering of changes to the string’s characters and attributes.
func (*NSMutableAttributedString) DeleteCharactersInRange ¶
func (o *NSMutableAttributedString) DeleteCharactersInRange(range_ NSRange)
Deletes the characters in the given range along with their associated attributes.
func (*NSMutableAttributedString) EndEditing ¶
func (o *NSMutableAttributedString) EndEditing()
Ends the buffering of changes to the string’s characters and attributes.
func (*NSMutableAttributedString) InsertAttributedStringAtIndex ¶
func (o *NSMutableAttributedString) InsertAttributedStringAtIndex(attrString *NSAttributedString, loc uint)
Inserts the characters and attributes of the given attributed string into the receiver at the given index.
func (*NSMutableAttributedString) MutableString ¶
func (o *NSMutableAttributedString) MutableString() *NSMutableString
func (*NSMutableAttributedString) RemoveAttributeRange ¶
func (o *NSMutableAttributedString) RemoveAttributeRange(name *NSString, range_ NSRange)
Removes the named attribute from the characters in the specified range.
func (*NSMutableAttributedString) ReplaceCharactersInRangeWithAttributedString ¶
func (o *NSMutableAttributedString) ReplaceCharactersInRangeWithAttributedString(range_ NSRange, attrString *NSAttributedString)
Replaces the characters and attributes in a given range with the characters and attributes of the given attributed string.
func (*NSMutableAttributedString) ReplaceCharactersInRangeWithString ¶
func (o *NSMutableAttributedString) ReplaceCharactersInRangeWithString(range_ NSRange, str *NSString)
Replaces the characters in the given range with the characters of the given string.
func (*NSMutableAttributedString) SetAttributedString ¶
func (o *NSMutableAttributedString) SetAttributedString(attrString *NSAttributedString)
Replaces the receiver’s entire contents with the characters and attributes of the given attributed string.
func (*NSMutableAttributedString) SetAttributesRange ¶
func (o *NSMutableAttributedString) SetAttributesRange(attrs *NSDictionary[*NSString, objc.ID], range_ NSRange)
Sets the attributes for the characters in the specified range to the specified attributes.
type NSMutableCharacterSet ¶
type NSMutableCharacterSet struct {
NSCharacterSet
}
An object representing a mutable set of Unicode character values for use in search operations.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmutablecharacterset
func NSMutableCharacterSetAlphanumericCharacterSet ¶
func NSMutableCharacterSetAlphanumericCharacterSet() *NSMutableCharacterSet
Returns a character set containing the characters in Unicode General Categories L*, M*, and N*.
func NSMutableCharacterSetCapitalizedLetterCharacterSet ¶
func NSMutableCharacterSetCapitalizedLetterCharacterSet() *NSMutableCharacterSet
Returns a character set containing the characters in Unicode General Category Lt.
func NSMutableCharacterSetCharacterSetWithBitmapRepresentation ¶
func NSMutableCharacterSetCharacterSetWithBitmapRepresentation(data *NSData) *NSMutableCharacterSet
Returns a character set containing characters determined by a given bitmap representation.
func NSMutableCharacterSetCharacterSetWithCharactersInString ¶
func NSMutableCharacterSetCharacterSetWithCharactersInString(aString *NSString) *NSMutableCharacterSet
Returns a character set containing the characters in a given string.
func NSMutableCharacterSetCharacterSetWithContentsOfFile ¶
func NSMutableCharacterSetCharacterSetWithContentsOfFile(fName *NSString) *NSMutableCharacterSet
Returns a character set read from the bitmap representation stored in the file a given path.
func NSMutableCharacterSetCharacterSetWithRange ¶
func NSMutableCharacterSetCharacterSetWithRange(aRange NSRange) *NSMutableCharacterSet
Returns a character set containing characters with Unicode values in a given range.
func NSMutableCharacterSetControlCharacterSet ¶
func NSMutableCharacterSetControlCharacterSet() *NSMutableCharacterSet
Returns a character set containing the characters in Unicode General Category Cc and Cf.
func NSMutableCharacterSetDecimalDigitCharacterSet ¶
func NSMutableCharacterSetDecimalDigitCharacterSet() *NSMutableCharacterSet
Returns a character set containing the characters in the category of decimal numbers.
func NSMutableCharacterSetDecomposableCharacterSet ¶
func NSMutableCharacterSetDecomposableCharacterSet() *NSMutableCharacterSet
Returns a character set containing individual Unicode characters that can also be represented as composed character sequences (such as for letters with accents), by the definition of “standard decomposition” in version 3.2 of the Unicode character encoding standard.
func NSMutableCharacterSetFromID ¶
func NSMutableCharacterSetFromID(id objc.ID) *NSMutableCharacterSet
func NSMutableCharacterSetIllegalCharacterSet ¶
func NSMutableCharacterSetIllegalCharacterSet() *NSMutableCharacterSet
Returns a character set containing values in the category of Non-Characters or that have not yet been defined in version 3.2 of the Unicode standard.
func NSMutableCharacterSetLetterCharacterSet ¶
func NSMutableCharacterSetLetterCharacterSet() *NSMutableCharacterSet
Returns a character set containing the characters in Unicode General Category L* & M*.
func NSMutableCharacterSetLowercaseLetterCharacterSet ¶
func NSMutableCharacterSetLowercaseLetterCharacterSet() *NSMutableCharacterSet
Returns a character set containing the characters in Unicode General Category Ll.
func NSMutableCharacterSetNewlineCharacterSet ¶
func NSMutableCharacterSetNewlineCharacterSet() *NSMutableCharacterSet
Returns a character set containing the newline characters (U+000A ~ U+000D, U+0085, U+2028, and U+2029).
func NSMutableCharacterSetNonBaseCharacterSet ¶
func NSMutableCharacterSetNonBaseCharacterSet() *NSMutableCharacterSet
Returns a character set containing the characters in Unicode General Category M*.
func NSMutableCharacterSetPunctuationCharacterSet ¶
func NSMutableCharacterSetPunctuationCharacterSet() *NSMutableCharacterSet
Returns a character set containing the characters in Unicode General Category P*.
func NSMutableCharacterSetSymbolCharacterSet ¶
func NSMutableCharacterSetSymbolCharacterSet() *NSMutableCharacterSet
Returns a character set containing the characters in Unicode General Category S*.
func NSMutableCharacterSetUppercaseLetterCharacterSet ¶
func NSMutableCharacterSetUppercaseLetterCharacterSet() *NSMutableCharacterSet
Returns a character set containing the characters in Unicode General Category Lu and Lt.
func NSMutableCharacterSetWhitespaceAndNewlineCharacterSet ¶
func NSMutableCharacterSetWhitespaceAndNewlineCharacterSet() *NSMutableCharacterSet
Returns a character set containing characters in Unicode General Category Z*, U+000A ~ U+000D, and U+0085.
func NSMutableCharacterSetWhitespaceCharacterSet ¶
func NSMutableCharacterSetWhitespaceCharacterSet() *NSMutableCharacterSet
Returns a character set containing the characters in Unicode General Category Zs and CHARACTER TABULATION (U+0009).
func (*NSMutableCharacterSet) AddCharactersInRange ¶
func (o *NSMutableCharacterSet) AddCharactersInRange(aRange NSRange)
Adds to the receiver the characters whose Unicode values are in a given range.
func (*NSMutableCharacterSet) AddCharactersInString ¶
func (o *NSMutableCharacterSet) AddCharactersInString(aString *NSString)
Adds to the receiver the characters in a given string.
func (*NSMutableCharacterSet) FormIntersectionWithCharacterSet ¶
func (o *NSMutableCharacterSet) FormIntersectionWithCharacterSet(otherSet *NSCharacterSet)
Modifies the receiver so it contains only characters that exist in both the receiver and another set.
func (*NSMutableCharacterSet) FormUnionWithCharacterSet ¶
func (o *NSMutableCharacterSet) FormUnionWithCharacterSet(otherSet *NSCharacterSet)
Modifies the receiver so it contains all characters that exist in either the receiver or another set.
func (*NSMutableCharacterSet) Invert ¶
func (o *NSMutableCharacterSet) Invert()
Replaces all the characters in the receiver with all the characters it didn’t previously contain.
func (*NSMutableCharacterSet) RemoveCharactersInRange ¶
func (o *NSMutableCharacterSet) RemoveCharactersInRange(aRange NSRange)
Removes from the receiver the characters whose Unicode values are in a given range.
func (*NSMutableCharacterSet) RemoveCharactersInString ¶
func (o *NSMutableCharacterSet) RemoveCharactersInString(aString *NSString)
Removes from the receiver the characters in a given string.
type NSMutableCopying ¶
NSMutableCopying wraps the ObjC protocol NSMutableCopying.
type NSMutableData ¶
type NSMutableData struct {
NSData
}
An object representing a dynamic byte buffer in memory.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmutabledata
func NSMutableDataDataWithCapacity ¶
func NSMutableDataDataWithCapacity(aNumItems uint) *NSMutableData
Creates and returns a mutable data object capable of holding the specified number of bytes.
func NSMutableDataDataWithLength ¶
func NSMutableDataDataWithLength(length uint) *NSMutableData
Creates and returns an mutable data object containing a given number of zeroed bytes.
func NSMutableDataFromID ¶
func NSMutableDataFromID(id objc.ID) *NSMutableData
func (*NSMutableData) AppendBytesLength ¶
func (o *NSMutableData) AppendBytesLength(bytes_ unsafe.Pointer, length uint)
Appends to the receiver a given number of bytes from a given buffer.
func (*NSMutableData) AppendData ¶
func (o *NSMutableData) AppendData(other *NSData)
Appends the content of another data object to the receiver.
func (*NSMutableData) CompressUsingAlgorithmError ¶
func (o *NSMutableData) CompressUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (bool, error)
Compresses the data object’s bytes using an algorithm that you specify.
func (*NSMutableData) DecompressUsingAlgorithmError ¶
func (o *NSMutableData) DecompressUsingAlgorithmError(algorithm NSDataCompressionAlgorithm) (bool, error)
Decompresses the data object’s bytes.
func (*NSMutableData) IncreaseLengthBy ¶
func (o *NSMutableData) IncreaseLengthBy(extraLength uint)
Increases the length of the receiver by a given number of bytes.
func (*NSMutableData) InitWithCapacity ¶
func (o *NSMutableData) InitWithCapacity(capacity uint) *NSMutableData
Returns an initialized mutable data object capable of holding the specified number of bytes.
func (*NSMutableData) InitWithLength ¶
func (o *NSMutableData) InitWithLength(length uint) *NSMutableData
Initializes and returns a mutable data object containing a given number of zeroed bytes.
func (*NSMutableData) MutableBytes ¶
func (o *NSMutableData) MutableBytes() unsafe.Pointer
func (*NSMutableData) ReplaceBytesInRangeWithBytes ¶
func (o *NSMutableData) ReplaceBytesInRangeWithBytes(range_ NSRange, bytes_ unsafe.Pointer)
Replaces with a given set of bytes a given range within the contents of the receiver.
func (*NSMutableData) ReplaceBytesInRangeWithBytesLength ¶
func (o *NSMutableData) ReplaceBytesInRangeWithBytesLength(range_ NSRange, replacementBytes unsafe.Pointer, replacementLength uint)
Replaces with a given set of bytes a given range within the contents of the receiver.
func (*NSMutableData) ResetBytesInRange ¶
func (o *NSMutableData) ResetBytesInRange(range_ NSRange)
Replaces with zeroes the contents of the receiver in a given range.
func (*NSMutableData) SetData ¶
func (o *NSMutableData) SetData(data *NSData)
Replaces the entire contents of the receiver with the contents of another data object.
func (*NSMutableData) SetLength ¶
func (o *NSMutableData) SetLength(length uint)
type NSMutableDictionary ¶
type NSMutableDictionary[KeyType purego.AnyObject, ObjectType purego.AnyObject] struct { NSDictionary[KeyType, ObjectType] }
A dynamic collection of objects associated with unique keys.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmutabledictionary
func NSMutableDictionaryDictionaryWithCapacity ¶
func NSMutableDictionaryDictionaryWithCapacity(numItems uint) *NSMutableDictionary[objc.ID, objc.ID]
Creates and returns a mutable dictionary, initially giving it enough allocated memory to hold a given number of entries.
func NSMutableDictionaryDictionaryWithSharedKeySet ¶
func NSMutableDictionaryDictionaryWithSharedKeySet(keyset objc.ID) *NSMutableDictionary[objc.ID, objc.ID]
Creates a mutable dictionary which is optimized for dealing with a known set of keys.
func (*NSMutableDictionary[KeyType, ObjectType]) AddEntriesFromDictionary ¶
func (o *NSMutableDictionary[KeyType, ObjectType]) AddEntriesFromDictionary(otherDictionary *NSDictionary[KeyType, ObjectType])
Adds to the receiving dictionary the entries from another dictionary.
func (*NSMutableDictionary[KeyType, ObjectType]) Init ¶
func (o *NSMutableDictionary[KeyType, ObjectType]) Init() *NSMutableDictionary[KeyType, ObjectType]
Initializes a newly allocated mutable dictionary.
func (*NSMutableDictionary[KeyType, ObjectType]) InitWithCapacity ¶
func (o *NSMutableDictionary[KeyType, ObjectType]) InitWithCapacity(numItems uint) *NSMutableDictionary[KeyType, ObjectType]
Initializes a newly allocated mutable dictionary, allocating enough memory to hold numItems entries.
func (*NSMutableDictionary[KeyType, ObjectType]) InitWithCoder ¶
func (o *NSMutableDictionary[KeyType, ObjectType]) InitWithCoder(coder *NSCoder) *NSMutableDictionary[KeyType, ObjectType]
func (*NSMutableDictionary[KeyType, ObjectType]) InitWithContentsOfFile ¶
func (o *NSMutableDictionary[KeyType, ObjectType]) InitWithContentsOfFile(path *NSString) *NSMutableDictionary[KeyType, ObjectType]
func (*NSMutableDictionary[KeyType, ObjectType]) InitWithContentsOfURL ¶
func (o *NSMutableDictionary[KeyType, ObjectType]) InitWithContentsOfURL(url *NSURL) *NSMutableDictionary[KeyType, ObjectType]
func (*NSMutableDictionary[KeyType, ObjectType]) RemoveAllObjects ¶
func (o *NSMutableDictionary[KeyType, ObjectType]) RemoveAllObjects()
Empties the dictionary of its entries.
func (*NSMutableDictionary[KeyType, ObjectType]) RemoveObjectForKey ¶
func (o *NSMutableDictionary[KeyType, ObjectType]) RemoveObjectForKey(aKey KeyType)
Removes a given key and its associated value from the dictionary.
func (*NSMutableDictionary[KeyType, ObjectType]) RemoveObjectsForKeys ¶
func (o *NSMutableDictionary[KeyType, ObjectType]) RemoveObjectsForKeys(keyArray *NSArray[KeyType])
Removes from the dictionary entries specified by elements in a given array.
func (*NSMutableDictionary[KeyType, ObjectType]) SetDictionary ¶
func (o *NSMutableDictionary[KeyType, ObjectType]) SetDictionary(otherDictionary *NSDictionary[KeyType, ObjectType])
Sets the contents of the receiving dictionary to entries in a given dictionary.
func (*NSMutableDictionary[KeyType, ObjectType]) SetObjectForKey ¶
func (o *NSMutableDictionary[KeyType, ObjectType]) SetObjectForKey(anObject ObjectType, aKey NSCopying)
Adds a given key-value pair to the dictionary.
func (*NSMutableDictionary[KeyType, ObjectType]) SetObjectForKeyedSubscript ¶
func (o *NSMutableDictionary[KeyType, ObjectType]) SetObjectForKeyedSubscript(obj ObjectType, key NSCopying)
Adds a given key-value pair to the dictionary.
type NSMutableIndexSet ¶
type NSMutableIndexSet struct {
NSIndexSet
}
A mutable collection of unique integer values that represent indexes in another collection.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmutableindexset
func NSMutableIndexSetFromID ¶
func NSMutableIndexSetFromID(id objc.ID) *NSMutableIndexSet
func (*NSMutableIndexSet) AddIndex ¶
func (o *NSMutableIndexSet) AddIndex(value uint)
Adds an index to the receiver.
func (*NSMutableIndexSet) AddIndexes ¶
func (o *NSMutableIndexSet) AddIndexes(indexSet *NSIndexSet)
Adds the indexes in an index set to the receiver.
func (*NSMutableIndexSet) AddIndexesInRange ¶
func (o *NSMutableIndexSet) AddIndexesInRange(range_ NSRange)
Adds the indexes in an index range to the receiver.
func (*NSMutableIndexSet) RemoveAllIndexes ¶
func (o *NSMutableIndexSet) RemoveAllIndexes()
Removes the receiver’s indexes.
func (*NSMutableIndexSet) RemoveIndex ¶
func (o *NSMutableIndexSet) RemoveIndex(value uint)
Removes an index from the receiver.
func (*NSMutableIndexSet) RemoveIndexes ¶
func (o *NSMutableIndexSet) RemoveIndexes(indexSet *NSIndexSet)
Removes the indexes in an index set from the receiver.
func (*NSMutableIndexSet) RemoveIndexesInRange ¶
func (o *NSMutableIndexSet) RemoveIndexesInRange(range_ NSRange)
Removes the indexes in an index range from the receiver.
func (*NSMutableIndexSet) ShiftIndexesStartingAtIndexBy ¶
func (o *NSMutableIndexSet) ShiftIndexesStartingAtIndexBy(index uint, delta int)
Shifts a group of indexes to the left or the right within the receiver.
type NSMutableOrderedSet ¶
type NSMutableOrderedSet[ObjectType purego.AnyObject] struct { NSOrderedSet[ObjectType] }
A dynamic, ordered collection of unique objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmutableorderedset
func NSMutableOrderedSetFromID ¶
func NSMutableOrderedSetFromID[ObjectType purego.AnyObject](id objc.ID) *NSMutableOrderedSet[ObjectType]
func NSMutableOrderedSetOrderedSetWithCapacity ¶
func NSMutableOrderedSetOrderedSetWithCapacity(numItems uint) *NSMutableOrderedSet[objc.ID]
Creates and returns an mutable ordered set with a given initial capacity.
func (*NSMutableOrderedSet[ObjectType]) AddObject ¶
func (o *NSMutableOrderedSet[ObjectType]) AddObject(object ObjectType)
Appends a given object to the end of the mutable ordered set, if it is not already a member.
func (*NSMutableOrderedSet[ObjectType]) AddObjectsCount ¶
func (o *NSMutableOrderedSet[ObjectType]) AddObjectsCount(objects unsafe.Pointer, count uint)
Appends the given number of objects from a given C array to the end of the mutable ordered set.
func (*NSMutableOrderedSet[ObjectType]) AddObjectsFromArray ¶
func (o *NSMutableOrderedSet[ObjectType]) AddObjectsFromArray(array *NSArray[ObjectType])
Appends to the end of the mutable ordered set each object contained in a given array that is not already a member.
func (*NSMutableOrderedSet[ObjectType]) ApplyDifference ¶
func (o *NSMutableOrderedSet[ObjectType]) ApplyDifference(difference *NSOrderedCollectionDifference[ObjectType])
func (*NSMutableOrderedSet[ObjectType]) ExchangeObjectAtIndexWithObjectAtIndex ¶
func (o *NSMutableOrderedSet[ObjectType]) ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, idx2 uint)
Exchanges the object at the specified index with the object at the other index.
func (*NSMutableOrderedSet[ObjectType]) FilterUsingPredicate ¶
func (o *NSMutableOrderedSet[ObjectType]) FilterUsingPredicate(p *NSPredicate)
Evaluates a given predicate against the mutable ordered set’s content and leaves only objects that match.
func (*NSMutableOrderedSet[ObjectType]) Init ¶
func (o *NSMutableOrderedSet[ObjectType]) Init() *NSMutableOrderedSet[ObjectType]
Initializes a newly allocated mutable ordered set.
func (*NSMutableOrderedSet[ObjectType]) InitWithCapacity ¶
func (o *NSMutableOrderedSet[ObjectType]) InitWithCapacity(numItems uint) *NSMutableOrderedSet[ObjectType]
Returns an initialized mutable ordered set with a given initial capacity.
func (*NSMutableOrderedSet[ObjectType]) InitWithCoder ¶
func (o *NSMutableOrderedSet[ObjectType]) InitWithCoder(coder *NSCoder) *NSMutableOrderedSet[ObjectType]
func (*NSMutableOrderedSet[ObjectType]) InsertObjectAtIndex ¶
func (o *NSMutableOrderedSet[ObjectType]) InsertObjectAtIndex(object ObjectType, idx uint)
Inserts the given object at the specified index of the mutable ordered set, if it is not already a member.
func (*NSMutableOrderedSet[ObjectType]) InsertObjectsAtIndexes ¶
func (o *NSMutableOrderedSet[ObjectType]) InsertObjectsAtIndexes(objects *NSArray[ObjectType], indexes *NSIndexSet)
Inserts the objects in the array at the specified indexes.
func (*NSMutableOrderedSet[ObjectType]) IntersectOrderedSet ¶
func (o *NSMutableOrderedSet[ObjectType]) IntersectOrderedSet(other *NSOrderedSet[ObjectType])
Removes from the receiving ordered set each object that isn’t a member of another ordered set.
func (*NSMutableOrderedSet[ObjectType]) IntersectSet ¶
func (o *NSMutableOrderedSet[ObjectType]) IntersectSet(other *NSSet[ObjectType])
Removes from the receiving ordered set each object that isn’t a member of another set.
func (*NSMutableOrderedSet[ObjectType]) MinusOrderedSet ¶
func (o *NSMutableOrderedSet[ObjectType]) MinusOrderedSet(other *NSOrderedSet[ObjectType])
Removes each object in another given ordered set from the receiving mutable ordered set, if present.
func (*NSMutableOrderedSet[ObjectType]) MinusSet ¶
func (o *NSMutableOrderedSet[ObjectType]) MinusSet(other *NSSet[ObjectType])
Removes each object in another given set from the receiving mutable ordered set, if present.
func (*NSMutableOrderedSet[ObjectType]) MoveObjectsAtIndexesToIndex ¶
func (o *NSMutableOrderedSet[ObjectType]) MoveObjectsAtIndexesToIndex(indexes *NSIndexSet, idx uint)
Moves the objects at the specified indexes to the new location.
func (*NSMutableOrderedSet[ObjectType]) RemoveAllObjects ¶
func (o *NSMutableOrderedSet[ObjectType]) RemoveAllObjects()
Removes all the objects from the mutable ordered set.
func (*NSMutableOrderedSet[ObjectType]) RemoveObject ¶
func (o *NSMutableOrderedSet[ObjectType]) RemoveObject(object ObjectType)
Removes a given object from the mutable ordered set.
func (*NSMutableOrderedSet[ObjectType]) RemoveObjectAtIndex ¶
func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectAtIndex(idx uint)
Removes a the object at the specified index from the mutable ordered set.
func (*NSMutableOrderedSet[ObjectType]) RemoveObjectsAtIndexes ¶
func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectsAtIndexes(indexes *NSIndexSet)
Removes the objects at the specified indexes from the mutable ordered set.
func (*NSMutableOrderedSet[ObjectType]) RemoveObjectsInArray ¶
func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectsInArray(array *NSArray[ObjectType])
Removes the objects in the array from the mutable ordered set.
func (*NSMutableOrderedSet[ObjectType]) RemoveObjectsInRange ¶
func (o *NSMutableOrderedSet[ObjectType]) RemoveObjectsInRange(range_ NSRange)
Removes from the mutable ordered set each of the objects within a given range.
func (*NSMutableOrderedSet[ObjectType]) ReplaceObjectAtIndexWithObject ¶
func (o *NSMutableOrderedSet[ObjectType]) ReplaceObjectAtIndexWithObject(idx uint, object ObjectType)
Replaces the object at the specified index with the new object.
func (*NSMutableOrderedSet[ObjectType]) ReplaceObjectsAtIndexesWithObjects ¶
func (o *NSMutableOrderedSet[ObjectType]) ReplaceObjectsAtIndexesWithObjects(indexes *NSIndexSet, objects *NSArray[ObjectType])
Replaces the objects at the specified indexes with the new objects.
func (*NSMutableOrderedSet[ObjectType]) ReplaceObjectsInRangeWithObjectsCount ¶
func (o *NSMutableOrderedSet[ObjectType]) ReplaceObjectsInRangeWithObjectsCount(range_ NSRange, objects unsafe.Pointer, count uint)
Replaces the objects in the receiving mutable ordered set at the range with the specified number of objects from a given C array.
func (*NSMutableOrderedSet[ObjectType]) SetObjectAtIndex ¶
func (o *NSMutableOrderedSet[ObjectType]) SetObjectAtIndex(obj ObjectType, idx uint)
Appends or replaces the object at the specified index.
func (*NSMutableOrderedSet[ObjectType]) SetObjectAtIndexedSubscript ¶
func (o *NSMutableOrderedSet[ObjectType]) SetObjectAtIndexedSubscript(obj ObjectType, idx uint)
Replaces the given object at the specified index of the mutable ordered set.
func (*NSMutableOrderedSet[ObjectType]) SortRangeOptionsUsingComparator ¶
func (o *NSMutableOrderedSet[ObjectType]) SortRangeOptionsUsingComparator(range_ NSRange, opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult)
Sorts the specified range of the mutable ordered set using the specified options and the comparison method specified by a given comparator block.
func (*NSMutableOrderedSet[ObjectType]) SortUsingComparator ¶
func (o *NSMutableOrderedSet[ObjectType]) SortUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult)
Sorts the mutable ordered set using the comparison method specified by the comparator block.
func (*NSMutableOrderedSet[ObjectType]) SortUsingDescriptors ¶
func (o *NSMutableOrderedSet[ObjectType]) SortUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor])
Sorts the receiving ordered set using a given array of sort descriptors.
func (*NSMutableOrderedSet[ObjectType]) SortWithOptionsUsingComparator ¶
func (o *NSMutableOrderedSet[ObjectType]) SortWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult)
Sorts the mutable ordered set using the specified options and the comparison method specified by a given comparator block.
func (*NSMutableOrderedSet[ObjectType]) UnionOrderedSet ¶
func (o *NSMutableOrderedSet[ObjectType]) UnionOrderedSet(other *NSOrderedSet[ObjectType])
Adds each object in another given ordered set to the receiving mutable ordered set, if not present.
func (*NSMutableOrderedSet[ObjectType]) UnionSet ¶
func (o *NSMutableOrderedSet[ObjectType]) UnionSet(other *NSSet[ObjectType])
Adds each object in another given set to the receiving mutable ordered set, if not present.
type NSMutableSet ¶
A dynamic unordered collection of unique objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmutableset
func NSMutableSetFromID ¶
func NSMutableSetFromID[ObjectType purego.AnyObject](id objc.ID) *NSMutableSet[ObjectType]
func NSMutableSetSetWithCapacity ¶
func NSMutableSetSetWithCapacity(numItems uint) *NSMutableSet[objc.ID]
Creates and returns a mutable set with a given initial capacity.
func (*NSMutableSet[ObjectType]) AddObject ¶
func (o *NSMutableSet[ObjectType]) AddObject(object ObjectType)
Adds a given object to the set, if it is not already a member.
func (*NSMutableSet[ObjectType]) AddObjectsFromArray ¶
func (o *NSMutableSet[ObjectType]) AddObjectsFromArray(array *NSArray[ObjectType])
Adds to the set each object contained in a given array that is not already a member.
func (*NSMutableSet[ObjectType]) FilterUsingPredicate ¶
func (o *NSMutableSet[ObjectType]) FilterUsingPredicate(predicate *NSPredicate)
Evaluates a given predicate against the set’s content and removes from the set those objects for which the predicate returns false.
func (*NSMutableSet[ObjectType]) Init ¶
func (o *NSMutableSet[ObjectType]) Init() *NSMutableSet[ObjectType]
Initializes a newly allocated set.
func (*NSMutableSet[ObjectType]) InitWithCapacity ¶
func (o *NSMutableSet[ObjectType]) InitWithCapacity(numItems uint) *NSMutableSet[ObjectType]
Returns an initialized mutable set with a given initial capacity.
func (*NSMutableSet[ObjectType]) InitWithCoder ¶
func (o *NSMutableSet[ObjectType]) InitWithCoder(coder *NSCoder) *NSMutableSet[ObjectType]
func (*NSMutableSet[ObjectType]) IntersectSet ¶
func (o *NSMutableSet[ObjectType]) IntersectSet(otherSet *NSSet[ObjectType])
Removes from the receiving set each object that isn’t a member of another given set.
func (*NSMutableSet[ObjectType]) MinusSet ¶
func (o *NSMutableSet[ObjectType]) MinusSet(otherSet *NSSet[ObjectType])
Removes each object in another given set from the receiving set, if present.
func (*NSMutableSet[ObjectType]) RemoveAllObjects ¶
func (o *NSMutableSet[ObjectType]) RemoveAllObjects()
Empties the set of all of its members.
func (*NSMutableSet[ObjectType]) RemoveObject ¶
func (o *NSMutableSet[ObjectType]) RemoveObject(object ObjectType)
Removes a given object from the set.
func (*NSMutableSet[ObjectType]) SetSet ¶
func (o *NSMutableSet[ObjectType]) SetSet(otherSet *NSSet[ObjectType])
Empties the receiving set, then adds each object contained in another given set.
func (*NSMutableSet[ObjectType]) UnionSet ¶
func (o *NSMutableSet[ObjectType]) UnionSet(otherSet *NSSet[ObjectType])
Adds each object in another given set to the receiving set, if not present.
type NSMutableString ¶
type NSMutableString struct {
NSString
}
A dynamic plain-text Unicode string object.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmutablestring
func NSMutableStringFromID ¶
func NSMutableStringFromID(id objc.ID) *NSMutableString
func NSMutableStringStringWithCapacity ¶
func NSMutableStringStringWithCapacity(capacity uint) *NSMutableString
Returns an empty NSMutableString object with initial storage for a given number of characters.
func (*NSMutableString) AppendFormat ¶
func (o *NSMutableString) AppendFormat(format *NSString)
Adds a constructed string to the receiver.
func (*NSMutableString) AppendString ¶
func (o *NSMutableString) AppendString(aString *NSString)
Adds to the end of the receiver the characters of a given string.
func (*NSMutableString) ApplyTransformReverseRangeUpdatedRange ¶
func (o *NSMutableString) ApplyTransformReverseRangeUpdatedRange(transform *NSString, reverse bool, range_ NSRange, resultingRange *NSRange) bool
Transliterates the receiver by applying a specified ICU string transform.
func (*NSMutableString) DeleteCharactersInRange ¶
func (o *NSMutableString) DeleteCharactersInRange(range_ NSRange)
Removes from the receiver the characters in a given range.
func (*NSMutableString) InitWithCapacity ¶
func (o *NSMutableString) InitWithCapacity(capacity uint) *NSMutableString
Returns an NSMutableString object initialized with initial storage for a given number of characters,
func (*NSMutableString) InsertStringAtIndex ¶
func (o *NSMutableString) InsertStringAtIndex(aString *NSString, loc uint)
Inserts into the receiver the characters of a given string at a given location.
func (*NSMutableString) ReplaceCharactersInRangeWithString ¶
func (o *NSMutableString) ReplaceCharactersInRangeWithString(range_ NSRange, aString *NSString)
Replaces the characters from range with those in aString.
func (*NSMutableString) ReplaceOccurrencesOfStringWithStringOptionsRange ¶
func (o *NSMutableString) ReplaceOccurrencesOfStringWithStringOptionsRange(target *NSString, replacement *NSString, options NSStringCompareOptions, searchRange NSRange) uint
Replaces all occurrences of a given string in a given range with another given string, returning the number of replacements.
func (*NSMutableString) SetString ¶
func (o *NSMutableString) SetString(aString *NSString)
Replaces the characters of the receiver with those in a given string.
type NSMutableURLRequest ¶
type NSMutableURLRequest struct {
NSURLRequest
}
A mutable URL load request that is independent of protocol or URL scheme.
Apple documentation: https://developer.apple.com/documentation/foundation/nsmutableurlrequest
func NSMutableURLRequestFromID ¶
func NSMutableURLRequestFromID(id objc.ID) *NSMutableURLRequest
func (*NSMutableURLRequest) AddValueForHTTPHeaderField ¶
func (o *NSMutableURLRequest) AddValueForHTTPHeaderField(value *NSString, field *NSString)
Adds a value to the header field.
func (*NSMutableURLRequest) SetAllHTTPHeaderFields ¶
func (o *NSMutableURLRequest) SetAllHTTPHeaderFields(allHTTPHeaderFields *NSDictionary[*NSString, *NSString])
func (*NSMutableURLRequest) SetAllowsCellularAccess ¶
func (o *NSMutableURLRequest) SetAllowsCellularAccess(allowsCellularAccess bool)
func (*NSMutableURLRequest) SetAllowsConstrainedNetworkAccess ¶
func (o *NSMutableURLRequest) SetAllowsConstrainedNetworkAccess(allowsConstrainedNetworkAccess bool)
func (*NSMutableURLRequest) SetAllowsExpensiveNetworkAccess ¶
func (o *NSMutableURLRequest) SetAllowsExpensiveNetworkAccess(allowsExpensiveNetworkAccess bool)
func (*NSMutableURLRequest) SetAllowsPersistentDNS ¶
func (o *NSMutableURLRequest) SetAllowsPersistentDNS(allowsPersistentDNS bool)
func (*NSMutableURLRequest) SetAllowsUltraConstrainedNetworkAccess ¶
func (o *NSMutableURLRequest) SetAllowsUltraConstrainedNetworkAccess(allowsUltraConstrainedNetworkAccess bool)
func (*NSMutableURLRequest) SetAssumesHTTP3Capable ¶
func (o *NSMutableURLRequest) SetAssumesHTTP3Capable(assumesHTTP3Capable bool)
func (*NSMutableURLRequest) SetAttribution ¶
func (o *NSMutableURLRequest) SetAttribution(attribution NSURLRequestAttribution)
func (*NSMutableURLRequest) SetCachePolicy ¶
func (o *NSMutableURLRequest) SetCachePolicy(cachePolicy NSURLRequestCachePolicy)
func (*NSMutableURLRequest) SetCookiePartitionIdentifier ¶
func (o *NSMutableURLRequest) SetCookiePartitionIdentifier(cookiePartitionIdentifier *NSString)
func (*NSMutableURLRequest) SetHTTPBody ¶
func (o *NSMutableURLRequest) SetHTTPBody(hTTPBody *NSData)
func (*NSMutableURLRequest) SetHTTPBodyStream ¶
func (o *NSMutableURLRequest) SetHTTPBodyStream(hTTPBodyStream *NSInputStream)
func (*NSMutableURLRequest) SetHTTPMethod ¶
func (o *NSMutableURLRequest) SetHTTPMethod(hTTPMethod *NSString)
func (*NSMutableURLRequest) SetHTTPShouldHandleCookies ¶
func (o *NSMutableURLRequest) SetHTTPShouldHandleCookies(hTTPShouldHandleCookies bool)
func (*NSMutableURLRequest) SetHTTPShouldUsePipelining
deprecated
func (o *NSMutableURLRequest) SetHTTPShouldUsePipelining(hTTPShouldUsePipelining bool)
Deprecated: Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead
func (*NSMutableURLRequest) SetMainDocumentURL ¶
func (o *NSMutableURLRequest) SetMainDocumentURL(mainDocumentURL *NSURL)
func (*NSMutableURLRequest) SetNetworkServiceType ¶
func (o *NSMutableURLRequest) SetNetworkServiceType(networkServiceType NSURLRequestNetworkServiceType)
func (*NSMutableURLRequest) SetRequiresDNSSECValidation ¶
func (o *NSMutableURLRequest) SetRequiresDNSSECValidation(requiresDNSSECValidation bool)
func (*NSMutableURLRequest) SetTimeoutInterval ¶
func (o *NSMutableURLRequest) SetTimeoutInterval(timeoutInterval float64)
func (*NSMutableURLRequest) SetURL ¶
func (o *NSMutableURLRequest) SetURL(uRL *NSURL)
func (*NSMutableURLRequest) SetValueForHTTPHeaderField ¶
func (o *NSMutableURLRequest) SetValueForHTTPHeaderField(value *NSString, field *NSString)
Sets a value for the header field.
type NSNameSpecifier ¶
type NSNameSpecifier struct {
NSScriptObjectSpecifier
}
A specifier for an object in a collection (or container) by name.
Apple documentation: https://developer.apple.com/documentation/foundation/nsnamespecifier
func NSNameSpecifierFromID ¶
func NSNameSpecifierFromID(id objc.ID) *NSNameSpecifier
func (*NSNameSpecifier) InitWithCoder ¶
func (o *NSNameSpecifier) InitWithCoder(inCoder *NSCoder) *NSNameSpecifier
func (*NSNameSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyName ¶
func (o *NSNameSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyName(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString, name *NSString) *NSNameSpecifier
Invokes the super class’s initWithContainerClassDescription:containerSpecifier:key: method and then sets the name instance variable to name.
func (*NSNameSpecifier) Name ¶
func (o *NSNameSpecifier) Name() *NSString
func (*NSNameSpecifier) SetName ¶
func (o *NSNameSpecifier) SetName(name *NSString)
type NSNetService ¶
type NSNetService struct {
NSObject
}
A network service that broadcasts its availability using multicast DNS.
Apple documentation: https://developer.apple.com/documentation/foundation/nsnetservice Deprecated: Use nw_connection_t or nw_listener_t in Network framework instead
func NSNetServiceFromID ¶
func NSNetServiceFromID(id objc.ID) *NSNetService
func (*NSNetService) Addresses ¶
func (o *NSNetService) Addresses() *NSArray[*NSData]
func (*NSNetService) Delegate ¶
func (o *NSNetService) Delegate() NSNetServiceDelegate
func (*NSNetService) Domain ¶
func (o *NSNetService) Domain() *NSString
func (*NSNetService) GetInputStreamOutputStream ¶
func (o *NSNetService) GetInputStreamOutputStream(inputStream *NSInputStream, outputStream *NSOutputStream) bool
func (*NSNetService) HostName ¶
func (o *NSNetService) HostName() *NSString
func (*NSNetService) IncludesPeerToPeer ¶
func (o *NSNetService) IncludesPeerToPeer() bool
func (*NSNetService) InitWithDomainTypeName ¶
func (o *NSNetService) InitWithDomainTypeName(domain *NSString, type_ *NSString, name *NSString) *NSNetService
func (*NSNetService) InitWithDomainTypeNamePort ¶
func (o *NSNetService) InitWithDomainTypeNamePort(domain *NSString, type_ *NSString, name *NSString, port int) *NSNetService
func (*NSNetService) Name ¶
func (o *NSNetService) Name() *NSString
func (*NSNetService) Port ¶
func (o *NSNetService) Port() int
func (*NSNetService) Publish ¶
func (o *NSNetService) Publish()
func (*NSNetService) PublishWithOptions ¶
func (o *NSNetService) PublishWithOptions(options NSNetServiceOptions)
func (*NSNetService) RemoveFromRunLoopForMode ¶
func (o *NSNetService) RemoveFromRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
func (*NSNetService) Resolve
deprecated
func (o *NSNetService) Resolve()
Deprecated: Not supported
func (*NSNetService) ResolveWithTimeout ¶
func (o *NSNetService) ResolveWithTimeout(timeout float64)
func (*NSNetService) ScheduleInRunLoopForMode ¶
func (o *NSNetService) ScheduleInRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
func (*NSNetService) SetDelegate ¶
func (o *NSNetService) SetDelegate(delegate NSNetServiceDelegate)
func (*NSNetService) SetIncludesPeerToPeer ¶
func (o *NSNetService) SetIncludesPeerToPeer(includesPeerToPeer bool)
func (*NSNetService) SetTXTRecordData ¶
func (o *NSNetService) SetTXTRecordData(recordData *NSData) bool
func (*NSNetService) StartMonitoring ¶
func (o *NSNetService) StartMonitoring()
func (*NSNetService) Stop
deprecated
func (o *NSNetService) Stop()
Deprecated: Not supported
func (*NSNetService) StopMonitoring ¶
func (o *NSNetService) StopMonitoring()
func (*NSNetService) TXTRecordData ¶
func (o *NSNetService) TXTRecordData() *NSData
func (*NSNetService) Type ¶
func (o *NSNetService) Type() *NSString
type NSNetServiceBrowser ¶
type NSNetServiceBrowser struct {
NSObject
}
A network service browser that finds published services on a network using multicast DNS.
Apple documentation: https://developer.apple.com/documentation/foundation/nsnetservicebrowser Deprecated: Use nw_browser_t in Network framework instead
func NSNetServiceBrowserFromID ¶
func NSNetServiceBrowserFromID(id objc.ID) *NSNetServiceBrowser
func (*NSNetServiceBrowser) Delegate ¶
func (o *NSNetServiceBrowser) Delegate() NSNetServiceBrowserDelegate
func (*NSNetServiceBrowser) IncludesPeerToPeer ¶
func (o *NSNetServiceBrowser) IncludesPeerToPeer() bool
func (*NSNetServiceBrowser) Init ¶
func (o *NSNetServiceBrowser) Init() *NSNetServiceBrowser
func (*NSNetServiceBrowser) RemoveFromRunLoopForMode ¶
func (o *NSNetServiceBrowser) RemoveFromRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
func (*NSNetServiceBrowser) ScheduleInRunLoopForMode ¶
func (o *NSNetServiceBrowser) ScheduleInRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
func (*NSNetServiceBrowser) SearchForBrowsableDomains ¶
func (o *NSNetServiceBrowser) SearchForBrowsableDomains()
func (*NSNetServiceBrowser) SearchForRegistrationDomains ¶
func (o *NSNetServiceBrowser) SearchForRegistrationDomains()
func (*NSNetServiceBrowser) SearchForServicesOfTypeInDomain ¶
func (o *NSNetServiceBrowser) SearchForServicesOfTypeInDomain(type_ *NSString, domainString *NSString)
func (*NSNetServiceBrowser) SetDelegate ¶
func (o *NSNetServiceBrowser) SetDelegate(delegate NSNetServiceBrowserDelegate)
func (*NSNetServiceBrowser) SetIncludesPeerToPeer ¶
func (o *NSNetServiceBrowser) SetIncludesPeerToPeer(includesPeerToPeer bool)
func (*NSNetServiceBrowser) Stop ¶
func (o *NSNetServiceBrowser) Stop()
type NSNetServiceBrowserDelegate ¶
type NSNetServiceBrowserDelegate interface {
}
NSNetServiceBrowserDelegate wraps the ObjC protocol NSNetServiceBrowserDelegate.
type NSNetServiceDelegate ¶
type NSNetServiceDelegate interface {
}
NSNetServiceDelegate wraps the ObjC protocol NSNetServiceDelegate.
type NSNetServiceOptions ¶
type NSNetServiceOptions uint64
These constants specify options for a network service.
const ( NSNetServiceNoAutoRename NSNetServiceOptions = 1 NSNetServiceListenForConnections NSNetServiceOptions = 2 )
func (NSNetServiceOptions) String ¶
func (e NSNetServiceOptions) String() string
type NSNetServicesError ¶
type NSNetServicesError int64
These constants identify errors that can occur when accessing net services.
const ( NSNetServicesUnknownError NSNetServicesError = -72000 NSNetServicesCollisionError NSNetServicesError = -72001 NSNetServicesNotFoundError NSNetServicesError = -72002 NSNetServicesActivityInProgress NSNetServicesError = -72003 NSNetServicesBadArgumentError NSNetServicesError = -72004 NSNetServicesCancelledError NSNetServicesError = -72005 NSNetServicesInvalidError NSNetServicesError = -72006 NSNetServicesTimeoutError NSNetServicesError = -72007 NSNetServicesMissingRequiredConfigurationError NSNetServicesError = -72008 )
func (NSNetServicesError) String ¶
func (e NSNetServicesError) String() string
type NSNotification ¶
type NSNotification struct {
NSObject
}
A container for information broadcast through a notification center to all registered observers.
Apple documentation: https://developer.apple.com/documentation/foundation/nsnotification
func NSNotificationFromID ¶
func NSNotificationFromID(id objc.ID) *NSNotification
func NSNotificationNotificationWithNameObject ¶
func NSNotificationNotificationWithNameObject(aName *NSString, anObject objc.ID) *NSNotification
Returns a new notification object with a specified name and object.
func NSNotificationNotificationWithNameObjectUserInfo ¶
func NSNotificationNotificationWithNameObjectUserInfo(aName *NSString, anObject objc.ID, aUserInfo *NSDictionary[objc.ID, objc.ID]) *NSNotification
Returns a notification object with a specified name, object, and user information.
func (*NSNotification) InitWithCoder ¶
func (o *NSNotification) InitWithCoder(coder *NSCoder) *NSNotification
Initializes a notification with the data from an unarchiver.
func (*NSNotification) InitWithNameObjectUserInfo ¶
func (o *NSNotification) InitWithNameObjectUserInfo(name *NSString, object objc.ID, userInfo *NSDictionary[objc.ID, objc.ID]) *NSNotification
Initializes a notification with a specified name, object, and user information.
func (*NSNotification) Name ¶
func (o *NSNotification) Name() *NSString
func (*NSNotification) Object ¶
func (o *NSNotification) Object() objc.ID
func (*NSNotification) UserInfo ¶
func (o *NSNotification) UserInfo() *NSDictionary[objc.ID, objc.ID]
type NSNotificationCenter ¶
type NSNotificationCenter struct {
NSObject
}
A notification dispatch mechanism that enables the broadcast of information to registered observers.
Apple documentation: https://developer.apple.com/documentation/foundation/nsnotificationcenter
func NSNotificationCenterDefaultCenter ¶
func NSNotificationCenterDefaultCenter() *NSNotificationCenter
func NSNotificationCenterFromID ¶
func NSNotificationCenterFromID(id objc.ID) *NSNotificationCenter
func (*NSNotificationCenter) AddObserverForNameObjectQueueUsing ¶
func (o *NSNotificationCenter) AddObserverForNameObjectQueueUsing(name *NSString, obj objc.ID, queue *NSOperationQueue, block func(*NSNotification)) NSObjectProtocol
func (*NSNotificationCenter) AddObserverSelectorNameObject ¶
func (*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 ¶
type NSNotificationCoalescing ¶
type NSNotificationCoalescing uint64
The constants that specify how notifications are coalesced.
const ( NSNotificationNoCoalescing NSNotificationCoalescing = 0 NSNotificationCoalescingOnName NSNotificationCoalescing = 1 NSNotificationCoalescingOnSender NSNotificationCoalescing = 2 )
func (NSNotificationCoalescing) String ¶
func (e NSNotificationCoalescing) String() string
type NSNotificationQueue ¶
type NSNotificationQueue struct {
NSObject
}
A notification center buffer.
Apple documentation: https://developer.apple.com/documentation/foundation/nsnotificationqueue
func NSNotificationQueueDefaultQueue ¶
func NSNotificationQueueDefaultQueue() *NSNotificationQueue
func NSNotificationQueueFromID ¶
func NSNotificationQueueFromID(id objc.ID) *NSNotificationQueue
func (*NSNotificationQueue) DequeueNotificationsMatchingCoalesceMask ¶
func (o *NSNotificationQueue) DequeueNotificationsMatchingCoalesceMask(notification *NSNotification, coalesceMask uint)
func (*NSNotificationQueue) EnqueueNotificationPostingStyle ¶
func (o *NSNotificationQueue) EnqueueNotificationPostingStyle(notification *NSNotification, postingStyle NSPostingStyle)
func (*NSNotificationQueue) EnqueueNotificationPostingStyleCoalesceMaskForModes ¶
func (o *NSNotificationQueue) EnqueueNotificationPostingStyleCoalesceMaskForModes(notification *NSNotification, postingStyle NSPostingStyle, coalesceMask NSNotificationCoalescing, modes *NSArray[*NSString])
func (*NSNotificationQueue) InitWithNotificationCenter ¶
func (o *NSNotificationQueue) InitWithNotificationCenter(notificationCenter *NSNotificationCenter) *NSNotificationQueue
type NSNotificationSuspensionBehavior ¶
type NSNotificationSuspensionBehavior uint64
These constants specify the types of notification delivery suspension behaviors.
const ( NSNotificationSuspensionBehaviorDrop NSNotificationSuspensionBehavior = 1 NSNotificationSuspensionBehaviorCoalesce NSNotificationSuspensionBehavior = 2 NSNotificationSuspensionBehaviorHold NSNotificationSuspensionBehavior = 3 NSNotificationSuspensionBehaviorDeliverImmediately NSNotificationSuspensionBehavior = 4 )
func (NSNotificationSuspensionBehavior) String ¶
func (e NSNotificationSuspensionBehavior) String() string
type NSNull ¶
type NSNull struct {
NSObject
}
A singleton object used to represent null values in collection objects that don’t allow nil values.
Apple documentation: https://developer.apple.com/documentation/foundation/nsnull
func NSNullFromID ¶
type NSNumber ¶
type NSNumber struct {
NSValue
}
An object wrapper for primitive scalar numeric values.
Apple documentation: https://developer.apple.com/documentation/foundation/nsnumber
func NSNumberFromID ¶
func NSNumberNumberWithBool ¶
Creates and returns an NSNumber object containing a given value, treating it as a BOOL.
func NSNumberNumberWithChar ¶
Creates and returns an NSNumber object containing a given value, treating it as a signed char.
func NSNumberNumberWithDouble ¶
Creates and returns an NSNumber object containing a given value, treating it as a double.
func NSNumberNumberWithFloat ¶
Creates and returns an NSNumber object containing a given value, treating it as a float.
func NSNumberNumberWithInt ¶
Creates and returns an NSNumber object containing a given value, treating it as a signed int.
func NSNumberNumberWithInteger ¶
Creates and returns an NSNumber object containing a given value, treating it as an NSInteger.
func NSNumberNumberWithLong ¶
Creates and returns an NSNumber object containing a given value, treating it as a signed long.
func NSNumberNumberWithLongLong ¶
Creates and returns an NSNumber object containing a given value, treating it as a signed long long.
func NSNumberNumberWithShort ¶
Creates and returns an NSNumber object containing value, treating it as a signed short.
func NSNumberNumberWithUnsignedChar ¶
Creates and returns an NSNumber object containing a given value, treating it as an unsigned char.
func NSNumberNumberWithUnsignedInt ¶
Creates and returns an NSNumber object containing a given value, treating it as an unsigned int.
func NSNumberNumberWithUnsignedInteger ¶
Creates and returns an NSNumber object containing a given value, treating it as an NSUInteger.
func NSNumberNumberWithUnsignedLong ¶
Creates and returns an NSNumber object containing a given value, treating it as an unsigned long.
func NSNumberNumberWithUnsignedLongLong ¶
Creates and returns an NSNumber object containing a given value, treating it as an unsigned long long.
func NSNumberNumberWithUnsignedShort ¶
Creates and returns an NSNumber object containing a given value, treating it as an unsigned short.
func (*NSNumber) Compare ¶
func (o *NSNumber) Compare(otherNumber *NSNumber) NSComparisonResult
Returns an NSComparisonResult value that indicates whether the number object’s value is greater than, equal to, or less than a given number.
func (*NSNumber) DecimalValue ¶
func (*NSNumber) DescriptionWithLocale ¶
Returns a string that represents the contents of the number object for a given locale.
func (*NSNumber) DoubleValue ¶
func (*NSNumber) FloatValue ¶
func (*NSNumber) InitWithBool ¶
Returns an NSNumber object initialized to contain a given value, treated as a BOOL.
func (*NSNumber) InitWithChar ¶
Returns an NSNumber object initialized to contain a given value, treated as a signed char.
func (*NSNumber) InitWithCoder ¶
func (*NSNumber) InitWithDouble ¶
Returns an NSNumber object initialized to contain value, treated as a double.
func (*NSNumber) InitWithFloat ¶
Returns an NSNumber object initialized to contain a given value, treated as a float.
func (*NSNumber) InitWithInt ¶
Returns an NSNumber object initialized to contain a given value, treated as a signed int.
func (*NSNumber) InitWithInteger ¶
Returns an NSNumber object initialized to contain a given value, treated as an NSInteger.
func (*NSNumber) InitWithLong ¶
Returns an NSNumber object initialized to contain a given value, treated as a signed long.
func (*NSNumber) InitWithLongLong ¶
Returns an NSNumber object initialized to contain value, treated as a signed long long.
func (*NSNumber) InitWithShort ¶
Returns an NSNumber object initialized to contain a given value, treated as a signed short.
func (*NSNumber) InitWithUnsignedChar ¶
Returns an NSNumber object initialized to contain a given value, treated as an unsigned char.
func (*NSNumber) InitWithUnsignedInt ¶
Returns an NSNumber object initialized to contain a given value, treated as an unsigned int.
func (*NSNumber) InitWithUnsignedInteger ¶
Returns an NSNumber object initialized to contain a given value, treated as an NSUInteger.
func (*NSNumber) InitWithUnsignedLong ¶
Returns an NSNumber object initialized to contain a given value, treated as an unsigned long.
func (*NSNumber) InitWithUnsignedLongLong ¶
Returns an NSNumber object initialized to contain a given value, treated as an unsigned long long.
func (*NSNumber) InitWithUnsignedShort ¶
Returns an NSNumber object initialized to contain a given value, treated as an unsigned short.
func (*NSNumber) IntegerValue ¶
func (*NSNumber) IsEqualToNumber ¶
Returns a Boolean value that indicates whether the number object’s value and a given number are equal.
func (*NSNumber) LongLongValue ¶
func (*NSNumber) ShortValue ¶
func (*NSNumber) StringValue ¶
func (*NSNumber) UnsignedCharValue ¶
func (*NSNumber) UnsignedIntValue ¶
func (*NSNumber) UnsignedIntegerValue ¶
func (*NSNumber) UnsignedLongLongValue ¶
func (*NSNumber) UnsignedLongValue ¶
func (*NSNumber) UnsignedShortValue ¶
type NSNumberFormatter ¶
type NSNumberFormatter struct {
NSFormatter
}
A formatter that converts between numeric values and their textual representations.
Apple documentation: https://developer.apple.com/documentation/foundation/nsnumberformatter
func NSNumberFormatterFromID ¶
func NSNumberFormatterFromID(id objc.ID) *NSNumberFormatter
func (*NSNumberFormatter) AllowsFloats ¶
func (o *NSNumberFormatter) AllowsFloats() bool
func (*NSNumberFormatter) AlwaysShowsDecimalSeparator ¶
func (o *NSNumberFormatter) AlwaysShowsDecimalSeparator() bool
func (*NSNumberFormatter) AttributedStringForNil ¶
func (o *NSNumberFormatter) AttributedStringForNil() *NSAttributedString
func (*NSNumberFormatter) AttributedStringForNotANumber ¶
func (o *NSNumberFormatter) AttributedStringForNotANumber() *NSAttributedString
func (*NSNumberFormatter) AttributedStringForZero ¶
func (o *NSNumberFormatter) AttributedStringForZero() *NSAttributedString
func (*NSNumberFormatter) CurrencyCode ¶
func (o *NSNumberFormatter) CurrencyCode() *NSString
func (*NSNumberFormatter) CurrencyDecimalSeparator ¶
func (o *NSNumberFormatter) CurrencyDecimalSeparator() *NSString
func (*NSNumberFormatter) CurrencyGroupingSeparator ¶
func (o *NSNumberFormatter) CurrencyGroupingSeparator() *NSString
func (*NSNumberFormatter) CurrencySymbol ¶
func (o *NSNumberFormatter) CurrencySymbol() *NSString
func (*NSNumberFormatter) DecimalSeparator ¶
func (o *NSNumberFormatter) DecimalSeparator() *NSString
func (*NSNumberFormatter) ExponentSymbol ¶
func (o *NSNumberFormatter) ExponentSymbol() *NSString
func (*NSNumberFormatter) Format ¶
func (o *NSNumberFormatter) Format() *NSString
func (*NSNumberFormatter) FormatWidth ¶
func (o *NSNumberFormatter) FormatWidth() uint
func (*NSNumberFormatter) FormatterBehavior ¶
func (o *NSNumberFormatter) FormatterBehavior() NSNumberFormatterBehavior
func (*NSNumberFormatter) FormattingContext ¶
func (o *NSNumberFormatter) FormattingContext() NSFormattingContext
func (*NSNumberFormatter) GeneratesDecimalNumbers ¶
func (o *NSNumberFormatter) GeneratesDecimalNumbers() bool
func (*NSNumberFormatter) GetObjectValueForStringRangeError ¶
func (o *NSNumberFormatter) GetObjectValueForStringRangeError(obj **ObjcObject, string_ *NSString, rangep *NSRange) (bool, error)
func (*NSNumberFormatter) GroupingSeparator ¶
func (o *NSNumberFormatter) GroupingSeparator() *NSString
func (*NSNumberFormatter) GroupingSize ¶
func (o *NSNumberFormatter) GroupingSize() uint
func (*NSNumberFormatter) HasThousandSeparators ¶
func (o *NSNumberFormatter) HasThousandSeparators() bool
func (*NSNumberFormatter) InternationalCurrencySymbol ¶
func (o *NSNumberFormatter) InternationalCurrencySymbol() *NSString
func (*NSNumberFormatter) IsLenient ¶
func (o *NSNumberFormatter) IsLenient() bool
func (*NSNumberFormatter) IsPartialStringValidationEnabled ¶
func (o *NSNumberFormatter) IsPartialStringValidationEnabled() bool
func (*NSNumberFormatter) Locale ¶
func (o *NSNumberFormatter) Locale() *NSLocale
func (*NSNumberFormatter) LocalizesFormat ¶
func (o *NSNumberFormatter) LocalizesFormat() bool
func (*NSNumberFormatter) Maximum ¶
func (o *NSNumberFormatter) Maximum() *NSNumber
func (*NSNumberFormatter) MaximumFractionDigits ¶
func (o *NSNumberFormatter) MaximumFractionDigits() uint
func (*NSNumberFormatter) MaximumIntegerDigits ¶
func (o *NSNumberFormatter) MaximumIntegerDigits() uint
func (*NSNumberFormatter) MaximumSignificantDigits ¶
func (o *NSNumberFormatter) MaximumSignificantDigits() uint
func (*NSNumberFormatter) Minimum ¶
func (o *NSNumberFormatter) Minimum() *NSNumber
func (*NSNumberFormatter) MinimumFractionDigits ¶
func (o *NSNumberFormatter) MinimumFractionDigits() uint
func (*NSNumberFormatter) MinimumGroupingDigits ¶
func (o *NSNumberFormatter) MinimumGroupingDigits() int
func (*NSNumberFormatter) MinimumIntegerDigits ¶
func (o *NSNumberFormatter) MinimumIntegerDigits() uint
func (*NSNumberFormatter) MinimumSignificantDigits ¶
func (o *NSNumberFormatter) MinimumSignificantDigits() uint
func (*NSNumberFormatter) MinusSign ¶
func (o *NSNumberFormatter) MinusSign() *NSString
func (*NSNumberFormatter) Multiplier ¶
func (o *NSNumberFormatter) Multiplier() *NSNumber
func (*NSNumberFormatter) NegativeFormat ¶
func (o *NSNumberFormatter) NegativeFormat() *NSString
func (*NSNumberFormatter) NegativeInfinitySymbol ¶
func (o *NSNumberFormatter) NegativeInfinitySymbol() *NSString
func (*NSNumberFormatter) NegativePrefix ¶
func (o *NSNumberFormatter) NegativePrefix() *NSString
func (*NSNumberFormatter) NegativeSuffix ¶
func (o *NSNumberFormatter) NegativeSuffix() *NSString
func (*NSNumberFormatter) NilSymbol ¶
func (o *NSNumberFormatter) NilSymbol() *NSString
func (*NSNumberFormatter) NotANumberSymbol ¶
func (o *NSNumberFormatter) NotANumberSymbol() *NSString
func (*NSNumberFormatter) NumberFromString ¶
func (o *NSNumberFormatter) NumberFromString(string_ *NSString) *NSNumber
func (*NSNumberFormatter) NumberStyle ¶
func (o *NSNumberFormatter) NumberStyle() NSNumberFormatterStyle
func (*NSNumberFormatter) PaddingCharacter ¶
func (o *NSNumberFormatter) PaddingCharacter() *NSString
func (*NSNumberFormatter) PaddingPosition ¶
func (o *NSNumberFormatter) PaddingPosition() NSNumberFormatterPadPosition
func (*NSNumberFormatter) PerMillSymbol ¶
func (o *NSNumberFormatter) PerMillSymbol() *NSString
func (*NSNumberFormatter) PercentSymbol ¶
func (o *NSNumberFormatter) PercentSymbol() *NSString
func (*NSNumberFormatter) PlusSign ¶
func (o *NSNumberFormatter) PlusSign() *NSString
func (*NSNumberFormatter) PositiveFormat ¶
func (o *NSNumberFormatter) PositiveFormat() *NSString
func (*NSNumberFormatter) PositiveInfinitySymbol ¶
func (o *NSNumberFormatter) PositiveInfinitySymbol() *NSString
func (*NSNumberFormatter) PositivePrefix ¶
func (o *NSNumberFormatter) PositivePrefix() *NSString
func (*NSNumberFormatter) PositiveSuffix ¶
func (o *NSNumberFormatter) PositiveSuffix() *NSString
func (*NSNumberFormatter) RoundingBehavior ¶
func (o *NSNumberFormatter) RoundingBehavior() *NSDecimalNumberHandler
func (*NSNumberFormatter) RoundingIncrement ¶
func (o *NSNumberFormatter) RoundingIncrement() *NSNumber
func (*NSNumberFormatter) RoundingMode ¶
func (o *NSNumberFormatter) RoundingMode() NSNumberFormatterRoundingMode
func (*NSNumberFormatter) SecondaryGroupingSize ¶
func (o *NSNumberFormatter) SecondaryGroupingSize() uint
func (*NSNumberFormatter) SetAllowsFloats ¶
func (o *NSNumberFormatter) SetAllowsFloats(allowsFloats bool)
func (*NSNumberFormatter) SetAlwaysShowsDecimalSeparator ¶
func (o *NSNumberFormatter) SetAlwaysShowsDecimalSeparator(alwaysShowsDecimalSeparator bool)
func (*NSNumberFormatter) SetAttributedStringForNil ¶
func (o *NSNumberFormatter) SetAttributedStringForNil(attributedStringForNil *NSAttributedString)
func (*NSNumberFormatter) SetAttributedStringForNotANumber ¶
func (o *NSNumberFormatter) SetAttributedStringForNotANumber(attributedStringForNotANumber *NSAttributedString)
func (*NSNumberFormatter) SetAttributedStringForZero ¶
func (o *NSNumberFormatter) SetAttributedStringForZero(attributedStringForZero *NSAttributedString)
func (*NSNumberFormatter) SetCurrencyCode ¶
func (o *NSNumberFormatter) SetCurrencyCode(currencyCode *NSString)
func (*NSNumberFormatter) SetCurrencyDecimalSeparator ¶
func (o *NSNumberFormatter) SetCurrencyDecimalSeparator(currencyDecimalSeparator *NSString)
func (*NSNumberFormatter) SetCurrencyGroupingSeparator ¶
func (o *NSNumberFormatter) SetCurrencyGroupingSeparator(currencyGroupingSeparator *NSString)
func (*NSNumberFormatter) SetCurrencySymbol ¶
func (o *NSNumberFormatter) SetCurrencySymbol(currencySymbol *NSString)
func (*NSNumberFormatter) SetDecimalSeparator ¶
func (o *NSNumberFormatter) SetDecimalSeparator(decimalSeparator *NSString)
func (*NSNumberFormatter) SetExponentSymbol ¶
func (o *NSNumberFormatter) SetExponentSymbol(exponentSymbol *NSString)
func (*NSNumberFormatter) SetFormat ¶
func (o *NSNumberFormatter) SetFormat(format *NSString)
func (*NSNumberFormatter) SetFormatWidth ¶
func (o *NSNumberFormatter) SetFormatWidth(formatWidth uint)
func (*NSNumberFormatter) SetFormatterBehavior ¶
func (o *NSNumberFormatter) SetFormatterBehavior(formatterBehavior NSNumberFormatterBehavior)
func (*NSNumberFormatter) SetFormattingContext ¶
func (o *NSNumberFormatter) SetFormattingContext(formattingContext NSFormattingContext)
func (*NSNumberFormatter) SetGeneratesDecimalNumbers ¶
func (o *NSNumberFormatter) SetGeneratesDecimalNumbers(generatesDecimalNumbers bool)
func (*NSNumberFormatter) SetGroupingSeparator ¶
func (o *NSNumberFormatter) SetGroupingSeparator(groupingSeparator *NSString)
func (*NSNumberFormatter) SetGroupingSize ¶
func (o *NSNumberFormatter) SetGroupingSize(groupingSize uint)
func (*NSNumberFormatter) SetHasThousandSeparators ¶
func (o *NSNumberFormatter) SetHasThousandSeparators(hasThousandSeparators bool)
func (*NSNumberFormatter) SetInternationalCurrencySymbol ¶
func (o *NSNumberFormatter) SetInternationalCurrencySymbol(internationalCurrencySymbol *NSString)
func (*NSNumberFormatter) SetLenient ¶
func (o *NSNumberFormatter) SetLenient(lenient bool)
func (*NSNumberFormatter) SetLocale ¶
func (o *NSNumberFormatter) SetLocale(locale *NSLocale)
func (*NSNumberFormatter) SetLocalizesFormat ¶
func (o *NSNumberFormatter) SetLocalizesFormat(localizesFormat bool)
func (*NSNumberFormatter) SetMaximum ¶
func (o *NSNumberFormatter) SetMaximum(maximum *NSNumber)
func (*NSNumberFormatter) SetMaximumFractionDigits ¶
func (o *NSNumberFormatter) SetMaximumFractionDigits(maximumFractionDigits uint)
func (*NSNumberFormatter) SetMaximumIntegerDigits ¶
func (o *NSNumberFormatter) SetMaximumIntegerDigits(maximumIntegerDigits uint)
func (*NSNumberFormatter) SetMaximumSignificantDigits ¶
func (o *NSNumberFormatter) SetMaximumSignificantDigits(maximumSignificantDigits uint)
func (*NSNumberFormatter) SetMinimum ¶
func (o *NSNumberFormatter) SetMinimum(minimum *NSNumber)
func (*NSNumberFormatter) SetMinimumFractionDigits ¶
func (o *NSNumberFormatter) SetMinimumFractionDigits(minimumFractionDigits uint)
func (*NSNumberFormatter) SetMinimumGroupingDigits ¶
func (o *NSNumberFormatter) SetMinimumGroupingDigits(minimumGroupingDigits int)
func (*NSNumberFormatter) SetMinimumIntegerDigits ¶
func (o *NSNumberFormatter) SetMinimumIntegerDigits(minimumIntegerDigits uint)
func (*NSNumberFormatter) SetMinimumSignificantDigits ¶
func (o *NSNumberFormatter) SetMinimumSignificantDigits(minimumSignificantDigits uint)
func (*NSNumberFormatter) SetMinusSign ¶
func (o *NSNumberFormatter) SetMinusSign(minusSign *NSString)
func (*NSNumberFormatter) SetMultiplier ¶
func (o *NSNumberFormatter) SetMultiplier(multiplier *NSNumber)
func (*NSNumberFormatter) SetNegativeFormat ¶
func (o *NSNumberFormatter) SetNegativeFormat(negativeFormat *NSString)
func (*NSNumberFormatter) SetNegativeInfinitySymbol ¶
func (o *NSNumberFormatter) SetNegativeInfinitySymbol(negativeInfinitySymbol *NSString)
func (*NSNumberFormatter) SetNegativePrefix ¶
func (o *NSNumberFormatter) SetNegativePrefix(negativePrefix *NSString)
func (*NSNumberFormatter) SetNegativeSuffix ¶
func (o *NSNumberFormatter) SetNegativeSuffix(negativeSuffix *NSString)
func (*NSNumberFormatter) SetNilSymbol ¶
func (o *NSNumberFormatter) SetNilSymbol(nilSymbol *NSString)
func (*NSNumberFormatter) SetNotANumberSymbol ¶
func (o *NSNumberFormatter) SetNotANumberSymbol(notANumberSymbol *NSString)
func (*NSNumberFormatter) SetNumberStyle ¶
func (o *NSNumberFormatter) SetNumberStyle(numberStyle NSNumberFormatterStyle)
func (*NSNumberFormatter) SetPaddingCharacter ¶
func (o *NSNumberFormatter) SetPaddingCharacter(paddingCharacter *NSString)
func (*NSNumberFormatter) SetPaddingPosition ¶
func (o *NSNumberFormatter) SetPaddingPosition(paddingPosition NSNumberFormatterPadPosition)
func (*NSNumberFormatter) SetPartialStringValidationEnabled ¶
func (o *NSNumberFormatter) SetPartialStringValidationEnabled(partialStringValidationEnabled bool)
func (*NSNumberFormatter) SetPerMillSymbol ¶
func (o *NSNumberFormatter) SetPerMillSymbol(perMillSymbol *NSString)
func (*NSNumberFormatter) SetPercentSymbol ¶
func (o *NSNumberFormatter) SetPercentSymbol(percentSymbol *NSString)
func (*NSNumberFormatter) SetPlusSign ¶
func (o *NSNumberFormatter) SetPlusSign(plusSign *NSString)
func (*NSNumberFormatter) SetPositiveFormat ¶
func (o *NSNumberFormatter) SetPositiveFormat(positiveFormat *NSString)
func (*NSNumberFormatter) SetPositiveInfinitySymbol ¶
func (o *NSNumberFormatter) SetPositiveInfinitySymbol(positiveInfinitySymbol *NSString)
func (*NSNumberFormatter) SetPositivePrefix ¶
func (o *NSNumberFormatter) SetPositivePrefix(positivePrefix *NSString)
func (*NSNumberFormatter) SetPositiveSuffix ¶
func (o *NSNumberFormatter) SetPositiveSuffix(positiveSuffix *NSString)
func (*NSNumberFormatter) SetRoundingBehavior ¶
func (o *NSNumberFormatter) SetRoundingBehavior(roundingBehavior *NSDecimalNumberHandler)
func (*NSNumberFormatter) SetRoundingIncrement ¶
func (o *NSNumberFormatter) SetRoundingIncrement(roundingIncrement *NSNumber)
func (*NSNumberFormatter) SetRoundingMode ¶
func (o *NSNumberFormatter) SetRoundingMode(roundingMode NSNumberFormatterRoundingMode)
func (*NSNumberFormatter) SetSecondaryGroupingSize ¶
func (o *NSNumberFormatter) SetSecondaryGroupingSize(secondaryGroupingSize uint)
func (*NSNumberFormatter) SetTextAttributesForNegativeInfinity ¶
func (o *NSNumberFormatter) SetTextAttributesForNegativeInfinity(textAttributesForNegativeInfinity *NSDictionary[*NSString, objc.ID])
func (*NSNumberFormatter) SetTextAttributesForNegativeValues ¶
func (o *NSNumberFormatter) SetTextAttributesForNegativeValues(textAttributesForNegativeValues *NSDictionary[*NSString, objc.ID])
func (*NSNumberFormatter) SetTextAttributesForNil ¶
func (o *NSNumberFormatter) SetTextAttributesForNil(textAttributesForNil *NSDictionary[*NSString, objc.ID])
func (*NSNumberFormatter) SetTextAttributesForNotANumber ¶
func (o *NSNumberFormatter) SetTextAttributesForNotANumber(textAttributesForNotANumber *NSDictionary[*NSString, objc.ID])
func (*NSNumberFormatter) SetTextAttributesForPositiveInfinity ¶
func (o *NSNumberFormatter) SetTextAttributesForPositiveInfinity(textAttributesForPositiveInfinity *NSDictionary[*NSString, objc.ID])
func (*NSNumberFormatter) SetTextAttributesForPositiveValues ¶
func (o *NSNumberFormatter) SetTextAttributesForPositiveValues(textAttributesForPositiveValues *NSDictionary[*NSString, objc.ID])
func (*NSNumberFormatter) SetTextAttributesForZero ¶
func (o *NSNumberFormatter) SetTextAttributesForZero(textAttributesForZero *NSDictionary[*NSString, objc.ID])
func (*NSNumberFormatter) SetThousandSeparator ¶
func (o *NSNumberFormatter) SetThousandSeparator(thousandSeparator *NSString)
func (*NSNumberFormatter) SetUsesGroupingSeparator ¶
func (o *NSNumberFormatter) SetUsesGroupingSeparator(usesGroupingSeparator bool)
func (*NSNumberFormatter) SetUsesSignificantDigits ¶
func (o *NSNumberFormatter) SetUsesSignificantDigits(usesSignificantDigits bool)
func (*NSNumberFormatter) SetZeroSymbol ¶
func (o *NSNumberFormatter) SetZeroSymbol(zeroSymbol *NSString)
func (*NSNumberFormatter) StringFromNumber ¶
func (o *NSNumberFormatter) StringFromNumber(number *NSNumber) *NSString
func (*NSNumberFormatter) TextAttributesForNegativeInfinity ¶
func (o *NSNumberFormatter) TextAttributesForNegativeInfinity() *NSDictionary[*NSString, objc.ID]
func (*NSNumberFormatter) TextAttributesForNegativeValues ¶
func (o *NSNumberFormatter) TextAttributesForNegativeValues() *NSDictionary[*NSString, objc.ID]
func (*NSNumberFormatter) TextAttributesForNil ¶
func (o *NSNumberFormatter) TextAttributesForNil() *NSDictionary[*NSString, objc.ID]
func (*NSNumberFormatter) TextAttributesForNotANumber ¶
func (o *NSNumberFormatter) TextAttributesForNotANumber() *NSDictionary[*NSString, objc.ID]
func (*NSNumberFormatter) TextAttributesForPositiveInfinity ¶
func (o *NSNumberFormatter) TextAttributesForPositiveInfinity() *NSDictionary[*NSString, objc.ID]
func (*NSNumberFormatter) TextAttributesForPositiveValues ¶
func (o *NSNumberFormatter) TextAttributesForPositiveValues() *NSDictionary[*NSString, objc.ID]
func (*NSNumberFormatter) TextAttributesForZero ¶
func (o *NSNumberFormatter) TextAttributesForZero() *NSDictionary[*NSString, objc.ID]
func (*NSNumberFormatter) ThousandSeparator ¶
func (o *NSNumberFormatter) ThousandSeparator() *NSString
func (*NSNumberFormatter) UsesGroupingSeparator ¶
func (o *NSNumberFormatter) UsesGroupingSeparator() bool
func (*NSNumberFormatter) UsesSignificantDigits ¶
func (o *NSNumberFormatter) UsesSignificantDigits() bool
func (*NSNumberFormatter) ZeroSymbol ¶
func (o *NSNumberFormatter) ZeroSymbol() *NSString
type NSNumberFormatterBehavior ¶
type NSNumberFormatterBehavior uint64
These constants specify the behavior of a number formatter. These constants are returned by the defaultFormatterBehavior class method and the formatterBehavior property.
const ( NSNumberFormatterBehaviorDefault NSNumberFormatterBehavior = 0 NSNumberFormatterBehavior10_0 NSNumberFormatterBehavior = 1000 NSNumberFormatterBehavior10_4 NSNumberFormatterBehavior = 1040 )
func NSNumberFormatterDefaultFormatterBehavior ¶
func NSNumberFormatterDefaultFormatterBehavior() NSNumberFormatterBehavior
func (NSNumberFormatterBehavior) String ¶
func (e NSNumberFormatterBehavior) String() string
type NSNumberFormatterPadPosition ¶
type NSNumberFormatterPadPosition uint64
These constants are used to specify how numbers should be padded. These constants are used by the paddingPosition property.
const ( NSNumberFormatterPadBeforePrefix NSNumberFormatterPadPosition = 0 NSNumberFormatterPadAfterPrefix NSNumberFormatterPadPosition = 1 NSNumberFormatterPadBeforeSuffix NSNumberFormatterPadPosition = 2 NSNumberFormatterPadAfterSuffix NSNumberFormatterPadPosition = 3 )
func (NSNumberFormatterPadPosition) String ¶
func (e NSNumberFormatterPadPosition) String() string
type NSNumberFormatterRoundingMode ¶
type NSNumberFormatterRoundingMode uint64
These constants are used to specify how numbers should be rounded. These constants are used by the roundingMode property.
const ( NSNumberFormatterRoundCeiling NSNumberFormatterRoundingMode = 0 NSNumberFormatterRoundFloor NSNumberFormatterRoundingMode = 1 NSNumberFormatterRoundDown NSNumberFormatterRoundingMode = 2 NSNumberFormatterRoundUp NSNumberFormatterRoundingMode = 3 NSNumberFormatterRoundHalfEven NSNumberFormatterRoundingMode = 4 NSNumberFormatterRoundHalfDown NSNumberFormatterRoundingMode = 5 NSNumberFormatterRoundHalfUp NSNumberFormatterRoundingMode = 6 )
func (NSNumberFormatterRoundingMode) String ¶
func (e NSNumberFormatterRoundingMode) String() string
type NSNumberFormatterStyle ¶
type NSNumberFormatterStyle uint64
The predefined number format styles used by the numberStyle property.
const ( NSNumberFormatterNoStyle NSNumberFormatterStyle = 0 NSNumberFormatterDecimalStyle NSNumberFormatterStyle = 1 NSNumberFormatterCurrencyStyle NSNumberFormatterStyle = 2 NSNumberFormatterPercentStyle NSNumberFormatterStyle = 3 NSNumberFormatterScientificStyle NSNumberFormatterStyle = 4 NSNumberFormatterSpellOutStyle NSNumberFormatterStyle = 5 NSNumberFormatterOrdinalStyle NSNumberFormatterStyle = 6 NSNumberFormatterCurrencyISOCodeStyle NSNumberFormatterStyle = 8 NSNumberFormatterCurrencyPluralStyle NSNumberFormatterStyle = 9 NSNumberFormatterCurrencyAccountingStyle NSNumberFormatterStyle = 10 )
func (NSNumberFormatterStyle) String ¶
func (e NSNumberFormatterStyle) String() string
type NSObject ¶
type NSObject struct {
// contains filtered or unexported fields
}
Apple documentation: https://developer.apple.com/documentation/foundation/nsobject
func NSObjectAlloc ¶
func NSObjectAlloc() *NSObject
func NSObjectAllocWithZone ¶
func NSObjectFromID ¶
func NSObjectNew ¶
func NSObjectNew() *NSObject
func NXReadNSObjectFromCoder
deprecated
func (*NSObject) AddObserverForKeyPathOptionsContext ¶
func (*NSObject) AttemptRecoveryFromErrorOptionIndex ¶
func (*NSObject) AttributeKeys ¶
func (*NSObject) AutoContentAccessingProxy ¶
func (*NSObject) AwakeAfterUsingCoder ¶
func (*NSObject) ClassDescription ¶
func (o *NSObject) ClassDescription() *NSClassDescription
func (*NSObject) ClassForArchiver ¶
func (*NSObject) ClassForCoder ¶
func (*NSObject) ClassForKeyedArchiver ¶
func (*NSObject) ClassForPortCoder
deprecated
func (*NSObject) CoerceValueForKey ¶
func (*NSObject) CopyScriptingValueForKeyWithProperties ¶
func (*NSObject) DictionaryWithValuesForKeys ¶
func (*NSObject) DidChangeValueForKey ¶
func (*NSObject) DidChangeValueForKeyWithSetMutationUsingObjects ¶
func (*NSObject) DidChangeValuesAtIndexesForKey ¶
func (o *NSObject) DidChangeValuesAtIndexesForKey(changeKind NSKeyValueChange, indexes *NSIndexSet, key *NSString)
func (*NSObject) DoesNotRecognizeSelector ¶
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) ForwardInvocation ¶
func (o *NSObject) ForwardInvocation(anInvocation *NSInvocation)
func (*NSObject) ForwardingTargetForSelector ¶
func (*NSObject) HandleQueryWithUnboundKey
deprecated
func (*NSObject) HandleTakeValueForUnboundKey
deprecated
func (*NSObject) IndicesOfObjectsByEvaluatingObjectSpecifier ¶
func (o *NSObject) IndicesOfObjectsByEvaluatingObjectSpecifier(specifier *NSScriptObjectSpecifier) *NSArray[*NSNumber]
func (*NSObject) InsertValueAtIndexInPropertyWithKey ¶
func (*NSObject) InsertValueInPropertyWithKey ¶
func (*NSObject) InverseForRelationshipKey ¶
func (*NSObject) IsCaseInsensitiveLike ¶
func (*NSObject) IsGreaterThanOrEqualTo ¶
func (*NSObject) MethodForSelector ¶
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 (*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 (*NSObject) ObjectSpecifier ¶
func (o *NSObject) ObjectSpecifier() *NSScriptObjectSpecifier
func (*NSObject) ObservationInfo ¶
func (*NSObject) ObserveValueForKeyPathOfObjectChangeContext ¶
func (*NSObject) PerformSelectorInBackgroundWithObject ¶
func (*NSObject) PerformSelectorOnMainThreadWithObjectWaitUntilDone ¶
func (*NSObject) PerformSelectorOnThreadWithObjectWaitUntilDone ¶
func (*NSObject) PerformSelectorOnThreadWithObjectWaitUntilDoneModes ¶
func (*NSObject) PerformSelectorWithObjectAfterDelay ¶
func (*NSObject) PerformSelectorWithObjectAfterDelayInModes ¶
func (*NSObject) RemoveObserverForKeyPath ¶
func (*NSObject) RemoveObserverForKeyPathContext ¶
func (*NSObject) RemoveValueAtIndexFromPropertyWithKey ¶
func (*NSObject) ReplaceValueAtIndexInPropertyWithKeyWithValue ¶
func (*NSObject) ReplacementObjectForArchiver
deprecated
func (o *NSObject) ReplacementObjectForArchiver(archiver *NSArchiver) objc.ID
Deprecated: since macOS 10.13.
func (*NSObject) ReplacementObjectForCoder ¶
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) ScriptingIsGreaterThan ¶
func (*NSObject) ScriptingIsGreaterThanOrEqualTo ¶
func (*NSObject) ScriptingIsLessThanOrEqualTo ¶
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 (*NSObject) SetObservationInfo ¶
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) SetValueForKeyPath ¶
func (*NSObject) SetValueForUndefinedKey ¶
func (*NSObject) SetValuesForKeysWithDictionary ¶
func (o *NSObject) SetValuesForKeysWithDictionary(keyedValues *NSDictionary[*NSString, objc.ID])
func (*NSObject) StoredValueForKey
deprecated
func (*NSObject) TakeStoredValueForKey
deprecated
func (*NSObject) TakeValueForKey
deprecated
func (*NSObject) TakeValueForKeyPath
deprecated
func (*NSObject) TakeValuesFromDictionary
deprecated
func (*NSObject) ToManyRelationshipKeys ¶
func (*NSObject) ToOneRelationshipKeys ¶
func (*NSObject) URLResourceDataDidBecomeAvailable
deprecated
func (*NSObject) URLResourceDidCancelLoading
deprecated
func (*NSObject) URLResourceDidFailLoadingWithReason
deprecated
func (*NSObject) URLResourceDidFinishLoading
deprecated
func (*NSObject) UnableToSetNilForKey
deprecated
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 (*NSObject) ValueForUndefinedKey ¶
func (*NSObject) ValueWithNameInPropertyWithKey ¶
func (*NSObject) ValueWithUniqueIDInPropertyWithKey ¶
func (*NSObject) ValuesForKeys
deprecated
func (*NSObject) WillChangeValueForKey ¶
func (*NSObject) WillChangeValueForKeyWithSetMutationUsingObjects ¶
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 ¶
A structure that contains version information about the currently executing operating system, including major, minor, and patch version numbers. Deprecated: Not supported
type NSOperation ¶
type NSOperation struct {
NSObject
}
An abstract class that represents the code and data associated with a single task.
Apple documentation: https://developer.apple.com/documentation/foundation/nsoperation
func NSOperationFromID ¶
func NSOperationFromID(id objc.ID) *NSOperation
func (*NSOperation) AddDependency ¶
func (o *NSOperation) AddDependency(op *NSOperation)
func (*NSOperation) Cancel ¶
func (o *NSOperation) Cancel()
func (*NSOperation) CompletionBlock ¶
func (o *NSOperation) CompletionBlock() objc.Block
func (*NSOperation) Dependencies ¶
func (o *NSOperation) Dependencies() *NSArray[*NSOperation]
func (*NSOperation) IsAsynchronous ¶
func (o *NSOperation) IsAsynchronous() bool
func (*NSOperation) IsCancelled ¶
func (o *NSOperation) IsCancelled() bool
func (*NSOperation) IsConcurrent ¶
func (o *NSOperation) IsConcurrent() bool
func (*NSOperation) IsExecuting ¶
func (o *NSOperation) IsExecuting() bool
func (*NSOperation) IsFinished ¶
func (o *NSOperation) IsFinished() bool
func (*NSOperation) IsReady ¶
func (o *NSOperation) IsReady() bool
func (*NSOperation) Main ¶
func (o *NSOperation) Main()
func (*NSOperation) Name ¶
func (o *NSOperation) Name() *NSString
func (*NSOperation) QualityOfService ¶
func (o *NSOperation) QualityOfService() NSQualityOfService
func (*NSOperation) QueuePriority ¶
func (o *NSOperation) QueuePriority() NSOperationQueuePriority
func (*NSOperation) RemoveDependency ¶
func (o *NSOperation) RemoveDependency(op *NSOperation)
func (*NSOperation) SetCompletionBlock ¶
func (o *NSOperation) SetCompletionBlock(completionBlock func())
func (*NSOperation) SetName ¶
func (o *NSOperation) SetName(name *NSString)
func (*NSOperation) SetQualityOfService ¶
func (o *NSOperation) SetQualityOfService(qualityOfService NSQualityOfService)
func (*NSOperation) SetQueuePriority ¶
func (o *NSOperation) SetQueuePriority(queuePriority NSOperationQueuePriority)
func (*NSOperation) SetThreadPriority
deprecated
func (o *NSOperation) SetThreadPriority(threadPriority float64)
Deprecated: Not supported
func (*NSOperation) Start ¶
func (o *NSOperation) Start()
func (*NSOperation) ThreadPriority
deprecated
func (o *NSOperation) ThreadPriority() float64
Deprecated: Not supported
func (*NSOperation) WaitUntilFinished ¶
func (o *NSOperation) WaitUntilFinished()
type NSOperationQueue ¶
type NSOperationQueue struct {
NSObject
}
A queue that regulates the execution of operations.
Apple documentation: https://developer.apple.com/documentation/foundation/nsoperationqueue
func NSOperationQueueCurrentQueue ¶
func NSOperationQueueCurrentQueue() *NSOperationQueue
func NSOperationQueueFromID ¶
func NSOperationQueueFromID(id objc.ID) *NSOperationQueue
func NSOperationQueueMainQueue ¶
func NSOperationQueueMainQueue() *NSOperationQueue
func (*NSOperationQueue) AddBarrierBlock ¶
func (o *NSOperationQueue) AddBarrierBlock(barrier func())
@method addBarrierBlock: @param barrier A block to execute @discussion The `addBarrierBlock:` method executes the block when the NSOperationQueue has finished all enqueued operations and prevents any subsequent operations to be executed until the barrier has been completed. This acts similarly to the `dispatch_barrier_async` function.
func (*NSOperationQueue) AddOperation ¶
func (o *NSOperationQueue) AddOperation(op *NSOperation)
func (*NSOperationQueue) AddOperationWith ¶
func (o *NSOperationQueue) AddOperationWith(block func())
func (*NSOperationQueue) AddOperationsWaitUntilFinished ¶
func (o *NSOperationQueue) AddOperationsWaitUntilFinished(ops *NSArray[*NSOperation], wait bool)
func (*NSOperationQueue) CancelAllOperations ¶
func (o *NSOperationQueue) CancelAllOperations()
func (*NSOperationQueue) IsSuspended ¶
func (o *NSOperationQueue) IsSuspended() bool
func (*NSOperationQueue) MaxConcurrentOperationCount ¶
func (o *NSOperationQueue) MaxConcurrentOperationCount() int
func (*NSOperationQueue) Name ¶
func (o *NSOperationQueue) Name() *NSString
func (*NSOperationQueue) OperationCount
deprecated
func (o *NSOperationQueue) OperationCount() uint
Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSOperationQueue) Operations
deprecated
func (o *NSOperationQueue) Operations() *NSArray[*NSOperation]
Deprecated: access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead
func (*NSOperationQueue) Progress ¶
func (o *NSOperationQueue) Progress() *NSProgress
@property progress @discussion The `progress` property represents a total progress of the operations executed in the queue. By default NSOperationQueue does not report progress until the `totalUnitCount` of the progress is set. When the `totalUnitCount` property of the progress is set the queue then opts into participating in progress reporting. When enabled, each operation will contribute 1 unit of completion to the overall progress of the queue for operations that are finished by the end of main (operations that override start and do not invoke super will not contribute to progress). Special attention to race conditions should be made when updating the `totalUnitCount` of the progress as well as care should be taken to avoid 'backwards progress'. For example; when a NSOperationQueue's progress is 5/10, representing 50% completed, and there are 90 more operations about to be added and the `totalUnitCount` that would then make the progress report as 5/100 which represents 5%. In this example it would mean that any progress bar would jump from displaying 50% back to 5%, which might not be desirable. In the cases where the `totalUnitCount` needs to be adjusted it is suggested to do this for thread-safety in a barrier by using the `addBarrierBlock:` API. This ensures that no un-expected execution state occurs adjusting into a potentially backwards moving progress scenario. @example NSOperationQueue *queue = [[NSOperationQueue alloc] init]; queue.progress.totalUnitCount = 10;
func (*NSOperationQueue) QualityOfService ¶
func (o *NSOperationQueue) QualityOfService() NSQualityOfService
func (*NSOperationQueue) SetMaxConcurrentOperationCount ¶
func (o *NSOperationQueue) SetMaxConcurrentOperationCount(maxConcurrentOperationCount int)
func (*NSOperationQueue) SetName ¶
func (o *NSOperationQueue) SetName(name *NSString)
func (*NSOperationQueue) SetQualityOfService ¶
func (o *NSOperationQueue) SetQualityOfService(qualityOfService NSQualityOfService)
func (*NSOperationQueue) SetSuspended ¶
func (o *NSOperationQueue) SetSuspended(suspended bool)
func (*NSOperationQueue) SetUnderlyingQueue ¶
func (o *NSOperationQueue) SetUnderlyingQueue(underlyingQueue *NSObject)
func (*NSOperationQueue) UnderlyingQueue ¶
func (o *NSOperationQueue) UnderlyingQueue() *NSObject
func (*NSOperationQueue) WaitUntilAllOperationsAreFinished ¶
func (o *NSOperationQueue) WaitUntilAllOperationsAreFinished()
type NSOperationQueuePriority ¶
type NSOperationQueuePriority int64
These constants let you prioritize the order in which operations execute.
const ( NSOperationQueuePriorityVeryLow NSOperationQueuePriority = -8 NSOperationQueuePriorityLow NSOperationQueuePriority = -4 NSOperationQueuePriorityNormal NSOperationQueuePriority = 0 NSOperationQueuePriorityHigh NSOperationQueuePriority = 4 NSOperationQueuePriorityVeryHigh NSOperationQueuePriority = 8 )
func (NSOperationQueuePriority) String ¶
func (e NSOperationQueuePriority) String() string
type NSOrderedCollectionChange ¶
An object that represents an indexed change within an ordered collection.
Apple documentation: https://developer.apple.com/documentation/foundation/nsorderedcollectionchange
func NSOrderedCollectionChangeChangeWithObjectTypeIndex ¶
func NSOrderedCollectionChangeChangeWithObjectTypeIndex(anObject objc.ID, type_ NSCollectionChangeType, index uint) *NSOrderedCollectionChange[objc.ID]
Creates an change object that represents inserting or removing an object from an ordered collection at a specific index.
func NSOrderedCollectionChangeChangeWithObjectTypeIndexAssociatedIndex ¶
func NSOrderedCollectionChangeChangeWithObjectTypeIndexAssociatedIndex(anObject objc.ID, type_ NSCollectionChangeType, index uint, associatedIndex uint) *NSOrderedCollectionChange[objc.ID]
Creates an change object that represents inserting or removing an object from an ordered collection at a specific index, matched with an associated location that infers a move within the collection.
func NSOrderedCollectionChangeFromID ¶
func NSOrderedCollectionChangeFromID[ObjectType purego.AnyObject](id objc.ID) *NSOrderedCollectionChange[ObjectType]
func (*NSOrderedCollectionChange[ObjectType]) AssociatedIndex ¶
func (o *NSOrderedCollectionChange[ObjectType]) AssociatedIndex() uint
func (*NSOrderedCollectionChange[ObjectType]) ChangeType ¶
func (o *NSOrderedCollectionChange[ObjectType]) ChangeType() NSCollectionChangeType
func (*NSOrderedCollectionChange[ObjectType]) Index ¶
func (o *NSOrderedCollectionChange[ObjectType]) Index() uint
func (*NSOrderedCollectionChange[ObjectType]) InitWithObjectTypeIndex ¶
func (o *NSOrderedCollectionChange[ObjectType]) InitWithObjectTypeIndex(anObject ObjectType, type_ NSCollectionChangeType, index uint) *NSOrderedCollectionChange[ObjectType]
Creates a change object that represents inserting or removing an object from an ordered collection at a specific index.
func (*NSOrderedCollectionChange[ObjectType]) InitWithObjectTypeIndexAssociatedIndex ¶
func (o *NSOrderedCollectionChange[ObjectType]) InitWithObjectTypeIndexAssociatedIndex(anObject ObjectType, type_ NSCollectionChangeType, index uint, associatedIndex uint) *NSOrderedCollectionChange[ObjectType]
Creates a change object that represents inserting, removing, or moving an object from an ordered collection at a specific index.
func (*NSOrderedCollectionChange[ObjectType]) Object ¶
func (o *NSOrderedCollectionChange[ObjectType]) Object() ObjectType
type NSOrderedCollectionDifference ¶
An object representing the difference between two ordered collections.
Apple documentation: https://developer.apple.com/documentation/foundation/nsorderedcollectiondifference
func NSOrderedCollectionDifferenceFromID ¶
func NSOrderedCollectionDifferenceFromID[ObjectType purego.AnyObject](id objc.ID) *NSOrderedCollectionDifference[ObjectType]
func (*NSOrderedCollectionDifference[ObjectType]) DifferenceByTransformingChangesWith ¶
func (o *NSOrderedCollectionDifference[ObjectType]) DifferenceByTransformingChangesWith(block objc.Block) *NSOrderedCollectionDifference[objc.ID]
Create a new ordered collection difference by mapping over this difference’s members, processing the change objects with the block provided.
func (*NSOrderedCollectionDifference[ObjectType]) HasChanges ¶
func (o *NSOrderedCollectionDifference[ObjectType]) HasChanges() bool
func (*NSOrderedCollectionDifference[ObjectType]) InitWithChanges ¶
func (o *NSOrderedCollectionDifference[ObjectType]) InitWithChanges(changes *NSArray[objc.ID]) *NSOrderedCollectionDifference[ObjectType]
Creates an ordered collection difference using an array of ordered collection changes.
func (*NSOrderedCollectionDifference[ObjectType]) InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjects ¶
func (o *NSOrderedCollectionDifference[ObjectType]) InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjects(inserts *NSIndexSet, insertedObjects *NSArray[ObjectType], removes *NSIndexSet, removedObjects *NSArray[ObjectType]) *NSOrderedCollectionDifference[ObjectType]
Creates an ordered collection difference from arrays of inserted and removed objects with corresponding sets of indices.
func (*NSOrderedCollectionDifference[ObjectType]) InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjectsAdditionalChanges ¶
func (o *NSOrderedCollectionDifference[ObjectType]) InitWithInsertIndexesInsertedObjectsRemoveIndexesRemovedObjectsAdditionalChanges(inserts *NSIndexSet, insertedObjects *NSArray[ObjectType], removes *NSIndexSet, removedObjects *NSArray[ObjectType], changes *NSArray[objc.ID]) *NSOrderedCollectionDifference[ObjectType]
Creates an ordered collection difference from arrays of inserted and removed objects with corresponding sets of indices, in addition to an array of ordered collection changes.
func (*NSOrderedCollectionDifference[ObjectType]) Insertions ¶
func (o *NSOrderedCollectionDifference[ObjectType]) Insertions() *NSArray[objc.ID]
func (*NSOrderedCollectionDifference[ObjectType]) InverseDifference ¶
func (o *NSOrderedCollectionDifference[ObjectType]) InverseDifference() *NSOrderedCollectionDifference[ObjectType]
Calculate the difference between two objects in the reverse direction of comparison.
type NSOrderedCollectionDifferenceCalculationOptions ¶
type NSOrderedCollectionDifferenceCalculationOptions uint64
Constants that specify the options to use when creating an ordered collection difference.
const ( // An option that indicates that the difference should omit references to the insertions. NSOrderedCollectionDifferenceCalculationOmitInsertedObjects NSOrderedCollectionDifferenceCalculationOptions = 1 // An option that indicates that the difference should omit references to the removals. NSOrderedCollectionDifferenceCalculationOmitRemovedObjects NSOrderedCollectionDifferenceCalculationOptions = 2 // An option that identifies insertions or removals as moves. NSOrderedCollectionDifferenceCalculationInferMoves NSOrderedCollectionDifferenceCalculationOptions = 4 )
func (NSOrderedCollectionDifferenceCalculationOptions) String ¶
func (e NSOrderedCollectionDifferenceCalculationOptions) String() string
type NSOrderedSet ¶
A static, ordered collection of unique objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nsorderedset
func NSOrderedSetFromID ¶
func NSOrderedSetFromID[ObjectType purego.AnyObject](id objc.ID) *NSOrderedSet[ObjectType]
func NSOrderedSetOrderedSet ¶
func NSOrderedSetOrderedSet() *NSOrderedSet[objc.ID]
Creates and returns an empty ordered set
func NSOrderedSetOrderedSetWithArray ¶
Creates and returns a set containing a uniqued collection of the objects contained in a given array.
func NSOrderedSetOrderedSetWithArrayRangeCopyItems ¶
func NSOrderedSetOrderedSetWithArrayRangeCopyItems(array *NSArray[objc.ID], range_ NSRange, flag bool) *NSOrderedSet[objc.ID]
Creates and returns a new ordered set for a specified range of objects in an array.
func NSOrderedSetOrderedSetWithObject ¶
func NSOrderedSetOrderedSetWithObject(object objc.ID) *NSOrderedSet[objc.ID]
Creates and returns a ordered set that contains a single given object.
func NSOrderedSetOrderedSetWithObjectsCount ¶
func NSOrderedSetOrderedSetWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSOrderedSet[objc.ID]
Creates and returns a set containing a specified number of objects from a given C array of objects.
func NSOrderedSetOrderedSetWithOrderedSet ¶
func NSOrderedSetOrderedSetWithOrderedSet(set *NSOrderedSet[objc.ID]) *NSOrderedSet[objc.ID]
Creates and returns an ordered set containing the objects from another ordered set.
func NSOrderedSetOrderedSetWithOrderedSetRangeCopyItems ¶
func NSOrderedSetOrderedSetWithOrderedSetRangeCopyItems(set *NSOrderedSet[objc.ID], range_ NSRange, flag bool) *NSOrderedSet[objc.ID]
Creates and returns a new ordered set for a specified range of objects in an ordered set.
func NSOrderedSetOrderedSetWithSet ¶
Creates and returns an ordered set with the contents of a set.
func NSOrderedSetOrderedSetWithSetCopyItems ¶
Creates and returns an ordered set with the contents of a set, optionally copying the items.
func (*NSOrderedSet[ObjectType]) Array ¶
func (o *NSOrderedSet[ObjectType]) Array() *NSArray[ObjectType]
func (*NSOrderedSet[ObjectType]) ContainsObject ¶
func (o *NSOrderedSet[ObjectType]) ContainsObject(object ObjectType) bool
Returns a Boolean value that indicates whether a given object is present in the ordered set.
func (*NSOrderedSet[ObjectType]) Count ¶
func (o *NSOrderedSet[ObjectType]) Count() uint
func (*NSOrderedSet[ObjectType]) DescriptionWithLocale ¶
func (o *NSOrderedSet[ObjectType]) DescriptionWithLocale(locale objc.ID) *NSString
Returns a string that represents the contents of the ordered set, formatted as a property list.
func (*NSOrderedSet[ObjectType]) DescriptionWithLocaleIndent ¶
func (o *NSOrderedSet[ObjectType]) DescriptionWithLocaleIndent(locale objc.ID, level uint) *NSString
Returns a string that represents the contents of the ordered set, formatted as a property list.
func (*NSOrderedSet[ObjectType]) DifferenceFromOrderedSet ¶
func (o *NSOrderedSet[ObjectType]) DifferenceFromOrderedSet(other *NSOrderedSet[ObjectType]) *NSOrderedCollectionDifference[ObjectType]
Compares two ordered sets to create a difference object that represents the changes between them.
func (*NSOrderedSet[ObjectType]) DifferenceFromOrderedSetWithOptions ¶
func (o *NSOrderedSet[ObjectType]) DifferenceFromOrderedSetWithOptions(other *NSOrderedSet[ObjectType], options NSOrderedCollectionDifferenceCalculationOptions) *NSOrderedCollectionDifference[ObjectType]
Compares two ordered sets, with options, to create a difference object that represents the changes between them.
func (*NSOrderedSet[ObjectType]) DifferenceFromOrderedSetWithOptionsUsingEquivalenceTest ¶
func (o *NSOrderedSet[ObjectType]) DifferenceFromOrderedSetWithOptionsUsingEquivalenceTest(other *NSOrderedSet[ObjectType], options NSOrderedCollectionDifferenceCalculationOptions, block objc.Block) *NSOrderedCollectionDifference[ObjectType]
Compares two ordered sets, using the provided block and with options, to create a difference object that represents the changes between them.
func (*NSOrderedSet[ObjectType]) EnumerateObjectsAtIndexesOptionsUsing ¶
func (o *NSOrderedSet[ObjectType]) EnumerateObjectsAtIndexesOptionsUsing(s *NSIndexSet, opts NSEnumerationOptions, block objc.Block)
Executes a given block using the objects in the ordered set at the specified indexes.
func (*NSOrderedSet[ObjectType]) EnumerateObjectsUsing ¶
func (o *NSOrderedSet[ObjectType]) EnumerateObjectsUsing(block objc.Block)
Executes a given block using each object in the ordered set.
func (*NSOrderedSet[ObjectType]) EnumerateObjectsWithOptionsUsing ¶
func (o *NSOrderedSet[ObjectType]) EnumerateObjectsWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)
Executes a given block using each object in the set, using the specified enumeration options.
func (*NSOrderedSet[ObjectType]) FilteredOrderedSetUsingPredicate ¶
func (o *NSOrderedSet[ObjectType]) FilteredOrderedSetUsingPredicate(p *NSPredicate) *NSOrderedSet[ObjectType]
Evaluates a given predicate against each object in the receiving ordered set and returns a new ordered set containing the objects for which the predicate returns true.
func (*NSOrderedSet[ObjectType]) FirstObject ¶
func (o *NSOrderedSet[ObjectType]) FirstObject() ObjectType
func (*NSOrderedSet[ObjectType]) GetObjectsRange ¶
func (o *NSOrderedSet[ObjectType]) GetObjectsRange(objects unsafe.Pointer, range_ NSRange)
Copies the objects contained in the ordered set that fall within the specified range to objects.
func (*NSOrderedSet[ObjectType]) IndexOfObject ¶
func (o *NSOrderedSet[ObjectType]) IndexOfObject(object ObjectType) uint
Returns the index of the specified object.
func (*NSOrderedSet[ObjectType]) IndexOfObjectAtIndexesOptionsPassingTest ¶
func (o *NSOrderedSet[ObjectType]) IndexOfObjectAtIndexesOptionsPassingTest(s *NSIndexSet, opts NSEnumerationOptions, predicate objc.Block) uint
Returns the index, from a given set of indexes, of the object in the ordered set that passes a test in a given block for a given set of enumeration options.
func (*NSOrderedSet[ObjectType]) IndexOfObjectInSortedRangeOptionsUsingComparator ¶
func (o *NSOrderedSet[ObjectType]) IndexOfObjectInSortedRangeOptionsUsingComparator(object ObjectType, range_ NSRange, opts NSBinarySearchingOptions, cmp func(objc.ID, objc.ID) NSComparisonResult) uint
Returns the index, within a specified range, of an object compared with elements in the ordered set using a given NSComparator block.
func (*NSOrderedSet[ObjectType]) IndexOfObjectPassingTest ¶
func (o *NSOrderedSet[ObjectType]) IndexOfObjectPassingTest(predicate objc.Block) uint
Returns the index of the object in the ordered set that passes a test in a given block.
func (*NSOrderedSet[ObjectType]) IndexOfObjectWithOptionsPassingTest ¶
func (o *NSOrderedSet[ObjectType]) IndexOfObjectWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) uint
Returns the index of an object in the ordered set that passes a test in a given block for a given set of enumeration options.
func (*NSOrderedSet[ObjectType]) IndexesOfObjectsAtIndexesOptionsPassingTest ¶
func (o *NSOrderedSet[ObjectType]) IndexesOfObjectsAtIndexesOptionsPassingTest(s *NSIndexSet, opts NSEnumerationOptions, predicate objc.Block) *NSIndexSet
Returns the index, from a given set of indexes, of the object in the ordered set that passes a test in a given block for a given set of enumeration options.
func (*NSOrderedSet[ObjectType]) IndexesOfObjectsPassingTest ¶
func (o *NSOrderedSet[ObjectType]) IndexesOfObjectsPassingTest(predicate objc.Block) *NSIndexSet
Returns the index of the object in the ordered set that passes a test in a given block.
func (*NSOrderedSet[ObjectType]) IndexesOfObjectsWithOptionsPassingTest ¶
func (o *NSOrderedSet[ObjectType]) IndexesOfObjectsWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSIndexSet
Returns the index of an object in the ordered set that passes a test in a given block for a given set of enumeration options.
func (*NSOrderedSet[ObjectType]) Init ¶
func (o *NSOrderedSet[ObjectType]) Init() *NSOrderedSet[ObjectType]
Initializes a newly allocated ordered set.
func (*NSOrderedSet[ObjectType]) InitWithArray ¶
func (o *NSOrderedSet[ObjectType]) InitWithArray(array *NSArray[ObjectType]) *NSOrderedSet[ObjectType]
Initializes a newly allocated set with the objects that are contained in a given array.
func (*NSOrderedSet[ObjectType]) InitWithArrayCopyItems ¶
func (o *NSOrderedSet[ObjectType]) InitWithArrayCopyItems(set *NSArray[ObjectType], flag bool) *NSOrderedSet[ObjectType]
Initializes a newly allocated set with the objects that are contained in a given array, optionally copying the items.
func (*NSOrderedSet[ObjectType]) InitWithArrayRangeCopyItems ¶
func (o *NSOrderedSet[ObjectType]) InitWithArrayRangeCopyItems(set *NSArray[ObjectType], range_ NSRange, flag bool) *NSOrderedSet[ObjectType]
Initializes a newly allocated set with the objects that are contained in the specified range of an array, optionally copying the items.
func (*NSOrderedSet[ObjectType]) InitWithCoder ¶
func (o *NSOrderedSet[ObjectType]) InitWithCoder(coder *NSCoder) *NSOrderedSet[ObjectType]
func (*NSOrderedSet[ObjectType]) InitWithObject ¶
func (o *NSOrderedSet[ObjectType]) InitWithObject(object ObjectType) *NSOrderedSet[ObjectType]
Initializes a new ordered set with the object.
func (*NSOrderedSet[ObjectType]) InitWithObjectsCount ¶
func (o *NSOrderedSet[ObjectType]) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSOrderedSet[ObjectType]
Initializes a newly allocated set with a specified number of objects from a given C array of objects.
func (*NSOrderedSet[ObjectType]) InitWithOrderedSet ¶
func (o *NSOrderedSet[ObjectType]) InitWithOrderedSet(set *NSOrderedSet[ObjectType]) *NSOrderedSet[ObjectType]
Initializes a new ordered set with the contents of a set.
func (*NSOrderedSet[ObjectType]) InitWithOrderedSetCopyItems ¶
func (o *NSOrderedSet[ObjectType]) InitWithOrderedSetCopyItems(set *NSOrderedSet[ObjectType], flag bool) *NSOrderedSet[ObjectType]
Initializes a new ordered set with the contents of a set, optionally copying the items.
func (*NSOrderedSet[ObjectType]) InitWithOrderedSetRangeCopyItems ¶
func (o *NSOrderedSet[ObjectType]) InitWithOrderedSetRangeCopyItems(set *NSOrderedSet[ObjectType], range_ NSRange, flag bool) *NSOrderedSet[ObjectType]
Initializes a new ordered set with the contents of an ordered set, optionally copying the items.
func (*NSOrderedSet[ObjectType]) InitWithSet ¶
func (o *NSOrderedSet[ObjectType]) InitWithSet(set *NSSet[ObjectType]) *NSOrderedSet[ObjectType]
Initializes a new ordered set with the contents of a set.
func (*NSOrderedSet[ObjectType]) InitWithSetCopyItems ¶
func (o *NSOrderedSet[ObjectType]) InitWithSetCopyItems(set *NSSet[ObjectType], flag bool) *NSOrderedSet[ObjectType]
Initializes a new ordered set with the contents of a set, optionally copying the objects in the set.
func (*NSOrderedSet[ObjectType]) IntersectsOrderedSet ¶
func (o *NSOrderedSet[ObjectType]) IntersectsOrderedSet(other *NSOrderedSet[ObjectType]) bool
Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given ordered set.
func (*NSOrderedSet[ObjectType]) IntersectsSet ¶
func (o *NSOrderedSet[ObjectType]) IntersectsSet(set *NSSet[ObjectType]) bool
Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given set.
func (*NSOrderedSet[ObjectType]) IsEqualToOrderedSet ¶
func (o *NSOrderedSet[ObjectType]) IsEqualToOrderedSet(other *NSOrderedSet[ObjectType]) bool
Compares the receiving ordered set to another ordered set.
func (*NSOrderedSet[ObjectType]) IsSubsetOfOrderedSet ¶
func (o *NSOrderedSet[ObjectType]) IsSubsetOfOrderedSet(other *NSOrderedSet[ObjectType]) bool
Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given ordered set.
func (*NSOrderedSet[ObjectType]) IsSubsetOfSet ¶
func (o *NSOrderedSet[ObjectType]) IsSubsetOfSet(set *NSSet[ObjectType]) bool
Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given set.
func (*NSOrderedSet[ObjectType]) LastObject ¶
func (o *NSOrderedSet[ObjectType]) LastObject() ObjectType
func (*NSOrderedSet[ObjectType]) ObjectAtIndex ¶
func (o *NSOrderedSet[ObjectType]) ObjectAtIndex(idx uint) ObjectType
Returns the object at the specified index of the set.
func (*NSOrderedSet[ObjectType]) ObjectAtIndexedSubscript ¶
func (o *NSOrderedSet[ObjectType]) ObjectAtIndexedSubscript(idx uint) ObjectType
Returns the object at the specified index of the set.
func (*NSOrderedSet[ObjectType]) ObjectEnumerator ¶
func (o *NSOrderedSet[ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]
Returns an enumerator object that lets you access each object in the ordered set.
func (*NSOrderedSet[ObjectType]) ObjectsAtIndexes ¶
func (o *NSOrderedSet[ObjectType]) ObjectsAtIndexes(indexes *NSIndexSet) *NSArray[ObjectType]
Returns the objects in the ordered set at the specified indexes.
func (*NSOrderedSet[ObjectType]) OrderedSetByApplyingDifference ¶
func (o *NSOrderedSet[ObjectType]) OrderedSetByApplyingDifference(difference *NSOrderedCollectionDifference[ObjectType]) *NSOrderedSet[ObjectType]
Creates a new ordered set by applying a difference object to an existing ordered set.
func (*NSOrderedSet[ObjectType]) ReverseObjectEnumerator ¶
func (o *NSOrderedSet[ObjectType]) ReverseObjectEnumerator() *NSEnumerator[ObjectType]
Returns an enumerator object that lets you access each object in the ordered set.
func (*NSOrderedSet[ObjectType]) ReversedOrderedSet ¶
func (o *NSOrderedSet[ObjectType]) ReversedOrderedSet() *NSOrderedSet[ObjectType]
func (*NSOrderedSet[ObjectType]) Set ¶
func (o *NSOrderedSet[ObjectType]) Set() *NSSet[ObjectType]
func (*NSOrderedSet[ObjectType]) SortedArrayUsingComparator ¶
func (o *NSOrderedSet[ObjectType]) SortedArrayUsingComparator(cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[ObjectType]
Returns an array that lists the receiving ordered set’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block
func (*NSOrderedSet[ObjectType]) SortedArrayUsingDescriptors ¶
func (o *NSOrderedSet[ObjectType]) SortedArrayUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor]) *NSArray[ObjectType]
Returns an array of the ordered set’s elements sorted as specified by a given array of sort descriptors.
func (*NSOrderedSet[ObjectType]) SortedArrayWithOptionsUsingComparator ¶
func (o *NSOrderedSet[ObjectType]) SortedArrayWithOptionsUsingComparator(opts NSSortOptions, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSArray[ObjectType]
Returns an array that lists the receiving ordered set’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block.
type NSOrthography ¶
type NSOrthography struct {
NSObject
}
A description of the linguistic content of natural language text, typically used for spelling and grammar checking.
Apple documentation: https://developer.apple.com/documentation/foundation/nsorthography
func NSOrthographyDefaultOrthographyForLanguage ¶
func NSOrthographyDefaultOrthographyForLanguage(language *NSString) *NSOrthography
Creates and returns an orthography object with the default language map for the specified language.
func NSOrthographyFromID ¶
func NSOrthographyFromID(id objc.ID) *NSOrthography
func NSOrthographyOrthographyWithDominantScriptLanguageMap ¶
func NSOrthographyOrthographyWithDominantScriptLanguageMap(script *NSString, map_ *NSDictionary[*NSString, objc.ID]) *NSOrthography
Creates and returns an orthography object with the specified dominant script and language map.
func (*NSOrthography) AllLanguages ¶
func (o *NSOrthography) AllLanguages() *NSArray[*NSString]
func (*NSOrthography) AllScripts ¶
func (o *NSOrthography) AllScripts() *NSArray[*NSString]
func (*NSOrthography) DominantLanguage ¶
func (o *NSOrthography) DominantLanguage() *NSString
func (*NSOrthography) DominantLanguageForScript ¶
func (o *NSOrthography) DominantLanguageForScript(script *NSString) *NSString
Returns the dominant language for the specified script.
func (*NSOrthography) DominantScript ¶
func (o *NSOrthography) DominantScript() *NSString
func (*NSOrthography) InitWithCoder ¶
func (o *NSOrthography) InitWithCoder(coder *NSCoder) *NSOrthography
func (*NSOrthography) InitWithDominantScriptLanguageMap ¶
func (o *NSOrthography) InitWithDominantScriptLanguageMap(script *NSString, map_ *NSDictionary[*NSString, objc.ID]) *NSOrthography
Creates an orthography object with the specified dominant script and language map.
func (*NSOrthography) LanguageMap ¶
func (o *NSOrthography) LanguageMap() *NSDictionary[*NSString, objc.ID]
func (*NSOrthography) LanguagesForScript ¶
func (o *NSOrthography) LanguagesForScript(script *NSString) *NSArray[*NSString]
Returns the list of languages for the specified script.
type NSOutputStream ¶
type NSOutputStream struct {
NSStream
}
A stream that provides write-only stream functionality.
Apple documentation: https://developer.apple.com/documentation/foundation/nsoutputstream
func NSOutputStreamFromID ¶
func NSOutputStreamFromID(id objc.ID) *NSOutputStream
func NSOutputStreamOutputStreamToBufferCapacity ¶
func NSOutputStreamOutputStreamToBufferCapacity(buffer *uint8, capacity uint) *NSOutputStream
Creates and returns an initialized output stream that can write to a provided buffer.
func NSOutputStreamOutputStreamToFileAtPathAppend ¶
func NSOutputStreamOutputStreamToFileAtPathAppend(path *NSString, shouldAppend bool) *NSOutputStream
Creates and returns an initialized output stream for writing to a specified file.
func NSOutputStreamOutputStreamToMemory ¶
func NSOutputStreamOutputStreamToMemory() *NSOutputStream
func NSOutputStreamOutputStreamWithURLAppend ¶
func NSOutputStreamOutputStreamWithURLAppend(url *NSURL, shouldAppend bool) *NSOutputStream
Creates and returns an initialized output stream for writing to a specified URL.
func (*NSOutputStream) HasSpaceAvailable ¶
func (o *NSOutputStream) HasSpaceAvailable() bool
func (*NSOutputStream) InitToBufferCapacity ¶
func (o *NSOutputStream) InitToBufferCapacity(buffer *uint8, capacity uint) *NSOutputStream
func (*NSOutputStream) InitToFileAtPathAppend ¶
func (o *NSOutputStream) InitToFileAtPathAppend(path *NSString, shouldAppend bool) *NSOutputStream
func (*NSOutputStream) InitToMemory ¶
func (o *NSOutputStream) InitToMemory() *NSOutputStream
func (*NSOutputStream) InitWithURLAppend ¶
func (o *NSOutputStream) InitWithURLAppend(url *NSURL, shouldAppend bool) *NSOutputStream
func (*NSOutputStream) WriteMaxLength ¶
func (o *NSOutputStream) WriteMaxLength(buffer *uint8, len_ uint) int
type NSPersonNameComponents ¶
type NSPersonNameComponents struct {
NSObject
}
An object that manages the separate parts of a person’s name to allow locale-aware formatting.
Apple documentation: https://developer.apple.com/documentation/foundation/nspersonnamecomponents
func NSPersonNameComponentsFromID ¶
func NSPersonNameComponentsFromID(id objc.ID) *NSPersonNameComponents
func (*NSPersonNameComponents) FamilyName ¶
func (o *NSPersonNameComponents) FamilyName() *NSString
func (*NSPersonNameComponents) GivenName ¶
func (o *NSPersonNameComponents) GivenName() *NSString
func (*NSPersonNameComponents) MiddleName ¶
func (o *NSPersonNameComponents) MiddleName() *NSString
func (*NSPersonNameComponents) NamePrefix ¶
func (o *NSPersonNameComponents) NamePrefix() *NSString
func (*NSPersonNameComponents) NameSuffix ¶
func (o *NSPersonNameComponents) NameSuffix() *NSString
func (*NSPersonNameComponents) Nickname ¶
func (o *NSPersonNameComponents) Nickname() *NSString
func (*NSPersonNameComponents) PhoneticRepresentation ¶
func (o *NSPersonNameComponents) PhoneticRepresentation() *NSPersonNameComponents
func (*NSPersonNameComponents) SetFamilyName ¶
func (o *NSPersonNameComponents) SetFamilyName(familyName *NSString)
func (*NSPersonNameComponents) SetGivenName ¶
func (o *NSPersonNameComponents) SetGivenName(givenName *NSString)
func (*NSPersonNameComponents) SetMiddleName ¶
func (o *NSPersonNameComponents) SetMiddleName(middleName *NSString)
func (*NSPersonNameComponents) SetNamePrefix ¶
func (o *NSPersonNameComponents) SetNamePrefix(namePrefix *NSString)
func (*NSPersonNameComponents) SetNameSuffix ¶
func (o *NSPersonNameComponents) SetNameSuffix(nameSuffix *NSString)
func (*NSPersonNameComponents) SetNickname ¶
func (o *NSPersonNameComponents) SetNickname(nickname *NSString)
func (*NSPersonNameComponents) SetPhoneticRepresentation ¶
func (o *NSPersonNameComponents) SetPhoneticRepresentation(phoneticRepresentation *NSPersonNameComponents)
type NSPersonNameComponentsFormatter ¶
type NSPersonNameComponentsFormatter struct {
NSFormatter
}
A formatter that provides localized representations of the components of a person’s name.
Apple documentation: https://developer.apple.com/documentation/foundation/nspersonnamecomponentsformatter
func NSPersonNameComponentsFormatterFromID ¶
func NSPersonNameComponentsFormatterFromID(id objc.ID) *NSPersonNameComponentsFormatter
func (*NSPersonNameComponentsFormatter) AnnotatedStringFromPersonNameComponents ¶
func (o *NSPersonNameComponentsFormatter) AnnotatedStringFromPersonNameComponents(components *NSPersonNameComponents) *NSAttributedString
func (*NSPersonNameComponentsFormatter) IsPhonetic ¶
func (o *NSPersonNameComponentsFormatter) IsPhonetic() bool
func (*NSPersonNameComponentsFormatter) Locale ¶
func (o *NSPersonNameComponentsFormatter) Locale() *NSLocale
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 (o *NSPersonNameComponentsFormatter) SetStyle(style NSPersonNameComponentsFormatterStyle)
func (*NSPersonNameComponentsFormatter) StringFromPersonNameComponents ¶
func (o *NSPersonNameComponentsFormatter) StringFromPersonNameComponents(components *NSPersonNameComponents) *NSString
func (*NSPersonNameComponentsFormatter) Style ¶
func (o *NSPersonNameComponentsFormatter) Style() NSPersonNameComponentsFormatterStyle
type NSPersonNameComponentsFormatterOptions ¶
type NSPersonNameComponentsFormatterOptions uint64
Options for formatting person name components.
const (
NSPersonNameComponentsFormatterPhonetic NSPersonNameComponentsFormatterOptions = 2
)
func (NSPersonNameComponentsFormatterOptions) String ¶
func (e NSPersonNameComponentsFormatterOptions) String() string
type NSPersonNameComponentsFormatterStyle ¶
type NSPersonNameComponentsFormatterStyle int64
The formatting styles for person name components.
const ( NSPersonNameComponentsFormatterStyleDefault NSPersonNameComponentsFormatterStyle = 0 NSPersonNameComponentsFormatterStyleShort NSPersonNameComponentsFormatterStyle = 1 NSPersonNameComponentsFormatterStyleMedium NSPersonNameComponentsFormatterStyle = 2 NSPersonNameComponentsFormatterStyleLong NSPersonNameComponentsFormatterStyle = 3 NSPersonNameComponentsFormatterStyleAbbreviated NSPersonNameComponentsFormatterStyle = 4 )
func (NSPersonNameComponentsFormatterStyle) String ¶
func (e NSPersonNameComponentsFormatterStyle) String() string
type NSPipe ¶
type NSPipe struct {
NSObject
}
A one-way communications channel between related processes.
Apple documentation: https://developer.apple.com/documentation/foundation/nspipe
func NSPipeFromID ¶
func (*NSPipe) FileHandleForReading ¶
func (o *NSPipe) FileHandleForReading() *NSFileHandle
func (*NSPipe) FileHandleForWriting ¶
func (o *NSPipe) FileHandleForWriting() *NSFileHandle
type NSPointerArray ¶
type NSPointerArray struct {
NSObject
}
A collection similar to an array, but with a broader range of available memory semantics.
Apple documentation: https://developer.apple.com/documentation/foundation/nspointerarray
func NSPointerArrayFromID ¶
func NSPointerArrayFromID(id objc.ID) *NSPointerArray
func NSPointerArrayPointerArrayWithOptions ¶
func NSPointerArrayPointerArrayWithOptions(options NSPointerFunctionsOptions) *NSPointerArray
Returns a new pointer array initialized to use the given options.
func NSPointerArrayPointerArrayWithPointerFunctions ¶
func NSPointerArrayPointerArrayWithPointerFunctions(functions *NSPointerFunctions) *NSPointerArray
A new pointer array initialized to use the given functions.
func NSPointerArrayStrongObjectsPointerArray ¶
func NSPointerArrayStrongObjectsPointerArray() *NSPointerArray
Returns a new pointer array that maintains strong references to its elements.
func NSPointerArrayWeakObjectsPointerArray ¶
func NSPointerArrayWeakObjectsPointerArray() *NSPointerArray
Returns a new pointer array that maintains weak references to its elements.
func (*NSPointerArray) AddPointer ¶
func (o *NSPointerArray) AddPointer(pointer unsafe.Pointer)
Adds a given pointer to the receiver.
func (*NSPointerArray) AllObjects ¶
func (o *NSPointerArray) AllObjects() *NSArray[objc.ID]
func (*NSPointerArray) Compact ¶
func (o *NSPointerArray) Compact()
Removes NULL values from the receiver.
func (*NSPointerArray) Count ¶
func (o *NSPointerArray) Count() uint
func (*NSPointerArray) InitWithOptions ¶
func (o *NSPointerArray) InitWithOptions(options NSPointerFunctionsOptions) *NSPointerArray
Initializes the receiver to use the given options.
func (*NSPointerArray) InitWithPointerFunctions ¶
func (o *NSPointerArray) InitWithPointerFunctions(functions *NSPointerFunctions) *NSPointerArray
Initializes the receiver to use the given functions.
func (*NSPointerArray) InsertPointerAtIndex ¶
func (o *NSPointerArray) InsertPointerAtIndex(item unsafe.Pointer, index uint)
Inserts a pointer at a given index.
func (*NSPointerArray) PointerAtIndex ¶
func (o *NSPointerArray) PointerAtIndex(index uint) unsafe.Pointer
Returns the pointer at a given index.
func (*NSPointerArray) PointerFunctions ¶
func (o *NSPointerArray) PointerFunctions() *NSPointerFunctions
func (*NSPointerArray) RemovePointerAtIndex ¶
func (o *NSPointerArray) RemovePointerAtIndex(index uint)
Removes the pointer at a given index.
func (*NSPointerArray) ReplacePointerAtIndexWithPointer ¶
func (o *NSPointerArray) ReplacePointerAtIndexWithPointer(index uint, item unsafe.Pointer)
Replaces the pointer at a given index.
func (*NSPointerArray) SetCount ¶
func (o *NSPointerArray) SetCount(count uint)
type NSPointerFunctions ¶
type NSPointerFunctions struct {
NSObject
}
An instance of NSPointerFunctions defines callout functions appropriate for managing a pointer reference held somewhere else.
Apple documentation: https://developer.apple.com/documentation/foundation/nspointerfunctions
func NSPointerFunctionsFromID ¶
func NSPointerFunctionsFromID(id objc.ID) *NSPointerFunctions
func NSPointerFunctionsPointerFunctionsWithOptions ¶
func NSPointerFunctionsPointerFunctionsWithOptions(options NSPointerFunctionsOptions) *NSPointerFunctions
Returns a new NSPointerFunctions object initialized with the given options.
func (*NSPointerFunctions) AcquireFunction ¶
func (o *NSPointerFunctions) AcquireFunction() unsafe.Pointer
func (*NSPointerFunctions) DescriptionFunction ¶
func (o *NSPointerFunctions) DescriptionFunction() unsafe.Pointer
func (*NSPointerFunctions) HashFunction ¶
func (o *NSPointerFunctions) HashFunction() unsafe.Pointer
func (*NSPointerFunctions) InitWithOptions ¶
func (o *NSPointerFunctions) InitWithOptions(options NSPointerFunctionsOptions) *NSPointerFunctions
Returns an NSPointerFunctions object initialized with the given options.
func (*NSPointerFunctions) IsEqualFunction ¶
func (o *NSPointerFunctions) IsEqualFunction() unsafe.Pointer
func (*NSPointerFunctions) RelinquishFunction ¶
func (o *NSPointerFunctions) RelinquishFunction() unsafe.Pointer
func (*NSPointerFunctions) SetAcquireFunction ¶
func (o *NSPointerFunctions) SetAcquireFunction(acquireFunction unsafe.Pointer)
func (*NSPointerFunctions) SetDescriptionFunction ¶
func (o *NSPointerFunctions) SetDescriptionFunction(descriptionFunction unsafe.Pointer)
func (*NSPointerFunctions) SetHashFunction ¶
func (o *NSPointerFunctions) SetHashFunction(hashFunction unsafe.Pointer)
func (*NSPointerFunctions) SetIsEqualFunction ¶
func (o *NSPointerFunctions) SetIsEqualFunction(isEqualFunction unsafe.Pointer)
func (*NSPointerFunctions) SetRelinquishFunction ¶
func (o *NSPointerFunctions) SetRelinquishFunction(relinquishFunction unsafe.Pointer)
func (*NSPointerFunctions) SetSizeFunction ¶
func (o *NSPointerFunctions) SetSizeFunction(sizeFunction unsafe.Pointer)
func (*NSPointerFunctions) SetUsesStrongWriteBarrier
deprecated
func (o *NSPointerFunctions) SetUsesStrongWriteBarrier(usesStrongWriteBarrier bool)
Deprecated: Garbage collection no longer supported
func (*NSPointerFunctions) SetUsesWeakReadAndWriteBarriers
deprecated
func (o *NSPointerFunctions) SetUsesWeakReadAndWriteBarriers(usesWeakReadAndWriteBarriers bool)
Deprecated: Garbage collection no longer supported
func (*NSPointerFunctions) SizeFunction ¶
func (o *NSPointerFunctions) SizeFunction() unsafe.Pointer
func (*NSPointerFunctions) UsesStrongWriteBarrier
deprecated
func (o *NSPointerFunctions) UsesStrongWriteBarrier() bool
Deprecated: Garbage collection no longer supported
func (*NSPointerFunctions) UsesWeakReadAndWriteBarriers
deprecated
func (o *NSPointerFunctions) UsesWeakReadAndWriteBarriers() bool
Deprecated: Garbage collection no longer supported
type NSPointerFunctionsOptions ¶
type NSPointerFunctionsOptions uint64
Defines the memory and personality options for an NSPointerFunctions object.
const ( NSPointerFunctionsStrongMemory NSPointerFunctionsOptions = 0 // Use weak read and write barriers; use garbage-collected memory on copyIn. NSPointerFunctionsZeroingWeakMemory NSPointerFunctionsOptions = 1 NSPointerFunctionsOpaqueMemory NSPointerFunctionsOptions = 2 NSPointerFunctionsMallocMemory NSPointerFunctionsOptions = 3 NSPointerFunctionsMachVirtualMemory NSPointerFunctionsOptions = 4 NSPointerFunctionsWeakMemory NSPointerFunctionsOptions = 5 NSPointerFunctionsObjectPersonality NSPointerFunctionsOptions = 0 NSPointerFunctionsOpaquePersonality NSPointerFunctionsOptions = 256 NSPointerFunctionsObjectPointerPersonality NSPointerFunctionsOptions = 512 NSPointerFunctionsCStringPersonality NSPointerFunctionsOptions = 768 NSPointerFunctionsStructPersonality NSPointerFunctionsOptions = 1024 NSPointerFunctionsIntegerPersonality NSPointerFunctionsOptions = 1280 NSPointerFunctionsCopyIn NSPointerFunctionsOptions = 65536 )
func (NSPointerFunctionsOptions) String ¶
func (e NSPointerFunctionsOptions) String() string
type NSPort ¶
type NSPort struct {
NSObject
}
An abstract class that represents a communication channel.
Apple documentation: https://developer.apple.com/documentation/foundation/nsport
func NSMachPortPortWithMachPort ¶
Creates and returns a port object configured with the given Mach port.
func NSMachPortPortWithMachPortOptions ¶
func NSMachPortPortWithMachPortOptions(machPort uint32, f NSMachPortOptions) *NSPort
Creates and returns a port object configured with the specified options and the given Mach port.
func NSPortFromID ¶
func NSPortPort ¶
func NSPortPort() *NSPort
Creates and returns a new NSPort object capable of both sending and receiving messages.
func (*NSPort) AddConnectionToRunLoopForMode ¶
func (o *NSPort) AddConnectionToRunLoopForMode(conn *NSConnection, runLoop *NSRunLoop, mode *NSString)
Adds the receiver to the list of ports monitored by a given run loop for the given input mode. Deprecated: Use NSXPCConnection instead
func (*NSPort) Delegate ¶
func (o *NSPort) Delegate() NSPortDelegate
func (*NSPort) Invalidate ¶
func (o *NSPort) Invalidate()
func (*NSPort) RemoveConnectionFromRunLoopForMode ¶
func (o *NSPort) RemoveConnectionFromRunLoopForMode(conn *NSConnection, runLoop *NSRunLoop, mode *NSString)
Removes the receiver from the list of ports monitored by runLoop in the given input mode, mode. Deprecated: Use NSXPCConnection instead
func (*NSPort) RemoveFromRunLoopForMode ¶
func (*NSPort) ReservedSpaceLength ¶
func (*NSPort) ScheduleInRunLoopForMode ¶
func (*NSPort) SendBeforeDateComponentsFromReserved ¶
func (*NSPort) SendBeforeDateMsgidComponentsFromReserved ¶
func (*NSPort) SetDelegate ¶
func (o *NSPort) SetDelegate(anObject NSPortDelegate)
type NSPortCoder ¶
type NSPortCoder struct {
NSCoder
}
A coder used to transmit object proxies (and sometimes objects themselves) between connections.
Apple documentation: https://developer.apple.com/documentation/foundation/nsportcoder Deprecated: Use NSXPCConnection instead
func NSPortCoderFromID ¶
func NSPortCoderFromID(id objc.ID) *NSPortCoder
func (*NSPortCoder) Connection ¶
func (o *NSPortCoder) Connection() *NSConnection
Returns the NSConnection object that uses the receiver. Deprecated: since macOS 10.7.
func (*NSPortCoder) DecodePortObject ¶
func (o *NSPortCoder) DecodePortObject() *NSPort
Decodes and returns an NSPort object that was previously encoded with any of the general encode...Object: messages.
func (*NSPortCoder) Dispatch ¶
func (o *NSPortCoder) Dispatch()
Processes and acts upon the distributed object message with which the receiver was initialized. Deprecated: since macOS 10.7.
func (*NSPortCoder) EncodePortObject ¶
func (o *NSPortCoder) EncodePortObject(aport *NSPort)
Encodes a given port so it can be properly reconstituted in the receiving process or thread.
func (*NSPortCoder) InitWithReceivePortSendPortComponents ¶
func (o *NSPortCoder) InitWithReceivePortSendPortComponents(rcvPort *NSPort, sndPort *NSPort, comps *NSArray[objc.ID]) objc.ID
Initializes and returns an NSPortCoder object. Deprecated: since macOS 10.7.
func (*NSPortCoder) IsBycopy ¶
func (o *NSPortCoder) IsBycopy() bool
Returns a Boolean value that indicates whether the receiver is encoding an object by copying it. Deprecated: Use NSXPCConnection instead
func (*NSPortCoder) IsByref ¶
func (o *NSPortCoder) IsByref() bool
Returns a Boolean value that indicates whether the receiver is encoding an object by reference.
type NSPortDelegate ¶
type NSPortDelegate interface {
}
NSPortDelegate wraps the ObjC protocol NSPortDelegate.
type NSPortMessage ¶
type NSPortMessage struct {
NSObject
}
A low-level, operating system-independent type for inter-application (and inter-thread) messages.
Apple documentation: https://developer.apple.com/documentation/foundation/nsportmessage
func NSPortMessageFromID ¶
func NSPortMessageFromID(id objc.ID) *NSPortMessage
func (*NSPortMessage) Components ¶
func (o *NSPortMessage) Components() *NSArray[objc.ID]
func (*NSPortMessage) InitWithSendPortReceivePortComponents ¶
func (o *NSPortMessage) InitWithSendPortReceivePortComponents(sendPort *NSPort, replyPort *NSPort, components *NSArray[objc.ID]) *NSPortMessage
func (*NSPortMessage) Msgid ¶
func (o *NSPortMessage) Msgid() uint32
func (*NSPortMessage) ReceivePort ¶
func (o *NSPortMessage) ReceivePort() *NSPort
func (*NSPortMessage) SendBeforeDate ¶
func (o *NSPortMessage) SendBeforeDate(date *NSDate) bool
func (*NSPortMessage) SendPort ¶
func (o *NSPortMessage) SendPort() *NSPort
func (*NSPortMessage) SetMsgid ¶
func (o *NSPortMessage) SetMsgid(msgid uint32)
type NSPortNameServer ¶
type NSPortNameServer struct {
NSObject
}
An object-oriented interface to the port registration service used by the distributed objects system.
Apple documentation: https://developer.apple.com/documentation/foundation/nsportnameserver Deprecated: Use NSXPCConnection instead
func NSPortNameServerFromID ¶
func NSPortNameServerFromID(id objc.ID) *NSPortNameServer
func NSPortNameServerSystemDefaultPortNameServer ¶
func NSPortNameServerSystemDefaultPortNameServer() *NSPortNameServer
Returns the single instance of NSPortNameServer for the application. Deprecated: Use NSXPCConnection instead
func (*NSPortNameServer) PortForName ¶
func (o *NSPortNameServer) PortForName(name *NSString) *NSPort
Looks up and returns the port registered under the specified name on the local host.
func (*NSPortNameServer) PortForNameHost ¶
func (o *NSPortNameServer) PortForNameHost(name *NSString, host *NSString) *NSPort
Looks up and returns the port registered under the specified name on a specified host.
func (*NSPortNameServer) RegisterPortName ¶
func (o *NSPortNameServer) RegisterPortName(port *NSPort, name *NSString) bool
Makes a given port available on the network under a specified name.
func (*NSPortNameServer) RemovePortForName ¶
func (o *NSPortNameServer) RemovePortForName(name *NSString) bool
Unregisters the port for a given name on the local host.
type NSPositionalSpecifier ¶
type NSPositionalSpecifier struct {
NSObject
}
A specifier for an insertion point in a container relative to another object in the container.
Apple documentation: https://developer.apple.com/documentation/foundation/nspositionalspecifier
func NSPositionalSpecifierFromID ¶
func NSPositionalSpecifierFromID(id objc.ID) *NSPositionalSpecifier
func (*NSPositionalSpecifier) Evaluate ¶
func (o *NSPositionalSpecifier) Evaluate()
Causes the receiver to evaluate its position.
func (*NSPositionalSpecifier) InitWithPositionObjectSpecifier ¶
func (o *NSPositionalSpecifier) InitWithPositionObjectSpecifier(position NSInsertionPosition, specifier *NSScriptObjectSpecifier) *NSPositionalSpecifier
Initializes a positional specifier with a given position relative to another given specifier.
func (*NSPositionalSpecifier) InsertionContainer ¶
func (o *NSPositionalSpecifier) InsertionContainer() objc.ID
func (*NSPositionalSpecifier) InsertionIndex ¶
func (o *NSPositionalSpecifier) InsertionIndex() int
func (*NSPositionalSpecifier) InsertionKey ¶
func (o *NSPositionalSpecifier) InsertionKey() *NSString
func (*NSPositionalSpecifier) InsertionReplaces ¶
func (o *NSPositionalSpecifier) InsertionReplaces() bool
func (*NSPositionalSpecifier) Position ¶
func (o *NSPositionalSpecifier) Position() NSInsertionPosition
func (*NSPositionalSpecifier) SetInsertionClassDescription ¶
func (o *NSPositionalSpecifier) SetInsertionClassDescription(classDescription *NSScriptClassDescription)
Sets the class description for the object or objects to be inserted.
type NSPostingStyle ¶
type NSPostingStyle uint64
The constants that specify when notifications are posted.
const ( NSPostWhenIdle NSPostingStyle = 1 NSPostASAP NSPostingStyle = 2 NSPostNow NSPostingStyle = 3 )
func (NSPostingStyle) String ¶
func (e NSPostingStyle) String() string
type NSPredicate ¶
type NSPredicate struct {
NSObject
}
A definition of logical conditions for constraining a search for a fetch or for in-memory filtering.
Apple documentation: https://developer.apple.com/documentation/foundation/nspredicate
func NSPredicateFromID ¶
func NSPredicateFromID(id objc.ID) *NSPredicate
func NSPredicatePredicateFromMetadataQueryString ¶
func NSPredicatePredicateFromMetadataQueryString(queryString *NSString) *NSPredicate
Creates a predicate with a metadata query string.
func NSPredicatePredicateWith ¶
func NSPredicatePredicateWith(block func(objc.ID, *NSDictionary[*NSString, objc.ID]) bool) *NSPredicate
Creates a predicate that evaluates using a specified block object and bindings dictionary.
func NSPredicatePredicateWithFormat ¶
func NSPredicatePredicateWithFormat(predicateFormat *NSString) *NSPredicate
Creates and returns a new predicate formed by creating a new string with a specified format and parsing the result.
func NSPredicatePredicateWithFormatArgumentArray ¶
func NSPredicatePredicateWithFormatArgumentArray(predicateFormat *NSString, arguments *NSArray[objc.ID]) *NSPredicate
Creates a predicate by substituting the values in a specified array into a format string and parsing the result.
func NSPredicatePredicateWithFormatArguments ¶
func NSPredicatePredicateWithFormatArguments(predicateFormat *NSString, argList string) *NSPredicate
Creates a predicate by substituting the values in an argument list into a format string and parsing the result.
func NSPredicatePredicateWithValue ¶
func NSPredicatePredicateWithValue(value bool) *NSPredicate
Creates and returns a predicate that always evaluates to a specified Boolean value.
func (*NSPredicate) AllowEvaluation ¶
func (o *NSPredicate) AllowEvaluation()
Forces a securely decoded predicate to allow evaluation.
func (*NSPredicate) AllowEvaluationWithValidatorError ¶
func (o *NSPredicate) AllowEvaluationWithValidatorError(validator NSPredicateValidating) (bool, error)
func (*NSPredicate) EvaluateWithObject ¶
func (o *NSPredicate) EvaluateWithObject(object objc.ID) bool
Returns a Boolean value that indicates whether the specified object matches the conditions that the predicate specifies.
func (*NSPredicate) EvaluateWithObjectSubstitutionVariables ¶
func (o *NSPredicate) EvaluateWithObjectSubstitutionVariables(object objc.ID, bindings *NSDictionary[*NSString, objc.ID]) bool
Returns a Boolean value that indicates whether the specified object matches the conditions that the predicate specifies after substituting in the values from a specified variables dictionary.
func (*NSPredicate) PredicateFormat ¶
func (o *NSPredicate) PredicateFormat() *NSString
func (*NSPredicate) PredicateWithSubstitutionVariables ¶
func (o *NSPredicate) PredicateWithSubstitutionVariables(variables *NSDictionary[*NSString, objc.ID]) *NSPredicate
Returns a copy of the predicate and substitutes the predicates variables with specified values from a specified substitution variables dictionary.
type NSPredicateOperatorType ¶
type NSPredicateOperatorType uint64
Defines the type of comparison for a comparison predicate.
const ( NSLessThanPredicateOperatorType NSPredicateOperatorType = 0 NSLessThanOrEqualToPredicateOperatorType NSPredicateOperatorType = 1 NSGreaterThanPredicateOperatorType NSPredicateOperatorType = 2 NSGreaterThanOrEqualToPredicateOperatorType NSPredicateOperatorType = 3 NSEqualToPredicateOperatorType NSPredicateOperatorType = 4 NSNotEqualToPredicateOperatorType NSPredicateOperatorType = 5 NSMatchesPredicateOperatorType NSPredicateOperatorType = 6 NSLikePredicateOperatorType NSPredicateOperatorType = 7 NSBeginsWithPredicateOperatorType NSPredicateOperatorType = 8 NSEndsWithPredicateOperatorType NSPredicateOperatorType = 9 NSInPredicateOperatorType NSPredicateOperatorType = 10 NSCustomSelectorPredicateOperatorType NSPredicateOperatorType = 11 NSContainsPredicateOperatorType NSPredicateOperatorType = 99 NSBetweenPredicateOperatorType NSPredicateOperatorType = 100 )
func (NSPredicateOperatorType) String ¶
func (e NSPredicateOperatorType) String() string
type NSPredicateValidating ¶
type NSPredicateValidating interface {
}
NSPredicateValidating wraps the ObjC protocol NSPredicateValidating.
type NSPresentationIntent ¶
type NSPresentationIntent struct {
NSObject
}
A type that contains the Markdown formatting for blocks of text, like paragraphs, lists, code blocks, and parts of tables.
Apple documentation: https://developer.apple.com/documentation/foundation/nspresentationintent
func NSPresentationIntentBlockQuoteIntentWithIdentityNestedInsideIntent ¶
func NSPresentationIntentBlockQuoteIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent
Creates a block-quote intent with the provided information.
func NSPresentationIntentCodeBlockIntentWithIdentityLanguageHintNestedInsideIntent ¶
func NSPresentationIntentCodeBlockIntentWithIdentityLanguageHintNestedInsideIntent(identity int, languageHint *NSString, parent *NSPresentationIntent) *NSPresentationIntent
Creates an code-block intent with the provided information.
func NSPresentationIntentFromID ¶
func NSPresentationIntentFromID(id objc.ID) *NSPresentationIntent
func NSPresentationIntentHeaderIntentWithIdentityLevelNestedInsideIntent ¶
func NSPresentationIntentHeaderIntentWithIdentityLevelNestedInsideIntent(identity int, level int, parent *NSPresentationIntent) *NSPresentationIntent
Creates a header intent with the provided information.
func NSPresentationIntentListItemIntentWithIdentityOrdinalNestedInsideIntent ¶
func NSPresentationIntentListItemIntentWithIdentityOrdinalNestedInsideIntent(identity int, ordinal int, parent *NSPresentationIntent) *NSPresentationIntent
Creates an item for an ordered list with the provided information.
func NSPresentationIntentOrderedListIntentWithIdentityNestedInsideIntent ¶
func NSPresentationIntentOrderedListIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent
Creates an ordered-list intent with the provided information.
func NSPresentationIntentParagraphIntentWithIdentityNestedInsideIntent ¶
func NSPresentationIntentParagraphIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent
Creates a paragraph intent with the provided information.
func NSPresentationIntentTableCellIntentWithIdentityColumnNestedInsideIntent ¶
func NSPresentationIntentTableCellIntentWithIdentityColumnNestedInsideIntent(identity int, column int, parent *NSPresentationIntent) *NSPresentationIntent
Creates a table cell intent with the provided information.
func NSPresentationIntentTableHeaderRowIntentWithIdentityNestedInsideIntent ¶
func NSPresentationIntentTableHeaderRowIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent
Creates a table header intent with the provided information.
func NSPresentationIntentTableIntentWithIdentityColumnCountAlignmentsNestedInsideIntent ¶
func NSPresentationIntentTableIntentWithIdentityColumnCountAlignmentsNestedInsideIntent(identity int, columnCount int, alignments *NSArray[*NSNumber], parent *NSPresentationIntent) *NSPresentationIntent
Creates a table intent with the provided information.
func NSPresentationIntentTableRowIntentWithIdentityRowNestedInsideIntent ¶
func NSPresentationIntentTableRowIntentWithIdentityRowNestedInsideIntent(identity int, row int, parent *NSPresentationIntent) *NSPresentationIntent
Creates a table row intent with the provided information.
func NSPresentationIntentThematicBreakIntentWithIdentityNestedInsideIntent ¶
func NSPresentationIntentThematicBreakIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent
Creates a thematic break intent with the provided information.
func NSPresentationIntentUnorderedListIntentWithIdentityNestedInsideIntent ¶
func NSPresentationIntentUnorderedListIntentWithIdentityNestedInsideIntent(identity int, parent *NSPresentationIntent) *NSPresentationIntent
Creates an unordered-list intent with the provided information.
func (*NSPresentationIntent) Column ¶
func (o *NSPresentationIntent) Column() int
The column to which this cell belongs (0-based). If the intent is not a cell, this value is 0.
func (*NSPresentationIntent) ColumnAlignments ¶
func (o *NSPresentationIntent) ColumnAlignments() *NSArray[*NSNumber]
If the intent is not a table, this value is `nil`.
func (*NSPresentationIntent) ColumnCount ¶
func (o *NSPresentationIntent) ColumnCount() int
If the intent is not a table, this value is 0.
func (*NSPresentationIntent) HeaderLevel ¶
func (o *NSPresentationIntent) HeaderLevel() int
If the intent is not a header, this value is 0.
func (*NSPresentationIntent) Identity ¶
func (o *NSPresentationIntent) Identity() int
An integer value which uniquely identifies this intent in the document. Identity disambiguates attributes which apply to contiguous text -- for example, two headers in a row with the same level. It can also be used to track the location in an attributed string of a particular part of a document, even after mutation.
func (*NSPresentationIntent) IndentationLevel ¶
func (o *NSPresentationIntent) IndentationLevel() int
The indentation level of this intent. Each nested list increases the indentation level by one; all elements within the same list (and not then nested into a child list intent) have the same indentation level. Text outside list intents has an indentation level of 0.
func (*NSPresentationIntent) IntentKind ¶
func (o *NSPresentationIntent) IntentKind() NSPresentationIntentKind
func (*NSPresentationIntent) IsEquivalentToPresentationIntent ¶
func (o *NSPresentationIntent) IsEquivalentToPresentationIntent(other *NSPresentationIntent) bool
Returns a Boolean value that indicates whether the current intent is equivalent to the specified intent.
func (*NSPresentationIntent) LanguageHint ¶
func (o *NSPresentationIntent) LanguageHint() *NSString
If the intent is not a code block, this value is `nil`.
func (*NSPresentationIntent) Ordinal ¶
func (o *NSPresentationIntent) Ordinal() int
If the intent is not a list, this value is 0.
func (*NSPresentationIntent) ParentIntent ¶
func (o *NSPresentationIntent) ParentIntent() *NSPresentationIntent
func (*NSPresentationIntent) Row ¶
func (o *NSPresentationIntent) Row() int
The row to which this cell belongs (0-based). If the intent is not a row, this value is 0. Header rows are always row 0. If the table has more rows, those start at row 1.
type NSPresentationIntentKind ¶
type NSPresentationIntentKind int64
An enumeration of intended display styles for blocks of text like paragraphs, lists, and code blocks.
const ( // A presentation style for a paragraph of text. NSPresentationIntentKindParagraph NSPresentationIntentKind = 0 // A presentation style for a section header. NSPresentationIntentKindHeader NSPresentationIntentKind = 1 // A presentation style for an ordered list of items. NSPresentationIntentKindOrderedList NSPresentationIntentKind = 2 // A presentation style for an unordered list of items. NSPresentationIntentKindUnorderedList NSPresentationIntentKind = 3 // A presentation style for a list of items. NSPresentationIntentKindListItem NSPresentationIntentKind = 4 // A presentation style for a block of code. NSPresentationIntentKindCodeBlock NSPresentationIntentKind = 5 // A presentation style for a block quote. NSPresentationIntentKindBlockQuote NSPresentationIntentKind = 6 // A presentation style for a horizontal rule. NSPresentationIntentKindThematicBreak NSPresentationIntentKind = 7 // A presentation style for a table. NSPresentationIntentKindTable NSPresentationIntentKind = 8 // A presentation style for the header row of a table. NSPresentationIntentKindTableHeaderRow NSPresentationIntentKind = 9 // A presentation style for a row of a table. NSPresentationIntentKindTableRow NSPresentationIntentKind = 10 // A presentation style for a single cell of a table. NSPresentationIntentKindTableCell NSPresentationIntentKind = 11 )
func (NSPresentationIntentKind) String ¶
func (e NSPresentationIntentKind) String() string
type NSPresentationIntentTableColumnAlignment ¶
type NSPresentationIntentTableColumnAlignment int64
An enumeration of values for aligning the contents of table columns.
const ( // A presentation style for columns with left-aligned text. NSPresentationIntentTableColumnAlignmentLeft NSPresentationIntentTableColumnAlignment = 0 // A presentation style for columns with center-aligned text. NSPresentationIntentTableColumnAlignmentCenter NSPresentationIntentTableColumnAlignment = 1 // A presentation style for columns with right-aligned text. NSPresentationIntentTableColumnAlignmentRight NSPresentationIntentTableColumnAlignment = 2 )
func (NSPresentationIntentTableColumnAlignment) String ¶
func (e NSPresentationIntentTableColumnAlignment) String() string
type NSProcessInfo ¶
type NSProcessInfo struct {
NSObject
}
A collection of information about the current process.
Apple documentation: https://developer.apple.com/documentation/foundation/nsprocessinfo
func NSProcessInfoFromID ¶
func NSProcessInfoFromID(id objc.ID) *NSProcessInfo
func NSProcessInfoProcessInfo ¶
func NSProcessInfoProcessInfo() *NSProcessInfo
func (*NSProcessInfo) ActiveProcessorCount ¶
func (o *NSProcessInfo) ActiveProcessorCount() uint
func (*NSProcessInfo) Arguments ¶
func (o *NSProcessInfo) Arguments() *NSArray[*NSString]
func (*NSProcessInfo) AutomaticTerminationSupportEnabled ¶
func (o *NSProcessInfo) AutomaticTerminationSupportEnabled() bool
func (*NSProcessInfo) BeginActivityWithOptionsReason ¶
func (o *NSProcessInfo) BeginActivityWithOptionsReason(options NSActivityOptions, reason *NSString) NSObjectProtocol
func (*NSProcessInfo) DisableAutomaticTermination ¶
func (o *NSProcessInfo) DisableAutomaticTermination(reason *NSString)
func (*NSProcessInfo) DisableSuddenTermination ¶
func (o *NSProcessInfo) DisableSuddenTermination()
func (*NSProcessInfo) EnableAutomaticTermination ¶
func (o *NSProcessInfo) EnableAutomaticTermination(reason *NSString)
func (*NSProcessInfo) EnableSuddenTermination ¶
func (o *NSProcessInfo) EnableSuddenTermination()
func (*NSProcessInfo) EndActivity ¶
func (o *NSProcessInfo) EndActivity(activity NSObjectProtocol)
func (*NSProcessInfo) Environment ¶
func (o *NSProcessInfo) Environment() *NSDictionary[*NSString, *NSString]
func (*NSProcessInfo) FullUserName ¶
func (o *NSProcessInfo) FullUserName() *NSString
func (*NSProcessInfo) GloballyUniqueString ¶
func (o *NSProcessInfo) GloballyUniqueString() *NSString
func (*NSProcessInfo) HostName ¶
func (o *NSProcessInfo) HostName() *NSString
func (*NSProcessInfo) IsLowPowerModeEnabled ¶
func (o *NSProcessInfo) IsLowPowerModeEnabled() bool
func (*NSProcessInfo) IsMacCatalystApp ¶
func (o *NSProcessInfo) IsMacCatalystApp() bool
func (*NSProcessInfo) IsOperatingSystemAtLeastVersion ¶
func (o *NSProcessInfo) IsOperatingSystemAtLeastVersion(version NSOperatingSystemVersion) bool
func (*NSProcessInfo) IsiOSAppOnMac ¶
func (o *NSProcessInfo) IsiOSAppOnMac() bool
func (*NSProcessInfo) IsiOSAppOnVision ¶
func (o *NSProcessInfo) IsiOSAppOnVision() bool
func (*NSProcessInfo) OperatingSystem
deprecated
func (o *NSProcessInfo) OperatingSystem() uint
Deprecated: -operatingSystem always returns NSMACHOperatingSystem, use -operatingSystemVersion or -isOperatingSystemAtLeastVersion: instead
func (*NSProcessInfo) OperatingSystemName
deprecated
func (o *NSProcessInfo) OperatingSystemName() *NSString
Deprecated: -operatingSystemName always returns NSMACHOperatingSystem, use -operatingSystemVersionString instead
func (*NSProcessInfo) OperatingSystemVersion ¶
func (o *NSProcessInfo) OperatingSystemVersion() NSOperatingSystemVersion
func (*NSProcessInfo) OperatingSystemVersionString
deprecated
func (o *NSProcessInfo) OperatingSystemVersionString() *NSString
Deprecated: -operatingSystemName always returns NSMACHOperatingSystem, use -operatingSystemVersionString instead
func (*NSProcessInfo) PerformActivityWithOptionsReasonUsing ¶
func (o *NSProcessInfo) PerformActivityWithOptionsReasonUsing(options NSActivityOptions, reason *NSString, block func())
func (*NSProcessInfo) PhysicalMemory ¶
func (o *NSProcessInfo) PhysicalMemory() uint64
func (*NSProcessInfo) ProcessIdentifier ¶
func (o *NSProcessInfo) ProcessIdentifier() int
func (*NSProcessInfo) ProcessName ¶
func (o *NSProcessInfo) ProcessName() *NSString
func (*NSProcessInfo) ProcessorCount ¶
func (o *NSProcessInfo) ProcessorCount() uint
func (*NSProcessInfo) SetAutomaticTerminationSupportEnabled ¶
func (o *NSProcessInfo) SetAutomaticTerminationSupportEnabled(automaticTerminationSupportEnabled bool)
func (*NSProcessInfo) SetProcessName ¶
func (o *NSProcessInfo) SetProcessName(processName *NSString)
func (*NSProcessInfo) SystemUptime ¶
func (o *NSProcessInfo) SystemUptime() float64
func (*NSProcessInfo) ThermalState ¶
func (o *NSProcessInfo) ThermalState() NSProcessInfoThermalState
func (*NSProcessInfo) UserName ¶
func (o *NSProcessInfo) UserName() *NSString
type NSProcessInfoThermalState ¶
type NSProcessInfoThermalState int64
Values used to indicate the system’s thermal state.
const ( NSProcessInfoThermalStateNominal NSProcessInfoThermalState = 0 NSProcessInfoThermalStateFair NSProcessInfoThermalState = 1 NSProcessInfoThermalStateSerious NSProcessInfoThermalState = 2 NSProcessInfoThermalStateCritical NSProcessInfoThermalState = 3 )
func (NSProcessInfoThermalState) String ¶
func (e NSProcessInfoThermalState) String() string
type NSProgress ¶
type NSProgress struct {
NSObject
}
An object that conveys ongoing progress to the user for a specified task.
Apple documentation: https://developer.apple.com/documentation/foundation/nsprogress
func NSProgressCurrentProgress ¶
func NSProgressCurrentProgress() *NSProgress
func NSProgressDiscreteProgressWithTotalUnitCount ¶
func NSProgressDiscreteProgressWithTotalUnitCount(unitCount int64) *NSProgress
func NSProgressFromID ¶
func NSProgressFromID(id objc.ID) *NSProgress
func NSProgressProgressWithTotalUnitCount ¶
func NSProgressProgressWithTotalUnitCount(unitCount int64) *NSProgress
func NSProgressProgressWithTotalUnitCountParentPendingUnitCount ¶
func NSProgressProgressWithTotalUnitCountParentPendingUnitCount(unitCount int64, parent *NSProgress, portionOfParentTotalUnitCount int64) *NSProgress
func (*NSProgress) AddChildWithPendingUnitCount ¶
func (o *NSProgress) AddChildWithPendingUnitCount(child *NSProgress, inUnitCount int64)
func (*NSProgress) BecomeCurrentWithPendingUnitCount ¶
func (o *NSProgress) BecomeCurrentWithPendingUnitCount(unitCount int64)
func (*NSProgress) Cancel ¶
func (o *NSProgress) Cancel()
func (*NSProgress) CancellationHandler ¶
func (o *NSProgress) CancellationHandler() objc.Block
func (*NSProgress) CompletedUnitCount ¶
func (o *NSProgress) CompletedUnitCount() int64
func (*NSProgress) EstimatedTimeRemaining ¶
func (o *NSProgress) EstimatedTimeRemaining() *NSNumber
func (*NSProgress) FileCompletedCount ¶
func (o *NSProgress) FileCompletedCount() *NSNumber
func (*NSProgress) FileOperationKind ¶
func (o *NSProgress) FileOperationKind() *NSString
func (*NSProgress) FileTotalCount ¶
func (o *NSProgress) FileTotalCount() *NSNumber
func (*NSProgress) FileURL ¶
func (o *NSProgress) FileURL() *NSURL
func (*NSProgress) FractionCompleted ¶
func (o *NSProgress) FractionCompleted() float64
func (*NSProgress) InitWithParentUserInfo ¶
func (o *NSProgress) InitWithParentUserInfo(parentProgressOrNil *NSProgress, userInfoOrNil *NSDictionary[*NSString, objc.ID]) *NSProgress
func (*NSProgress) IsCancellable ¶
func (o *NSProgress) IsCancellable() bool
func (*NSProgress) IsCancelled ¶
func (o *NSProgress) IsCancelled() bool
func (*NSProgress) IsFinished ¶
func (o *NSProgress) IsFinished() bool
func (*NSProgress) IsIndeterminate ¶
func (o *NSProgress) IsIndeterminate() bool
func (*NSProgress) IsOld ¶
func (o *NSProgress) IsOld() bool
func (*NSProgress) IsPausable ¶
func (o *NSProgress) IsPausable() bool
func (*NSProgress) IsPaused ¶
func (o *NSProgress) IsPaused() bool
func (*NSProgress) Kind ¶
func (o *NSProgress) Kind() *NSString
func (*NSProgress) LocalizedAdditionalDescription ¶
func (o *NSProgress) LocalizedAdditionalDescription() *NSString
func (*NSProgress) LocalizedDescription ¶
func (o *NSProgress) LocalizedDescription() *NSString
func (*NSProgress) Pause ¶
func (o *NSProgress) Pause()
func (*NSProgress) PausingHandler ¶
func (o *NSProgress) PausingHandler() objc.Block
func (*NSProgress) PerformAsCurrentWithPendingUnitCountUsing ¶
func (o *NSProgress) PerformAsCurrentWithPendingUnitCountUsing(unitCount int64, work func())
Retrieves the current thread’s progress object, executes the specified block, and increments the progress object by the specified units of work.
func (*NSProgress) Publish ¶
func (o *NSProgress) Publish()
func (*NSProgress) ResignCurrent ¶
func (o *NSProgress) ResignCurrent()
func (*NSProgress) Resume ¶
func (o *NSProgress) Resume()
func (*NSProgress) ResumingHandler ¶
func (o *NSProgress) ResumingHandler() objc.Block
func (*NSProgress) SetCancellable ¶
func (o *NSProgress) SetCancellable(cancellable bool)
func (*NSProgress) SetCancellationHandler ¶
func (o *NSProgress) SetCancellationHandler(cancellationHandler func())
func (*NSProgress) SetCompletedUnitCount ¶
func (o *NSProgress) SetCompletedUnitCount(completedUnitCount int64)
func (*NSProgress) SetEstimatedTimeRemaining ¶
func (o *NSProgress) SetEstimatedTimeRemaining(estimatedTimeRemaining *NSNumber)
func (*NSProgress) SetFileCompletedCount ¶
func (o *NSProgress) SetFileCompletedCount(fileCompletedCount *NSNumber)
func (*NSProgress) SetFileOperationKind ¶
func (o *NSProgress) SetFileOperationKind(fileOperationKind *NSString)
func (*NSProgress) SetFileTotalCount ¶
func (o *NSProgress) SetFileTotalCount(fileTotalCount *NSNumber)
func (*NSProgress) SetFileURL ¶
func (o *NSProgress) SetFileURL(fileURL *NSURL)
func (*NSProgress) SetKind ¶
func (o *NSProgress) SetKind(kind *NSString)
func (*NSProgress) SetLocalizedAdditionalDescription ¶
func (o *NSProgress) SetLocalizedAdditionalDescription(localizedAdditionalDescription *NSString)
func (*NSProgress) SetLocalizedDescription ¶
func (o *NSProgress) SetLocalizedDescription(localizedDescription *NSString)
func (*NSProgress) SetPausable ¶
func (o *NSProgress) SetPausable(pausable bool)
func (*NSProgress) SetPausingHandler ¶
func (o *NSProgress) SetPausingHandler(pausingHandler func())
func (*NSProgress) SetResumingHandler ¶
func (o *NSProgress) SetResumingHandler(resumingHandler func())
func (*NSProgress) SetThroughput ¶
func (o *NSProgress) SetThroughput(throughput *NSNumber)
func (*NSProgress) SetTotalUnitCount ¶
func (o *NSProgress) SetTotalUnitCount(totalUnitCount int64)
func (*NSProgress) SetUserInfoObjectForKey ¶
func (o *NSProgress) SetUserInfoObjectForKey(objectOrNil objc.ID, key *NSString)
func (*NSProgress) Throughput ¶
func (o *NSProgress) Throughput() *NSNumber
func (*NSProgress) TotalUnitCount ¶
func (o *NSProgress) TotalUnitCount() int64
func (*NSProgress) Unpublish ¶
func (o *NSProgress) Unpublish()
func (*NSProgress) UserInfo ¶
func (o *NSProgress) UserInfo() *NSDictionary[*NSString, objc.ID]
type NSProgressReporting ¶
type NSProgressReporting interface {
Progress() *NSProgress
}
NSProgressReporting wraps the ObjC protocol NSProgressReporting.
type NSPropertyListFormat ¶
type NSPropertyListFormat uint64
These constants are used to specify a property list serialization format.
const ( NSPropertyListOpenStepFormat NSPropertyListFormat = 1 NSPropertyListXMLFormat_v1_0 NSPropertyListFormat = 100 NSPropertyListBinaryFormat_v1_0 NSPropertyListFormat = 200 )
func (NSPropertyListFormat) String ¶
func (e NSPropertyListFormat) String() string
type NSPropertyListMutabilityOptions ¶
type NSPropertyListMutabilityOptions uint64
These constants specify mutability options in property lists.
const ( // Causes the returned property list to contain immutable objects. NSPropertyListImmutable NSPropertyListMutabilityOptions = 0 NSPropertyListMutableContainers NSPropertyListMutabilityOptions = 1 NSPropertyListMutableContainersAndLeaves NSPropertyListMutabilityOptions = 2 )
func (NSPropertyListMutabilityOptions) String ¶
func (e NSPropertyListMutabilityOptions) String() string
type NSPropertyListSerialization ¶
type NSPropertyListSerialization struct {
NSObject
}
An object that converts between a property list and one of several serialized representations.
Apple documentation: https://developer.apple.com/documentation/foundation/nspropertylistserialization
func NSPropertyListSerializationFromID ¶
func NSPropertyListSerializationFromID(id objc.ID) *NSPropertyListSerialization
type NSProtocolChecker ¶
type NSProtocolChecker struct {
NSProxy
}
An object that restricts the messages that can be sent to another object (referred to as the checker’s delegate).
Apple documentation: https://developer.apple.com/documentation/foundation/nsprotocolchecker
func NSProtocolCheckerFromID ¶
func NSProtocolCheckerFromID(id objc.ID) *NSProtocolChecker
func NSProtocolCheckerProtocolCheckerWithTargetProtocol ¶
func NSProtocolCheckerProtocolCheckerWithTargetProtocol(anObject *NSObject, aProtocol unsafe.Pointer) *NSProtocolChecker
Allocates and initializes an NSProtocolChecker instance that will forward any messages in aProtocol to anObject, the protocol checker’s target.
func (*NSProtocolChecker) InitWithTargetProtocol ¶
func (o *NSProtocolChecker) InitWithTargetProtocol(anObject *NSObject, aProtocol unsafe.Pointer) *NSProtocolChecker
Initializes a newly allocated NSProtocolChecker instance that will forward any messages in aProtocol to anObject, the protocol checker’s target.
func (*NSProtocolChecker) Protocol ¶
func (o *NSProtocolChecker) Protocol() unsafe.Pointer
func (*NSProtocolChecker) Target ¶
func (o *NSProtocolChecker) Target() *NSObject
type NSProxy ¶
type NSProxy struct {
// contains filtered or unexported fields
}
An abstract superclass defining an API for objects that act as stand-ins for other objects or for objects that don’t exist yet.
Apple documentation: https://developer.apple.com/documentation/foundation/nsproxy
func NSProxyFromID ¶
func (*NSProxy) Dealloc ¶
func (o *NSProxy) Dealloc()
Deallocates the memory occupied by the receiver.
func (*NSProxy) DebugDescription ¶
func (*NSProxy) Description ¶
func (*NSProxy) Finalize ¶
func (o *NSProxy) Finalize()
The garbage collector invokes this method on the receiver before disposing of the memory it uses.
func (*NSProxy) ForwardInvocation ¶
func (o *NSProxy) ForwardInvocation(invocation *NSInvocation)
Passes a given invocation to the real object the proxy represents.
func (*NSProxy) MethodSignatureForSelector ¶
func (o *NSProxy) MethodSignatureForSelector(sel objc.SEL) *NSMethodSignature
Raises NSInvalidArgumentException. Override this method in your concrete subclass to return a proper NSMethodSignature object for the given selector and the class your proxy objects stand in for.
type NSPurgeableData ¶
type NSPurgeableData struct {
NSMutableData
}
A mutable data object containing bytes that can be discarded when they’re no longer needed.
Apple documentation: https://developer.apple.com/documentation/foundation/nspurgeabledata
func NSPurgeableDataFromID ¶
func NSPurgeableDataFromID(id objc.ID) *NSPurgeableData
type NSQualityOfService ¶
type NSQualityOfService int64
Constants that indicate the nature and importance of work to the system.
const ( NSQualityOfServiceUserInteractive NSQualityOfService = 33 NSQualityOfServiceUserInitiated NSQualityOfService = 25 NSQualityOfServiceUtility NSQualityOfService = 17 NSQualityOfServiceBackground NSQualityOfService = 9 NSQualityOfServiceDefault NSQualityOfService = -1 )
func (NSQualityOfService) String ¶
func (e NSQualityOfService) String() string
type NSQuitCommand ¶
type NSQuitCommand struct {
NSScriptCommand
}
A command that quits the specified app.
Apple documentation: https://developer.apple.com/documentation/foundation/nsquitcommand
func NSQuitCommandFromID ¶
func NSQuitCommandFromID(id objc.ID) *NSQuitCommand
func (*NSQuitCommand) SaveOptions ¶
func (o *NSQuitCommand) SaveOptions() NSSaveOptions
type NSRange ¶
C struct: _NSRange
func NSIntersectionRange ¶
func NSMakeRange ¶
func NSRangeFromString ¶
func NSUnionRange ¶
type NSRangeSpecifier ¶
type NSRangeSpecifier struct {
NSScriptObjectSpecifier
}
A specifier for a range of objects in a container.
Apple documentation: https://developer.apple.com/documentation/foundation/nsrangespecifier
func NSRangeSpecifierFromID ¶
func NSRangeSpecifierFromID(id objc.ID) *NSRangeSpecifier
func (*NSRangeSpecifier) EndSpecifier ¶
func (o *NSRangeSpecifier) EndSpecifier() *NSScriptObjectSpecifier
func (*NSRangeSpecifier) InitWithCoder ¶
func (o *NSRangeSpecifier) InitWithCoder(inCoder *NSCoder) *NSRangeSpecifier
func (*NSRangeSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyStartSpecifierEndSpecifier ¶
func (o *NSRangeSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyStartSpecifierEndSpecifier(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString, startSpec *NSScriptObjectSpecifier, endSpec *NSScriptObjectSpecifier) *NSRangeSpecifier
Returns a range specifier initialized with the given properties.
func (*NSRangeSpecifier) SetEndSpecifier ¶
func (o *NSRangeSpecifier) SetEndSpecifier(endSpecifier *NSScriptObjectSpecifier)
func (*NSRangeSpecifier) SetStartSpecifier ¶
func (o *NSRangeSpecifier) SetStartSpecifier(startSpecifier *NSScriptObjectSpecifier)
func (*NSRangeSpecifier) StartSpecifier ¶
func (o *NSRangeSpecifier) StartSpecifier() *NSScriptObjectSpecifier
type NSRectEdge ¶
type NSRectEdge uint64
const ( // The minimum X edge. NSRectEdgeMinX NSRectEdge = 0 // The minimum Y edge. NSRectEdgeMinY NSRectEdge = 1 // The maximum X edge. NSRectEdgeMaxX NSRectEdge = 2 // The maximum Y edge. NSRectEdgeMaxY NSRectEdge = 3 // The minimum X edge. NSMinXEdge NSRectEdge = 0 // The minimum Y edge. NSMinYEdge NSRectEdge = 1 // The maximum X edge. NSMaxXEdge NSRectEdge = 2 // The maximum Y edge. NSMaxYEdge NSRectEdge = 3 )
func (NSRectEdge) String ¶
func (e NSRectEdge) String() string
type NSRecursiveLock ¶
type NSRecursiveLock struct {
NSObject
}
A lock that may be acquired multiple times by the same thread without causing a deadlock.
Apple documentation: https://developer.apple.com/documentation/foundation/nsrecursivelock
func NSRecursiveLockFromID ¶
func NSRecursiveLockFromID(id objc.ID) *NSRecursiveLock
func (*NSRecursiveLock) LockBeforeDate ¶
func (o *NSRecursiveLock) LockBeforeDate(limit *NSDate) bool
Attempts to acquire a lock before a given date.
func (*NSRecursiveLock) Name ¶
func (o *NSRecursiveLock) Name() *NSString
func (*NSRecursiveLock) SetName ¶
func (o *NSRecursiveLock) SetName(name *NSString)
func (*NSRecursiveLock) TryLock ¶
func (o *NSRecursiveLock) TryLock() bool
Attempts to acquire a lock, and immediately returns a Boolean value that indicates whether the attempt was successful.
type NSRegularExpression ¶
type NSRegularExpression struct {
NSObject
}
An immutable representation of a compiled regular expression that you apply to Unicode strings.
Apple documentation: https://developer.apple.com/documentation/foundation/nsregularexpression
func NSRegularExpressionFromID ¶
func NSRegularExpressionFromID(id objc.ID) *NSRegularExpression
func NSRegularExpressionRegularExpressionWithPatternOptionsError ¶
func NSRegularExpressionRegularExpressionWithPatternOptionsError(pattern *NSString, options NSRegularExpressionOptions) (*NSRegularExpression, error)
Creates an NSRegularExpression instance with the specified regular expression pattern and options.
func (*NSRegularExpression) EnumerateMatchesInStringOptionsRangeUsing ¶
func (o *NSRegularExpression) EnumerateMatchesInStringOptionsRangeUsing(string_ *NSString, options NSMatchingOptions, range_ NSRange, block func(*NSTextCheckingResult, NSMatchingFlags, *bool))
Enumerates the string allowing the Block to handle each regular expression match.
func (*NSRegularExpression) FirstMatchInStringOptionsRange ¶
func (o *NSRegularExpression) FirstMatchInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) *NSTextCheckingResult
Returns the first match of the regular expression within the specified range of the string.
func (*NSRegularExpression) InitWithPatternOptionsError ¶
func (o *NSRegularExpression) InitWithPatternOptionsError(pattern *NSString, options NSRegularExpressionOptions) (*NSRegularExpression, error)
Returns an initialized NSRegularExpression instance with the specified regular expression pattern and options.
func (*NSRegularExpression) MatchesInStringOptionsRange ¶
func (o *NSRegularExpression) MatchesInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) *NSArray[*NSTextCheckingResult]
Returns an array containing all the matches of the regular expression in the string.
func (*NSRegularExpression) NumberOfCaptureGroups ¶
func (o *NSRegularExpression) NumberOfCaptureGroups() uint
func (*NSRegularExpression) NumberOfMatchesInStringOptionsRange ¶
func (o *NSRegularExpression) NumberOfMatchesInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) uint
Returns the number of matches of the regular expression within the specified range of the string.
func (*NSRegularExpression) Options ¶
func (o *NSRegularExpression) Options() NSRegularExpressionOptions
func (*NSRegularExpression) Pattern ¶
func (o *NSRegularExpression) Pattern() *NSString
func (*NSRegularExpression) RangeOfFirstMatchInStringOptionsRange ¶
func (o *NSRegularExpression) RangeOfFirstMatchInStringOptionsRange(string_ *NSString, options NSMatchingOptions, range_ NSRange) NSRange
Returns the range of the first match of the regular expression within the specified range of the string.
func (*NSRegularExpression) ReplaceMatchesInStringOptionsRangeWithTemplate ¶
func (o *NSRegularExpression) ReplaceMatchesInStringOptionsRangeWithTemplate(string_ *NSMutableString, options NSMatchingOptions, range_ NSRange, templ *NSString) uint
Replaces regular expression matches within the mutable string using the template string.
func (*NSRegularExpression) ReplacementStringForResultInStringOffsetTemplate ¶
func (o *NSRegularExpression) ReplacementStringForResultInStringOffsetTemplate(result *NSTextCheckingResult, string_ *NSString, offset int, templ *NSString) *NSString
Used to perform template substitution for a single result for clients implementing their own replace functionality.
func (*NSRegularExpression) StringByReplacingMatchesInStringOptionsRangeWithTemplate ¶
func (o *NSRegularExpression) StringByReplacingMatchesInStringOptionsRangeWithTemplate(string_ *NSString, options NSMatchingOptions, range_ NSRange, templ *NSString) *NSString
Returns a new string containing matching regular expressions replaced with the template string.
type NSRegularExpressionOptions ¶
type NSRegularExpressionOptions uint64
const ( NSRegularExpressionCaseInsensitive NSRegularExpressionOptions = 1 NSRegularExpressionAllowCommentsAndWhitespace NSRegularExpressionOptions = 2 NSRegularExpressionIgnoreMetacharacters NSRegularExpressionOptions = 4 NSRegularExpressionDotMatchesLineSeparators NSRegularExpressionOptions = 8 NSRegularExpressionAnchorsMatchLines NSRegularExpressionOptions = 16 NSRegularExpressionUseUnixLineSeparators NSRegularExpressionOptions = 32 NSRegularExpressionUseUnicodeWordBoundaries NSRegularExpressionOptions = 64 )
func (NSRegularExpressionOptions) String ¶
func (e NSRegularExpressionOptions) String() string
type NSRelativeDateTimeFormatter ¶
type NSRelativeDateTimeFormatter struct {
NSFormatter
}
A formatter that creates locale-aware string representations of a relative date or time.
Apple documentation: https://developer.apple.com/documentation/foundation/nsrelativedatetimeformatter
func NSRelativeDateTimeFormatterFromID ¶
func NSRelativeDateTimeFormatterFromID(id objc.ID) *NSRelativeDateTimeFormatter
func (*NSRelativeDateTimeFormatter) Calendar ¶
func (o *NSRelativeDateTimeFormatter) Calendar() *NSCalendar
func (*NSRelativeDateTimeFormatter) DateTimeStyle ¶
func (o *NSRelativeDateTimeFormatter) DateTimeStyle() NSRelativeDateTimeFormatterStyle
func (*NSRelativeDateTimeFormatter) FormattingContext ¶
func (o *NSRelativeDateTimeFormatter) FormattingContext() NSFormattingContext
func (*NSRelativeDateTimeFormatter) Locale ¶
func (o *NSRelativeDateTimeFormatter) Locale() *NSLocale
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 (o *NSRelativeDateTimeFormatter) SetUnitsStyle(unitsStyle NSRelativeDateTimeFormatterUnitsStyle)
func (*NSRelativeDateTimeFormatter) UnitsStyle ¶
func (o *NSRelativeDateTimeFormatter) UnitsStyle() NSRelativeDateTimeFormatterUnitsStyle
type NSRelativeDateTimeFormatterStyle ¶
type NSRelativeDateTimeFormatterStyle int64
A type that represents the style to use when formatting relative dates, such as “1 week ago” or “last week”.
const ( NSRelativeDateTimeFormatterStyleNumeric NSRelativeDateTimeFormatterStyle = 0 NSRelativeDateTimeFormatterStyleNamed NSRelativeDateTimeFormatterStyle = 1 )
func (NSRelativeDateTimeFormatterStyle) String ¶
func (e NSRelativeDateTimeFormatterStyle) String() string
type NSRelativeDateTimeFormatterUnitsStyle ¶
type NSRelativeDateTimeFormatterUnitsStyle int64
A type that represents the style to use when formatting the units of relative dates.
const ( NSRelativeDateTimeFormatterUnitsStyleFull NSRelativeDateTimeFormatterUnitsStyle = 0 NSRelativeDateTimeFormatterUnitsStyleSpellOut NSRelativeDateTimeFormatterUnitsStyle = 1 NSRelativeDateTimeFormatterUnitsStyleShort NSRelativeDateTimeFormatterUnitsStyle = 2 NSRelativeDateTimeFormatterUnitsStyleAbbreviated NSRelativeDateTimeFormatterUnitsStyle = 3 )
func (NSRelativeDateTimeFormatterUnitsStyle) String ¶
func (e NSRelativeDateTimeFormatterUnitsStyle) String() string
type NSRelativePosition ¶
type NSRelativePosition uint64
These constants are used by relativePosition and relativePosition.
const ( NSRelativeAfter NSRelativePosition = 0 NSRelativeBefore NSRelativePosition = 1 )
func (NSRelativePosition) String ¶
func (e NSRelativePosition) String() string
type NSRelativeSpecifier ¶
type NSRelativeSpecifier struct {
NSScriptObjectSpecifier
}
A specifier that indicates an object in a collection by its position relative to another object.
Apple documentation: https://developer.apple.com/documentation/foundation/nsrelativespecifier
func NSRelativeSpecifierFromID ¶
func NSRelativeSpecifierFromID(id objc.ID) *NSRelativeSpecifier
func (*NSRelativeSpecifier) BaseSpecifier ¶
func (o *NSRelativeSpecifier) BaseSpecifier() *NSScriptObjectSpecifier
func (*NSRelativeSpecifier) InitWithCoder ¶
func (o *NSRelativeSpecifier) InitWithCoder(inCoder *NSCoder) *NSRelativeSpecifier
func (*NSRelativeSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyRelativePositionBaseSpecifier ¶
func (o *NSRelativeSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyRelativePositionBaseSpecifier(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString, relPos NSRelativePosition, baseSpecifier *NSScriptObjectSpecifier) *NSRelativeSpecifier
Invokes the super class’s initWithContainerClassDescription:containerSpecifier:key: method and initializes the relative position and base specifier to relPos and baseSpecifier.
func (*NSRelativeSpecifier) RelativePosition ¶
func (o *NSRelativeSpecifier) RelativePosition() NSRelativePosition
func (*NSRelativeSpecifier) SetBaseSpecifier ¶
func (o *NSRelativeSpecifier) SetBaseSpecifier(baseSpecifier *NSScriptObjectSpecifier)
func (*NSRelativeSpecifier) SetRelativePosition ¶
func (o *NSRelativeSpecifier) SetRelativePosition(relativePosition NSRelativePosition)
type NSRoundingMode ¶
type NSRoundingMode uint64
These constants specify rounding behaviors.
const ( NSRoundPlain NSRoundingMode = 0 NSRoundDown NSRoundingMode = 1 NSRoundUp NSRoundingMode = 2 NSRoundBankers NSRoundingMode = 3 )
func (NSRoundingMode) String ¶
func (e NSRoundingMode) String() string
type NSRunLoop ¶
type NSRunLoop struct {
NSObject
}
The programmatic interface to objects that manage input sources.
Apple documentation: https://developer.apple.com/documentation/foundation/nsrunloop
func NSRunLoopCurrentRunLoop ¶
func NSRunLoopCurrentRunLoop() *NSRunLoop
func NSRunLoopFromID ¶
func NSRunLoopMainRunLoop ¶
func NSRunLoopMainRunLoop() *NSRunLoop
func (*NSRunLoop) AcceptInputForModeBeforeDate ¶
func (*NSRunLoop) AddPortForMode ¶
func (*NSRunLoop) AddTimerForMode ¶
func (*NSRunLoop) CancelPerformSelectorTargetArgument ¶
func (*NSRunLoop) CancelPerformSelectorsWithTarget ¶
func (*NSRunLoop) ConfigureAsServer ¶
func (o *NSRunLoop) ConfigureAsServer()
Deprecated. Does nothing. Deprecated: Not supported
func (*NSRunLoop) CurrentMode ¶
func (*NSRunLoop) GetCFRunLoop ¶
func (*NSRunLoop) LimitDateForMode ¶
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 ¶
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 (*NSRunLoop) RemovePortForMode ¶
func (*NSRunLoop) RunModeBeforeDate ¶
func (*NSRunLoop) RunUntilDate ¶
type NSSaveOptions ¶
type NSSaveOptions uint64
The saveOptions method returns one of the following constants to indicate how to deal with saving any modified documents:
const ( // Indicates a modified document should be saved on closing without asking the user. NSSaveOptionsYes NSSaveOptions = 0 // Indicates a modified document should not be saved on closing. NSSaveOptionsNo NSSaveOptions = 1 // Indicates the user should be asked before saving any modified documents on closing. When no option is specified, this is the default. NSSaveOptionsAsk NSSaveOptions = 2 )
func (NSSaveOptions) String ¶
func (e NSSaveOptions) String() string
type NSScanner ¶
type NSScanner struct {
NSObject
}
A string parser that scans for substrings or characters in a character set, and for numeric values from decimal, hexadecimal, and floating-point representations.
Apple documentation: https://developer.apple.com/documentation/foundation/nsscanner
func NSScannerFromID ¶
func NSScannerScannerWithString ¶
Returns an NSScanner object that scans a given string.
func (*NSScanner) CaseSensitive ¶
func (*NSScanner) CharactersToBeSkipped ¶
func (o *NSScanner) CharactersToBeSkipped() *NSCharacterSet
func (*NSScanner) InitWithString ¶
func (*NSScanner) ScanCharactersFromSetIntoString ¶
func (o *NSScanner) ScanCharactersFromSetIntoString(set *NSCharacterSet, result *NSString) bool
func (*NSScanner) ScanDecimal ¶
func (*NSScanner) ScanDouble ¶
func (*NSScanner) ScanHexDouble ¶
func (*NSScanner) ScanHexFloat ¶
func (*NSScanner) ScanHexInt ¶
func (*NSScanner) ScanHexLongLong ¶
func (*NSScanner) ScanInteger ¶
func (*NSScanner) ScanLocation ¶
func (*NSScanner) ScanLongLong ¶
func (*NSScanner) ScanStringIntoString ¶
func (*NSScanner) ScanUnsignedLongLong ¶
func (*NSScanner) ScanUpToCharactersFromSetIntoString ¶
func (o *NSScanner) ScanUpToCharactersFromSetIntoString(set *NSCharacterSet, result *NSString) bool
func (*NSScanner) ScanUpToStringIntoString ¶
func (*NSScanner) SetCaseSensitive ¶
func (*NSScanner) SetCharactersToBeSkipped ¶
func (o *NSScanner) SetCharactersToBeSkipped(charactersToBeSkipped *NSCharacterSet)
func (*NSScanner) SetScanLocation ¶
type NSScriptClassDescription ¶
type NSScriptClassDescription struct {
NSClassDescription
}
A scriptable class that a macOS app supports.
Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptclassdescription
func NSScriptClassDescriptionClassDescriptionForClass ¶
func NSScriptClassDescriptionClassDescriptionForClass(aClass objc.Class) *NSScriptClassDescription
Returns the class description for the specified class or, if it is not scriptable, for the first superclass that is.
func NSScriptClassDescriptionFromID ¶
func NSScriptClassDescriptionFromID(id objc.ID) *NSScriptClassDescription
func (*NSScriptClassDescription) AppleEventCode ¶
func (o *NSScriptClassDescription) AppleEventCode() uint
func (*NSScriptClassDescription) AppleEventCodeForKey ¶
func (o *NSScriptClassDescription) AppleEventCodeForKey(key *NSString) uint
Returns the Apple event code for the specified attribute or relationship in the receiver.
func (*NSScriptClassDescription) ClassDescriptionForKey ¶
func (o *NSScriptClassDescription) ClassDescriptionForKey(key *NSString) *NSScriptClassDescription
Returns the class description instance for the class type of the specified attribute or relationship.
func (*NSScriptClassDescription) DefaultSubcontainerAttributeKey ¶
func (o *NSScriptClassDescription) DefaultSubcontainerAttributeKey() *NSString
func (*NSScriptClassDescription) HasOrderedToManyRelationshipForKey ¶
func (o *NSScriptClassDescription) HasOrderedToManyRelationshipForKey(key *NSString) bool
Returns a Boolean value indicating whether the described class has an ordered to-many relationship identified by the specified key.
func (*NSScriptClassDescription) HasPropertyForKey ¶
func (o *NSScriptClassDescription) HasPropertyForKey(key *NSString) bool
Returns a Boolean value indicating whether the described class has a property identified by the specified key.
func (*NSScriptClassDescription) HasReadablePropertyForKey ¶
func (o *NSScriptClassDescription) HasReadablePropertyForKey(key *NSString) bool
Returns a Boolean value indicating whether the described class has a readable property identified by the specified key.
func (*NSScriptClassDescription) HasWritablePropertyForKey ¶
func (o *NSScriptClassDescription) HasWritablePropertyForKey(key *NSString) bool
Returns a Boolean value indicating whether the described class has a writable property identified by the specified key.
func (*NSScriptClassDescription) ImplementationClassName ¶
func (o *NSScriptClassDescription) ImplementationClassName() *NSString
func (*NSScriptClassDescription) InitWithSuiteNameClassNameDictionary ¶
func (o *NSScriptClassDescription) InitWithSuiteNameClassNameDictionary(suiteName *NSString, className *NSString, classDeclaration *NSDictionary[objc.ID, objc.ID]) *NSScriptClassDescription
Initializes and returns a newly allocated instance of NSScriptClassDescription.
func (*NSScriptClassDescription) IsLocationRequiredToCreateForKey ¶
func (o *NSScriptClassDescription) IsLocationRequiredToCreateForKey(toManyRelationshipKey *NSString) bool
Returns a Boolean value indicating whether an insertion location must be specified when creating a new object in the specified to-many relationship of the receiver.
func (*NSScriptClassDescription) IsReadOnlyKey ¶
func (o *NSScriptClassDescription) IsReadOnlyKey(key *NSString) bool
Returns a Boolean value indicating whether a specified property in the receiver is read-only. Deprecated: since macOS 10.5.
func (*NSScriptClassDescription) KeyWithAppleEventCode ¶
func (o *NSScriptClassDescription) KeyWithAppleEventCode(appleEventCode uint) *NSString
Given an Apple event code that identifies a property or element class, returns the key for the corresponding attribute, one-to-one relationship, or one-to-many relationship.
func (*NSScriptClassDescription) MatchesAppleEventCode ¶
func (o *NSScriptClassDescription) MatchesAppleEventCode(appleEventCode uint) bool
Returns a Boolean value indicating whether a primary or secondary Apple event code in the receiver matches the passed code.
func (*NSScriptClassDescription) SelectorForCommand ¶
func (o *NSScriptClassDescription) SelectorForCommand(commandDescription *NSScriptCommandDescription) objc.SEL
Returns the selector associated with the receiver for the specified command description.
func (*NSScriptClassDescription) SuiteName ¶
func (o *NSScriptClassDescription) SuiteName() *NSString
func (*NSScriptClassDescription) SuperclassDescription ¶
func (o *NSScriptClassDescription) SuperclassDescription() *NSScriptClassDescription
func (*NSScriptClassDescription) SupportsCommand ¶
func (o *NSScriptClassDescription) SupportsCommand(commandDescription *NSScriptCommandDescription) bool
Returns a Boolean value indicating whether the receiver or any superclass supports the specified command.
func (*NSScriptClassDescription) TypeForKey ¶
func (o *NSScriptClassDescription) TypeForKey(key *NSString) *NSString
Returns the name of the declared type of the attribute or relationship identified by the passed key.
type NSScriptCoercionHandler ¶
type NSScriptCoercionHandler struct {
NSObject
}
A mechanism for converting one kind of scripting data to another.
Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptcoercionhandler
func NSScriptCoercionHandlerFromID ¶
func NSScriptCoercionHandlerFromID(id objc.ID) *NSScriptCoercionHandler
func NSScriptCoercionHandlerSharedCoercionHandler ¶
func NSScriptCoercionHandlerSharedCoercionHandler() *NSScriptCoercionHandler
Returns the shared NSScriptCoercionHandler for the application.
func (*NSScriptCoercionHandler) CoerceValueToClass ¶
Returns an object of a given class representing a given value.
func (*NSScriptCoercionHandler) RegisterCoercerSelectorToConvertFromClassToClass ¶
func (o *NSScriptCoercionHandler) RegisterCoercerSelectorToConvertFromClassToClass(coercer objc.ID, selector objc.SEL, fromClass objc.Class, toClass objc.Class)
Registers a given object (typically a class) to handle coercions (conversions) from one given class to another.
type NSScriptCommand ¶
type NSScriptCommand struct {
NSObject
}
A self-contained scripting statement.
Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptcommand
func NSScriptCommandCurrentCommand ¶
func NSScriptCommandCurrentCommand() *NSScriptCommand
If a command is being executed in the current thread by Cocoa scripting’s built-in Apple event handling, return the command.
func NSScriptCommandFromID ¶
func NSScriptCommandFromID(id objc.ID) *NSScriptCommand
func (*NSScriptCommand) AppleEvent ¶
func (o *NSScriptCommand) AppleEvent() *NSAppleEventDescriptor
func (*NSScriptCommand) Arguments ¶
func (o *NSScriptCommand) Arguments() *NSDictionary[*NSString, objc.ID]
func (*NSScriptCommand) CommandDescription ¶
func (o *NSScriptCommand) CommandDescription() *NSScriptCommandDescription
func (*NSScriptCommand) DirectParameter ¶
func (o *NSScriptCommand) DirectParameter() objc.ID
func (*NSScriptCommand) EvaluatedArguments ¶
func (o *NSScriptCommand) EvaluatedArguments() *NSDictionary[*NSString, objc.ID]
func (*NSScriptCommand) EvaluatedReceivers ¶
func (o *NSScriptCommand) EvaluatedReceivers() objc.ID
func (*NSScriptCommand) ExecuteCommand ¶
func (o *NSScriptCommand) ExecuteCommand() objc.ID
Executes the command if it is valid and returns the result, if any.
func (*NSScriptCommand) InitWithCoder ¶
func (o *NSScriptCommand) InitWithCoder(inCoder *NSCoder) *NSScriptCommand
func (*NSScriptCommand) InitWithCommandDescription ¶
func (o *NSScriptCommand) InitWithCommandDescription(commandDef *NSScriptCommandDescription) *NSScriptCommand
Returns an a script command object initialized from the passed command description.
func (*NSScriptCommand) IsWellFormed ¶
func (o *NSScriptCommand) IsWellFormed() bool
func (*NSScriptCommand) PerformDefaultImplementation ¶
func (o *NSScriptCommand) PerformDefaultImplementation() objc.ID
Overridden by subclasses to provide a default implementation for the command represented by the receiver.
func (*NSScriptCommand) ReceiversSpecifier ¶
func (o *NSScriptCommand) ReceiversSpecifier() *NSScriptObjectSpecifier
func (*NSScriptCommand) ResumeExecutionWithResult ¶
func (o *NSScriptCommand) ResumeExecutionWithResult(result objc.ID)
If a successful, unmatched, invocation of suspendExecution has been made, resume the execution of the command.
func (*NSScriptCommand) ScriptErrorExpectedTypeDescriptor ¶
func (o *NSScriptCommand) ScriptErrorExpectedTypeDescriptor() *NSAppleEventDescriptor
func (*NSScriptCommand) ScriptErrorNumber ¶
func (o *NSScriptCommand) ScriptErrorNumber() int
func (*NSScriptCommand) ScriptErrorOffendingObjectDescriptor ¶
func (o *NSScriptCommand) ScriptErrorOffendingObjectDescriptor() *NSAppleEventDescriptor
func (*NSScriptCommand) ScriptErrorString ¶
func (o *NSScriptCommand) ScriptErrorString() *NSString
func (*NSScriptCommand) SetArguments ¶
func (o *NSScriptCommand) SetArguments(arguments *NSDictionary[*NSString, objc.ID])
func (*NSScriptCommand) SetDirectParameter ¶
func (o *NSScriptCommand) SetDirectParameter(directParameter objc.ID)
func (*NSScriptCommand) SetReceiversSpecifier ¶
func (o *NSScriptCommand) SetReceiversSpecifier(receiversSpecifier *NSScriptObjectSpecifier)
func (*NSScriptCommand) SetScriptErrorExpectedTypeDescriptor ¶
func (o *NSScriptCommand) SetScriptErrorExpectedTypeDescriptor(scriptErrorExpectedTypeDescriptor *NSAppleEventDescriptor)
func (*NSScriptCommand) SetScriptErrorNumber ¶
func (o *NSScriptCommand) SetScriptErrorNumber(scriptErrorNumber int)
func (*NSScriptCommand) SetScriptErrorOffendingObjectDescriptor ¶
func (o *NSScriptCommand) SetScriptErrorOffendingObjectDescriptor(scriptErrorOffendingObjectDescriptor *NSAppleEventDescriptor)
func (*NSScriptCommand) SetScriptErrorString ¶
func (o *NSScriptCommand) SetScriptErrorString(scriptErrorString *NSString)
func (*NSScriptCommand) SuspendExecution ¶
func (o *NSScriptCommand) SuspendExecution()
Suspends the execution of the receiver.
type NSScriptCommandDescription ¶
type NSScriptCommandDescription struct {
NSObject
}
A script command that a macOS app supports.
Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription
func NSScriptCommandDescriptionFromID ¶
func NSScriptCommandDescriptionFromID(id objc.ID) *NSScriptCommandDescription
func (*NSScriptCommandDescription) AppleEventClassCode ¶
func (o *NSScriptCommandDescription) AppleEventClassCode() uint
func (*NSScriptCommandDescription) AppleEventCode ¶
func (o *NSScriptCommandDescription) AppleEventCode() uint
func (*NSScriptCommandDescription) AppleEventCodeForArgumentWithName ¶
func (o *NSScriptCommandDescription) AppleEventCodeForArgumentWithName(argumentName *NSString) uint
Returns the Apple event code for the specified command argument of the receiver.
func (*NSScriptCommandDescription) AppleEventCodeForReturnType ¶
func (o *NSScriptCommandDescription) AppleEventCodeForReturnType() uint
func (*NSScriptCommandDescription) ArgumentNames ¶
func (o *NSScriptCommandDescription) ArgumentNames() *NSArray[*NSString]
func (*NSScriptCommandDescription) CommandClassName ¶
func (o *NSScriptCommandDescription) CommandClassName() *NSString
func (*NSScriptCommandDescription) CommandName ¶
func (o *NSScriptCommandDescription) CommandName() *NSString
func (*NSScriptCommandDescription) CreateCommandInstance ¶
func (o *NSScriptCommandDescription) CreateCommandInstance() *NSScriptCommand
Creates and returns an instance of the command object described by the receiver.
func (*NSScriptCommandDescription) CreateCommandInstanceWithZone ¶
func (o *NSScriptCommandDescription) CreateCommandInstanceWithZone(zone unsafe.Pointer) *NSScriptCommand
Creates and returns an instance of the command object described by the receiver in the specified memory zone.
func (*NSScriptCommandDescription) InitWithCoder ¶
func (o *NSScriptCommandDescription) InitWithCoder(inCoder *NSCoder) *NSScriptCommandDescription
func (*NSScriptCommandDescription) InitWithSuiteNameCommandNameDictionary ¶
func (o *NSScriptCommandDescription) InitWithSuiteNameCommandNameDictionary(suiteName *NSString, commandName *NSString, commandDeclaration *NSDictionary[objc.ID, objc.ID]) *NSScriptCommandDescription
Initializes and returns a newly allocated instance of NSScriptCommandDescription.
func (*NSScriptCommandDescription) IsOptionalArgumentWithName ¶
func (o *NSScriptCommandDescription) IsOptionalArgumentWithName(argumentName *NSString) bool
Returns a Boolean value that indicates whether the command argument identified by the specified argument key is an optional argument.
func (*NSScriptCommandDescription) ReturnType ¶
func (o *NSScriptCommandDescription) ReturnType() *NSString
func (*NSScriptCommandDescription) SuiteName ¶
func (o *NSScriptCommandDescription) SuiteName() *NSString
func (*NSScriptCommandDescription) TypeForArgumentWithName ¶
func (o *NSScriptCommandDescription) TypeForArgumentWithName(argumentName *NSString) *NSString
Returns the type of the command argument identified by the specified key.
type NSScriptExecutionContext ¶
type NSScriptExecutionContext struct {
NSObject
}
The context in which the current script command is executed.
Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptexecutioncontext
func NSScriptExecutionContextFromID ¶
func NSScriptExecutionContextFromID(id objc.ID) *NSScriptExecutionContext
func NSScriptExecutionContextSharedScriptExecutionContext ¶
func NSScriptExecutionContextSharedScriptExecutionContext() *NSScriptExecutionContext
Returns the shared NSScriptExecutionContext instance.
func (*NSScriptExecutionContext) ObjectBeingTested ¶
func (o *NSScriptExecutionContext) ObjectBeingTested() objc.ID
func (*NSScriptExecutionContext) RangeContainerObject ¶
func (o *NSScriptExecutionContext) RangeContainerObject() objc.ID
func (*NSScriptExecutionContext) SetObjectBeingTested ¶
func (o *NSScriptExecutionContext) SetObjectBeingTested(objectBeingTested objc.ID)
func (*NSScriptExecutionContext) SetRangeContainerObject ¶
func (o *NSScriptExecutionContext) SetRangeContainerObject(rangeContainerObject objc.ID)
func (*NSScriptExecutionContext) SetTopLevelObject ¶
func (o *NSScriptExecutionContext) SetTopLevelObject(topLevelObject objc.ID)
func (*NSScriptExecutionContext) TopLevelObject ¶
func (o *NSScriptExecutionContext) TopLevelObject() objc.ID
type NSScriptObjectSpecifier ¶
type NSScriptObjectSpecifier struct {
NSObject
}
An abstract class used to represent natural language expressions.
Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier
func NSScriptObjectSpecifierFromID ¶
func NSScriptObjectSpecifierFromID(id objc.ID) *NSScriptObjectSpecifier
func NSScriptObjectSpecifierObjectSpecifierWithDescriptor ¶
func NSScriptObjectSpecifierObjectSpecifierWithDescriptor(descriptor *NSAppleEventDescriptor) *NSScriptObjectSpecifier
Returns a new object specifier for an Apple event descriptor.
func (*NSScriptObjectSpecifier) ChildSpecifier ¶
func (o *NSScriptObjectSpecifier) ChildSpecifier() *NSScriptObjectSpecifier
func (*NSScriptObjectSpecifier) ContainerClassDescription ¶
func (o *NSScriptObjectSpecifier) ContainerClassDescription() *NSScriptClassDescription
func (*NSScriptObjectSpecifier) ContainerIsObjectBeingTested ¶
func (o *NSScriptObjectSpecifier) ContainerIsObjectBeingTested() bool
func (*NSScriptObjectSpecifier) ContainerIsRangeContainerObject ¶
func (o *NSScriptObjectSpecifier) ContainerIsRangeContainerObject() bool
func (*NSScriptObjectSpecifier) ContainerSpecifier ¶
func (o *NSScriptObjectSpecifier) ContainerSpecifier() *NSScriptObjectSpecifier
func (*NSScriptObjectSpecifier) Descriptor ¶
func (o *NSScriptObjectSpecifier) Descriptor() *NSAppleEventDescriptor
func (*NSScriptObjectSpecifier) EvaluationErrorNumber ¶
func (o *NSScriptObjectSpecifier) EvaluationErrorNumber() int
func (*NSScriptObjectSpecifier) EvaluationErrorSpecifier ¶
func (o *NSScriptObjectSpecifier) EvaluationErrorSpecifier() *NSScriptObjectSpecifier
func (*NSScriptObjectSpecifier) IndicesOfObjectsByEvaluatingWithContainerCount ¶
func (o *NSScriptObjectSpecifier) IndicesOfObjectsByEvaluatingWithContainerCount(container objc.ID, count *int64) *int64
This primitive method must be overridden by subclasses to return a pointer to an array of indices identifying objects in the key of a given container that are identified by the receiver of the message.
func (*NSScriptObjectSpecifier) InitWithCoder ¶
func (o *NSScriptObjectSpecifier) InitWithCoder(inCoder *NSCoder) *NSScriptObjectSpecifier
func (*NSScriptObjectSpecifier) InitWithContainerClassDescriptionContainerSpecifierKey ¶
func (o *NSScriptObjectSpecifier) InitWithContainerClassDescriptionContainerSpecifierKey(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString) *NSScriptObjectSpecifier
Returns an NSScriptObjectSpecifier object initialized with the given attributes.
func (*NSScriptObjectSpecifier) InitWithContainerSpecifierKey ¶
func (o *NSScriptObjectSpecifier) InitWithContainerSpecifierKey(container *NSScriptObjectSpecifier, property *NSString) *NSScriptObjectSpecifier
Returns an NSScriptObjectSpecifier object initialized with a given container specifier and key.
func (*NSScriptObjectSpecifier) Key ¶
func (o *NSScriptObjectSpecifier) Key() *NSString
func (*NSScriptObjectSpecifier) KeyClassDescription ¶
func (o *NSScriptObjectSpecifier) KeyClassDescription() *NSScriptClassDescription
func (*NSScriptObjectSpecifier) ObjectsByEvaluatingSpecifier ¶
func (o *NSScriptObjectSpecifier) ObjectsByEvaluatingSpecifier() objc.ID
func (*NSScriptObjectSpecifier) ObjectsByEvaluatingWithContainers ¶
func (o *NSScriptObjectSpecifier) ObjectsByEvaluatingWithContainers(containers objc.ID) objc.ID
Returns the actual object or objects specified by the receiver as evaluated in the context of given container object.
func (*NSScriptObjectSpecifier) SetChildSpecifier ¶
func (o *NSScriptObjectSpecifier) SetChildSpecifier(childSpecifier *NSScriptObjectSpecifier)
func (*NSScriptObjectSpecifier) SetContainerClassDescription ¶
func (o *NSScriptObjectSpecifier) SetContainerClassDescription(containerClassDescription *NSScriptClassDescription)
func (*NSScriptObjectSpecifier) SetContainerIsObjectBeingTested ¶
func (o *NSScriptObjectSpecifier) SetContainerIsObjectBeingTested(containerIsObjectBeingTested bool)
func (*NSScriptObjectSpecifier) SetContainerIsRangeContainerObject ¶
func (o *NSScriptObjectSpecifier) SetContainerIsRangeContainerObject(containerIsRangeContainerObject bool)
func (*NSScriptObjectSpecifier) SetContainerSpecifier ¶
func (o *NSScriptObjectSpecifier) SetContainerSpecifier(containerSpecifier *NSScriptObjectSpecifier)
func (*NSScriptObjectSpecifier) SetEvaluationErrorNumber ¶
func (o *NSScriptObjectSpecifier) SetEvaluationErrorNumber(evaluationErrorNumber int)
func (*NSScriptObjectSpecifier) SetKey ¶
func (o *NSScriptObjectSpecifier) SetKey(key *NSString)
type NSScriptSuiteRegistry ¶
type NSScriptSuiteRegistry struct {
NSObject
}
The top-level repository of scriptability information for an app at runtime.
Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry
func NSScriptSuiteRegistryFromID ¶
func NSScriptSuiteRegistryFromID(id objc.ID) *NSScriptSuiteRegistry
func NSScriptSuiteRegistrySharedScriptSuiteRegistry ¶
func NSScriptSuiteRegistrySharedScriptSuiteRegistry() *NSScriptSuiteRegistry
Returns the single, shared instance of NSScriptSuiteRegistry, creating it first if it doesn’t exist.
func (*NSScriptSuiteRegistry) AeteResource ¶
func (o *NSScriptSuiteRegistry) AeteResource(languageName *NSString) *NSData
Returns an NSData object that contains data in 'aete' resource format describing the scriptability information currently known to the application.
func (*NSScriptSuiteRegistry) AppleEventCodeForSuite ¶
func (o *NSScriptSuiteRegistry) AppleEventCodeForSuite(suiteName *NSString) uint
Returns the Apple event code associated with the suite named suiteName, such as ‘core’ for the Core suite.
func (*NSScriptSuiteRegistry) BundleForSuite ¶
func (o *NSScriptSuiteRegistry) BundleForSuite(suiteName *NSString) *NSBundle
Returns the bundle containing the suite-definition property list (extension .scriptSuite) identified by suiteName.
func (*NSScriptSuiteRegistry) ClassDescriptionWithAppleEventCode ¶
func (o *NSScriptSuiteRegistry) ClassDescriptionWithAppleEventCode(appleEventCode uint) *NSScriptClassDescription
Returns the class description associated with the given four-character Apple event code, code.
func (*NSScriptSuiteRegistry) ClassDescriptionsInSuite ¶
func (o *NSScriptSuiteRegistry) ClassDescriptionsInSuite(suiteName *NSString) *NSDictionary[*NSString, *NSScriptClassDescription]
Returns the class descriptions contained in the suite identified by suiteName.
func (*NSScriptSuiteRegistry) CommandDescriptionWithAppleEventClassAndAppleEventCode ¶
func (o *NSScriptSuiteRegistry) CommandDescriptionWithAppleEventClassAndAppleEventCode(appleEventClassCode uint, appleEventIDCode uint) *NSScriptCommandDescription
Returns the command description identified by a suite’s four-character Apple event code of the class (eventClass) and the four-character Apple event code of the command (commandCode).
func (*NSScriptSuiteRegistry) CommandDescriptionsInSuite ¶
func (o *NSScriptSuiteRegistry) CommandDescriptionsInSuite(suiteName *NSString) *NSDictionary[*NSString, *NSScriptCommandDescription]
Returns the command descriptions contained in the suite identified by suiteName.
func (*NSScriptSuiteRegistry) LoadSuiteWithDictionaryFromBundle ¶
func (o *NSScriptSuiteRegistry) LoadSuiteWithDictionaryFromBundle(suiteDeclaration *NSDictionary[objc.ID, objc.ID], bundle *NSBundle)
Loads the suite definition encapsulated in dictionary; previously, this suite definition was parsed from a .scriptSuite property list contained in a framework or in bundle.
func (*NSScriptSuiteRegistry) LoadSuitesFromBundle ¶
func (o *NSScriptSuiteRegistry) LoadSuitesFromBundle(bundle *NSBundle)
Loads the suite definitions in bundle aBundle, invoking loadSuiteWithDictionary:fromBundle: for each suite found.
func (*NSScriptSuiteRegistry) RegisterClassDescription ¶
func (o *NSScriptSuiteRegistry) RegisterClassDescription(classDescription *NSScriptClassDescription)
Registers class description classDescription for use by Cocoa’s built-in scripting support by storing it in a per-suite internal dictionary under the class name.
func (*NSScriptSuiteRegistry) RegisterCommandDescription ¶
func (o *NSScriptSuiteRegistry) RegisterCommandDescription(commandDescription *NSScriptCommandDescription)
Registers command description commandDesc for use by Cocoa’s built-in scripting support by storing it in a per-suite internal dictionary under the command name.
func (*NSScriptSuiteRegistry) SuiteForAppleEventCode ¶
func (o *NSScriptSuiteRegistry) SuiteForAppleEventCode(appleEventCode uint) *NSString
Returns the name of the suite definition associated with the given four-character Apple event code, code.
func (*NSScriptSuiteRegistry) SuiteNames ¶
func (o *NSScriptSuiteRegistry) SuiteNames() *NSArray[*NSString]
type NSScriptWhoseTest ¶
type NSScriptWhoseTest struct {
NSObject
}
An abstract class that provides the basis for testing specifiers one at a time or in groups.
Apple documentation: https://developer.apple.com/documentation/foundation/nsscriptwhosetest
func NSScriptWhoseTestFromID ¶
func NSScriptWhoseTestFromID(id objc.ID) *NSScriptWhoseTest
func (*NSScriptWhoseTest) Init ¶
func (o *NSScriptWhoseTest) Init() *NSScriptWhoseTest
func (*NSScriptWhoseTest) InitWithCoder ¶
func (o *NSScriptWhoseTest) InitWithCoder(inCoder *NSCoder) *NSScriptWhoseTest
func (*NSScriptWhoseTest) IsTrue ¶
func (o *NSScriptWhoseTest) IsTrue() bool
Returns a Boolean value that indicates whether the test represented by the receiver evaluates to true.
type NSSearchPathDirectory ¶
type NSSearchPathDirectory uint64
The location of significant directories.
const ( NSApplicationDirectory NSSearchPathDirectory = 1 NSDemoApplicationDirectory NSSearchPathDirectory = 2 NSDeveloperApplicationDirectory NSSearchPathDirectory = 3 NSAdminApplicationDirectory NSSearchPathDirectory = 4 NSLibraryDirectory NSSearchPathDirectory = 5 NSDeveloperDirectory NSSearchPathDirectory = 6 NSUserDirectory NSSearchPathDirectory = 7 NSDocumentationDirectory NSSearchPathDirectory = 8 NSDocumentDirectory NSSearchPathDirectory = 9 NSCoreServiceDirectory NSSearchPathDirectory = 10 NSAutosavedInformationDirectory NSSearchPathDirectory = 11 NSDesktopDirectory NSSearchPathDirectory = 12 NSCachesDirectory NSSearchPathDirectory = 13 NSApplicationSupportDirectory NSSearchPathDirectory = 14 NSDownloadsDirectory NSSearchPathDirectory = 15 NSInputMethodsDirectory NSSearchPathDirectory = 16 NSMoviesDirectory NSSearchPathDirectory = 17 NSMusicDirectory NSSearchPathDirectory = 18 NSPicturesDirectory NSSearchPathDirectory = 19 NSPrinterDescriptionDirectory NSSearchPathDirectory = 20 NSPreferencePanesDirectory NSSearchPathDirectory = 22 NSApplicationScriptsDirectory NSSearchPathDirectory = 23 NSItemReplacementDirectory NSSearchPathDirectory = 99 NSAllApplicationsDirectory NSSearchPathDirectory = 100 NSAllLibrariesDirectory NSSearchPathDirectory = 101 NSTrashDirectory NSSearchPathDirectory = 102 )
func (NSSearchPathDirectory) String ¶
func (e NSSearchPathDirectory) String() string
type NSSearchPathDomainMask ¶
type NSSearchPathDomainMask uint64
Domain constants specifying base locations to use when you search for significant directories.
const ( NSUserDomainMask NSSearchPathDomainMask = 1 NSLocalDomainMask NSSearchPathDomainMask = 2 NSNetworkDomainMask NSSearchPathDomainMask = 4 NSSystemDomainMask NSSearchPathDomainMask = 8 NSAllDomainsMask NSSearchPathDomainMask = 65535 )
func (NSSearchPathDomainMask) String ¶
func (e NSSearchPathDomainMask) String() string
type NSSecureCoding ¶
NSSecureCoding wraps the ObjC protocol NSSecureCoding.
type NSSecureUnarchiveFromDataTransformer ¶
type NSSecureUnarchiveFromDataTransformer struct {
NSValueTransformer
}
A value transformer that converts data to and from classes that support secure coding.
Apple documentation: https://developer.apple.com/documentation/foundation/nssecureunarchivefromdatatransformer
func NSSecureUnarchiveFromDataTransformerFromID ¶
func NSSecureUnarchiveFromDataTransformerFromID(id objc.ID) *NSSecureUnarchiveFromDataTransformer
type NSSet ¶
A static, unordered collection of unique objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nsset
func NSSetSetWithArray ¶
Creates and returns a set containing a uniqued collection of the objects contained in a given array.
func NSSetSetWithObject ¶
Creates and returns a set that contains a single given object.
func NSSetSetWithObjectsCount ¶
Creates and returns a set containing a specified number of objects from a given C array of objects.
func NSSetSetWithSet ¶
Creates and returns a set containing the objects from another set.
func (*NSSet[ObjectType]) AllObjects ¶
func (*NSSet[ObjectType]) AnyObject ¶
func (o *NSSet[ObjectType]) AnyObject() ObjectType
Returns one of the objects in the set, or nil if the set contains no objects.
func (*NSSet[ObjectType]) ContainsObject ¶
Returns a Boolean value that indicates whether a given object is present in the set.
func (*NSSet[ObjectType]) DescriptionWithLocale ¶
Returns a string that represents the contents of the set, formatted as a property list.
func (*NSSet[ObjectType]) EnumerateObjectsUsing ¶
Executes a given block using each object in the set.
func (*NSSet[ObjectType]) EnumerateObjectsWithOptionsUsing ¶
func (o *NSSet[ObjectType]) EnumerateObjectsWithOptionsUsing(opts NSEnumerationOptions, block objc.Block)
Executes a given block using each object in the set, using the specified enumeration options.
func (*NSSet[ObjectType]) FilteredSetUsingPredicate ¶
func (o *NSSet[ObjectType]) FilteredSetUsingPredicate(predicate *NSPredicate) *NSSet[ObjectType]
Evaluates a given predicate against each object in the receiving set and returns a new set containing the objects for which the predicate returns true.
func (*NSSet[ObjectType]) InitWithArray ¶
Initializes a newly allocated set with the objects that are contained in a given array.
func (*NSSet[ObjectType]) InitWithCoder ¶
func (*NSSet[ObjectType]) InitWithObjectsCount ¶
func (o *NSSet[ObjectType]) InitWithObjectsCount(objects unsafe.Pointer, cnt uint) *NSSet[ObjectType]
Initializes a newly allocated set with a specified number of objects from a given C array of objects.
func (*NSSet[ObjectType]) InitWithSet ¶
Initializes a newly allocated set and adds to it objects from another given set.
func (*NSSet[ObjectType]) InitWithSetCopyItems ¶
func (o *NSSet[ObjectType]) InitWithSetCopyItems(set *NSSet[ObjectType], flag bool) *NSSet[ObjectType]
Initializes a newly allocated set and adds to it members of another given set.
func (*NSSet[ObjectType]) IntersectsSet ¶
Returns a Boolean value that indicates whether at least one object in the receiving set is also present in another given set.
func (*NSSet[ObjectType]) IsEqualToSet ¶
Compares the receiving set to another set.
func (*NSSet[ObjectType]) IsSubsetOfSet ¶
Returns a Boolean value that indicates whether every object in the receiving set is also present in another given set.
func (*NSSet[ObjectType]) MakeObjectsPerformSelector ¶
Sends a message specified by a given selector to each object in the set.
func (*NSSet[ObjectType]) MakeObjectsPerformSelectorWithObject ¶
func (o *NSSet[ObjectType]) MakeObjectsPerformSelectorWithObject(aSelector objc.SEL, argument objc.ID)
Sends a message specified by a given selector to each object in the set.
func (*NSSet[ObjectType]) Member ¶
func (o *NSSet[ObjectType]) Member(object ObjectType) ObjectType
Determines whether a given object is present in the set, and returns that object if it is.
func (*NSSet[ObjectType]) ObjectEnumerator ¶
func (o *NSSet[ObjectType]) ObjectEnumerator() *NSEnumerator[ObjectType]
Returns an enumerator object that lets you access each object in the set.
func (*NSSet[ObjectType]) ObjectsPassingTest ¶
Returns a set of objects that pass a test in a given block.
func (*NSSet[ObjectType]) ObjectsWithOptionsPassingTest ¶
func (o *NSSet[ObjectType]) ObjectsWithOptionsPassingTest(opts NSEnumerationOptions, predicate objc.Block) *NSSet[ObjectType]
Returns a set of objects that pass a test in a given block, using the specified enumeration options.
func (*NSSet[ObjectType]) SetByAddingObject ¶
Returns a new set formed by adding a given object to the receiving set.
func (*NSSet[ObjectType]) SetByAddingObjectsFromArray ¶
func (o *NSSet[ObjectType]) SetByAddingObjectsFromArray(other *NSArray[ObjectType]) *NSSet[ObjectType]
Returns a new set formed by adding the objects in a given array to the receiving set.
func (*NSSet[ObjectType]) SetByAddingObjectsFromSet ¶
Returns a new set formed by adding the objects in a given set to the receiving set.
func (*NSSet[ObjectType]) SortedArrayUsingDescriptors ¶
func (o *NSSet[ObjectType]) SortedArrayUsingDescriptors(sortDescriptors *NSArray[*NSSortDescriptor]) *NSArray[ObjectType]
Returns an array of the set’s content sorted as specified by a given array of sort descriptors.
type NSSetCommand ¶
type NSSetCommand struct {
NSScriptCommand
}
A command that sets one or more attributes or relationships to one or more values.
Apple documentation: https://developer.apple.com/documentation/foundation/nssetcommand
func NSSetCommandFromID ¶
func NSSetCommandFromID(id objc.ID) *NSSetCommand
func (*NSSetCommand) KeySpecifier ¶
func (o *NSSetCommand) KeySpecifier() *NSScriptObjectSpecifier
type NSSimpleCString ¶
type NSSimpleCString struct {
NSString
}
Apple documentation: https://developer.apple.com/documentation/foundation/nssimplecstring
func NSSimpleCStringFromID ¶
func NSSimpleCStringFromID(id objc.ID) *NSSimpleCString
type NSSocketPort ¶
type NSSocketPort struct {
NSPort
}
A port that represents a BSD socket.
Apple documentation: https://developer.apple.com/documentation/foundation/nssocketport
func NSSocketPortFromID ¶
func NSSocketPortFromID(id objc.ID) *NSSocketPort
func (*NSSocketPort) Address ¶
func (o *NSSocketPort) Address() *NSData
func (*NSSocketPort) Init ¶
func (o *NSSocketPort) Init() *NSSocketPort
func (*NSSocketPort) InitRemoteWithProtocolFamilySocketTypeProtocolAddress ¶
func (o *NSSocketPort) InitRemoteWithProtocolFamilySocketTypeProtocolAddress(family int, type_ int, protocol int, address *NSData) *NSSocketPort
func (*NSSocketPort) InitRemoteWithTCPPortHost ¶
func (o *NSSocketPort) InitRemoteWithTCPPortHost(port uint16, hostName *NSString) *NSSocketPort
func (*NSSocketPort) InitWithProtocolFamilySocketTypeProtocolAddress ¶
func (o *NSSocketPort) InitWithProtocolFamilySocketTypeProtocolAddress(family int, type_ int, protocol int, address *NSData) *NSSocketPort
func (*NSSocketPort) InitWithProtocolFamilySocketTypeProtocolSocket ¶
func (o *NSSocketPort) InitWithProtocolFamilySocketTypeProtocolSocket(family int, type_ int, protocol int, sock int) *NSSocketPort
func (*NSSocketPort) InitWithTCPPort ¶
func (o *NSSocketPort) InitWithTCPPort(port uint16) *NSSocketPort
func (*NSSocketPort) Protocol ¶
func (o *NSSocketPort) Protocol() int
func (*NSSocketPort) ProtocolFamily ¶
func (o *NSSocketPort) ProtocolFamily() int
func (*NSSocketPort) Socket ¶
func (o *NSSocketPort) Socket() int
func (*NSSocketPort) SocketType ¶
func (o *NSSocketPort) SocketType() int
type NSSocketPortNameServer ¶
type NSSocketPortNameServer struct {
NSPortNameServer
}
A port name server that takes and returns socket ports.
Apple documentation: https://developer.apple.com/documentation/foundation/nssocketportnameserver Deprecated: Use NSXPCConnection instead
func NSSocketPortNameServerFromID ¶
func NSSocketPortNameServerFromID(id objc.ID) *NSSocketPortNameServer
func (*NSSocketPortNameServer) DefaultNameServerPortNumber ¶
func (o *NSSocketPortNameServer) DefaultNameServerPortNumber() uint16
func (*NSSocketPortNameServer) PortForNameHostNameServerPortNumber ¶
func (o *NSSocketPortNameServer) PortForNameHostNameServerPortNumber(name *NSString, host *NSString, portNumber uint16) *NSPort
Looks up and returns the port registered under the specified name on a specified host.
func (*NSSocketPortNameServer) RegisterPortNameNameServerPortNumber ¶
func (o *NSSocketPortNameServer) RegisterPortNameNameServerPortNumber(port *NSPort, name *NSString, portNumber uint16) bool
Registers a given port as a network service with the specified name in the local domain.
func (*NSSocketPortNameServer) SetDefaultNameServerPortNumber ¶
func (o *NSSocketPortNameServer) SetDefaultNameServerPortNumber(defaultNameServerPortNumber uint16)
type NSSortDescriptor ¶
type NSSortDescriptor struct {
NSObject
}
An immutable description of how to order a collection of objects according to a property common to all the objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nssortdescriptor
func NSSortDescriptorFromID ¶
func NSSortDescriptorFromID(id objc.ID) *NSSortDescriptor
func NSSortDescriptorSortDescriptorWithKeyAscending ¶
func NSSortDescriptorSortDescriptorWithKeyAscending(key *NSString, ascending bool) *NSSortDescriptor
Creates and returns a sort descriptor with the specified key path and ordering.
func NSSortDescriptorSortDescriptorWithKeyAscendingComparator ¶
func NSSortDescriptorSortDescriptorWithKeyAscendingComparator(key *NSString, ascending bool, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSSortDescriptor
Creates and returns a sort descriptor initialized with the specified key path and ordering, and a comparator block.
func NSSortDescriptorSortDescriptorWithKeyAscendingSelector ¶
func NSSortDescriptorSortDescriptorWithKeyAscendingSelector(key *NSString, ascending bool, selector objc.SEL) *NSSortDescriptor
Creates a sort descriptor with the specified key path, ordering, and comparison selector.
func (*NSSortDescriptor) AllowEvaluation ¶
func (o *NSSortDescriptor) AllowEvaluation()
Forces a securely decoded sort descriptor to allow evaluation.
func (*NSSortDescriptor) Ascending ¶
func (o *NSSortDescriptor) Ascending() bool
func (*NSSortDescriptor) Comparator ¶
func (o *NSSortDescriptor) Comparator() objc.Block
func (*NSSortDescriptor) CompareObjectToObject ¶
func (o *NSSortDescriptor) CompareObjectToObject(object1 objc.ID, object2 objc.ID) NSComparisonResult
Returns a comparison result value that indicates the sort order of two objects.
func (*NSSortDescriptor) InitWithCoder ¶
func (o *NSSortDescriptor) InitWithCoder(coder *NSCoder) *NSSortDescriptor
Creates a sort descriptor by decoding from the coder you specify.
func (*NSSortDescriptor) InitWithKeyAscending ¶
func (o *NSSortDescriptor) InitWithKeyAscending(key *NSString, ascending bool) *NSSortDescriptor
Creates a sort descriptor with a specified string key path and sort order.
func (*NSSortDescriptor) InitWithKeyAscendingComparator ¶
func (o *NSSortDescriptor) InitWithKeyAscendingComparator(key *NSString, ascending bool, cmptr func(objc.ID, objc.ID) NSComparisonResult) *NSSortDescriptor
Creates a sort descriptor with a specified string key path and ordering, and a comparator block.
func (*NSSortDescriptor) InitWithKeyAscendingSelector ¶
func (o *NSSortDescriptor) InitWithKeyAscendingSelector(key *NSString, ascending bool, selector objc.SEL) *NSSortDescriptor
Creates a sort descriptor with a specified string key path, ordering, and comparison selector.
func (*NSSortDescriptor) Key ¶
func (o *NSSortDescriptor) Key() *NSString
func (*NSSortDescriptor) ReversedSortDescriptor ¶
func (o *NSSortDescriptor) ReversedSortDescriptor() objc.ID
func (*NSSortDescriptor) Selector ¶
func (o *NSSortDescriptor) Selector() objc.SEL
type NSSortOptions ¶
type NSSortOptions uint64
Options for block sorting operations.
const ( // Specifies that the Block sort operation should be concurrent. NSSortConcurrent NSSortOptions = 1 // Specifies that the sorted results should return compared items having equal value in the order they occurred originally. NSSortStable NSSortOptions = 16 )
func (NSSortOptions) String ¶
func (e NSSortOptions) String() string
type NSSpecifierTest ¶
type NSSpecifierTest struct {
NSScriptWhoseTest
}
A comparison between an object specifier and a test object.
Apple documentation: https://developer.apple.com/documentation/foundation/nsspecifiertest
func NSSpecifierTestFromID ¶
func NSSpecifierTestFromID(id objc.ID) *NSSpecifierTest
func (*NSSpecifierTest) InitWithCoder ¶
func (o *NSSpecifierTest) InitWithCoder(inCoder *NSCoder) *NSSpecifierTest
func (*NSSpecifierTest) InitWithObjectSpecifierComparisonOperatorTestObject ¶
func (o *NSSpecifierTest) InitWithObjectSpecifierComparisonOperatorTestObject(obj1 *NSScriptObjectSpecifier, compOp NSTestComparisonOperation, obj2 objc.ID) *NSSpecifierTest
Returns a specifier test initialized to evaluate a test object against an object specified by an object specifier using a given comparison operation.
type NSSpellServer ¶
type NSSpellServer struct {
NSObject
}
A server that your app uses to provide a spell checker service to other apps running in the system.
Apple documentation: https://developer.apple.com/documentation/foundation/nsspellserver
func NSSpellServerFromID ¶
func NSSpellServerFromID(id objc.ID) *NSSpellServer
func (*NSSpellServer) Delegate ¶
func (o *NSSpellServer) Delegate() NSSpellServerDelegate
func (*NSSpellServer) IsWordInUserDictionariesCaseSensitive ¶
func (o *NSSpellServer) IsWordInUserDictionariesCaseSensitive(word *NSString, flag bool) bool
Indicates whether a given word is in the user’s list of learned words or the document’s list of words to ignore.
func (*NSSpellServer) RegisterLanguageByVendor ¶
func (o *NSSpellServer) RegisterLanguageByVendor(language *NSString, vendor *NSString) bool
Notifies the receiver of a language your spelling checker can check.
func (*NSSpellServer) Run ¶
func (o *NSSpellServer) Run()
Causes the receiver to start listening for spell-checking requests.
func (*NSSpellServer) SetDelegate ¶
func (o *NSSpellServer) SetDelegate(delegate NSSpellServerDelegate)
type NSSpellServerDelegate ¶
type NSSpellServerDelegate interface {
}
NSSpellServerDelegate wraps the ObjC protocol NSSpellServerDelegate.
type NSStream ¶
type NSStream struct {
NSObject
}
An abstract class representing a stream.
Apple documentation: https://developer.apple.com/documentation/foundation/nsstream
func NSStreamFromID ¶
func (*NSStream) Delegate ¶
func (o *NSStream) Delegate() NSStreamDelegate
func (*NSStream) RemoveFromRunLoopForMode ¶
func (*NSStream) ScheduleInRunLoopForMode ¶
func (*NSStream) SetDelegate ¶
func (o *NSStream) SetDelegate(delegate NSStreamDelegate)
func (*NSStream) SetPropertyForKey ¶
func (*NSStream) StreamError ¶
func (*NSStream) StreamStatus ¶
func (o *NSStream) StreamStatus() NSStreamStatus
type NSStreamDelegate ¶
type NSStreamDelegate interface {
}
NSStreamDelegate wraps the ObjC protocol NSStreamDelegate.
type NSStreamEvent ¶
type NSStreamEvent uint64
const ( NSStreamEventNone NSStreamEvent = 0 NSStreamEventOpenCompleted NSStreamEvent = 1 NSStreamEventHasBytesAvailable NSStreamEvent = 2 NSStreamEventHasSpaceAvailable NSStreamEvent = 4 NSStreamEventErrorOccurred NSStreamEvent = 8 NSStreamEventEndEncountered NSStreamEvent = 16 )
func (NSStreamEvent) String ¶
func (e NSStreamEvent) String() string
type NSStreamStatus ¶
type NSStreamStatus uint64
The type declared for the constants listed in doc:stream/stream_status_constants.
const ( NSStreamStatusNotOpen NSStreamStatus = 0 NSStreamStatusOpening NSStreamStatus = 1 NSStreamStatusOpen NSStreamStatus = 2 NSStreamStatusReading NSStreamStatus = 3 NSStreamStatusWriting NSStreamStatus = 4 NSStreamStatusAtEnd NSStreamStatus = 5 NSStreamStatusClosed NSStreamStatus = 6 NSStreamStatusError NSStreamStatus = 7 )
func (NSStreamStatus) String ¶
func (e NSStreamStatus) String() string
type NSString ¶
type NSString struct {
NSObject
}
A static, plain-text Unicode string object.
Apple documentation: https://developer.apple.com/documentation/foundation/nsstring
func NSAppleEventManagerWillProcessFirstEventNotification ¶
func NSAppleEventManagerWillProcessFirstEventNotification() *NSString
func NSArgumentDomain ¶
func NSArgumentDomain() *NSString
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() *NSString
func NSAverageKeyValueOperator ¶
func NSAverageKeyValueOperator() *NSString
func NSBuddhistCalendar
deprecated
func NSBuddhistCalendar() *NSString
Deprecated: since macOS 10.10.
func NSBundleDidLoadNotification ¶
func NSBundleDidLoadNotification() *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 NSChineseCalendar
deprecated
func NSChineseCalendar() *NSString
Deprecated: since macOS 10.10.
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 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 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 NSErrorFailingURLStringKey ¶
func NSErrorFailingURLStringKey() *NSString
@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 NSExtensionItemAttachmentsKey ¶
func NSExtensionItemAttachmentsKey() *NSString
func NSExtensionItemAttributedContentTextKey ¶
func NSExtensionItemAttributedContentTextKey() *NSString
func NSExtensionItemAttributedTitleKey ¶
func NSExtensionItemAttributedTitleKey() *NSString
func NSExtensionItemsAndErrorsKey ¶
func NSExtensionItemsAndErrorsKey() *NSString
func NSExtensionJavaScriptPreprocessingResultsKey ¶
func NSExtensionJavaScriptPreprocessingResultsKey() *NSString
func NSFTPPropertyActiveTransferModeKey
deprecated
func NSFTPPropertyActiveTransferModeKey() *NSString
Deprecated: since macOS 10.4.
func NSFTPPropertyFTPProxy
deprecated
func NSFTPPropertyFTPProxy() *NSString
Deprecated: since macOS 10.4.
func NSFTPPropertyFileOffsetKey
deprecated
func NSFTPPropertyFileOffsetKey() *NSString
Deprecated: since macOS 10.4.
func NSFTPPropertyUserLoginKey
deprecated
func NSFTPPropertyUserLoginKey() *NSString
Deprecated: since macOS 10.4.
func NSFTPPropertyUserPasswordKey
deprecated
func NSFTPPropertyUserPasswordKey() *NSString
Deprecated: since macOS 10.4.
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 NSFileHandleNotificationDataItem ¶
func NSFileHandleNotificationDataItem() *NSString
func NSFileHandleNotificationFileHandleItem ¶
func NSFileHandleNotificationFileHandleItem() *NSString
func NSFileHandleNotificationMonitorModes
deprecated
func NSFileHandleNotificationMonitorModes() *NSString
Deprecated: Not supported
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 NSFileTypeRegular ¶
func NSFileTypeRegular() *NSString
func NSFileTypeSocket ¶
func NSFileTypeSocket() *NSString
func NSFileTypeSymbolicLink ¶
func NSFileTypeSymbolicLink() *NSString
func NSFileTypeUnknown ¶
func NSFileTypeUnknown() *NSString
func NSFullUserName ¶
func NSFullUserName() *NSString
func NSGenericException ¶
func NSGenericException() *NSString
func NSGlobalDomain ¶
func NSGlobalDomain() *NSString
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 NSGregorianCalendar
deprecated
func NSGregorianCalendar() *NSString
Deprecated: since macOS 10.10.
func NSHFSTypeOfFile ¶
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 NSHTTPPropertyErrorPageDataKey
deprecated
func NSHTTPPropertyErrorPageDataKey() *NSString
Deprecated: since macOS 10.4.
func NSHTTPPropertyHTTPProxy
deprecated
func NSHTTPPropertyHTTPProxy() *NSString
Deprecated: since macOS 10.4.
func NSHTTPPropertyRedirectionHeadersKey
deprecated
func NSHTTPPropertyRedirectionHeadersKey() *NSString
Deprecated: since macOS 10.4.
func NSHTTPPropertyServerHTTPVersionKey
deprecated
func NSHTTPPropertyServerHTTPVersionKey() *NSString
Deprecated: since macOS 10.4.
func NSHTTPPropertyStatusCodeKey
deprecated
func NSHTTPPropertyStatusCodeKey() *NSString
Deprecated: since macOS 10.4.
func NSHTTPPropertyStatusReasonKey
deprecated
func NSHTTPPropertyStatusReasonKey() *NSString
Deprecated: since macOS 10.4.
func NSHTTPURLResponseLocalizedStringForStatusCode ¶
@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 NSHebrewCalendar
deprecated
func NSHebrewCalendar() *NSString
Deprecated: since macOS 10.10.
func NSHelpAnchorErrorKey ¶
func NSHelpAnchorErrorKey() *NSString
func NSHomeDirectory ¶
func NSHomeDirectory() *NSString
func NSHomeDirectoryForUser ¶
func NSISO8601Calendar
deprecated
func NSISO8601Calendar() *NSString
Deprecated: since macOS 10.10.
func NSISO8601DateFormatterStringFromDateTimeZoneFormatOptions ¶
func NSISO8601DateFormatterStringFromDateTimeZoneFormatOptions(date *NSDate, timeZone *NSTimeZone, formatOptions NSISO8601DateFormatOptions) *NSString
func NSInconsistentArchiveException ¶
func NSInconsistentArchiveException() *NSString
func NSIndianCalendar
deprecated
func NSIndianCalendar() *NSString
Deprecated: since macOS 10.10.
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 NSIslamicCalendar
deprecated
func NSIslamicCalendar() *NSString
Deprecated: since macOS 10.10.
func NSIslamicCivilCalendar
deprecated
func NSIslamicCivilCalendar() *NSString
Deprecated: since macOS 10.10.
func NSItemProviderErrorDomain ¶
func NSItemProviderErrorDomain() *NSString
func NSItemProviderPreferredImageSizeKey ¶
func NSItemProviderPreferredImageSizeKey() *NSString
func NSJapaneseCalendar
deprecated
func NSJapaneseCalendar() *NSString
Deprecated: since macOS 10.10.
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 NSKeyedArchiveRootObjectKey ¶
func NSKeyedArchiveRootObjectKey() *NSString
func NSKeyedArchiverClassNameForClass ¶
Returns the class name with which the archiver class encodes instances of a given class.
func NSKeyedUnarchiveFromDataTransformerName
deprecated
func NSKeyedUnarchiveFromDataTransformerName() *NSString
Deprecated: since macOS 10.14.
func NSLinguisticTagAdjective
deprecated
func NSLinguisticTagAdjective() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagAdverb
deprecated
func NSLinguisticTagAdverb() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagClassifier
deprecated
func NSLinguisticTagClassifier() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagCloseParenthesis
deprecated
func NSLinguisticTagCloseParenthesis() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagCloseQuote
deprecated
func NSLinguisticTagCloseQuote() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagConjunction
deprecated
func NSLinguisticTagConjunction() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagDash
deprecated
func NSLinguisticTagDash() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagDeterminer
deprecated
func NSLinguisticTagDeterminer() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagIdiom
deprecated
func NSLinguisticTagIdiom() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagInterjection
deprecated
func NSLinguisticTagInterjection() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagNoun
deprecated
func NSLinguisticTagNoun() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagNumber
deprecated
func NSLinguisticTagNumber() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagOpenParenthesis
deprecated
func NSLinguisticTagOpenParenthesis() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagOpenQuote
deprecated
func NSLinguisticTagOpenQuote() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagOrganizationName
deprecated
func NSLinguisticTagOrganizationName() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagOther
deprecated
func NSLinguisticTagOther() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagOtherPunctuation
deprecated
func NSLinguisticTagOtherPunctuation() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagOtherWhitespace
deprecated
func NSLinguisticTagOtherWhitespace() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagOtherWord
deprecated
func NSLinguisticTagOtherWord() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagParagraphBreak
deprecated
func NSLinguisticTagParagraphBreak() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagParticle
deprecated
func NSLinguisticTagParticle() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagPersonalName
deprecated
func NSLinguisticTagPersonalName() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagPlaceName
deprecated
func NSLinguisticTagPlaceName() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagPreposition
deprecated
func NSLinguisticTagPreposition() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagPronoun
deprecated
func NSLinguisticTagPronoun() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagPunctuation
deprecated
func NSLinguisticTagPunctuation() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagSchemeLanguage
deprecated
func NSLinguisticTagSchemeLanguage() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagSchemeLemma
deprecated
func NSLinguisticTagSchemeLemma() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagSchemeLexicalClass
deprecated
func NSLinguisticTagSchemeLexicalClass() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagSchemeNameType
deprecated
func NSLinguisticTagSchemeNameType() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagSchemeNameTypeOrLexicalClass
deprecated
func NSLinguisticTagSchemeNameTypeOrLexicalClass() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagSchemeScript
deprecated
func NSLinguisticTagSchemeScript() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagSchemeTokenType
deprecated
func NSLinguisticTagSchemeTokenType() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagSentenceTerminator
deprecated
func NSLinguisticTagSentenceTerminator() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagVerb
deprecated
func NSLinguisticTagVerb() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagWhitespace
deprecated
func NSLinguisticTagWhitespace() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagWord
deprecated
func NSLinguisticTagWord() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTagWordJoiner
deprecated
func NSLinguisticTagWordJoiner() *NSString
Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTaggerDominantLanguageForString ¶
Returns the dominant language for the specified string. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLinguisticTaggerTagForStringAtIndexUnitSchemeOrthographyTokenRange ¶
func NSLinguisticTaggerTagForStringAtIndexUnitSchemeOrthographyTokenRange(string_ *NSString, charIndex uint, unit NSLinguisticTaggerUnit, scheme *NSString, orthography *NSOrthography, tokenRange *NSRange) *NSString
Returns a tag for a single scheme, for a given linguistic unit, at the specified character position in a string. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func NSLoadedClasses ¶
func NSLoadedClasses() *NSString
func NSLocalNotificationCenterType ¶
func NSLocalNotificationCenterType() *NSString
func NSLocaleAlternateQuotationBeginDelimiterKey ¶
func NSLocaleAlternateQuotationBeginDelimiterKey() *NSString
func NSLocaleAlternateQuotationEndDelimiterKey ¶
func NSLocaleAlternateQuotationEndDelimiterKey() *NSString
func NSLocaleCalendar ¶
func NSLocaleCalendar() *NSString
func NSLocaleCanonicalLanguageIdentifierFromString ¶
Returns a canonical language identifier by mapping an arbitrary locale identification string to the canonical identifier.
func NSLocaleCanonicalLocaleIdentifierFromString ¶
Returns the canonical identifier for a given locale identification string.
func NSLocaleCollationIdentifier ¶
func NSLocaleCollationIdentifier() *NSString
func NSLocaleCollatorIdentifier ¶
func NSLocaleCollatorIdentifier() *NSString
func NSLocaleCountryCode ¶
func NSLocaleCountryCode() *NSString
func NSLocaleCurrencyCode ¶
func NSLocaleCurrencyCode() *NSString
func NSLocaleCurrencySymbol ¶
func NSLocaleCurrencySymbol() *NSString
func NSLocaleDecimalSeparator ¶
func NSLocaleDecimalSeparator() *NSString
func NSLocaleExemplarCharacterSet ¶
func NSLocaleExemplarCharacterSet() *NSString
func NSLocaleGroupingSeparator ¶
func NSLocaleGroupingSeparator() *NSString
func NSLocaleIdentifier ¶
func NSLocaleIdentifier() *NSString
func NSLocaleLanguageCode ¶
func NSLocaleLanguageCode() *NSString
func NSLocaleLocaleIdentifierFromComponents ¶
func NSLocaleLocaleIdentifierFromComponents(dict *NSDictionary[*NSString, *NSString]) *NSString
Returns a locale identifier from the components specified in a given dictionary.
func NSLocaleLocaleIdentifierFromWindowsLocaleCode ¶
Returns a locale identifier from a Windows locale code.
func NSLocaleMeasurementSystem ¶
func NSLocaleMeasurementSystem() *NSString
func NSLocaleQuotationBeginDelimiterKey ¶
func NSLocaleQuotationBeginDelimiterKey() *NSString
func NSLocaleQuotationEndDelimiterKey ¶
func NSLocaleQuotationEndDelimiterKey() *NSString
func NSLocaleScriptCode ¶
func NSLocaleScriptCode() *NSString
func NSLocaleUsesMetricSystem ¶
func NSLocaleUsesMetricSystem() *NSString
func NSLocaleVariantCode ¶
func NSLocaleVariantCode() *NSString
func NSLocalizedDescriptionKey ¶
func NSLocalizedDescriptionKey() *NSString
func NSLocalizedFailureErrorKey ¶
func NSLocalizedFailureErrorKey() *NSString
func NSLocalizedFailureReasonErrorKey ¶
func NSLocalizedFailureReasonErrorKey() *NSString
func NSLocalizedRecoveryOptionsErrorKey ¶
func NSLocalizedRecoveryOptionsErrorKey() *NSString
func NSLocalizedRecoverySuggestionErrorKey ¶
func NSLocalizedRecoverySuggestionErrorKey() *NSString
func NSMachErrorDomain ¶
func NSMachErrorDomain() *NSString
func NSMallocException ¶
func NSMallocException() *NSString
func NSMaximumKeyValueOperator ¶
func NSMaximumKeyValueOperator() *NSString
func NSMetadataItemContentTypeKey ¶
func NSMetadataItemContentTypeKey() *NSString
func NSMetadataItemContentTypeTreeKey ¶
func NSMetadataItemContentTypeTreeKey() *NSString
func NSMetadataItemDisplayNameKey ¶
func NSMetadataItemDisplayNameKey() *NSString
func NSMetadataItemFSContentChangeDateKey ¶
func NSMetadataItemFSContentChangeDateKey() *NSString
func NSMetadataItemFSCreationDateKey ¶
func NSMetadataItemFSCreationDateKey() *NSString
func NSMetadataItemFSNameKey ¶
func NSMetadataItemFSNameKey() *NSString
func NSMetadataItemFSSizeKey ¶
func NSMetadataItemFSSizeKey() *NSString
func NSMetadataItemIsUbiquitousKey ¶
func NSMetadataItemIsUbiquitousKey() *NSString
func NSMetadataItemPathKey ¶
func NSMetadataItemPathKey() *NSString
func NSMetadataItemURLKey ¶
func NSMetadataItemURLKey() *NSString
func NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope ¶
func NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope() *NSString
func NSMetadataQueryDidFinishGatheringNotification ¶
func NSMetadataQueryDidFinishGatheringNotification() *NSString
func NSMetadataQueryDidStartGatheringNotification ¶
func NSMetadataQueryDidStartGatheringNotification() *NSString
func NSMetadataQueryDidUpdateNotification ¶
func NSMetadataQueryDidUpdateNotification() *NSString
func NSMetadataQueryGatheringProgressNotification ¶
func NSMetadataQueryGatheringProgressNotification() *NSString
func NSMetadataQueryResultContentRelevanceAttribute ¶
func NSMetadataQueryResultContentRelevanceAttribute() *NSString
func NSMetadataQueryUbiquitousDataScope ¶
func NSMetadataQueryUbiquitousDataScope() *NSString
func NSMetadataQueryUbiquitousDocumentsScope ¶
func NSMetadataQueryUbiquitousDocumentsScope() *NSString
func NSMetadataQueryUpdateAddedItemsKey ¶
func NSMetadataQueryUpdateAddedItemsKey() *NSString
func NSMetadataQueryUpdateChangedItemsKey ¶
func NSMetadataQueryUpdateChangedItemsKey() *NSString
func NSMetadataQueryUpdateRemovedItemsKey ¶
func NSMetadataQueryUpdateRemovedItemsKey() *NSString
func NSMetadataUbiquitousItemContainerDisplayNameKey ¶
func NSMetadataUbiquitousItemContainerDisplayNameKey() *NSString
func NSMetadataUbiquitousItemDownloadRequestedKey ¶
func NSMetadataUbiquitousItemDownloadRequestedKey() *NSString
func NSMetadataUbiquitousItemDownloadingErrorKey ¶
func NSMetadataUbiquitousItemDownloadingErrorKey() *NSString
func NSMetadataUbiquitousItemDownloadingStatusCurrent ¶
func NSMetadataUbiquitousItemDownloadingStatusCurrent() *NSString
func NSMetadataUbiquitousItemDownloadingStatusDownloaded ¶
func NSMetadataUbiquitousItemDownloadingStatusDownloaded() *NSString
func NSMetadataUbiquitousItemDownloadingStatusKey ¶
func NSMetadataUbiquitousItemDownloadingStatusKey() *NSString
func NSMetadataUbiquitousItemDownloadingStatusNotDownloaded ¶
func NSMetadataUbiquitousItemDownloadingStatusNotDownloaded() *NSString
func NSMetadataUbiquitousItemHasUnresolvedConflictsKey ¶
func NSMetadataUbiquitousItemHasUnresolvedConflictsKey() *NSString
func NSMetadataUbiquitousItemIsDownloadedKey
deprecated
func NSMetadataUbiquitousItemIsDownloadedKey() *NSString
Deprecated: Use NSMetadataUbiquitousItemDownloadingStatusKey instead
func NSMetadataUbiquitousItemIsDownloadingKey ¶
func NSMetadataUbiquitousItemIsDownloadingKey() *NSString
func NSMetadataUbiquitousItemIsExternalDocumentKey ¶
func NSMetadataUbiquitousItemIsExternalDocumentKey() *NSString
func NSMetadataUbiquitousItemIsSharedKey ¶
func NSMetadataUbiquitousItemIsSharedKey() *NSString
func NSMetadataUbiquitousItemIsUploadedKey ¶
func NSMetadataUbiquitousItemIsUploadedKey() *NSString
func NSMetadataUbiquitousItemIsUploadingKey ¶
func NSMetadataUbiquitousItemIsUploadingKey() *NSString
func NSMetadataUbiquitousItemPercentDownloadedKey ¶
func NSMetadataUbiquitousItemPercentDownloadedKey() *NSString
func NSMetadataUbiquitousItemPercentUploadedKey ¶
func NSMetadataUbiquitousItemPercentUploadedKey() *NSString
func NSMetadataUbiquitousItemURLInLocalContainerKey ¶
func NSMetadataUbiquitousItemURLInLocalContainerKey() *NSString
func NSMetadataUbiquitousItemUploadingErrorKey ¶
func NSMetadataUbiquitousItemUploadingErrorKey() *NSString
func NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey ¶
func NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey() *NSString
func NSMetadataUbiquitousSharedItemCurrentUserRoleKey ¶
func NSMetadataUbiquitousSharedItemCurrentUserRoleKey() *NSString
func NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey ¶
func NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey() *NSString
func NSMetadataUbiquitousSharedItemOwnerNameComponentsKey ¶
func NSMetadataUbiquitousSharedItemOwnerNameComponentsKey() *NSString
func NSMetadataUbiquitousSharedItemPermissionsReadOnly ¶
func NSMetadataUbiquitousSharedItemPermissionsReadOnly() *NSString
func NSMetadataUbiquitousSharedItemPermissionsReadWrite ¶
func NSMetadataUbiquitousSharedItemPermissionsReadWrite() *NSString
func NSMetadataUbiquitousSharedItemRoleOwner ¶
func NSMetadataUbiquitousSharedItemRoleOwner() *NSString
func NSMetadataUbiquitousSharedItemRoleParticipant ¶
func NSMetadataUbiquitousSharedItemRoleParticipant() *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 NSOperationNotSupportedForKeyException ¶
func NSOperationNotSupportedForKeyException() *NSString
func NSPOSIXErrorDomain ¶
func NSPOSIXErrorDomain() *NSString
func NSParseErrorException ¶
func NSParseErrorException() *NSString
func NSPersianCalendar
deprecated
func NSPersianCalendar() *NSString
Deprecated: since macOS 10.10.
func NSPersonNameComponentDelimiter ¶
func NSPersonNameComponentDelimiter() *NSString
func NSPersonNameComponentFamilyName ¶
func NSPersonNameComponentFamilyName() *NSString
func NSPersonNameComponentGivenName ¶
func NSPersonNameComponentGivenName() *NSString
func NSPersonNameComponentKey ¶
func NSPersonNameComponentKey() *NSString
func NSPersonNameComponentMiddleName ¶
func NSPersonNameComponentMiddleName() *NSString
func NSPersonNameComponentNickname ¶
func NSPersonNameComponentNickname() *NSString
func NSPersonNameComponentPrefix ¶
func NSPersonNameComponentPrefix() *NSString
func NSPersonNameComponentSuffix ¶
func NSPersonNameComponentSuffix() *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 NSRegistrationDomain ¶
func NSRegistrationDomain() *NSString
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 NSRegularExpressionEscapedPatternForString ¶
Returns a string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters.
func NSRegularExpressionEscapedTemplateForString ¶
Returns a template string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters
func NSRepublicOfChinaCalendar
deprecated
func NSRepublicOfChinaCalendar() *NSString
Deprecated: since macOS 10.10.
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 NSStringFromHashTable ¶
func NSStringFromHashTable(table *NSHashTable[objc.ID]) *NSString
func NSStringFromID ¶
func NSStringFromMapTable ¶
func NSStringFromPoint ¶
func NSStringFromPoint(aPoint corefoundation.CGPoint) *NSString
func NSStringFromProtocol ¶
func NSStringFromRange ¶
func NSStringFromRect ¶
func NSStringFromRect(aRect corefoundation.CGRect) *NSString
func NSStringFromSelector ¶
func NSStringFromSize ¶
func NSStringFromSize(aSize corefoundation.CGSize) *NSString
func NSStringLocalizedNameOfStringEncoding ¶
Returns a human-readable string giving the name of a given encoding.
func NSStringLocalizedStringWithFormat ¶
Returns a string created by using a given format string as a template into which the remaining argument values are substituted according to the current locale.
func NSStringPathWithComponents ¶
Returns a string built from the strings in a given array by concatenating them with a path separator between each pair.
func NSStringStringWithCStringEncoding ¶
Returns a string containing the bytes in a given C array, interpreted according to a given encoding.
func NSStringStringWithCharactersLength ¶
Returns a string containing a given number of characters taken from a given C array of UTF-16 code units.
func NSStringStringWithContentsOfFileEncodingError ¶
Returns a string created by reading data from the file at a given path interpreted using a given encoding.
func NSStringStringWithContentsOfFileUsedEncodingError ¶
func NSStringStringWithContentsOfFileUsedEncodingError(path *NSString, enc *uint) (*NSString, error)
Returns a string created by reading data from the file at a given path and returns by reference the encoding used to interpret the file.
func NSStringStringWithContentsOfURLEncodingError ¶
Returns a string created by reading data from the file at a given path interpreted using a given encoding.
func NSStringStringWithContentsOfURLUsedEncodingError ¶
Returns a string created by reading data from the file at a given URL and returns by reference the encoding used to interpret the data.
func NSStringStringWithFormat ¶
Returns a string created by using a given format string as a template into which the remaining argument values are substituted.
func NSStringStringWithString ¶
Returns a string created by copying the characters from another given string.
func NSStringStringWithUTF8String ¶
Returns a string created by copying the data from a given C array of UTF8-encoded bytes.
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 NSURLAuthenticationMethodClientCertificate ¶
func NSURLAuthenticationMethodClientCertificate() *NSString
@const NSURLAuthenticationMethodClientCertificate @abstract SSL Client certificate. Applies to any protocol.
func NSURLAuthenticationMethodDefault ¶
func NSURLAuthenticationMethodDefault() *NSString
@const NSURLAuthenticationMethodDefault @abstract The default authentication method for a protocol
func NSURLAuthenticationMethodHTMLForm ¶
func NSURLAuthenticationMethodHTMLForm() *NSString
@const NSURLAuthenticationMethodHTMLForm @abstract HTML form authentication. Applies to any protocol.
func NSURLAuthenticationMethodHTTPBasic ¶
func NSURLAuthenticationMethodHTTPBasic() *NSString
@const NSURLAuthenticationMethodHTTPBasic @abstract HTTP basic authentication. Equivalent to NSURLAuthenticationMethodDefault for http.
func NSURLAuthenticationMethodHTTPDigest ¶
func NSURLAuthenticationMethodHTTPDigest() *NSString
@const NSURLAuthenticationMethodHTTPDigest @abstract HTTP digest authentication.
func NSURLAuthenticationMethodNTLM ¶
func NSURLAuthenticationMethodNTLM() *NSString
@const NSURLAuthenticationMethodNTLM @abstract NTLM authentication.
func NSURLAuthenticationMethodNegotiate ¶
func NSURLAuthenticationMethodNegotiate() *NSString
@const NSURLAuthenticationMethodNegotiate @abstract Negotiate authentication.
func NSURLAuthenticationMethodServerTrust ¶
func NSURLAuthenticationMethodServerTrust() *NSString
@const NSURLAuthenticationMethodServerTrust @abstract SecTrustRef validation required. Applies to any protocol.
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 NSURLCredentialStorageRemoveSynchronizableCredentials ¶
func NSURLCredentialStorageRemoveSynchronizableCredentials() *NSString
func NSURLCustomIconKey ¶
func NSURLCustomIconKey() *NSString
func NSURLDirectoryEntryCountKey ¶
func NSURLDirectoryEntryCountKey() *NSString
func NSURLDocumentIdentifierKey ¶
func NSURLDocumentIdentifierKey() *NSString
func NSURLEffectiveIconKey ¶
func NSURLEffectiveIconKey() *NSString
func NSURLErrorBackgroundTaskCancelledReasonKey ¶
func NSURLErrorBackgroundTaskCancelledReasonKey() *NSString
@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 NSURLErrorDomain ¶
func NSURLErrorDomain() *NSString
func NSURLErrorFailingURLErrorKey ¶
func NSURLErrorFailingURLErrorKey() *NSString
@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() *NSString
@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() *NSString
@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 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 ¶
func NSURLFileResourceTypeSymbolicLink() *NSString
func NSURLFileResourceTypeUnknown ¶
func NSURLFileResourceTypeUnknown() *NSString
func NSURLFileScheme ¶
func NSURLFileScheme() *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 NSURLProtectionSpaceFTP ¶
func NSURLProtectionSpaceFTP() *NSString
@const NSURLProtectionSpaceFTP @abstract The protocol for FTP Deprecated: FTP is deprecated and only supported in the classic loading mode
func NSURLProtectionSpaceFTPProxy ¶
func NSURLProtectionSpaceFTPProxy() *NSString
@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() *NSString
@const NSURLProtectionSpaceHTTP @abstract The protocol for HTTP
func NSURLProtectionSpaceHTTPProxy ¶
func NSURLProtectionSpaceHTTPProxy() *NSString
@const NSURLProtectionSpaceHTTPProxy @abstract The proxy type for http proxies
func NSURLProtectionSpaceHTTPS ¶
func NSURLProtectionSpaceHTTPS() *NSString
@const NSURLProtectionSpaceHTTPS @abstract The protocol for HTTPS
func NSURLProtectionSpaceHTTPSProxy ¶
func NSURLProtectionSpaceHTTPSProxy() *NSString
@const NSURLProtectionSpaceHTTPSProxy @abstract The proxy type for https proxies
func NSURLProtectionSpaceSOCKSProxy ¶
func NSURLProtectionSpaceSOCKSProxy() *NSString
@const NSURLProtectionSpaceSOCKSProxy @abstract The proxy type for SOCKS proxies
func NSURLSessionDownloadTaskResumeData ¶
func NSURLSessionDownloadTaskResumeData() *NSString
func NSURLSessionUploadTaskResumeData ¶
func NSURLSessionUploadTaskResumeData() *NSString
Key in the userInfo dictionary of an NSError received during a failed upload.
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 NSUbiquitousKeyValueStoreChangeReasonKey ¶
func NSUbiquitousKeyValueStoreChangeReasonKey() *NSString
func NSUbiquitousKeyValueStoreChangedKeysKey ¶
func NSUbiquitousKeyValueStoreChangedKeysKey() *NSString
func NSUbiquitousKeyValueStoreDidChangeExternallyNotification ¶
func NSUbiquitousKeyValueStoreDidChangeExternallyNotification() *NSString
func NSUbiquityIdentityDidChangeNotification ¶
func NSUbiquityIdentityDidChangeNotification() *NSString
func NSUnarchiveFromDataTransformerName
deprecated
func NSUnarchiveFromDataTransformerName() *NSString
Deprecated: since macOS 10.14.
func NSUnarchiverClassNameDecodedForArchiveClassName ¶
Returns the name of the class used when instantiating objects whose ostensible class, according to the archived data, is a given name.
func NSUndefinedKeyException ¶
func NSUndefinedKeyException() *NSString
func NSUnderlyingErrorKey ¶
func NSUnderlyingErrorKey() *NSString
func NSUndoManagerCheckpointNotification ¶
func NSUndoManagerCheckpointNotification() *NSString
func NSUndoManagerDidCloseUndoGroupNotification ¶
func NSUndoManagerDidCloseUndoGroupNotification() *NSString
func NSUndoManagerDidOpenUndoGroupNotification ¶
func NSUndoManagerDidOpenUndoGroupNotification() *NSString
func NSUndoManagerDidRedoChangeNotification ¶
func NSUndoManagerDidRedoChangeNotification() *NSString
func NSUndoManagerDidUndoChangeNotification ¶
func NSUndoManagerDidUndoChangeNotification() *NSString
func NSUndoManagerGroupIsDiscardableKey ¶
func NSUndoManagerGroupIsDiscardableKey() *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 NSUserActivityTypeBrowsingWeb ¶
func NSUserActivityTypeBrowsingWeb() *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 ¶
@method localNameForName: @abstract Returns the local name bar in foo:bar.
func NSXMLNodePrefixForName ¶
@method localNameForName: @abstract Returns the prefix foo in the name foo:bar.
func NSXMLParserErrorDomain ¶
func NSXMLParserErrorDomain() *NSString
func NSZoneName ¶
func (*NSString) CString ¶
Returns a representation of the receiver as a C string in the default C-string encoding. Deprecated: Use -cStringUsingEncoding: instead
func (*NSString) CStringLength ¶
Returns the length in char-sized units of the receiver’s C-string representation in the default C-string encoding. Deprecated: Use -lengthOfBytesUsingEncoding: instead
func (*NSString) CStringUsingEncoding ¶
Returns a representation of the string as a C string using a given encoding.
func (*NSString) CanBeConvertedToEncoding ¶
Returns a Boolean value that indicates whether the receiver can be converted to a given encoding without loss of information.
func (*NSString) CapitalizedString ¶
func (*NSString) CapitalizedStringWithLocale ¶
Returns a capitalized representation of the receiver using the specified locale.
func (*NSString) CaseInsensitiveCompare ¶
func (o *NSString) CaseInsensitiveCompare(string_ *NSString) NSComparisonResult
Returns the result of invoking compare:options: with NSCaseInsensitiveSearch as the only option.
func (*NSString) CharacterAtIndex ¶
Returns the character at a given UTF-16 code unit index.
func (*NSString) CommonPrefixWithStringOptions ¶
func (o *NSString) CommonPrefixWithStringOptions(str *NSString, mask NSStringCompareOptions) *NSString
Returns a string containing characters the receiver and a given string have in common, starting from the beginning of each up to the first characters that aren’t equivalent.
func (*NSString) Compare ¶
func (o *NSString) Compare(string_ *NSString) NSComparisonResult
Returns the result of invoking compare:options:range: with no options and the receiver’s full extent as the range.
func (*NSString) CompareOptions ¶
func (o *NSString) CompareOptions(string_ *NSString, mask NSStringCompareOptions) NSComparisonResult
Compares the string with the specified string using the given options.
func (*NSString) CompareOptionsRange ¶
func (o *NSString) CompareOptionsRange(string_ *NSString, mask NSStringCompareOptions, rangeOfReceiverToCompare NSRange) NSComparisonResult
Returns the result of invoking compare:options:range:locale: with a nil locale.
func (*NSString) CompareOptionsRangeLocale ¶
func (o *NSString) CompareOptionsRangeLocale(string_ *NSString, mask NSStringCompareOptions, rangeOfReceiverToCompare NSRange, locale objc.ID) NSComparisonResult
Compares the string using the specified options and returns the lexical ordering for the range.
func (*NSString) CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes ¶
func (o *NSString) CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(outputName *NSString, flag bool, outputArray *NSArray[*NSString], filterTypes *NSArray[*NSString]) uint
Interprets the receiver as a path in the file system and attempts to perform filename completion, returning a numeric value that indicates whether a match was possible, and by reference the longest path that matches the receiver.
func (*NSString) ComponentsSeparatedByCharactersInSet ¶
func (o *NSString) ComponentsSeparatedByCharactersInSet(separator *NSCharacterSet) *NSArray[*NSString]
Returns an array containing substrings from the receiver that have been divided by characters in a given set.
func (*NSString) ComponentsSeparatedByString ¶
Returns an array containing substrings from the receiver that have been divided by a given separator.
func (*NSString) ContainsString ¶
Returns a Boolean value indicating whether the string contains a given string by performing a case-sensitive, locale-unaware search.
func (*NSString) DataUsingEncoding ¶
Returns an NSData object containing a representation of the receiver encoded using a given encoding.
func (*NSString) DataUsingEncodingAllowLossyConversion ¶
Returns an NSData object containing a representation of the receiver encoded using a given encoding.
func (*NSString) DecomposedStringWithCanonicalMapping ¶
func (*NSString) DecomposedStringWithCompatibilityMapping ¶
func (*NSString) DoubleValue ¶
func (*NSString) EnumerateLinesUsing ¶
Enumerates all the lines in the string.
func (*NSString) EnumerateLinguisticTagsInRangeSchemeOptionsOrthographyUsing ¶
func (o *NSString) EnumerateLinguisticTagsInRangeSchemeOptionsOrthographyUsing(range_ NSRange, scheme *NSString, options NSLinguisticTaggerOptions, orthography *NSOrthography, block objc.Block)
Performs linguistic analysis on the specified string by enumerating the specific range of the string, providing the Block with the located tags. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSString) EnumerateSubstringsInRangeOptionsUsing ¶
func (o *NSString) EnumerateSubstringsInRangeOptionsUsing(range_ NSRange, opts NSStringEnumerationOptions, block objc.Block)
Enumerates the substrings of the specified type in the specified range of the string.
func (*NSString) FastestEncoding ¶
func (*NSString) FileSystemRepresentation ¶
func (*NSString) FloatValue ¶
func (*NSString) GetBytesMaxLengthUsedLengthEncodingOptionsRangeRemainingRange ¶
func (o *NSString) GetBytesMaxLengthUsedLengthEncodingOptionsRangeRemainingRange(buffer unsafe.Pointer, maxBufferCount uint, usedBufferCount *uint, encoding uint, options NSStringEncodingConversionOptions, range_ NSRange, leftover *NSRange) bool
Gets a given range of characters as bytes in a specified encoding.
func (*NSString) GetCString ¶
Invokes getCString:maxLength:range:remainingRange: with NSMaximumStringLength as the maximum length, the receiver’s entire extent as the range, and NULL for the remaining range. Deprecated: Use -getCString:maxLength:encoding: instead
func (*NSString) GetCStringMaxLength ¶
Invokes getCString:maxLength:range:remainingRange: with maxLength as the maximum length in char-sized units, the receiver’s entire extent as the range, and NULL for the remaining range. Deprecated: Use -getCString:maxLength:encoding: instead
func (*NSString) GetCStringMaxLengthEncoding ¶
func (o *NSString) GetCStringMaxLengthEncoding(buffer string, maxBufferCount uint, encoding uint) bool
Converts the string to a given encoding and stores it in a buffer.
func (*NSString) GetCStringMaxLengthRangeRemainingRange ¶
func (o *NSString) GetCStringMaxLengthRangeRemainingRange(bytes_ string, maxLength uint, aRange NSRange, leftoverRange *NSRange)
Converts the receiver’s content to the default C-string encoding and stores them in a given buffer. Deprecated: Use -getCString:maxLength:encoding: instead
func (*NSString) GetCharacters ¶
Copies all characters from the receiver into a given buffer. Deprecated: Use +stringWithCString:encoding: instead
func (*NSString) GetCharactersRange ¶
Copies characters from a given range in the receiver into a given buffer.
func (*NSString) GetFileSystemRepresentationMaxLength ¶
Interprets the receiver as a system-independent path and fills a buffer with a C-string in a format and encoding suitable for use with file-system calls.
func (*NSString) GetLineStartEndContentsEndForRange ¶
func (o *NSString) GetLineStartEndContentsEndForRange(startPtr *uint, lineEndPtr *uint, contentsEndPtr *uint, range_ NSRange)
Returns by reference the beginning of the first line and the end of the last line touched by the given range.
func (*NSString) GetParagraphStartEndContentsEndForRange ¶
func (o *NSString) GetParagraphStartEndContentsEndForRange(startPtr *uint, parEndPtr *uint, contentsEndPtr *uint, range_ NSRange)
Returns by reference the beginning of the first paragraph and the end of the last paragraph touched by the given range.
func (*NSString) HasPrefix ¶
Returns a Boolean value that indicates whether a given string matches the beginning characters of the receiver.
func (*NSString) HasSuffix ¶
Returns a Boolean value that indicates whether a given string matches the ending characters of the receiver.
func (*NSString) InitWithBytesLengthEncoding ¶
func (o *NSString) InitWithBytesLengthEncoding(bytes_ unsafe.Pointer, len_ uint, encoding uint) *NSString
Returns an initialized NSString object containing a given number of bytes from a given buffer of bytes interpreted in a given encoding.
func (*NSString) InitWithBytesNoCopyLengthEncodingDeallocator ¶
func (*NSString) InitWithBytesNoCopyLengthEncodingFreeWhenDone ¶
func (o *NSString) InitWithBytesNoCopyLengthEncodingFreeWhenDone(bytes_ unsafe.Pointer, len_ uint, encoding uint, freeBuffer bool) *NSString
Returns an initialized NSString object that contains a given number of bytes from a given buffer of bytes interpreted in a given encoding, and optionally frees the buffer.
func (*NSString) InitWithCString
deprecated
func (*NSString) InitWithCStringEncoding ¶
Returns an @c NSString object initialized using the characters in a given C array, interpreted according to a given encoding.
func (*NSString) InitWithCharactersLength ¶
Returns an initialized NSString object that contains a given number of characters from a given C array of UTF-16 code units.
func (*NSString) InitWithCharactersNoCopyLengthDeallocator ¶
func (*NSString) InitWithCharactersNoCopyLengthFreeWhenDone ¶
func (o *NSString) InitWithCharactersNoCopyLengthFreeWhenDone(characters *uint16, length uint, freeBuffer bool) *NSString
Returns an initialized NSString object that contains a given number of characters from a given C array of UTF-16 code units.
func (*NSString) InitWithCoder ¶
func (*NSString) InitWithContentsOfFile ¶
Initializes the receiver, a newly allocated NSString object, by reading data from the file named by path. Deprecated: Use -initWithContentsOfFile:encoding:error: instead
func (*NSString) InitWithContentsOfFileEncodingError ¶
Returns an NSString object initialized by reading data from the file at a given path using a given encoding.
func (*NSString) InitWithContentsOfFileUsedEncodingError ¶
func (o *NSString) InitWithContentsOfFileUsedEncodingError(path *NSString, enc *uint) (*NSString, error)
Returns an NSString object initialized by reading data from the file at a given path and returns by reference the encoding used to interpret the characters.
func (*NSString) InitWithContentsOfURL ¶
Returns an @c NSString object initialized by reading data from the URL named by @c url. Deprecated: Use -initWithContentsOfURL:encoding:error: instead
func (*NSString) InitWithContentsOfURLEncodingError ¶
Returns an @c NSString object initialized by reading data from a given URL interpreted using a given encoding.
func (*NSString) InitWithContentsOfURLUsedEncodingError ¶
Returns an @c NSString object initialized by reading data from a given URL and returns by reference the encoding used to interpret the data.
func (*NSString) InitWithDataEncoding ¶
Returns an NSString object initialized by converting given data into UTF-16 code units using a given encoding.
func (*NSString) InitWithFormat ¶
Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted.
func (*NSString) InitWithFormatArguments ¶
Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted without any localization.
func (*NSString) InitWithFormatLocale ¶
Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to given locale.
func (*NSString) InitWithFormatLocaleArguments ¶
func (o *NSString) InitWithFormatLocaleArguments(format *NSString, locale objc.ID, argList string) *NSString
Returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to given locale information. This method is meant to be called from within a variadic function, where the argument list will be available.
func (*NSString) InitWithString ¶
Returns an NSString object initialized by copying the characters from another given string.
func (*NSString) InitWithUTF8String ¶
Returns an @c NSString object initialized by copying the characters from a given C array of UTF8-encoded bytes.
func (*NSString) InitWithValidatedFormatValidFormatSpecifiersArgumentsError ¶
func (*NSString) InitWithValidatedFormatValidFormatSpecifiersError ¶
func (*NSString) InitWithValidatedFormatValidFormatSpecifiersLocaleArgumentsError ¶
func (*NSString) InitWithValidatedFormatValidFormatSpecifiersLocaleError ¶
func (*NSString) IntegerValue ¶
func (*NSString) IsAbsolutePath ¶
func (*NSString) IsEqualToString ¶
Returns a Boolean value that indicates whether a given string is equal to the receiver using a literal Unicode-based comparison.
func (*NSString) LastPathComponent ¶
func (*NSString) LengthOfBytesUsingEncoding ¶
Returns the number of bytes required to store the receiver in a given encoding.
func (*NSString) LineRangeForRange ¶
Returns the range of characters representing the line or lines containing a given range.
func (*NSString) LinguisticTagsInRangeSchemeOptionsOrthographyTokenRanges ¶
func (o *NSString) LinguisticTagsInRangeSchemeOptionsOrthographyTokenRanges(range_ NSRange, scheme *NSString, options NSLinguisticTaggerOptions, orthography *NSOrthography, tokenRanges *NSArray[*NSValue]) *NSArray[*NSString]
Returns an array of linguistic tags for the specified range and requested tags within the receiving string. Deprecated: All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API
func (*NSString) LocalizedCapitalizedString ¶
func (*NSString) LocalizedCaseInsensitiveCompare ¶
func (o *NSString) LocalizedCaseInsensitiveCompare(string_ *NSString) NSComparisonResult
Compares the string with a given string using a case-insensitive, localized, comparison.
func (*NSString) LocalizedCaseInsensitiveContainsString ¶
Returns a Boolean value indicating whether the string contains a given string by performing a case-insensitive, locale-aware search.
func (*NSString) LocalizedCompare ¶
func (o *NSString) LocalizedCompare(string_ *NSString) NSComparisonResult
Compares the string and a given string using a localized comparison.
func (*NSString) LocalizedLowercaseString ¶
func (*NSString) LocalizedStandardCompare ¶
func (o *NSString) LocalizedStandardCompare(string_ *NSString) NSComparisonResult
Compares strings as sorted by the Finder.
func (*NSString) LocalizedStandardContainsString ¶
Returns a Boolean value indicating whether the string contains a given string by performing a case and diacritic insensitive, locale-aware search.
func (*NSString) LocalizedStandardRangeOfString ¶
Finds and returns the range of the first occurrence of a given string within the string by performing a case and diacritic insensitive, locale-aware search.
func (*NSString) LocalizedUppercaseString ¶
func (*NSString) LongLongValue ¶
func (*NSString) LossyCString ¶
Returns a representation of the receiver as a C string in the default C-string encoding, possibly losing information in converting to that encoding. Deprecated: Use -cStringUsingEncoding: instead
func (*NSString) LowercaseString ¶
func (*NSString) LowercaseStringWithLocale ¶
Returns a version of the string with all letters converted to lowercase, taking into account the specified locale.
func (*NSString) MaximumLengthOfBytesUsingEncoding ¶
Returns the maximum number of bytes needed to store the receiver in a given encoding.
func (*NSString) ParagraphRangeForRange ¶
Returns the range of characters representing the paragraph or paragraphs containing a given range.
func (*NSString) PathComponents ¶
func (*NSString) PathExtension ¶
func (*NSString) PrecomposedStringWithCanonicalMapping ¶
func (*NSString) PrecomposedStringWithCompatibilityMapping ¶
func (*NSString) PropertyList ¶
Parses the receiver as a text representation of a property list, returning an NSString, NSData, NSArray, or NSDictionary object, according to the topmost element.
func (*NSString) PropertyListFromStringsFileFormat ¶
Returns a dictionary object initialized with the keys and values found in the receiver.
func (*NSString) RangeOfCharacterFromSet ¶
func (o *NSString) RangeOfCharacterFromSet(searchSet *NSCharacterSet) NSRange
Finds and returns the range in the string of the first character from a given character set.
func (*NSString) RangeOfCharacterFromSetOptions ¶
func (o *NSString) RangeOfCharacterFromSetOptions(searchSet *NSCharacterSet, mask NSStringCompareOptions) NSRange
Finds and returns the range in the string of the first character, using given options, from a given character set.
func (*NSString) RangeOfCharacterFromSetOptionsRange ¶
func (o *NSString) RangeOfCharacterFromSetOptionsRange(searchSet *NSCharacterSet, mask NSStringCompareOptions, rangeOfReceiverToSearch NSRange) NSRange
Finds and returns the range in the string of the first character from a given character set found in a given range with given options.
func (*NSString) RangeOfComposedCharacterSequenceAtIndex ¶
Returns the range in the receiver of the composed character sequence located at a given index.
func (*NSString) RangeOfComposedCharacterSequencesForRange ¶
Returns the range in the string of the composed character sequences for a given range.
func (*NSString) RangeOfString ¶
Finds and returns the range of the first occurrence of a given string within the string.
func (*NSString) RangeOfStringOptions ¶
func (o *NSString) RangeOfStringOptions(searchString *NSString, mask NSStringCompareOptions) NSRange
Finds and returns the range of the first occurrence of a given string within the string, subject to given options.
func (*NSString) RangeOfStringOptionsRange ¶
func (o *NSString) RangeOfStringOptionsRange(searchString *NSString, mask NSStringCompareOptions, rangeOfReceiverToSearch NSRange) NSRange
Finds and returns the range of the first occurrence of a given string, within the given range of the string, subject to given options.
func (*NSString) RangeOfStringOptionsRangeLocale ¶
func (o *NSString) RangeOfStringOptionsRangeLocale(searchString *NSString, mask NSStringCompareOptions, rangeOfReceiverToSearch NSRange, locale *NSLocale) NSRange
Finds and returns the range of the first occurrence of a given string within a given range of the string, subject to given options, using the specified locale, if any.
func (*NSString) SmallestEncoding ¶
func (*NSString) StringByAbbreviatingWithTildeInPath ¶
func (*NSString) StringByAddingPercentEncodingWithAllowedCharacters ¶
func (o *NSString) StringByAddingPercentEncodingWithAllowedCharacters(allowedCharacters *NSCharacterSet) *NSString
Returns a new string made from the receiver by replacing all characters not in the specified set with percent-encoded characters.
func (*NSString) StringByAddingPercentEscapesUsingEncoding ¶
Returns a representation of the receiver using a given encoding to determine the percent escapes necessary to convert the receiver into a legal URL string. Deprecated: Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid.
func (*NSString) StringByAppendingFormat ¶
Returns a string made by appending to the receiver a string constructed from a given format string and the following arguments.
func (*NSString) StringByAppendingPathComponent ¶
Returns a new string made by appending to the receiver a given string.
func (*NSString) StringByAppendingPathExtension ¶
Returns a new string made by appending to the receiver an extension separator followed by a given extension.
func (*NSString) StringByAppendingString ¶
Returns a new string made by appending a given string to the receiver.
func (*NSString) StringByApplyingTransformReverse ¶
Returns a new string by applying a specified transform to the string.
func (*NSString) StringByDeletingLastPathComponent ¶
func (*NSString) StringByDeletingPathExtension ¶
func (*NSString) StringByExpandingTildeInPath ¶
func (*NSString) StringByFoldingWithOptionsLocale ¶
func (o *NSString) StringByFoldingWithOptionsLocale(options NSStringCompareOptions, locale *NSLocale) *NSString
Creates a string suitable for comparison by removing the specified character distinctions from a string.
func (*NSString) StringByPaddingToLengthWithStringStartingAtIndex ¶
func (o *NSString) StringByPaddingToLengthWithStringStartingAtIndex(newLength uint, padString *NSString, padIndex uint) *NSString
Returns a new string formed from the receiver by either removing characters from the end, or by appending as many occurrences as necessary of a given pad string.
func (*NSString) StringByRemovingPercentEncoding ¶
func (*NSString) StringByReplacingCharactersInRangeWithString ¶
func (o *NSString) StringByReplacingCharactersInRangeWithString(range_ NSRange, replacement *NSString) *NSString
Returns a new string in which the characters in a specified range of the receiver are replaced by a given string.
func (*NSString) StringByReplacingOccurrencesOfStringWithString ¶
func (o *NSString) StringByReplacingOccurrencesOfStringWithString(target *NSString, replacement *NSString) *NSString
Returns a new string in which all occurrences of a target string in the receiver are replaced by another given string.
func (*NSString) StringByReplacingOccurrencesOfStringWithStringOptionsRange ¶
func (o *NSString) StringByReplacingOccurrencesOfStringWithStringOptionsRange(target *NSString, replacement *NSString, options NSStringCompareOptions, searchRange NSRange) *NSString
Returns a new string in which all occurrences of a target string in a specified range of the receiver are replaced by another given string.
func (*NSString) StringByReplacingPercentEscapesUsingEncoding ¶
Returns a new string made by replacing in the receiver all percent escapes with the matching characters as determined by a given encoding. Deprecated: Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding.
func (*NSString) StringByResolvingSymlinksInPath ¶
func (*NSString) StringByStandardizingPath ¶
func (*NSString) StringByTrimmingCharactersInSet ¶
func (o *NSString) StringByTrimmingCharactersInSet(set *NSCharacterSet) *NSString
Returns a new string made by removing from both ends of the receiver characters contained in a given character set.
func (*NSString) StringsByAppendingPaths ¶
Returns an array of strings made by separately appending to the receiver each string in a given array.
func (*NSString) SubstringFromIndex ¶
Returns a new string containing the characters of the receiver from the one at a given index to the end.
func (*NSString) SubstringToIndex ¶
Returns a new string containing the characters of the receiver up to, but not including, the one at a given index.
func (*NSString) SubstringWithRange ¶
Returns a string object containing the characters of the receiver that lie within a given range.
func (*NSString) UTF8String ¶
func (*NSString) UppercaseString ¶
func (*NSString) UppercaseStringWithLocale ¶
Returns a version of the string with all letters converted to uppercase, taking into account the specified locale.
func (*NSString) VariantFittingPresentationWidth ¶
Returns a string variation suitable for the specified presentation width.
func (*NSString) WriteToFileAtomically ¶
Writes the contents of the receiver to the file specified by a given path. Deprecated: Use -writeToFile:atomically:encoding:error: instead
func (*NSString) WriteToFileAtomicallyEncodingError ¶
func (o *NSString) WriteToFileAtomicallyEncodingError(path *NSString, useAuxiliaryFile bool, enc uint) (bool, error)
Writes the contents of the receiver to a file at a given path using a given encoding.
func (*NSString) WriteToURLAtomically ¶
Writes the contents of the receiver to the location specified by a given URL. Deprecated: Use -writeToURL:atomically:encoding:error: instead
type NSStringCompareOptions ¶
type NSStringCompareOptions uint64
These values represent the options available to many of the string classes’ search and comparison methods.
const ( NSCaseInsensitiveSearch NSStringCompareOptions = 1 NSLiteralSearch NSStringCompareOptions = 2 NSBackwardsSearch NSStringCompareOptions = 4 NSAnchoredSearch NSStringCompareOptions = 8 NSNumericSearch NSStringCompareOptions = 64 NSDiacriticInsensitiveSearch NSStringCompareOptions = 128 NSWidthInsensitiveSearch NSStringCompareOptions = 256 NSForcedOrderingSearch NSStringCompareOptions = 512 NSRegularExpressionSearch NSStringCompareOptions = 1024 )
func (NSStringCompareOptions) String ¶
func (e NSStringCompareOptions) String() string
type NSStringEncodingConversionOptions ¶
type NSStringEncodingConversionOptions uint64
Options for converting string encodings.
const ( NSStringEncodingConversionAllowLossy NSStringEncodingConversionOptions = 1 NSStringEncodingConversionExternalRepresentation NSStringEncodingConversionOptions = 2 )
func (NSStringEncodingConversionOptions) String ¶
func (e NSStringEncodingConversionOptions) String() string
type NSStringEnumerationOptions ¶
type NSStringEnumerationOptions uint64
Constants to specify kinds of substrings and styles of enumeration.
const ( NSStringEnumerationByLines NSStringEnumerationOptions = 0 NSStringEnumerationByParagraphs NSStringEnumerationOptions = 1 NSStringEnumerationByComposedCharacterSequences NSStringEnumerationOptions = 2 NSStringEnumerationByWords NSStringEnumerationOptions = 3 NSStringEnumerationBySentences NSStringEnumerationOptions = 4 NSStringEnumerationByCaretPositions NSStringEnumerationOptions = 5 NSStringEnumerationByDeletionClusters NSStringEnumerationOptions = 6 NSStringEnumerationReverse NSStringEnumerationOptions = 256 NSStringEnumerationSubstringNotRequired NSStringEnumerationOptions = 512 NSStringEnumerationLocalized NSStringEnumerationOptions = 1024 )
func (NSStringEnumerationOptions) String ¶
func (e NSStringEnumerationOptions) String() string
type NSSwappedDouble ¶
type NSSwappedDouble struct {
V uint64
}
Opaque structure containing endian-independent double value.
func NSConvertHostDoubleToSwapped ¶
func NSConvertHostDoubleToSwapped(x float64) NSSwappedDouble
func NSSwapDouble ¶
func NSSwapDouble(x NSSwappedDouble) NSSwappedDouble
func NSSwapHostDoubleToBig ¶
func NSSwapHostDoubleToBig(x float64) NSSwappedDouble
func NSSwapHostDoubleToLittle ¶
func NSSwapHostDoubleToLittle(x float64) NSSwappedDouble
type NSSwappedFloat ¶
type NSSwappedFloat struct {
V uint
}
Opaque type containing an endian-independent float value.
func NSConvertHostFloatToSwapped ¶
func NSConvertHostFloatToSwapped(x float32) NSSwappedFloat
func NSSwapFloat ¶
func NSSwapFloat(x NSSwappedFloat) NSSwappedFloat
func NSSwapHostFloatToBig ¶
func NSSwapHostFloatToBig(x float32) NSSwappedFloat
func NSSwapHostFloatToLittle ¶
func NSSwapHostFloatToLittle(x float32) NSSwappedFloat
type NSTask ¶
type NSTask struct {
NSObject
}
An object that represents a subprocess of the current process.
Apple documentation: https://developer.apple.com/documentation/foundation/nstask
func NSTaskFromID ¶
func NSTaskLaunchedTaskWithLaunchPathArguments
deprecated
func (*NSTask) CurrentDirectoryPath
deprecated
func (*NSTask) CurrentDirectoryURL ¶
func (*NSTask) Environment ¶
func (o *NSTask) Environment() *NSDictionary[*NSString, *NSString]
func (*NSTask) ExecutableURL ¶
func (*NSTask) LaunchAndReturnError ¶
func (*NSTask) LaunchPath
deprecated
func (*NSTask) LaunchRequirementData ¶
func (*NSTask) ProcessIdentifier ¶
func (*NSTask) QualityOfService ¶
func (o *NSTask) QualityOfService() NSQualityOfService
func (*NSTask) SetArguments ¶
func (*NSTask) SetCurrentDirectoryPath
deprecated
func (*NSTask) SetCurrentDirectoryURL ¶
func (*NSTask) SetEnvironment ¶
func (o *NSTask) SetEnvironment(environment *NSDictionary[*NSString, *NSString])
func (*NSTask) SetExecutableURL ¶
func (*NSTask) SetLaunchPath
deprecated
func (*NSTask) SetLaunchRequirementData ¶
func (*NSTask) SetQualityOfService ¶
func (o *NSTask) SetQualityOfService(qualityOfService NSQualityOfService)
func (*NSTask) SetStandardError ¶
func (*NSTask) SetStandardInput ¶
func (*NSTask) SetStandardOutput ¶
func (*NSTask) SetTerminationHandler ¶
func (*NSTask) StandardError ¶
func (*NSTask) StandardInput ¶
func (*NSTask) StandardOutput ¶
func (*NSTask) TerminationHandler ¶
func (*NSTask) TerminationReason ¶
func (o *NSTask) TerminationReason() NSTaskTerminationReason
func (*NSTask) TerminationStatus ¶
func (*NSTask) WaitUntilExit ¶
func (o *NSTask) WaitUntilExit()
type NSTaskTerminationReason ¶
type NSTaskTerminationReason int64
Constants that specify the termination reason values that the system returns.
const ( NSTaskTerminationReasonExit NSTaskTerminationReason = 1 NSTaskTerminationReasonUncaughtSignal NSTaskTerminationReason = 2 )
func (NSTaskTerminationReason) String ¶
func (e NSTaskTerminationReason) String() string
type NSTermOfAddress ¶
type NSTermOfAddress struct {
NSObject
}
The type for representing grammatical gender in localized text.
Apple documentation: https://developer.apple.com/documentation/foundation/nstermofaddress
func NSTermOfAddressCurrentUser ¶
func NSTermOfAddressCurrentUser() *NSTermOfAddress
The term of address that should be used for addressing the user
func NSTermOfAddressFeminine ¶
func NSTermOfAddressFeminine() *NSTermOfAddress
Term of address that uses feminine pronouns (e.g. she/her/hers in English), and a feminine grammatical gender when inflecting verbs and adjectives referring to the person
func NSTermOfAddressFromID ¶
func NSTermOfAddressFromID(id objc.ID) *NSTermOfAddress
func NSTermOfAddressLocalizedForLanguageIdentifierWithPronouns ¶
func NSTermOfAddressLocalizedForLanguageIdentifierWithPronouns(language *NSString, pronouns *NSArray[*NSMorphologyPronoun]) *NSTermOfAddress
A term of address restricted to a given language
func NSTermOfAddressMasculine ¶
func NSTermOfAddressMasculine() *NSTermOfAddress
Term of address that uses masculine pronouns (e.g. he/him/his in English), and a masculine grammatical gender when inflecting verbs and adjectives referring to the person
func NSTermOfAddressNeutral ¶
func NSTermOfAddressNeutral() *NSTermOfAddress
Term of address that uses gender-neutral pronouns (e.g. they/them/theirs in English), and an epicene grammatical gender when inflecting verbs and adjectives referring to the person
func (*NSTermOfAddress) LanguageIdentifier ¶
func (o *NSTermOfAddress) LanguageIdentifier() *NSString
The ISO language code if this is a localized term of address
func (*NSTermOfAddress) Pronouns ¶
func (o *NSTermOfAddress) Pronouns() *NSArray[*NSMorphologyPronoun]
A list of pronouns for a localized term of address
type NSTestComparisonOperation ¶
type NSTestComparisonOperation uint64
These are passed to initWithObjectSpecifier:comparisonOperator:testObject: to specify the comparison operator.
const ( NSEqualToComparison NSTestComparisonOperation = 0 NSLessThanOrEqualToComparison NSTestComparisonOperation = 1 NSLessThanComparison NSTestComparisonOperation = 2 NSGreaterThanOrEqualToComparison NSTestComparisonOperation = 3 NSGreaterThanComparison NSTestComparisonOperation = 4 NSBeginsWithComparison NSTestComparisonOperation = 5 NSEndsWithComparison NSTestComparisonOperation = 6 NSContainsComparison NSTestComparisonOperation = 7 )
func (NSTestComparisonOperation) String ¶
func (e NSTestComparisonOperation) String() string
type NSTextCheckingResult ¶
type NSTextCheckingResult struct {
NSObject
}
An occurrence of textual content found during the analysis of a block of text, such as when matching a regular expression.
Apple documentation: https://developer.apple.com/documentation/foundation/nstextcheckingresult
func NSTextCheckingResultAddressCheckingResultWithRangeComponents ¶
func NSTextCheckingResultAddressCheckingResultWithRangeComponents(range_ NSRange, components *NSDictionary[*NSString, *NSString]) *NSTextCheckingResult
Creates and returns a text checking result with the specified address components.
func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementString ¶
func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult
Creates and returns a text checking result after detecting a possible correction.
func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementStringAlternativeStrings ¶
func NSTextCheckingResultCorrectionCheckingResultWithRangeReplacementStringAlternativeStrings(range_ NSRange, replacementString *NSString, alternativeStrings *NSArray[*NSString]) *NSTextCheckingResult
func NSTextCheckingResultDashCheckingResultWithRangeReplacementString ¶
func NSTextCheckingResultDashCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult
Creates and returns a text checking result with the specified dash corrected replacement string.
func NSTextCheckingResultDateCheckingResultWithRangeDate ¶
func NSTextCheckingResultDateCheckingResultWithRangeDate(range_ NSRange, date *NSDate) *NSTextCheckingResult
Creates and returns a text checking result with the specified date.
func NSTextCheckingResultDateCheckingResultWithRangeDateTimeZoneDuration ¶
func NSTextCheckingResultDateCheckingResultWithRangeDateTimeZoneDuration(range_ NSRange, date *NSDate, timeZone *NSTimeZone, duration float64) *NSTextCheckingResult
Creates and returns a text checking result with the specified date, time zone, and duration.
func NSTextCheckingResultFromID ¶
func NSTextCheckingResultFromID(id objc.ID) *NSTextCheckingResult
func NSTextCheckingResultGrammarCheckingResultWithRangeDetails ¶
func NSTextCheckingResultGrammarCheckingResultWithRangeDetails(range_ NSRange, details *NSArray[objc.ID]) *NSTextCheckingResult
Creates and returns a text checking result with the specified array of grammatical errors.
func NSTextCheckingResultLinkCheckingResultWithRangeURL ¶
func NSTextCheckingResultLinkCheckingResultWithRangeURL(range_ NSRange, url *NSURL) *NSTextCheckingResult
Creates and returns a text checking result with the specified URL.
func NSTextCheckingResultOrthographyCheckingResultWithRangeOrthography ¶
func NSTextCheckingResultOrthographyCheckingResultWithRangeOrthography(range_ NSRange, orthography *NSOrthography) *NSTextCheckingResult
Creates and returns a text checking result with the specified orthography.
func NSTextCheckingResultPhoneNumberCheckingResultWithRangePhoneNumber ¶
func NSTextCheckingResultPhoneNumberCheckingResultWithRangePhoneNumber(range_ NSRange, phoneNumber *NSString) *NSTextCheckingResult
Creates and returns a text checking result with the specified phone number.
func NSTextCheckingResultQuoteCheckingResultWithRangeReplacementString ¶
func NSTextCheckingResultQuoteCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult
Creates and returns a text checking result with the specified quote-balanced replacement string.
func NSTextCheckingResultRegularExpressionCheckingResultWithRangesCountRegularExpression ¶
func NSTextCheckingResultRegularExpressionCheckingResultWithRangesCountRegularExpression(ranges *NSRange, count uint, regularExpression *NSRegularExpression) *NSTextCheckingResult
Creates and returns a type checking result with the specified regular expression data.
func NSTextCheckingResultReplacementCheckingResultWithRangeReplacementString ¶
func NSTextCheckingResultReplacementCheckingResultWithRangeReplacementString(range_ NSRange, replacementString *NSString) *NSTextCheckingResult
Creates and returns a text checking result with the specified replacement string.
func NSTextCheckingResultSpellCheckingResultWithRange ¶
func NSTextCheckingResultSpellCheckingResultWithRange(range_ NSRange) *NSTextCheckingResult
Creates and returns a text checking result with the range of a misspelled word.
func NSTextCheckingResultTransitInformationCheckingResultWithRangeComponents ¶
func NSTextCheckingResultTransitInformationCheckingResultWithRangeComponents(range_ NSRange, components *NSDictionary[*NSString, *NSString]) *NSTextCheckingResult
Creates and returns a text checking result with the specified transit information.
func (*NSTextCheckingResult) AddressComponents ¶
func (o *NSTextCheckingResult) AddressComponents() *NSDictionary[*NSString, *NSString]
func (*NSTextCheckingResult) AlternativeStrings ¶
func (o *NSTextCheckingResult) AlternativeStrings() *NSArray[*NSString]
func (*NSTextCheckingResult) Components ¶
func (o *NSTextCheckingResult) Components() *NSDictionary[*NSString, *NSString]
func (*NSTextCheckingResult) Date ¶
func (o *NSTextCheckingResult) Date() *NSDate
func (*NSTextCheckingResult) Duration ¶
func (o *NSTextCheckingResult) Duration() float64
func (*NSTextCheckingResult) GrammarDetails ¶
func (o *NSTextCheckingResult) GrammarDetails() *NSArray[objc.ID]
func (*NSTextCheckingResult) NumberOfRanges ¶
func (o *NSTextCheckingResult) NumberOfRanges() uint
func (*NSTextCheckingResult) Orthography ¶
func (o *NSTextCheckingResult) Orthography() *NSOrthography
func (*NSTextCheckingResult) PhoneNumber ¶
func (o *NSTextCheckingResult) PhoneNumber() *NSString
func (*NSTextCheckingResult) Range ¶
func (o *NSTextCheckingResult) Range() NSRange
func (*NSTextCheckingResult) RangeAtIndex ¶
func (o *NSTextCheckingResult) RangeAtIndex(idx uint) NSRange
Returns the result type that the range represents.
func (*NSTextCheckingResult) RangeWithName ¶
func (o *NSTextCheckingResult) RangeWithName(name *NSString) NSRange
func (*NSTextCheckingResult) RegularExpression ¶
func (o *NSTextCheckingResult) RegularExpression() *NSRegularExpression
func (*NSTextCheckingResult) ReplacementString ¶
func (o *NSTextCheckingResult) ReplacementString() *NSString
func (*NSTextCheckingResult) ResultByAdjustingRangesWithOffset ¶
func (o *NSTextCheckingResult) ResultByAdjustingRangesWithOffset(offset int) *NSTextCheckingResult
Returns a new text checking result after adjusting the ranges as specified by the offset.
func (*NSTextCheckingResult) ResultType ¶
func (o *NSTextCheckingResult) ResultType() NSTextCheckingType
func (*NSTextCheckingResult) TimeZone ¶
func (o *NSTextCheckingResult) TimeZone() *NSTimeZone
func (*NSTextCheckingResult) URL ¶
func (o *NSTextCheckingResult) URL() *NSURL
type NSTextCheckingType ¶
type NSTextCheckingType int64
const ( NSTextCheckingTypeOrthography NSTextCheckingType = 1 NSTextCheckingTypeSpelling NSTextCheckingType = 2 NSTextCheckingTypeGrammar NSTextCheckingType = 4 NSTextCheckingTypeDate NSTextCheckingType = 8 NSTextCheckingTypeAddress NSTextCheckingType = 16 NSTextCheckingTypeLink NSTextCheckingType = 32 NSTextCheckingTypeQuote NSTextCheckingType = 64 NSTextCheckingTypeDash NSTextCheckingType = 128 NSTextCheckingTypeReplacement NSTextCheckingType = 256 NSTextCheckingTypeCorrection NSTextCheckingType = 512 NSTextCheckingTypeRegularExpression NSTextCheckingType = 1024 NSTextCheckingTypePhoneNumber NSTextCheckingType = 2048 NSTextCheckingTypeTransitInformation NSTextCheckingType = 4096 )
func (NSTextCheckingType) String ¶
func (e NSTextCheckingType) String() string
type NSThread ¶
type NSThread struct {
NSObject
}
A thread of execution.
Apple documentation: https://developer.apple.com/documentation/foundation/nsthread
func NSThreadCurrentThread ¶
func NSThreadCurrentThread() *NSThread
func NSThreadFromID ¶
func NSThreadMainThread ¶
func NSThreadMainThread() *NSThread
func (*NSThread) InitWithTargetSelectorObject ¶
func (*NSThread) IsCancelled ¶
func (*NSThread) IsExecuting ¶
func (*NSThread) IsFinished ¶
func (*NSThread) IsMainThread ¶
func (*NSThread) QualityOfService ¶
func (o *NSThread) QualityOfService() NSQualityOfService
func (*NSThread) SetQualityOfService ¶
func (o *NSThread) SetQualityOfService(qualityOfService NSQualityOfService)
func (*NSThread) SetStackSize ¶
func (*NSThread) SetThreadPriority ¶
func (*NSThread) ThreadDictionary ¶
func (*NSThread) ThreadPriority ¶
type NSTimeZone ¶
type NSTimeZone struct {
NSObject
}
Information about standard time conventions associated with a specific geopolitical region.
Apple documentation: https://developer.apple.com/documentation/foundation/nstimezone
func NSTimeZoneDefaultTimeZone ¶
func NSTimeZoneDefaultTimeZone() *NSTimeZone
func NSTimeZoneFromID ¶
func NSTimeZoneFromID(id objc.ID) *NSTimeZone
func NSTimeZoneLocalTimeZone ¶
func NSTimeZoneLocalTimeZone() *NSTimeZone
func NSTimeZoneSystemTimeZone ¶
func NSTimeZoneSystemTimeZone() *NSTimeZone
func NSTimeZoneTimeZoneForSecondsFromGMT ¶
func NSTimeZoneTimeZoneForSecondsFromGMT(seconds int) *NSTimeZone
Returns a time zone object offset from Greenwich Mean Time by a given number of seconds.
func NSTimeZoneTimeZoneWithAbbreviation ¶
func NSTimeZoneTimeZoneWithAbbreviation(abbreviation *NSString) *NSTimeZone
Returns the time zone object identified by a given abbreviation.
func NSTimeZoneTimeZoneWithName ¶
func NSTimeZoneTimeZoneWithName(tzName *NSString) *NSTimeZone
Returns the time zone object identified by a given identifier.
func NSTimeZoneTimeZoneWithNameData ¶
func NSTimeZoneTimeZoneWithNameData(tzName *NSString, aData *NSData) *NSTimeZone
Returns the time zone with a given identifier whose data has been initialized using given data.
func (*NSTimeZone) Abbreviation ¶
func (o *NSTimeZone) Abbreviation() *NSString
func (*NSTimeZone) AbbreviationForDate ¶
func (o *NSTimeZone) AbbreviationForDate(aDate *NSDate) *NSString
Returns the abbreviation for the receiver at a given date.
func (*NSTimeZone) Data ¶
func (o *NSTimeZone) Data() *NSData
func (*NSTimeZone) DaylightSavingTimeOffset ¶
func (o *NSTimeZone) DaylightSavingTimeOffset() float64
func (*NSTimeZone) DaylightSavingTimeOffsetForDate ¶
func (o *NSTimeZone) DaylightSavingTimeOffsetForDate(aDate *NSDate) float64
Returns the daylight saving time offset for a given date.
func (*NSTimeZone) InitWithName ¶
func (o *NSTimeZone) InitWithName(tzName *NSString) *NSTimeZone
Returns a time zone initialized with a given identifier.
func (*NSTimeZone) InitWithNameData ¶
func (o *NSTimeZone) InitWithNameData(tzName *NSString, aData *NSData) *NSTimeZone
Initializes a time zone with a given identifier and time zone data.
func (*NSTimeZone) IsDaylightSavingTime ¶
func (o *NSTimeZone) IsDaylightSavingTime() bool
func (*NSTimeZone) IsDaylightSavingTimeForDate ¶
func (o *NSTimeZone) IsDaylightSavingTimeForDate(aDate *NSDate) bool
Indicates whether the receiver uses daylight saving time on a given date.
func (*NSTimeZone) IsEqualToTimeZone ¶
func (o *NSTimeZone) IsEqualToTimeZone(aTimeZone *NSTimeZone) bool
Indicates whether the receiver has the same name and data as the specified time zone.
func (*NSTimeZone) LocalizedNameLocale ¶
func (o *NSTimeZone) LocalizedNameLocale(style NSTimeZoneNameStyle, locale *NSLocale) *NSString
Returns the localized name of the time zone.
func (*NSTimeZone) Name ¶
func (o *NSTimeZone) Name() *NSString
func (*NSTimeZone) NextDaylightSavingTimeTransition ¶
func (o *NSTimeZone) NextDaylightSavingTimeTransition() *NSDate
func (*NSTimeZone) NextDaylightSavingTimeTransitionAfterDate ¶
func (o *NSTimeZone) NextDaylightSavingTimeTransitionAfterDate(aDate *NSDate) *NSDate
Returns the next daylight saving time transition after a given date.
func (*NSTimeZone) SecondsFromGMT ¶
func (o *NSTimeZone) SecondsFromGMT() int
func (*NSTimeZone) SecondsFromGMTForDate ¶
func (o *NSTimeZone) SecondsFromGMTForDate(aDate *NSDate) int
Returns the difference in seconds between the receiver and Greenwich Mean Time at a given date.
type NSTimeZoneNameStyle ¶
type NSTimeZoneNameStyle int64
Constants you use to specify a style when presenting time zone names.
const ( NSTimeZoneNameStyleStandard NSTimeZoneNameStyle = 0 NSTimeZoneNameStyleShortStandard NSTimeZoneNameStyle = 1 NSTimeZoneNameStyleDaylightSaving NSTimeZoneNameStyle = 2 NSTimeZoneNameStyleShortDaylightSaving NSTimeZoneNameStyle = 3 NSTimeZoneNameStyleGeneric NSTimeZoneNameStyle = 4 NSTimeZoneNameStyleShortGeneric NSTimeZoneNameStyle = 5 )
func (NSTimeZoneNameStyle) String ¶
func (e NSTimeZoneNameStyle) String() string
type NSTimer ¶
type NSTimer struct {
NSObject
}
A timer that fires after a certain time interval has elapsed, sending a specified message to a target object.
Apple documentation: https://developer.apple.com/documentation/foundation/nstimer
func NSTimerFromID ¶
func 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 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 (*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 (*NSTimer) Invalidate ¶
func (o *NSTimer) Invalidate()
func (*NSTimer) SetFireDate ¶
func (*NSTimer) SetTolerance ¶
func (*NSTimer) TimeInterval ¶
type NSURL ¶
type NSURL struct {
NSObject
}
An object that represents the location of a resource, such as an item on a remote server or the path to a local file.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurl
func NSFileVersionTemporaryDirectoryURLForNewVersionOfItemAtURL ¶
Creates and returns a temporary directory to use for saving the contents of the file.
func NSURLAbsoluteURLWithDataRepresentationRelativeToURL ¶
Initializes and returns a newly created absolute NSURL using the contents of the given data, relative to a base URL.
func NSURLFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL ¶
func NSURLFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path string, isDir bool, baseURL *NSURL) *NSURL
Returns a new URL object initialized with a C string representing a local file system path.
func NSURLFileURLWithPath ¶
Initializes and returns a newly created NSURL object as a file URL with a specified path.
func NSURLFileURLWithPathComponents ¶
Initializes and returns a newly created NSURL object as a file URL with specified path components.
func NSURLFileURLWithPathIsDirectory ¶
Initializes and returns a newly created NSURL object as a file URL with a specified path.
func NSURLFileURLWithPathIsDirectoryRelativeToURL ¶
func NSURLFileURLWithPathIsDirectoryRelativeToURL(path *NSString, isDir bool, baseURL *NSURL) *NSURL
Initializes and returns a newly created file NSURL referencing the local file or directory at path, relative to a base URL.
func NSURLFileURLWithPathRelativeToURL ¶
Initializes and returns a newly created file NSURL referencing the local file or directory at path, relative to a base URL.
func NSURLFromID ¶
func NSURLURLByResolvingAliasFileAtURLOptionsError ¶
func NSURLURLByResolvingAliasFileAtURLOptionsError(url *NSURL, options NSURLBookmarkResolutionOptions) (*NSURL, error)
Returns a new URL made by resolving the alias file at url.
func NSURLURLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError ¶
func NSURLURLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData *NSData, options NSURLBookmarkResolutionOptions, relativeURL *NSURL, isStale *bool) (*NSURL, error)
Returns a new URL made by resolving bookmark data.
func NSURLURLWithDataRepresentationRelativeToURL ¶
Initializes and returns a newly created NSURL using the contents of the given data, relative to a base URL.
func NSURLURLWithString ¶
Creates and returns an NSURL object initialized with a provided URL string.
func NSURLURLWithStringEncodingInvalidCharacters ¶
func NSURLURLWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURL
Creates and returns an instance from the provided string, optionally IDNA- and percent-encoding any invalid characters.
func NSURLURLWithStringRelativeToURL ¶
Creates and returns an NSURL object initialized with a base URL and a relative string.
func (*NSURL) AbsoluteString ¶
func (*NSURL) AbsoluteURL ¶
func (*NSURL) BookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError ¶
func (o *NSURL) BookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError(options NSURLBookmarkCreationOptions, keys *NSArray[*NSString], relativeURL *NSURL) (*NSData, error)
Returns a bookmark for the URL, created with specified options and resource values.
func (*NSURL) CheckPromisedItemIsReachableAndReturnError ¶
Returns whether the promised item can be reached.
func (*NSURL) CheckResourceIsReachableAndReturnError ¶
Returns whether the resource pointed to by a file URL can be reached.
func (*NSURL) DataRepresentation ¶
func (*NSURL) FilePathURL ¶
func (*NSURL) FileReferenceURL ¶
Returns a new file reference URL that points to the same resource as the receiver.
func (*NSURL) FileSystemRepresentation ¶
func (*NSURL) GetFileSystemRepresentationMaxLength ¶
Fills the provided buffer with a C string representing a local file system path.
func (*NSURL) GetPromisedItemResourceValueForKeyError ¶
func (o *NSURL) GetPromisedItemResourceValueForKeyError(value **ObjcObject, key *NSString) (bool, error)
Returns the value of the resource property for the specified key.
func (*NSURL) GetResourceValueForKeyError ¶
func (o *NSURL) GetResourceValueForKeyError(value **ObjcObject, key *NSString) (bool, error)
Returns the value of the resource property for the specified key.
func (*NSURL) HasDirectoryPath ¶
func (*NSURL) InitAbsoluteURLWithDataRepresentationRelativeToURL ¶
func (o *NSURL) InitAbsoluteURLWithDataRepresentationRelativeToURL(data *NSData, baseURL *NSURL) *NSURL
Initializes a newly created absolute NSURL using the contents of the given data, relative to a base URL.
func (*NSURL) InitByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError ¶
func (o *NSURL) InitByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData *NSData, options NSURLBookmarkResolutionOptions, relativeURL *NSURL, isStale *bool) (*NSURL, error)
Initializes a newly created NSURL that points to a location specified by resolving bookmark data.
func (*NSURL) InitFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL ¶
func (o *NSURL) InitFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path string, isDir bool, baseURL *NSURL) *NSURL
Initializes a URL object with a C string representing a local file system path.
func (*NSURL) InitFileURLWithPath ¶
Initializes a newly created NSURL referencing the local file or directory at path.
func (*NSURL) InitFileURLWithPathIsDirectory ¶
Initializes a newly created NSURL referencing the local file or directory at path.
func (*NSURL) InitFileURLWithPathIsDirectoryRelativeToURL ¶
func (o *NSURL) InitFileURLWithPathIsDirectoryRelativeToURL(path *NSString, isDir bool, baseURL *NSURL) *NSURL
Initializes a newly created file NSURL referencing the local file or directory at path, relative to a base URL.
func (*NSURL) InitFileURLWithPathRelativeToURL ¶
Initializes a newly created file NSURL referencing the local file or directory at path, relative to a base URL.
func (*NSURL) InitWithDataRepresentationRelativeToURL ¶
Initializes a newly created NSURL using the contents of the given data, relative to a base URL.
func (*NSURL) InitWithSchemeHostPath ¶
Initializes a newly created NSURL with a specified scheme, host, and path. Deprecated: Use NSURLComponents instead, which lets you create a valid URL with any valid combination of URL components and subcomponents (not just scheme, host and path), and lets you set components and subcomponents with either percent-encoded or un-percent-encoded strings.
func (*NSURL) InitWithString ¶
Initializes an NSURL object with a provided URL string.
func (*NSURL) InitWithStringEncodingInvalidCharacters ¶
func (o *NSURL) InitWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURL
Creates an instance from the provided string, optionally IDNA- and percent-encoding any invalid characters.
func (*NSURL) InitWithStringRelativeToURL ¶
Initializes an NSURL object with a base URL and a relative string.
func (*NSURL) IsFileReferenceURL ¶
Returns whether the URL is a file reference URL.
func (*NSURL) LastPathComponent ¶
func (*NSURL) LoadResourceDataNotifyingClientUsingCache ¶
Loads the receiver’s resource data in the background. Deprecated: Use NSURLConnection instead
func (*NSURL) ParameterString
deprecated
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) PathComponents ¶
func (*NSURL) PathExtension ¶
func (*NSURL) PromisedItemResourceValuesForKeysError ¶
func (o *NSURL) PromisedItemResourceValuesForKeysError(keys *NSArray[*NSString]) (*NSDictionary[*NSString, objc.ID], error)
Returns the resource values for the properties identified by specified array of keys.
func (*NSURL) PropertyForKey ¶
Returns the specified property of the receiver’s resource. Deprecated: Use NSURLConnection instead
func (*NSURL) Query
deprecated
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
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 (*NSURL) RemoveAllCachedResourceValues ¶
func (o *NSURL) RemoveAllCachedResourceValues()
Removes all cached resource values and temporary resource values from the URL object.
func (*NSURL) RemoveCachedResourceValueForKey ¶
Removes the cached resource value identified by a given key from the URL object.
func (*NSURL) ResourceDataUsingCache ¶
Returns the receiver’s resource data, loading it if necessary. Deprecated: Use NSURLConnection instead
func (*NSURL) ResourceSpecifier ¶
func (*NSURL) ResourceValuesForKeysError ¶
func (o *NSURL) ResourceValuesForKeysError(keys *NSArray[*NSString]) (*NSDictionary[*NSString, objc.ID], error)
Returns the resource values for the properties identified by specified array of keys.
func (*NSURL) SetPropertyForKey ¶
Changes the specified property of the receiver’s resource. Deprecated: Use NSURLConnection instead
func (*NSURL) SetResourceData ¶
Attempts to set the resource data for the receiver. Deprecated: Use NSURLConnection instead
func (*NSURL) SetResourceValueForKeyError ¶
Sets the URL’s resource property for a given key to a given value.
func (*NSURL) SetResourceValuesError ¶
Sets the URL’s resource properties for a given set of keys to a given set of values.
func (*NSURL) SetTemporaryResourceValueForKey ¶
Sets a temporary resource value on the URL object.
func (*NSURL) StandardizedURL ¶
func (*NSURL) StartAccessingSecurityScopedResource ¶
In an app that has adopted App Sandbox, makes the resource pointed to by a security-scoped URL available to the app.
func (*NSURL) StopAccessingSecurityScopedResource ¶
func (o *NSURL) StopAccessingSecurityScopedResource()
In an app that adopts App Sandbox, revokes access to the resource pointed to by a security-scoped URL.
func (*NSURL) URLByAppendingPathComponent ¶
Returns a new URL by appending a path component to the original URL.
func (*NSURL) URLByAppendingPathComponentIsDirectory ¶
func (o *NSURL) URLByAppendingPathComponentIsDirectory(pathComponent *NSString, isDirectory bool) *NSURL
Returns a new URL by appending a path component to the original URL, along with a trailing slash if the component is a directory.
func (*NSURL) URLByAppendingPathExtension ¶
Returns a new URL by appending a path extension to the original URL.
func (*NSURL) URLByDeletingLastPathComponent ¶
func (*NSURL) URLByDeletingPathExtension ¶
func (*NSURL) URLByResolvingSymlinksInPath ¶
func (*NSURL) URLByStandardizingPath ¶
func (*NSURL) URLHandleUsingCache ¶
func (o *NSURL) URLHandleUsingCache(shouldUseCache bool) *NSURLHandle
Returns a URL handle to service the receiver. Deprecated: Use NSURLConnection instead
type NSURLAuthenticationChallenge ¶
type NSURLAuthenticationChallenge struct {
NSObject
}
A challenge from a server requiring authentication from the client.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallenge
func NSURLAuthenticationChallengeFromID ¶
func NSURLAuthenticationChallengeFromID(id objc.ID) *NSURLAuthenticationChallenge
func (*NSURLAuthenticationChallenge) Error ¶
func (o *NSURLAuthenticationChallenge) Error() unsafe.Pointer
@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 ¶
func (o *NSURLAuthenticationChallenge) InitWithAuthenticationChallengeSender(challenge *NSURLAuthenticationChallenge, sender NSURLAuthenticationChallengeSender) *NSURLAuthenticationChallenge
@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 ¶
func (o *NSURLAuthenticationChallenge) Sender() NSURLAuthenticationChallengeSender
@abstract Get the sender of this challenge @result The sender of the challenge @discussion The sender is the object you should reply to when done processing the challenge.
type NSURLAuthenticationChallengeSender ¶
type NSURLAuthenticationChallengeSender interface {
UseCredentialForAuthenticationChallenge(credential *NSURLCredential, challenge *NSURLAuthenticationChallenge)
ContinueWithoutCredentialForAuthenticationChallenge(challenge *NSURLAuthenticationChallenge)
CancelAuthenticationChallenge(challenge *NSURLAuthenticationChallenge)
}
NSURLAuthenticationChallengeSender wraps the ObjC protocol NSURLAuthenticationChallengeSender.
type NSURLBookmarkCreationOptions ¶
type NSURLBookmarkCreationOptions uint64
Options used when creating bookmark data.
const ( NSURLBookmarkCreationPreferFileIDResolution NSURLBookmarkCreationOptions = 256 NSURLBookmarkCreationMinimalBookmark NSURLBookmarkCreationOptions = 512 NSURLBookmarkCreationSuitableForBookmarkFile NSURLBookmarkCreationOptions = 1024 NSURLBookmarkCreationWithSecurityScope NSURLBookmarkCreationOptions = 2048 NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess NSURLBookmarkCreationOptions = 4096 NSURLBookmarkCreationWithoutImplicitSecurityScope NSURLBookmarkCreationOptions = 536870912 )
func (NSURLBookmarkCreationOptions) String ¶
func (e NSURLBookmarkCreationOptions) String() string
type NSURLBookmarkResolutionOptions ¶
type NSURLBookmarkResolutionOptions uint64
Options used when resolving bookmark data.
const ( NSURLBookmarkResolutionWithoutUI NSURLBookmarkResolutionOptions = 256 NSURLBookmarkResolutionWithoutMounting NSURLBookmarkResolutionOptions = 512 NSURLBookmarkResolutionWithSecurityScope NSURLBookmarkResolutionOptions = 1024 NSURLBookmarkResolutionWithoutImplicitStartAccessing NSURLBookmarkResolutionOptions = 32768 )
func (NSURLBookmarkResolutionOptions) String ¶
func (e NSURLBookmarkResolutionOptions) String() string
type NSURLCache ¶
type NSURLCache struct {
NSObject
}
An object that maps URL requests to cached response objects.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlcache
func NSURLCacheFromID ¶
func NSURLCacheFromID(id objc.ID) *NSURLCache
func NSURLCacheSharedURLCache ¶
func NSURLCacheSharedURLCache() *NSURLCache
@property sharedURLCache @abstract Returns the shared NSURLCache instance or sets the NSURLCache instance shared by all clients of the current process. This will be the new object returned when calls to the <tt>sharedURLCache</tt> method are made. @discussion Unless set explicitly through a call to <tt>+setSharedURLCache:</tt>, this method returns an NSURLCache instance created with the following default values: <ul> <li>Memory capacity: 4 megabytes (4 * 1024 * 1024 bytes) <li>Disk capacity: 20 megabytes (20 * 1024 * 1024 bytes) <li>Disk path: <nobr>(user home directory)/Library/Caches/(application bundle id)</nobr> </ul> <p>Users who do not have special caching requirements or constraints should find the default shared cache instance acceptable. If this default shared cache instance is not acceptable, <tt>+setSharedURLCache:</tt> can be called to set a different NSURLCache instance to be returned from this method. Callers should take care to ensure that the setter is called at a time when no other caller has a reference to the previously-set shared URL cache. This is to prevent storing cache data from becoming unexpectedly unretrievable. @result the shared NSURLCache instance.
func (*NSURLCache) CachedResponseForRequest ¶
func (o *NSURLCache) CachedResponseForRequest(request *NSURLRequest) *NSCachedURLResponse
@method cachedResponseForRequest: @abstract Returns the NSCachedURLResponse stored in the cache with the given request. @discussion The method returns nil if there is no NSCachedURLResponse stored using the given request. @param request the NSURLRequest to use as a key for the lookup. @result The NSCachedURLResponse stored in the cache with the given request, or nil if there is no NSCachedURLResponse stored with the given request.
func (*NSURLCache) CurrentDiskUsage ¶
func (o *NSURLCache) CurrentDiskUsage() uint
@abstract Returns the current amount of space consumed by the on-disk cache of the receiver. @discussion This size, measured in bytes, indicates the current usage of the on-disk cache. @result the current usage of the on-disk cache of the receiver.
func (*NSURLCache) CurrentMemoryUsage ¶
func (o *NSURLCache) CurrentMemoryUsage() uint
@abstract Returns the current amount of space consumed by the in-memory cache of the receiver. @discussion This size, measured in bytes, indicates the current usage of the in-memory cache. @result the current usage of the in-memory cache of the receiver.
func (*NSURLCache) DiskCapacity ¶
func (o *NSURLCache) DiskCapacity() uint
@abstract The on-disk capacity of the receiver. @discussion The on-disk capacity, measured in bytes, for the receiver. On mutation the on-disk cache will truncate its contents to the size given, if necessary.
func (*NSURLCache) GetCachedResponseForDataTaskCompletionHandler ¶
func (o *NSURLCache) GetCachedResponseForDataTaskCompletionHandler(dataTask *NSURLSessionDataTask, completionHandler func(*NSCachedURLResponse))
func (*NSURLCache) InitWithMemoryCapacityDiskCapacityDirectoryURL ¶
func (o *NSURLCache) InitWithMemoryCapacityDiskCapacityDirectoryURL(memoryCapacity uint, diskCapacity uint, directoryURL *NSURL) *NSURLCache
Creates a URL cache object with the specified memory and disk capacities, in the specified directory.
func (*NSURLCache) InitWithMemoryCapacityDiskCapacityDiskPath ¶
func (o *NSURLCache) InitWithMemoryCapacityDiskCapacityDiskPath(memoryCapacity uint, diskCapacity uint, path *NSString) *NSURLCache
@method initWithMemoryCapacity:diskCapacity:diskPath: @abstract Initializes an NSURLCache with the given capacity and path. @discussion The returned NSURLCache is backed by disk, so developers can be more liberal with space when choosing the capacity for this kind of cache. A disk cache measured in the tens of megabytes should be acceptable in most cases. @param memoryCapacity the capacity, measured in bytes, for the cache in memory. @param diskCapacity the capacity, measured in bytes, for the cache on disk. @param path the path on disk where the cache data is stored. @result an initialized NSURLCache, with the given capacity, backed by disk. Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSURLCache) MemoryCapacity ¶
func (o *NSURLCache) MemoryCapacity() uint
@abstract In-memory capacity of the receiver. @discussion At the time this call is made, the in-memory cache will truncate its contents to the size given, if necessary. @result The in-memory capacity, measured in bytes, for the receiver.
func (*NSURLCache) RemoveAllCachedResponses ¶
func (o *NSURLCache) RemoveAllCachedResponses()
@method removeAllCachedResponses @abstract Clears the given cache, removing all NSCachedURLResponse objects that it stores.
func (*NSURLCache) RemoveCachedResponseForDataTask ¶
func (o *NSURLCache) RemoveCachedResponseForDataTask(dataTask *NSURLSessionDataTask)
func (*NSURLCache) RemoveCachedResponseForRequest ¶
func (o *NSURLCache) RemoveCachedResponseForRequest(request *NSURLRequest)
@method removeCachedResponseForRequest: @abstract Removes the NSCachedURLResponse from the cache that is stored using the given request. @discussion No action is taken if there is no NSCachedURLResponse stored with the given request. @param request the NSURLRequest to use as a key for the lookup.
func (*NSURLCache) RemoveCachedResponsesSinceDate ¶
func (o *NSURLCache) RemoveCachedResponsesSinceDate(date *NSDate)
@method removeCachedResponsesSince: @abstract Clears the given cache of any cached responses since the provided date.
func (*NSURLCache) SetDiskCapacity ¶
func (o *NSURLCache) SetDiskCapacity(diskCapacity uint)
func (*NSURLCache) SetMemoryCapacity ¶
func (o *NSURLCache) SetMemoryCapacity(memoryCapacity uint)
func (*NSURLCache) StoreCachedResponseForDataTask ¶
func (o *NSURLCache) StoreCachedResponseForDataTask(cachedResponse *NSCachedURLResponse, dataTask *NSURLSessionDataTask)
func (*NSURLCache) StoreCachedResponseForRequest ¶
func (o *NSURLCache) StoreCachedResponseForRequest(cachedResponse *NSCachedURLResponse, request *NSURLRequest)
@method storeCachedResponse:forRequest: @abstract Stores the given NSCachedURLResponse in the cache using the given request. @param cachedResponse The cached response to store. @param request the NSURLRequest to use as a key for the storage.
type NSURLCacheStoragePolicy ¶
type NSURLCacheStoragePolicy uint64
These constants specify the caching strategy used by an NSCachedURLResponse object.
const ( NSURLCacheStorageAllowed NSURLCacheStoragePolicy = 0 NSURLCacheStorageAllowedInMemoryOnly NSURLCacheStoragePolicy = 1 NSURLCacheStorageNotAllowed NSURLCacheStoragePolicy = 2 )
func (NSURLCacheStoragePolicy) String ¶
func (e NSURLCacheStoragePolicy) String() string
type NSURLComponents ¶
type NSURLComponents struct {
NSObject
}
An object that parses URLs into and constructs URLs from their constituent parts.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlcomponents
func NSURLComponentsComponentsWithString ¶
func NSURLComponentsComponentsWithString(uRLString *NSString) *NSURLComponents
Returns a URL components object by parsing a URL in string form.
func NSURLComponentsComponentsWithStringEncodingInvalidCharacters ¶
func NSURLComponentsComponentsWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURLComponents
Returns a URL components instance from the provided string, optionally IDNA- and percent-encoding any invalid characters.
func NSURLComponentsComponentsWithURLResolvingAgainstBaseURL ¶
func NSURLComponentsComponentsWithURLResolvingAgainstBaseURL(url *NSURL, resolve bool) *NSURLComponents
Returns a URL components object by parsing the URL from an NSURL object.
func NSURLComponentsFromID ¶
func NSURLComponentsFromID(id objc.ID) *NSURLComponents
func (*NSURLComponents) EncodedHost ¶
func (o *NSURLComponents) EncodedHost() *NSString
func (*NSURLComponents) Fragment ¶
func (o *NSURLComponents) Fragment() *NSString
func (*NSURLComponents) Host ¶
func (o *NSURLComponents) Host() *NSString
func (*NSURLComponents) Init ¶
func (o *NSURLComponents) Init() *NSURLComponents
Creates a URL components object with all components left undefined.
func (*NSURLComponents) InitWithString ¶
func (o *NSURLComponents) InitWithString(uRLString *NSString) *NSURLComponents
Creates a URL components object by parsing a URL in string form.
func (*NSURLComponents) InitWithStringEncodingInvalidCharacters ¶
func (o *NSURLComponents) InitWithStringEncodingInvalidCharacters(uRLString *NSString, encodingInvalidCharacters bool) *NSURLComponents
Creates a URL components instance from the provided string, optionally IDNA- and percent-encoding any invalid characters.
func (*NSURLComponents) InitWithURLResolvingAgainstBaseURL ¶
func (o *NSURLComponents) InitWithURLResolvingAgainstBaseURL(url *NSURL, resolve bool) *NSURLComponents
Creates a URL components object by parsing the URL from an NSURL object.
func (*NSURLComponents) Password ¶
func (o *NSURLComponents) Password() *NSString
func (*NSURLComponents) Path ¶
func (o *NSURLComponents) Path() *NSString
func (*NSURLComponents) PercentEncodedFragment
deprecated
func (o *NSURLComponents) PercentEncodedFragment() *NSString
Deprecated: Use encodedHost instead
func (*NSURLComponents) PercentEncodedHost
deprecated
func (o *NSURLComponents) PercentEncodedHost() *NSString
Deprecated: Use encodedHost instead
func (*NSURLComponents) PercentEncodedPassword ¶
func (o *NSURLComponents) PercentEncodedPassword() *NSString
func (*NSURLComponents) PercentEncodedPath
deprecated
func (o *NSURLComponents) PercentEncodedPath() *NSString
Deprecated: Use encodedHost instead
func (*NSURLComponents) PercentEncodedQuery
deprecated
func (o *NSURLComponents) PercentEncodedQuery() *NSString
Deprecated: Use encodedHost instead
func (*NSURLComponents) PercentEncodedQueryItems ¶
func (o *NSURLComponents) PercentEncodedQueryItems() *NSArray[*NSURLQueryItem]
func (*NSURLComponents) PercentEncodedUser ¶
func (o *NSURLComponents) PercentEncodedUser() *NSString
func (*NSURLComponents) Port ¶
func (o *NSURLComponents) Port() *NSNumber
func (*NSURLComponents) Query ¶
func (o *NSURLComponents) Query() *NSString
func (*NSURLComponents) QueryItems ¶
func (o *NSURLComponents) QueryItems() *NSArray[*NSURLQueryItem]
func (*NSURLComponents) RangeOfFragment ¶
func (o *NSURLComponents) RangeOfFragment() NSRange
func (*NSURLComponents) RangeOfHost ¶
func (o *NSURLComponents) RangeOfHost() NSRange
func (*NSURLComponents) RangeOfPassword ¶
func (o *NSURLComponents) RangeOfPassword() NSRange
func (*NSURLComponents) RangeOfPath ¶
func (o *NSURLComponents) RangeOfPath() NSRange
func (*NSURLComponents) RangeOfPort ¶
func (o *NSURLComponents) RangeOfPort() NSRange
func (*NSURLComponents) RangeOfQuery ¶
func (o *NSURLComponents) RangeOfQuery() NSRange
func (*NSURLComponents) RangeOfScheme ¶
func (o *NSURLComponents) RangeOfScheme() NSRange
func (*NSURLComponents) RangeOfUser ¶
func (o *NSURLComponents) RangeOfUser() NSRange
func (*NSURLComponents) Scheme ¶
func (o *NSURLComponents) Scheme() *NSString
func (*NSURLComponents) SetEncodedHost ¶
func (o *NSURLComponents) SetEncodedHost(encodedHost *NSString)
func (*NSURLComponents) SetFragment ¶
func (o *NSURLComponents) SetFragment(fragment *NSString)
func (*NSURLComponents) SetHost ¶
func (o *NSURLComponents) SetHost(host *NSString)
func (*NSURLComponents) SetPassword ¶
func (o *NSURLComponents) SetPassword(password *NSString)
func (*NSURLComponents) SetPath ¶
func (o *NSURLComponents) SetPath(path *NSString)
func (*NSURLComponents) SetPercentEncodedFragment ¶
func (o *NSURLComponents) SetPercentEncodedFragment(percentEncodedFragment *NSString)
func (*NSURLComponents) SetPercentEncodedHost
deprecated
func (o *NSURLComponents) SetPercentEncodedHost(percentEncodedHost *NSString)
Deprecated: Use encodedHost instead
func (*NSURLComponents) SetPercentEncodedPassword ¶
func (o *NSURLComponents) SetPercentEncodedPassword(percentEncodedPassword *NSString)
func (*NSURLComponents) SetPercentEncodedPath ¶
func (o *NSURLComponents) SetPercentEncodedPath(percentEncodedPath *NSString)
func (*NSURLComponents) SetPercentEncodedQuery ¶
func (o *NSURLComponents) SetPercentEncodedQuery(percentEncodedQuery *NSString)
func (*NSURLComponents) SetPercentEncodedQueryItems ¶
func (o *NSURLComponents) SetPercentEncodedQueryItems(percentEncodedQueryItems *NSArray[*NSURLQueryItem])
func (*NSURLComponents) SetPercentEncodedUser ¶
func (o *NSURLComponents) SetPercentEncodedUser(percentEncodedUser *NSString)
func (*NSURLComponents) SetPort ¶
func (o *NSURLComponents) SetPort(port *NSNumber)
func (*NSURLComponents) SetQuery ¶
func (o *NSURLComponents) SetQuery(query *NSString)
func (*NSURLComponents) SetQueryItems ¶
func (o *NSURLComponents) SetQueryItems(queryItems *NSArray[*NSURLQueryItem])
func (*NSURLComponents) SetScheme ¶
func (o *NSURLComponents) SetScheme(scheme *NSString)
func (*NSURLComponents) SetUser ¶
func (o *NSURLComponents) SetUser(user *NSString)
func (*NSURLComponents) String ¶
func (o *NSURLComponents) String() *NSString
func (*NSURLComponents) URL ¶
func (o *NSURLComponents) URL() *NSURL
func (*NSURLComponents) URLRelativeToURL ¶
func (o *NSURLComponents) URLRelativeToURL(baseURL *NSURL) *NSURL
Returns a URL object derived from the components object.
func (*NSURLComponents) User ¶
func (o *NSURLComponents) User() *NSString
type NSURLConnection ¶
type NSURLConnection struct {
NSObject
}
An object that enables you to start and stop URL requests.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlconnection
func NSURLConnectionConnectionWithRequestDelegate ¶
func NSURLConnectionConnectionWithRequestDelegate(request *NSURLRequest, delegate objc.ID) *NSURLConnection
Creates and returns an initialized URL connection and begins to load the data for the URL request. Deprecated: Use NSURLSession (see NSURLSession.h)
func NSURLConnectionFromID ¶
func NSURLConnectionFromID(id objc.ID) *NSURLConnection
func (*NSURLConnection) Cancel ¶
func (o *NSURLConnection) Cancel()
Cancels an asynchronous load of a request.
func (*NSURLConnection) CurrentRequest ¶
func (o *NSURLConnection) CurrentRequest() *NSURLRequest
func (*NSURLConnection) InitWithRequestDelegate ¶
func (o *NSURLConnection) InitWithRequestDelegate(request *NSURLRequest, delegate objc.ID) *NSURLConnection
Returns an initialized URL connection and begins to load the data for the URL request. Deprecated: Use NSURLSession (see NSURLSession.h)
func (*NSURLConnection) InitWithRequestDelegateStartImmediately ¶
func (o *NSURLConnection) InitWithRequestDelegateStartImmediately(request *NSURLRequest, delegate objc.ID, startImmediately bool) *NSURLConnection
Returns an initialized URL connection and begins to load the data for the URL request, if specified. Deprecated: Use NSURLSession (see NSURLSession.h)
func (*NSURLConnection) OriginalRequest ¶
func (o *NSURLConnection) OriginalRequest() *NSURLRequest
func (*NSURLConnection) ScheduleInRunLoopForMode ¶
func (o *NSURLConnection) ScheduleInRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
Determines the run loop and mode that the connection uses to call methods on its delegate.
func (*NSURLConnection) SetDelegateQueue ¶
func (o *NSURLConnection) SetDelegateQueue(queue *NSOperationQueue)
Determines the operation queue that is used to call methods on the connection’s delegate.
func (*NSURLConnection) Start ¶
func (o *NSURLConnection) Start()
Causes the connection to begin loading data, if it has not already.
func (*NSURLConnection) UnscheduleFromRunLoopForMode ¶
func (o *NSURLConnection) UnscheduleFromRunLoopForMode(aRunLoop *NSRunLoop, mode *NSString)
Causes the connection to stop calling delegate methods in the specified run loop and mode.
type NSURLConnectionDataDelegate ¶
type NSURLConnectionDataDelegate interface {
NSURLConnectionDelegate
}
NSURLConnectionDataDelegate wraps the ObjC protocol NSURLConnectionDataDelegate.
type NSURLConnectionDelegate ¶
type NSURLConnectionDelegate interface {
}
NSURLConnectionDelegate wraps the ObjC protocol NSURLConnectionDelegate.
type NSURLConnectionDownloadDelegate ¶
type NSURLConnectionDownloadDelegate interface {
NSURLConnectionDelegate
ConnectionDidFinishDownloadingDestinationURL(connection *NSURLConnection, destinationURL *NSURL)
}
NSURLConnectionDownloadDelegate wraps the ObjC protocol NSURLConnectionDownloadDelegate.
type NSURLCredential ¶
type NSURLCredential struct {
NSObject
}
An authentication credential consisting of information specific to the type of credential and the type of persistent storage to use, if any.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlcredential
func NSURLCredentialCredentialForTrust ¶
func NSURLCredentialCredentialForTrust(trust unsafe.Pointer) *NSURLCredential
Creates a URL credential instance for server trust authentication with a given accepted trust.
func NSURLCredentialCredentialWithIdentityCertificatesPersistence ¶
func NSURLCredentialCredentialWithIdentityCertificatesPersistence(identity unsafe.Pointer, certArray *NSArray[objc.ID], persistence NSURLCredentialPersistence) *NSURLCredential
Creates a URL credential instance for resolving a client certificate authentication challenge.
func NSURLCredentialCredentialWithUserPasswordPersistence ¶
func NSURLCredentialCredentialWithUserPasswordPersistence(user *NSString, password *NSString, persistence NSURLCredentialPersistence) *NSURLCredential
Creates a URL credential instance for internet password authentication with a given user name and password, using a given persistence setting.
func NSURLCredentialFromID ¶
func NSURLCredentialFromID(id objc.ID) *NSURLCredential
func (*NSURLCredential) Certificates ¶
func (o *NSURLCredential) Certificates() *NSArray[objc.ID]
@abstract Returns an NSArray of SecCertificateRef objects representing the client certificate for this credential, if this credential was created with an identity and certificate. @result an NSArray of SecCertificateRef or NULL if this is a username/password credential
func (*NSURLCredential) HasPassword ¶
func (o *NSURLCredential) HasPassword() bool
@abstract Find out if this credential has a password, without trying to get it @result YES if this credential has a password, otherwise NO @discussion If this credential's password is actually kept in an external store, the password method may return nil even if this method returns YES, since getting the password may fail, or the user may refuse access.
func (*NSURLCredential) Identity ¶
func (o *NSURLCredential) Identity() unsafe.Pointer
@abstract Returns the SecIdentityRef of this credential, if it was created with a certificate and identity @result A SecIdentityRef or NULL if this is a username/password credential
func (*NSURLCredential) InitWithIdentityCertificatesPersistence ¶
func (o *NSURLCredential) InitWithIdentityCertificatesPersistence(identity unsafe.Pointer, certArray *NSArray[objc.ID], persistence NSURLCredentialPersistence) *NSURLCredential
@method initWithIdentity:certificates:persistence: @abstract Initialize an NSURLCredential with an identity and array of at least 1 client certificates (SecCertificateRef) @param identity a SecIdentityRef object @param certArray an array containing at least one SecCertificateRef objects @param persistence enum that says to store per session, permanently or not at all @result the Initialized NSURLCredential
func (*NSURLCredential) InitWithTrust ¶
func (o *NSURLCredential) InitWithTrust(trust unsafe.Pointer) *NSURLCredential
@method initWithTrust: @abstract Initialize a new NSURLCredential which specifies that the specified trust has been accepted. @result the Initialized NSURLCredential
func (*NSURLCredential) InitWithUserPasswordPersistence ¶
func (o *NSURLCredential) InitWithUserPasswordPersistence(user *NSString, password *NSString, persistence NSURLCredentialPersistence) *NSURLCredential
@method initWithUser:password:persistence: @abstract Initialize a NSURLCredential with a user and password @param user the username @param password the password @param persistence enum that says to store per session, permanently or not at all @result The initialized NSURLCredential
func (*NSURLCredential) Password ¶
func (o *NSURLCredential) Password() *NSString
@abstract Get the password @result The password string @discussion This method might actually attempt to retrieve the password from an external store, possible resulting in prompting, so do not call it unless needed.
func (*NSURLCredential) Persistence ¶
func (o *NSURLCredential) Persistence() NSURLCredentialPersistence
func (*NSURLCredential) User ¶
func (o *NSURLCredential) User() *NSString
@abstract Get the username @result The user string
type NSURLCredentialPersistence ¶
type NSURLCredentialPersistence uint64
Constants that specify how long the credential will be kept.
const ( NSURLCredentialPersistenceNone NSURLCredentialPersistence = 0 NSURLCredentialPersistenceForSession NSURLCredentialPersistence = 1 NSURLCredentialPersistencePermanent NSURLCredentialPersistence = 2 NSURLCredentialPersistenceSynchronizable NSURLCredentialPersistence = 3 )
func (NSURLCredentialPersistence) String ¶
func (e NSURLCredentialPersistence) String() string
type NSURLCredentialStorage ¶
type NSURLCredentialStorage struct {
NSObject
}
The manager of a shared credentials cache.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlcredentialstorage
func NSURLCredentialStorageFromID ¶
func NSURLCredentialStorageFromID(id objc.ID) *NSURLCredentialStorage
func NSURLCredentialStorageSharedCredentialStorage ¶
func NSURLCredentialStorageSharedCredentialStorage() *NSURLCredentialStorage
@property sharedCredentialStorage @abstract Get the shared singleton authentication storage @result the shared authentication storage
func (*NSURLCredentialStorage) AllCredentials ¶
func (o *NSURLCredentialStorage) AllCredentials() *NSDictionary[*NSURLProtectionSpace, objc.ID]
@abstract Get a dictionary mapping NSURLProtectionSpaces to dictionaries which map usernames to NSURLCredentials @result an NSDictionary where the keys are NSURLProtectionSpaces and the values are dictionaries, in which the keys are usernames and the values are NSURLCredentials
func (*NSURLCredentialStorage) CredentialsForProtectionSpace ¶
func (o *NSURLCredentialStorage) CredentialsForProtectionSpace(space *NSURLProtectionSpace) *NSDictionary[*NSString, *NSURLCredential]
@method credentialsForProtectionSpace: @abstract Get a dictionary mapping usernames to credentials for the specified protection space. @param space An NSURLProtectionSpace indicating the protection space for which to get credentials @result A dictionary where the keys are usernames and the values are the corresponding NSURLCredentials.
func (*NSURLCredentialStorage) DefaultCredentialForProtectionSpace ¶
func (o *NSURLCredentialStorage) DefaultCredentialForProtectionSpace(space *NSURLProtectionSpace) *NSURLCredential
@method defaultCredentialForProtectionSpace: @abstract Get the default credential for the specified protection space. @param space The protection space for which to get the default credential.
func (*NSURLCredentialStorage) GetCredentialsForProtectionSpaceTaskCompletionHandler ¶
func (o *NSURLCredentialStorage) GetCredentialsForProtectionSpaceTaskCompletionHandler(protectionSpace *NSURLProtectionSpace, task *NSURLSessionTask, completionHandler func(*NSDictionary[*NSString, *NSURLCredential]))
func (*NSURLCredentialStorage) GetDefaultCredentialForProtectionSpaceTaskCompletionHandler ¶
func (o *NSURLCredentialStorage) GetDefaultCredentialForProtectionSpaceTaskCompletionHandler(space *NSURLProtectionSpace, task *NSURLSessionTask, completionHandler func(*NSURLCredential))
func (*NSURLCredentialStorage) RemoveCredentialForProtectionSpace ¶
func (o *NSURLCredentialStorage) RemoveCredentialForProtectionSpace(credential *NSURLCredential, space *NSURLProtectionSpace)
@method removeCredential:forProtectionSpace: @abstract Remove the credential from the set for the specified protection space. @param credential The credential to remove. @param space The protection space for which a credential should be removed @discussion The credential is removed from both persistent and temporary storage. A credential that has a persistence policy of NSURLCredentialPersistenceSynchronizable will fail. See removeCredential:forProtectionSpace:options.
func (*NSURLCredentialStorage) RemoveCredentialForProtectionSpaceOptions ¶
func (o *NSURLCredentialStorage) RemoveCredentialForProtectionSpaceOptions(credential *NSURLCredential, space *NSURLProtectionSpace, options *NSDictionary[*NSString, objc.ID])
@method removeCredential:forProtectionSpace:options @abstract Remove the credential from the set for the specified protection space based on options. @param credential The credential to remove. @param space The protection space for which a credential should be removed @param options A dictionary containing options to consider when removing the credential. This should be used when trying to delete a credential that has the NSURLCredentialPersistenceSynchronizable policy. Please note that when NSURLCredential objects that have a NSURLCredentialPersistenceSynchronizable policy are removed, the credential will be removed on all devices that contain this credential. @discussion The credential is removed from both persistent and temporary storage.
func (*NSURLCredentialStorage) RemoveCredentialForProtectionSpaceOptionsTask ¶
func (o *NSURLCredentialStorage) RemoveCredentialForProtectionSpaceOptionsTask(credential *NSURLCredential, protectionSpace *NSURLProtectionSpace, options *NSDictionary[*NSString, objc.ID], task *NSURLSessionTask)
func (*NSURLCredentialStorage) SetCredentialForProtectionSpace ¶
func (o *NSURLCredentialStorage) SetCredentialForProtectionSpace(credential *NSURLCredential, space *NSURLProtectionSpace)
@method setCredential:forProtectionSpace: @abstract Add a new credential to the set for the specified protection space or replace an existing one. @param credential The credential to set. @param space The protection space for which to add it. @discussion Multiple credentials may be set for a given protection space, but each must have a distinct user. If a credential with the same user is already set for the protection space, the new one will replace it.
func (*NSURLCredentialStorage) SetCredentialForProtectionSpaceTask ¶
func (o *NSURLCredentialStorage) SetCredentialForProtectionSpaceTask(credential *NSURLCredential, protectionSpace *NSURLProtectionSpace, task *NSURLSessionTask)
func (*NSURLCredentialStorage) SetDefaultCredentialForProtectionSpace ¶
func (o *NSURLCredentialStorage) SetDefaultCredentialForProtectionSpace(credential *NSURLCredential, space *NSURLProtectionSpace)
@method setDefaultCredential:forProtectionSpace: @abstract Set the default credential for the specified protection space. @param credential The credential to set as default. @param space The protection space for which the credential should be set as default. @discussion If the credential is not yet in the set for the protection space, it will be added to it.
func (*NSURLCredentialStorage) SetDefaultCredentialForProtectionSpaceTask ¶
func (o *NSURLCredentialStorage) SetDefaultCredentialForProtectionSpaceTask(credential *NSURLCredential, protectionSpace *NSURLProtectionSpace, task *NSURLSessionTask)
type NSURLDownload ¶
type NSURLDownload struct {
NSObject
}
An object that downloads a resource asynchronously and saves the data to a file.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurldownload
func NSURLDownloadFromID ¶
func NSURLDownloadFromID(id objc.ID) *NSURLDownload
func (*NSURLDownload) Cancel ¶
func (o *NSURLDownload) Cancel()
Cancels the receiver’s download and deletes the downloaded file.
func (*NSURLDownload) DeletesFileUponFailure ¶
func (o *NSURLDownload) DeletesFileUponFailure() bool
@abstract Sets whether or not the downloaded file should be deleted upon failure. 1 @description To allow the download to be resumed in case the download ends prematurely, deletesFileUponFailure must be set to NO as soon as possible to prevent the downloaded file from being deleted. deletesFileUponFailure is YES by default.
func (*NSURLDownload) InitWithRequestDelegate ¶
func (o *NSURLDownload) InitWithRequestDelegate(request *NSURLRequest, delegate NSURLDownloadDelegate) *NSURLDownload
Returns an initialized URL download for a URL request and begins to download the data for the request. Deprecated: Use NSURLSession downloadTask (see NSURLSession.h)
func (*NSURLDownload) InitWithResumeDataDelegatePath ¶
func (o *NSURLDownload) InitWithResumeDataDelegatePath(resumeData *NSData, delegate NSURLDownloadDelegate, path *NSString) *NSURLDownload
Returns an initialized NSURLDownload object that will resume downloading the specified data to the specified file and begins the download. Deprecated: Use NSURLSession downloadTask (see NSURLSession.h)
func (*NSURLDownload) Request ¶
func (o *NSURLDownload) Request() *NSURLRequest
@abstract Returns the request of the download. @result The request of the download.
func (*NSURLDownload) ResumeData ¶
func (o *NSURLDownload) ResumeData() *NSData
@abstract Returns the resume data of a download that is incomplete. @result The resume data. @description resumeData returns the resume data of a download that is incomplete. This data represents the necessary state information that NSURLDownload needs to resume a download. The resume data can later be used when initializing a download with initWithResumeData:delegate:path:. Non-nil is returned if resuming the download seems possible. Non-nil is returned if the download was cancelled or ended in error after some but not all data has been received. The protocol of the download as well as the server must support resuming for non-nil to be returned. In order to later resume a download, be sure to call setDeletesFileUponFailure: with NO.
func (*NSURLDownload) SetDeletesFileUponFailure ¶
func (o *NSURLDownload) SetDeletesFileUponFailure(deletesFileUponFailure bool)
func (*NSURLDownload) SetDestinationAllowOverwrite ¶
func (o *NSURLDownload) SetDestinationAllowOverwrite(path *NSString, allowOverwrite bool)
Sets the destination path of the downloaded file.
type NSURLDownloadDelegate ¶
type NSURLDownloadDelegate interface {
}
NSURLDownloadDelegate wraps the ObjC protocol NSURLDownloadDelegate.
type NSURLErrorNetworkUnavailableReason ¶
type NSURLErrorNetworkUnavailableReason int64
An enumeration of reasons why a task couldn’t satisfy networking constraints.
const ( NSURLErrorNetworkUnavailableReasonCellular NSURLErrorNetworkUnavailableReason = 0 NSURLErrorNetworkUnavailableReasonExpensive NSURLErrorNetworkUnavailableReason = 1 NSURLErrorNetworkUnavailableReasonConstrained NSURLErrorNetworkUnavailableReason = 2 NSURLErrorNetworkUnavailableReasonUltraConstrained NSURLErrorNetworkUnavailableReason = 3 )
func (NSURLErrorNetworkUnavailableReason) String ¶
func (e NSURLErrorNetworkUnavailableReason) String() string
type NSURLHandle ¶
type NSURLHandle struct {
NSObject
}
An object that accesses and manages resource data indicated by a URL.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlhandle Deprecated: since macOS 10.4.
func NSURLHandleCachedHandleForURL ¶
func NSURLHandleCachedHandleForURL(anURL *NSURL) *NSURLHandle
Returns the URL handle from the cache that has serviced the specified URL or another identical URL. Deprecated: since macOS 10.4.
func NSURLHandleFromID ¶
func NSURLHandleFromID(id objc.ID) *NSURLHandle
func (*NSURLHandle) AddClient ¶
func (o *NSURLHandle) AddClient(client NSURLHandleClient)
Adds a client of the URL handle. Deprecated: since macOS 10.4.
func (*NSURLHandle) AvailableResourceData ¶
func (o *NSURLHandle) AvailableResourceData() *NSData
Immediately returns the currently available resource data managed by the URL handle. Deprecated: since macOS 10.4.
func (*NSURLHandle) BackgroundLoadDidFailWithReason ¶
func (o *NSURLHandle) BackgroundLoadDidFailWithReason(reason *NSString)
Called when a background load fails. Deprecated: since macOS 10.4.
func (*NSURLHandle) BeginLoadInBackground ¶
func (o *NSURLHandle) BeginLoadInBackground()
Called when a background load begins. Deprecated: since macOS 10.4.
func (*NSURLHandle) CancelLoadInBackground ¶
func (o *NSURLHandle) CancelLoadInBackground()
Called to cancel a load currently in progress. Deprecated: since macOS 10.4.
func (*NSURLHandle) DidLoadBytesLoadComplete ¶
func (o *NSURLHandle) DidLoadBytesLoadComplete(newBytes *NSData, yorn bool)
Appends new data to the receiver’s resource data. Deprecated: since macOS 10.4.
func (*NSURLHandle) EndLoadInBackground ¶
func (o *NSURLHandle) EndLoadInBackground()
Halts any background loading. Deprecated: since macOS 10.4.
func (*NSURLHandle) ExpectedResourceDataSize ¶
func (o *NSURLHandle) ExpectedResourceDataSize() int64
Returns the expected length of the resource data if it is provided by the server. Deprecated: since macOS 10.4.
func (*NSURLHandle) FailureReason ¶
func (o *NSURLHandle) FailureReason() *NSString
Returns a string describing the reason a load failed. Deprecated: since macOS 10.4.
func (*NSURLHandle) FlushCachedData ¶
func (o *NSURLHandle) FlushCachedData()
Flushes any cached data for the URL served by this URL handle. Deprecated: since macOS 10.4.
func (*NSURLHandle) InitWithURLCached ¶
func (o *NSURLHandle) InitWithURLCached(anURL *NSURL, willCache bool) objc.ID
Initializes a newly created URL handle with the specified URL. Deprecated: since macOS 10.4.
func (*NSURLHandle) LoadInBackground ¶
func (o *NSURLHandle) LoadInBackground()
Loads the receiver’s data in the background. Deprecated: since macOS 10.4.
func (*NSURLHandle) LoadInForeground ¶
func (o *NSURLHandle) LoadInForeground() *NSData
Loads the receiver’s data synchronously. Deprecated: since macOS 10.4.
func (*NSURLHandle) PropertyForKey ¶
func (o *NSURLHandle) PropertyForKey(propertyKey *NSString) objc.ID
Returns the property for the specified key. Deprecated: since macOS 10.4.
func (*NSURLHandle) PropertyForKeyIfAvailable ¶
func (o *NSURLHandle) PropertyForKeyIfAvailable(propertyKey *NSString) objc.ID
Returns the property for the specified key only if the value is already available; that is, the client doesn’t need to do any work. Deprecated: since macOS 10.4.
func (*NSURLHandle) RemoveClient ¶
func (o *NSURLHandle) RemoveClient(client NSURLHandleClient)
Removes client as an NSURLHandleClient of the receiver. Deprecated: since macOS 10.4.
func (*NSURLHandle) ResourceData ¶
func (o *NSURLHandle) ResourceData() *NSData
Returns the resource data managed by the receiver, loading it if necessary. Deprecated: since macOS 10.4.
func (*NSURLHandle) Status ¶
func (o *NSURLHandle) Status() NSURLHandleStatus
Returns the status of the receiver. Deprecated: since macOS 10.4.
func (*NSURLHandle) WriteData ¶
func (o *NSURLHandle) WriteData(data *NSData) bool
Attempts to write a specified set of data to the location specified by the receiver’s URL. Deprecated: since macOS 10.4.
func (*NSURLHandle) WritePropertyForKey ¶
func (o *NSURLHandle) WritePropertyForKey(propertyValue objc.ID, propertyKey *NSString) bool
Sets the property of the receiver’s resource for a specified key to the specified value. Deprecated: since macOS 10.4.
type NSURLHandleClient ¶
type NSURLHandleClient interface {
URLHandleResourceDataDidBecomeAvailable(sender *NSURLHandle, newBytes *NSData)
URLHandleResourceDidBeginLoading(sender *NSURLHandle)
URLHandleResourceDidFinishLoading(sender *NSURLHandle)
URLHandleResourceDidCancelLoading(sender *NSURLHandle)
URLHandleResourceDidFailLoadingWithReason(sender *NSURLHandle, reason *NSString)
}
NSURLHandleClient wraps the ObjC protocol NSURLHandleClient.
type NSURLHandleStatus ¶
type NSURLHandleStatus uint64
These following constants are defined by NSURLHandle and are returned by status.
const ( NSURLHandleNotLoaded NSURLHandleStatus = 0 NSURLHandleLoadSucceeded NSURLHandleStatus = 1 NSURLHandleLoadInProgress NSURLHandleStatus = 2 NSURLHandleLoadFailed NSURLHandleStatus = 3 )
func (NSURLHandleStatus) String ¶
func (e NSURLHandleStatus) String() string
type NSURLProtectionSpace ¶
type NSURLProtectionSpace struct {
NSObject
}
A server or an area on a server, commonly referred to as a realm, that requires authentication.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlprotectionspace
func NSURLProtectionSpaceFromID ¶
func NSURLProtectionSpaceFromID(id objc.ID) *NSURLProtectionSpace
func (*NSURLProtectionSpace) AuthenticationMethod ¶
func (o *NSURLProtectionSpace) AuthenticationMethod() *NSString
@abstract Get the authentication method to be used for this protection space @result The authentication method
func (*NSURLProtectionSpace) DistinguishedNames ¶
func (o *NSURLProtectionSpace) DistinguishedNames() *NSArray[*NSData]
func (*NSURLProtectionSpace) Host ¶
func (o *NSURLProtectionSpace) Host() *NSString
@abstract Get the proxy host if this is a proxy authentication, or the host from the URL. @result The host for this protection space.
func (*NSURLProtectionSpace) InitWithHostPortProtocolRealmAuthenticationMethod ¶
func (o *NSURLProtectionSpace) InitWithHostPortProtocolRealmAuthenticationMethod(host *NSString, port int, protocol *NSString, realm *NSString, authenticationMethod *NSString) *NSURLProtectionSpace
@method initWithHost:port:protocol:realm:authenticationMethod: @abstract Initialize a protection space representing an origin server, or a realm on one @param host The hostname of the server @param port The port for the server @param protocol The protocol for this server - e.g. "http", "ftp", "https" @param realm A string indicating a protocol-specific subdivision of a single host. For http and https, this maps to the realm string in http authentication challenges. For many other protocols it is unused. @param authenticationMethod The authentication method to use to access this protection space - valid values include nil (default method), @"digest" and @"form". @result The initialized object.
func (*NSURLProtectionSpace) InitWithProxyHostPortTypeRealmAuthenticationMethod ¶
func (o *NSURLProtectionSpace) InitWithProxyHostPortTypeRealmAuthenticationMethod(host *NSString, port int, type_ *NSString, realm *NSString, authenticationMethod *NSString) *NSURLProtectionSpace
@method initWithProxyHost:port:type:realm:authenticationMethod: @abstract Initialize a protection space representing a proxy server, or a realm on one @param host The hostname of the proxy server @param port The port for the proxy server @param type The type of proxy - e.g. "http", "ftp", "SOCKS" @param realm A string indicating a protocol-specific subdivision of a single host. For http and https, this maps to the realm string in http authentication challenges. For many other protocols it is unused. @param authenticationMethod The authentication method to use to access this protection space - valid values include nil (default method) and @"digest" @result The initialized object.
func (*NSURLProtectionSpace) IsProxy ¶
func (o *NSURLProtectionSpace) IsProxy() bool
@abstract Determine if this authenticating protection space is a proxy server @result YES if a proxy, NO otherwise
func (*NSURLProtectionSpace) Port ¶
func (o *NSURLProtectionSpace) Port() int
@abstract Get the proxy port if this is a proxy authentication, or the port from the URL. @result The port for this protection space, or 0 if not set.
func (*NSURLProtectionSpace) Protocol ¶
func (o *NSURLProtectionSpace) Protocol() *NSString
@abstract Get the protocol of this protection space, if not a proxy @result The type string, or nil if a proxy.
func (*NSURLProtectionSpace) ProxyType ¶
func (o *NSURLProtectionSpace) ProxyType() *NSString
@abstract Get the type of this protection space, if a proxy @result The type string, or nil if not a proxy.
func (*NSURLProtectionSpace) Realm ¶
func (o *NSURLProtectionSpace) Realm() *NSString
@abstract Get the authentication realm for which the protection space that needs authentication @discussion This is generally only available for http authentication, and may be nil otherwise. @result The realm string
func (*NSURLProtectionSpace) ReceivesCredentialSecurely ¶
func (o *NSURLProtectionSpace) ReceivesCredentialSecurely() bool
@abstract Determine if the password for this protection space can be sent securely @result YES if a secure authentication method or protocol will be used, NO otherwise
func (*NSURLProtectionSpace) ServerTrust ¶
func (o *NSURLProtectionSpace) ServerTrust() unsafe.Pointer
type NSURLProtocol ¶
type NSURLProtocol struct {
NSObject
}
An abstract class that handles the loading of protocol-specific URL data.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlprotocol
func NSURLProtocolFromID ¶
func NSURLProtocolFromID(id objc.ID) *NSURLProtocol
func (*NSURLProtocol) CachedResponse ¶
func (o *NSURLProtocol) CachedResponse() *NSCachedURLResponse
@abstract Returns the NSCachedURLResponse of the receiver. @result The NSCachedURLResponse of the receiver.
func (*NSURLProtocol) Client ¶
func (o *NSURLProtocol) Client() NSURLProtocolClient
@abstract Returns the NSURLProtocolClient of the receiver. @result The NSURLProtocolClient of the receiver.
func (*NSURLProtocol) InitWithRequestCachedResponseClient ¶
func (o *NSURLProtocol) InitWithRequestCachedResponseClient(request *NSURLRequest, cachedResponse *NSCachedURLResponse, client NSURLProtocolClient) *NSURLProtocol
@method initWithRequest:cachedResponse:client: @abstract Initializes an NSURLProtocol given request, cached response, and client. @param request The request to load. @param cachedResponse A response that has been retrieved from the cache for the given request. The protocol implementation should apply protocol-specific validity checks if such tests are necessary. @param client The NSURLProtocolClient object that serves as the interface the protocol implementation can use to report results back to the URL loading system.
func (*NSURLProtocol) InitWithTaskCachedResponseClient ¶
func (o *NSURLProtocol) InitWithTaskCachedResponseClient(task *NSURLSessionTask, cachedResponse *NSCachedURLResponse, client NSURLProtocolClient) *NSURLProtocol
func (*NSURLProtocol) Request ¶
func (o *NSURLProtocol) Request() *NSURLRequest
@abstract Returns the NSURLRequest of the receiver. @result The NSURLRequest of the receiver.
func (*NSURLProtocol) StartLoading ¶
func (o *NSURLProtocol) StartLoading()
@method startLoading @abstract Starts protocol-specific loading of a request. @discussion When this method is called, the protocol implementation should start loading a request.
func (*NSURLProtocol) StopLoading ¶
func (o *NSURLProtocol) StopLoading()
@method stopLoading @abstract Stops protocol-specific loading of a request. @discussion When this method is called, the protocol implementation should end the work of loading a request. This could be in response to a cancel operation, so protocol implementations must be able to handle this call while a load is in progress.
func (*NSURLProtocol) Task ¶
func (o *NSURLProtocol) Task() *NSURLSessionTask
type NSURLProtocolClient ¶
type NSURLProtocolClient interface {
URLProtocolWasRedirectedToRequestRedirectResponse(protocol *NSURLProtocol, request *NSURLRequest, redirectResponse *NSURLResponse)
URLProtocolCachedResponseIsValid(protocol *NSURLProtocol, cachedResponse *NSCachedURLResponse)
URLProtocolDidReceiveResponseCacheStoragePolicy(protocol *NSURLProtocol, response *NSURLResponse, policy NSURLCacheStoragePolicy)
URLProtocolDidLoadData(protocol *NSURLProtocol, data *NSData)
URLProtocolDidFinishLoading(protocol *NSURLProtocol)
URLProtocolDidFailWithError(protocol *NSURLProtocol, error_ unsafe.Pointer)
URLProtocolDidReceiveAuthenticationChallenge(protocol *NSURLProtocol, challenge *NSURLAuthenticationChallenge)
URLProtocolDidCancelAuthenticationChallenge(protocol *NSURLProtocol, challenge *NSURLAuthenticationChallenge)
}
NSURLProtocolClient wraps the ObjC protocol NSURLProtocolClient.
type NSURLQueryItem ¶
type NSURLQueryItem struct {
NSObject
}
An object representing a single name/value pair for an item in the query portion of a URL.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlqueryitem
func NSURLQueryItemFromID ¶
func NSURLQueryItemFromID(id objc.ID) *NSURLQueryItem
func NSURLQueryItemQueryItemWithNameValue ¶
func NSURLQueryItemQueryItemWithNameValue(name *NSString, value *NSString) *NSURLQueryItem
Creates a new query item with the specified name and value.
func (*NSURLQueryItem) InitWithNameValue ¶
func (o *NSURLQueryItem) InitWithNameValue(name *NSString, value *NSString) *NSURLQueryItem
Initializes a newly allocated query item with the specified name and value.
func (*NSURLQueryItem) Name ¶
func (o *NSURLQueryItem) Name() *NSString
func (*NSURLQueryItem) Value ¶
func (o *NSURLQueryItem) Value() *NSString
type NSURLRelationship ¶
type NSURLRelationship int64
Constants indicating the relationship between a directory and an item.
const ( NSURLRelationshipContains NSURLRelationship = 0 NSURLRelationshipSame NSURLRelationship = 1 NSURLRelationshipOther NSURLRelationship = 2 )
func (NSURLRelationship) String ¶
func (e NSURLRelationship) String() string
type NSURLRequest ¶
type NSURLRequest struct {
NSObject
}
A URL load request that is independent of protocol or URL scheme.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlrequest
func NSURLProtocolCanonicalRequestForRequest ¶
func NSURLProtocolCanonicalRequestForRequest(request *NSURLRequest) *NSURLRequest
@method canonicalRequestForRequest: @abstract This method returns a canonical version of the given request. @discussion It is up to each concrete protocol implementation to define what "canonical" means. However, a protocol should guarantee that the same input request always yields the same canonical form. Special consideration should be given when implementing this method since the canonical form of a request is used to look up objects in the URL cache, a process which performs equality checks between NSURLRequest objects. <p> This is an abstract method; subclasses must provide an implementation. @param request A request to make canonical. @result The canonical form of the given request.
func NSURLRequestFromID ¶
func NSURLRequestFromID(id objc.ID) *NSURLRequest
func NSURLRequestRequestWithURL ¶
func NSURLRequestRequestWithURL(uRL *NSURL) *NSURLRequest
Creates and returns a URL request for a specified URL.
func NSURLRequestRequestWithURLCachePolicyTimeoutInterval ¶
func NSURLRequestRequestWithURLCachePolicyTimeoutInterval(uRL *NSURL, cachePolicy NSURLRequestCachePolicy, timeoutInterval float64) *NSURLRequest
Creates and returns an initialized URL request with specified URL, cache policy, and timeout values.
func (*NSURLRequest) AllHTTPHeaderFields ¶
func (o *NSURLRequest) AllHTTPHeaderFields() *NSDictionary[*NSString, *NSString]
@abstract Returns a dictionary containing all the HTTP header fields of the receiver. @result a dictionary containing all the HTTP header fields of the receiver.
func (*NSURLRequest) AllowsCellularAccess ¶
func (o *NSURLRequest) AllowsCellularAccess() bool
@abstract returns whether a connection created with this request is allowed to use the built in cellular radios (if present). @result YES if the receiver is allowed to use the built in cellular radios to satisfy the request, NO otherwise.
func (*NSURLRequest) AllowsConstrainedNetworkAccess ¶
func (o *NSURLRequest) AllowsConstrainedNetworkAccess() bool
@abstract returns whether a connection created with this request is allowed to use network interfaces which have been marked as constrained. @result YES if the receiver is allowed to use an interface marked as constrained to satisfy the request, NO otherwise.
func (*NSURLRequest) AllowsExpensiveNetworkAccess ¶
func (o *NSURLRequest) AllowsExpensiveNetworkAccess() bool
@abstract returns whether a connection created with this request is allowed to use network interfaces which have been marked as expensive. @result YES if the receiver is allowed to use an interface marked as expensive to satisfy the request, NO otherwise.
func (*NSURLRequest) AllowsPersistentDNS ¶
func (o *NSURLRequest) AllowsPersistentDNS() bool
@abstract Allows storing and usage of DNS answers, potentially beyond TTL expiry, in a persistent per-process cache. This should only be set for hostnames whose resolutions are not expected to change across networks. @discussion YES, if the DNS lookup for this request is allowed to use a persistent per-process cache, NO otherwise. Defaults to NO.
func (*NSURLRequest) AllowsUltraConstrainedNetworkAccess ¶
func (o *NSURLRequest) AllowsUltraConstrainedNetworkAccess() bool
@abstract returns whether a connection created with this request is allowed to use network interfaces which have been marked as ultra constrained. @result YES if the receiver is allowed to use an interface marked as ultra constrained to satisfy the request, NO otherwise.
func (*NSURLRequest) AssumesHTTP3Capable ¶
func (o *NSURLRequest) AssumesHTTP3Capable() bool
@abstract returns whether we assume that server supports HTTP/3. Enables QUIC racing without HTTP/3 service discovery. @result YES if server endpoint is known to support HTTP/3. Defaults to NO. The default may be YES in a future OS update.
func (*NSURLRequest) Attribution ¶
func (o *NSURLRequest) Attribution() NSURLRequestAttribution
@abstract Returns the NSURLRequestAttribution associated with this request. @discussion This will return NSURLRequestAttributionDeveloper for requests that have not explicitly set an attribution. @result The NSURLRequestAttribution associated with this request.
func (*NSURLRequest) CachePolicy ¶
func (o *NSURLRequest) CachePolicy() NSURLRequestCachePolicy
@abstract Returns the cache policy of the receiver. @result The cache policy of the receiver.
func (*NSURLRequest) CookiePartitionIdentifier ¶
func (o *NSURLRequest) CookiePartitionIdentifier() *NSString
func (*NSURLRequest) HTTPBody ¶
func (o *NSURLRequest) HTTPBody() *NSData
@abstract Returns the request body data of the receiver. @discussion This data is sent as the message body of the request, as in done in an HTTP POST request. @result The request body data of the receiver.
func (*NSURLRequest) HTTPBodyStream ¶
func (o *NSURLRequest) HTTPBodyStream() *NSInputStream
@abstract Returns the request body stream of the receiver if any has been set @discussion The stream is returned for examination only; it is not safe for the caller to manipulate the stream in any way. Also note that the HTTPBodyStream and HTTPBody are mutually exclusive - only one can be set on a given request. Also note that the body stream is preserved across copies, but is LOST when the request is coded via the NSCoding protocol @result The request body stream of the receiver.
func (*NSURLRequest) HTTPMethod ¶
func (o *NSURLRequest) HTTPMethod() *NSString
@abstract Returns the HTTP request method of the receiver. @result the HTTP request method of the receiver.
func (*NSURLRequest) HTTPShouldHandleCookies ¶
func (o *NSURLRequest) HTTPShouldHandleCookies() bool
@abstract Determine whether default cookie handling will happen for this request. @discussion NOTE: This value is not used prior to 10.3 @result YES if cookies will be sent with and set for this request; otherwise NO.
func (*NSURLRequest) HTTPShouldUsePipelining ¶
func (o *NSURLRequest) HTTPShouldUsePipelining() bool
@abstract Reports whether the receiver is not expected to wait for the previous response before transmitting. @result YES if the receiver should transmit before the previous response is received. NO if the receiver should wait for the previous response before transmitting. Deprecated: Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead
func (*NSURLRequest) InitWithURL ¶
func (o *NSURLRequest) InitWithURL(uRL *NSURL) *NSURLRequest
Creates a URL request for a specified URL.
func (*NSURLRequest) InitWithURLCachePolicyTimeoutInterval ¶
func (o *NSURLRequest) InitWithURLCachePolicyTimeoutInterval(uRL *NSURL, cachePolicy NSURLRequestCachePolicy, timeoutInterval float64) *NSURLRequest
Creates a URL request with the specified URL, cache policy, and timeout values.
func (*NSURLRequest) MainDocumentURL ¶
func (o *NSURLRequest) MainDocumentURL() *NSURL
@abstract The main document URL associated with this load. @discussion This URL is used for the cookie "same domain as main document" policy, and attributing the request as a sub-resource of a user-specified URL. There may also be other future uses. See setMainDocumentURL: @result The main document URL.
func (*NSURLRequest) NetworkServiceType ¶
func (o *NSURLRequest) NetworkServiceType() NSURLRequestNetworkServiceType
@abstract Returns the NSURLRequestNetworkServiceType associated with this request. @discussion This will return NSURLNetworkServiceTypeDefault for requests that have not explicitly set a networkServiceType (using the setNetworkServiceType method). @result The NSURLRequestNetworkServiceType associated with this request.
func (*NSURLRequest) RequiresDNSSECValidation ¶
func (o *NSURLRequest) RequiresDNSSECValidation() bool
@abstract sets whether a request is required to do DNSSEC validation during DNS lookup. @discussion YES, if the DNS lookup for this request should require DNSSEC validation, No otherwise. Defaults to NO.
func (*NSURLRequest) TimeoutInterval ¶
func (o *NSURLRequest) TimeoutInterval() float64
@abstract Returns the timeout interval of the receiver. @discussion The timeout interval specifies the limit on the idle interval allotted to a request in the process of loading. The "idle interval" is defined as the period of time that has passed since the last instance of load activity occurred for a request that is in the process of loading. Hence, when an instance of load activity occurs (e.g. bytes are received from the network for a request), the idle interval for a request is reset to 0. If the idle interval ever becomes greater than or equal to the timeout interval, the request is considered to have timed out. This timeout interval is measured in seconds. @result The timeout interval of the receiver.
func (*NSURLRequest) URL ¶
func (o *NSURLRequest) URL() *NSURL
@abstract Returns the URL of the receiver. @result The URL of the receiver.
func (*NSURLRequest) ValueForHTTPHeaderField ¶
func (o *NSURLRequest) ValueForHTTPHeaderField(field *NSString) *NSString
Returns the value of the specified HTTP header field.
type NSURLRequestAttribution ¶
type NSURLRequestAttribution uint64
The entities that can make a network request.
const ( NSURLRequestAttributionDeveloper NSURLRequestAttribution = 0 NSURLRequestAttributionUser NSURLRequestAttribution = 1 )
func (NSURLRequestAttribution) String ¶
func (e NSURLRequestAttribution) String() string
type NSURLRequestCachePolicy ¶
type NSURLRequestCachePolicy uint64
The constants used to specify interaction with the cached responses.
const ( NSURLRequestUseProtocolCachePolicy NSURLRequestCachePolicy = 0 NSURLRequestReloadIgnoringLocalCacheData NSURLRequestCachePolicy = 1 NSURLRequestReloadIgnoringLocalAndRemoteCacheData NSURLRequestCachePolicy = 4 NSURLRequestReloadIgnoringCacheData NSURLRequestCachePolicy = 1 NSURLRequestReturnCacheDataElseLoad NSURLRequestCachePolicy = 2 NSURLRequestReturnCacheDataDontLoad NSURLRequestCachePolicy = 3 NSURLRequestReloadRevalidatingCacheData NSURLRequestCachePolicy = 5 )
func (NSURLRequestCachePolicy) String ¶
func (e NSURLRequestCachePolicy) String() string
type NSURLRequestNetworkServiceType ¶
type NSURLRequestNetworkServiceType uint64
Constants that specify how a request uses network resources.
const ( NSURLNetworkServiceTypeDefault NSURLRequestNetworkServiceType = 0 NSURLNetworkServiceTypeVoIP NSURLRequestNetworkServiceType = 1 NSURLNetworkServiceTypeVideo NSURLRequestNetworkServiceType = 2 NSURLNetworkServiceTypeBackground NSURLRequestNetworkServiceType = 3 NSURLNetworkServiceTypeVoice NSURLRequestNetworkServiceType = 4 NSURLNetworkServiceTypeResponsiveData NSURLRequestNetworkServiceType = 6 NSURLNetworkServiceTypeAVStreaming NSURLRequestNetworkServiceType = 8 NSURLNetworkServiceTypeResponsiveAV NSURLRequestNetworkServiceType = 9 NSURLNetworkServiceTypeCallSignaling NSURLRequestNetworkServiceType = 11 )
func (NSURLRequestNetworkServiceType) String ¶
func (e NSURLRequestNetworkServiceType) String() string
type NSURLResponse ¶
type NSURLResponse struct {
NSObject
}
The metadata associated with the response to a URL load request, independent of protocol and URL scheme.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlresponse
func NSURLResponseFromID ¶
func NSURLResponseFromID(id objc.ID) *NSURLResponse
func (*NSURLResponse) ExpectedContentLength ¶
func (o *NSURLResponse) ExpectedContentLength() int64
@abstract Returns the expected content length of the receiver. @discussion Some protocol implementations report a content length as part of delivering load metadata, but not all protocols guarantee the amount of data that will be delivered in actuality. Hence, this method returns an expected amount. Clients should use this value as an advisory, and should be prepared to deal with either more or less data. @result The expected content length of the receiver, or -1 if there is no expectation that can be arrived at regarding expected content length.
func (*NSURLResponse) InitWithURLMIMETypeExpectedContentLengthTextEncodingName ¶
func (o *NSURLResponse) InitWithURLMIMETypeExpectedContentLengthTextEncodingName(uRL *NSURL, mIMEType *NSString, length int, name *NSString) *NSURLResponse
@method initWithURL:MIMEType:expectedContentLength:textEncodingName: @abstract Initialize an NSURLResponse with the provided values. @param URL the URL @param MIMEType the MIME content type of the response @param length the expected content length of the associated data @param name the name of the text encoding for the associated data, if applicable, else nil @result The initialized NSURLResponse. @discussion This is the designated initializer for NSURLResponse.
func (*NSURLResponse) MIMEType ¶
func (o *NSURLResponse) MIMEType() *NSString
@abstract Returns the MIME type of the receiver. @discussion The MIME type is based on the information provided from an origin source. However, that value may be changed or corrected by a protocol implementation if it can be determined that the origin server or source reported the information incorrectly or imprecisely. An attempt to guess the MIME type may be made if the origin source did not report any such information. @result The MIME type of the receiver.
func (*NSURLResponse) SuggestedFilename ¶
func (o *NSURLResponse) SuggestedFilename() *NSString
@abstract Returns a suggested filename if the resource were saved to disk. @discussion The method first checks if the server has specified a filename using the content disposition header. If no valid filename is specified using that mechanism, this method checks the last path component of the URL. If no valid filename can be obtained using the last path component, this method uses the URL's host as the filename. If the URL's host can't be converted to a valid filename, the filename "unknown" is used. In most cases, this method appends the proper file extension based on the MIME type. This method always returns a valid filename. @result A suggested filename to use if saving the resource to disk.
func (*NSURLResponse) TextEncodingName ¶
func (o *NSURLResponse) TextEncodingName() *NSString
@abstract Returns the name of the text encoding of the receiver. @discussion This name will be the actual string reported by the origin source during the course of performing a protocol-specific URL load. Clients can inspect this string and convert it to an NSStringEncoding or CFStringEncoding using the methods and functions made available in the appropriate framework. @result The name of the text encoding of the receiver, or nil if no text encoding was specified.
func (*NSURLResponse) URL ¶
func (o *NSURLResponse) URL() *NSURL
@abstract Returns the URL of the receiver. @result The URL of the receiver.
type NSURLSession ¶
type NSURLSession struct {
NSObject
}
An object that coordinates a group of related, network data transfer tasks.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsession
func NSURLSessionFromID ¶
func NSURLSessionFromID(id objc.ID) *NSURLSession
func NSURLSessionNew
deprecated
func NSURLSessionNew() *NSURLSession
Deprecated: Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances
func NSURLSessionSessionWithConfiguration ¶
func NSURLSessionSessionWithConfiguration(configuration *NSURLSessionConfiguration) *NSURLSession
func NSURLSessionSessionWithConfigurationDelegateDelegateQueue ¶
func NSURLSessionSessionWithConfigurationDelegateDelegateQueue(configuration *NSURLSessionConfiguration, delegate NSURLSessionDelegate, queue *NSOperationQueue) *NSURLSession
func NSURLSessionSharedSession ¶
func NSURLSessionSharedSession() *NSURLSession
func (*NSURLSession) Configuration ¶
func (o *NSURLSession) Configuration() *NSURLSessionConfiguration
func (*NSURLSession) DataTaskWithRequest ¶
func (o *NSURLSession) DataTaskWithRequest(request *NSURLRequest) *NSURLSessionDataTask
func (*NSURLSession) DataTaskWithRequestCompletionHandler ¶
func (o *NSURLSession) DataTaskWithRequestCompletionHandler(request *NSURLRequest, completionHandler func(*NSData, *NSURLResponse, unsafe.Pointer)) *NSURLSessionDataTask
func (*NSURLSession) DataTaskWithURL ¶
func (o *NSURLSession) DataTaskWithURL(url *NSURL) *NSURLSessionDataTask
func (*NSURLSession) DataTaskWithURLCompletionHandler ¶
func (o *NSURLSession) DataTaskWithURLCompletionHandler(url *NSURL, completionHandler func(*NSData, *NSURLResponse, unsafe.Pointer)) *NSURLSessionDataTask
func (*NSURLSession) Delegate ¶
func (o *NSURLSession) Delegate() NSURLSessionDelegate
func (*NSURLSession) DelegateQueue ¶
func (o *NSURLSession) DelegateQueue() *NSOperationQueue
func (*NSURLSession) DownloadTaskWithRequest ¶
func (o *NSURLSession) DownloadTaskWithRequest(request *NSURLRequest) *NSURLSessionDownloadTask
func (*NSURLSession) DownloadTaskWithRequestCompletionHandler ¶
func (o *NSURLSession) DownloadTaskWithRequestCompletionHandler(request *NSURLRequest, completionHandler func(*NSURL, *NSURLResponse, unsafe.Pointer)) *NSURLSessionDownloadTask
func (*NSURLSession) DownloadTaskWithResumeData ¶
func (o *NSURLSession) DownloadTaskWithResumeData(resumeData *NSData) *NSURLSessionDownloadTask
func (*NSURLSession) DownloadTaskWithResumeDataCompletionHandler ¶
func (o *NSURLSession) DownloadTaskWithResumeDataCompletionHandler(resumeData *NSData, completionHandler func(*NSURL, *NSURLResponse, unsafe.Pointer)) *NSURLSessionDownloadTask
func (*NSURLSession) DownloadTaskWithURL ¶
func (o *NSURLSession) DownloadTaskWithURL(url *NSURL) *NSURLSessionDownloadTask
func (*NSURLSession) DownloadTaskWithURLCompletionHandler ¶
func (o *NSURLSession) DownloadTaskWithURLCompletionHandler(url *NSURL, completionHandler func(*NSURL, *NSURLResponse, unsafe.Pointer)) *NSURLSessionDownloadTask
func (*NSURLSession) FinishTasksAndInvalidate ¶
func (o *NSURLSession) FinishTasksAndInvalidate()
func (*NSURLSession) FlushWithCompletionHandler ¶
func (o *NSURLSession) FlushWithCompletionHandler(completionHandler func())
func (*NSURLSession) GetAllTasksWithCompletionHandler ¶
func (o *NSURLSession) GetAllTasksWithCompletionHandler(completionHandler func(*NSArray[*NSURLSessionTask]))
func (*NSURLSession) GetTasksWithCompletionHandler ¶
func (o *NSURLSession) GetTasksWithCompletionHandler(completionHandler func(*NSArray[*NSURLSessionDataTask], *NSArray[*NSURLSessionUploadTask], *NSArray[*NSURLSessionDownloadTask]))
func (*NSURLSession) Init
deprecated
func (o *NSURLSession) Init() *NSURLSession
Deprecated: Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances
func (*NSURLSession) InvalidateAndCancel ¶
func (o *NSURLSession) InvalidateAndCancel()
func (*NSURLSession) ResetWithCompletionHandler ¶
func (o *NSURLSession) ResetWithCompletionHandler(completionHandler func())
func (*NSURLSession) SessionDescription ¶
func (o *NSURLSession) SessionDescription() *NSString
func (*NSURLSession) SetSessionDescription ¶
func (o *NSURLSession) SetSessionDescription(sessionDescription *NSString)
func (*NSURLSession) StreamTaskWithHostNamePort ¶
func (o *NSURLSession) StreamTaskWithHostNamePort(hostname *NSString, port int) *NSURLSessionStreamTask
func (*NSURLSession) StreamTaskWithNetService
deprecated
func (o *NSURLSession) StreamTaskWithNetService(service *NSNetService) *NSURLSessionStreamTask
Deprecated: Use nw_connection_t in Network framework instead
func (*NSURLSession) UploadTaskWithRequestFromData ¶
func (o *NSURLSession) UploadTaskWithRequestFromData(request *NSURLRequest, bodyData *NSData) *NSURLSessionUploadTask
func (*NSURLSession) UploadTaskWithRequestFromDataCompletionHandler ¶
func (o *NSURLSession) UploadTaskWithRequestFromDataCompletionHandler(request *NSURLRequest, bodyData *NSData, completionHandler func(*NSData, *NSURLResponse, unsafe.Pointer)) *NSURLSessionUploadTask
func (*NSURLSession) UploadTaskWithRequestFromFile ¶
func (o *NSURLSession) UploadTaskWithRequestFromFile(request *NSURLRequest, fileURL *NSURL) *NSURLSessionUploadTask
func (*NSURLSession) UploadTaskWithRequestFromFileCompletionHandler ¶
func (o *NSURLSession) UploadTaskWithRequestFromFileCompletionHandler(request *NSURLRequest, fileURL *NSURL, completionHandler func(*NSData, *NSURLResponse, unsafe.Pointer)) *NSURLSessionUploadTask
func (*NSURLSession) UploadTaskWithResumeData ¶
func (o *NSURLSession) UploadTaskWithResumeData(resumeData *NSData) *NSURLSessionUploadTask
Creates an upload task from a resume data blob. Requires the server to support the latest resumable uploads Internet-Draft from the HTTP Working Group, found at https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/ If resuming from an upload file, the file must still exist and be unmodified. If the upload cannot be successfully resumed, URLSession:task:didCompleteWithError: will be called. - Parameter resumeData: Resume data blob from an incomplete upload, such as data returned by the cancelByProducingResumeData: method. - Returns: A new session upload task, or nil if the resumeData is invalid.
func (*NSURLSession) UploadTaskWithResumeDataCompletionHandler ¶
func (o *NSURLSession) UploadTaskWithResumeDataCompletionHandler(resumeData *NSData, completionHandler func(*NSData, *NSURLResponse, unsafe.Pointer)) *NSURLSessionUploadTask
Creates a URLSessionUploadTask from a resume data blob. If resuming from an upload file, the file must still exist and be unmodified. - Parameter resumeData: Resume data blob from an incomplete upload, such as data returned by the cancelByProducingResumeData: method. - Parameter completionHandler: The completion handler to call when the load request is complete. - Returns: A new session upload task, or nil if the resumeData is invalid.
func (*NSURLSession) UploadTaskWithStreamedRequest ¶
func (o *NSURLSession) UploadTaskWithStreamedRequest(request *NSURLRequest) *NSURLSessionUploadTask
func (*NSURLSession) WebSocketTaskWithRequest ¶
func (o *NSURLSession) WebSocketTaskWithRequest(request *NSURLRequest) *NSURLSessionWebSocketTask
func (*NSURLSession) WebSocketTaskWithURL ¶
func (o *NSURLSession) WebSocketTaskWithURL(url *NSURL) *NSURLSessionWebSocketTask
func (*NSURLSession) WebSocketTaskWithURLProtocols ¶
func (o *NSURLSession) WebSocketTaskWithURLProtocols(url *NSURL, protocols *NSArray[*NSString]) *NSURLSessionWebSocketTask
type NSURLSessionAuthChallengeDisposition ¶
type NSURLSessionAuthChallengeDisposition int64
Constants passed by session or task delegates to the provided continuation block in response to an authentication challenge.
const ( NSURLSessionAuthChallengeUseCredential NSURLSessionAuthChallengeDisposition = 0 NSURLSessionAuthChallengePerformDefaultHandling NSURLSessionAuthChallengeDisposition = 1 NSURLSessionAuthChallengeCancelAuthenticationChallenge NSURLSessionAuthChallengeDisposition = 2 NSURLSessionAuthChallengeRejectProtectionSpace NSURLSessionAuthChallengeDisposition = 3 )
func (NSURLSessionAuthChallengeDisposition) String ¶
func (e NSURLSessionAuthChallengeDisposition) String() string
type NSURLSessionConfiguration ¶
type NSURLSessionConfiguration struct {
NSObject
}
A configuration object that defines behavior and policies for a URL session.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration
func NSURLSessionConfigurationBackgroundSessionConfiguration
deprecated
func NSURLSessionConfigurationBackgroundSessionConfiguration(identifier *NSString) *NSURLSessionConfiguration
Deprecated: since macOS 10.10.
func NSURLSessionConfigurationBackgroundSessionConfigurationWithIdentifier ¶
func NSURLSessionConfigurationBackgroundSessionConfigurationWithIdentifier(identifier *NSString) *NSURLSessionConfiguration
func NSURLSessionConfigurationDefaultSessionConfiguration ¶
func NSURLSessionConfigurationDefaultSessionConfiguration() *NSURLSessionConfiguration
func NSURLSessionConfigurationEphemeralSessionConfiguration ¶
func NSURLSessionConfigurationEphemeralSessionConfiguration() *NSURLSessionConfiguration
func NSURLSessionConfigurationFromID ¶
func NSURLSessionConfigurationFromID(id objc.ID) *NSURLSessionConfiguration
func NSURLSessionConfigurationNew
deprecated
func NSURLSessionConfigurationNew() *NSURLSessionConfiguration
Deprecated: Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances
func (*NSURLSessionConfiguration) AllowsCellularAccess ¶
func (o *NSURLSessionConfiguration) AllowsCellularAccess() bool
func (*NSURLSessionConfiguration) AllowsConstrainedNetworkAccess ¶
func (o *NSURLSessionConfiguration) AllowsConstrainedNetworkAccess() bool
func (*NSURLSessionConfiguration) AllowsExpensiveNetworkAccess ¶
func (o *NSURLSessionConfiguration) AllowsExpensiveNetworkAccess() bool
func (*NSURLSessionConfiguration) AllowsUltraConstrainedNetworkAccess ¶
func (o *NSURLSessionConfiguration) AllowsUltraConstrainedNetworkAccess() bool
func (*NSURLSessionConfiguration) ConnectionProxyDictionary ¶
func (o *NSURLSessionConfiguration) ConnectionProxyDictionary() *NSDictionary[objc.ID, objc.ID]
func (*NSURLSessionConfiguration) EnablesEarlyData ¶
func (o *NSURLSessionConfiguration) EnablesEarlyData() bool
func (*NSURLSessionConfiguration) HTTPAdditionalHeaders ¶
func (o *NSURLSessionConfiguration) HTTPAdditionalHeaders() *NSDictionary[objc.ID, objc.ID]
func (*NSURLSessionConfiguration) HTTPCookieAcceptPolicy ¶
func (o *NSURLSessionConfiguration) HTTPCookieAcceptPolicy() NSHTTPCookieAcceptPolicy
func (*NSURLSessionConfiguration) HTTPCookieStorage ¶
func (o *NSURLSessionConfiguration) HTTPCookieStorage() *NSHTTPCookieStorage
func (*NSURLSessionConfiguration) HTTPMaximumConnectionsPerHost ¶
func (o *NSURLSessionConfiguration) HTTPMaximumConnectionsPerHost() int
func (*NSURLSessionConfiguration) HTTPShouldSetCookies
deprecated
func (o *NSURLSessionConfiguration) HTTPShouldSetCookies() bool
Deprecated: Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead
func (*NSURLSessionConfiguration) HTTPShouldUsePipelining
deprecated
func (o *NSURLSessionConfiguration) HTTPShouldUsePipelining() bool
Deprecated: Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead
func (*NSURLSessionConfiguration) Identifier ¶
func (o *NSURLSessionConfiguration) Identifier() *NSString
func (*NSURLSessionConfiguration) Init
deprecated
func (o *NSURLSessionConfiguration) Init() *NSURLSessionConfiguration
Deprecated: Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances
func (*NSURLSessionConfiguration) IsDiscretionary ¶
func (o *NSURLSessionConfiguration) IsDiscretionary() bool
func (*NSURLSessionConfiguration) NetworkServiceType ¶
func (o *NSURLSessionConfiguration) NetworkServiceType() NSURLRequestNetworkServiceType
func (*NSURLSessionConfiguration) ProtocolClasses ¶
func (o *NSURLSessionConfiguration) ProtocolClasses() *NSArray[objc.Class]
func (*NSURLSessionConfiguration) RequestCachePolicy ¶
func (o *NSURLSessionConfiguration) RequestCachePolicy() NSURLRequestCachePolicy
func (*NSURLSessionConfiguration) RequiresDNSSECValidation ¶
func (o *NSURLSessionConfiguration) RequiresDNSSECValidation() bool
func (*NSURLSessionConfiguration) SessionSendsLaunchEvents ¶
func (o *NSURLSessionConfiguration) SessionSendsLaunchEvents() bool
func (*NSURLSessionConfiguration) SetAllowsCellularAccess ¶
func (o *NSURLSessionConfiguration) SetAllowsCellularAccess(allowsCellularAccess bool)
func (*NSURLSessionConfiguration) SetAllowsConstrainedNetworkAccess ¶
func (o *NSURLSessionConfiguration) SetAllowsConstrainedNetworkAccess(allowsConstrainedNetworkAccess bool)
func (*NSURLSessionConfiguration) SetAllowsExpensiveNetworkAccess ¶
func (o *NSURLSessionConfiguration) SetAllowsExpensiveNetworkAccess(allowsExpensiveNetworkAccess bool)
func (*NSURLSessionConfiguration) SetAllowsUltraConstrainedNetworkAccess ¶
func (o *NSURLSessionConfiguration) SetAllowsUltraConstrainedNetworkAccess(allowsUltraConstrainedNetworkAccess bool)
func (*NSURLSessionConfiguration) SetConnectionProxyDictionary ¶
func (o *NSURLSessionConfiguration) SetConnectionProxyDictionary(connectionProxyDictionary *NSDictionary[objc.ID, objc.ID])
func (*NSURLSessionConfiguration) SetDiscretionary ¶
func (o *NSURLSessionConfiguration) SetDiscretionary(discretionary bool)
func (*NSURLSessionConfiguration) SetEnablesEarlyData ¶
func (o *NSURLSessionConfiguration) SetEnablesEarlyData(enablesEarlyData bool)
func (*NSURLSessionConfiguration) SetHTTPAdditionalHeaders ¶
func (o *NSURLSessionConfiguration) SetHTTPAdditionalHeaders(hTTPAdditionalHeaders *NSDictionary[objc.ID, objc.ID])
func (*NSURLSessionConfiguration) SetHTTPCookieAcceptPolicy ¶
func (o *NSURLSessionConfiguration) SetHTTPCookieAcceptPolicy(hTTPCookieAcceptPolicy NSHTTPCookieAcceptPolicy)
func (*NSURLSessionConfiguration) SetHTTPCookieStorage ¶
func (o *NSURLSessionConfiguration) SetHTTPCookieStorage(hTTPCookieStorage *NSHTTPCookieStorage)
func (*NSURLSessionConfiguration) SetHTTPMaximumConnectionsPerHost ¶
func (o *NSURLSessionConfiguration) SetHTTPMaximumConnectionsPerHost(hTTPMaximumConnectionsPerHost int)
func (*NSURLSessionConfiguration) SetHTTPShouldSetCookies ¶
func (o *NSURLSessionConfiguration) SetHTTPShouldSetCookies(hTTPShouldSetCookies bool)
func (*NSURLSessionConfiguration) SetHTTPShouldUsePipelining
deprecated
func (o *NSURLSessionConfiguration) SetHTTPShouldUsePipelining(hTTPShouldUsePipelining bool)
Deprecated: Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead
func (*NSURLSessionConfiguration) SetNetworkServiceType ¶
func (o *NSURLSessionConfiguration) SetNetworkServiceType(networkServiceType NSURLRequestNetworkServiceType)
func (*NSURLSessionConfiguration) SetProtocolClasses ¶
func (o *NSURLSessionConfiguration) SetProtocolClasses(protocolClasses *NSArray[objc.Class])
func (*NSURLSessionConfiguration) SetRequestCachePolicy ¶
func (o *NSURLSessionConfiguration) SetRequestCachePolicy(requestCachePolicy NSURLRequestCachePolicy)
func (*NSURLSessionConfiguration) SetRequiresDNSSECValidation ¶
func (o *NSURLSessionConfiguration) SetRequiresDNSSECValidation(requiresDNSSECValidation bool)
func (*NSURLSessionConfiguration) SetSessionSendsLaunchEvents ¶
func (o *NSURLSessionConfiguration) SetSessionSendsLaunchEvents(sessionSendsLaunchEvents bool)
func (*NSURLSessionConfiguration) SetSharedContainerIdentifier ¶
func (o *NSURLSessionConfiguration) SetSharedContainerIdentifier(sharedContainerIdentifier *NSString)
func (*NSURLSessionConfiguration) SetShouldUseExtendedBackgroundIdleMode
deprecated
func (o *NSURLSessionConfiguration) SetShouldUseExtendedBackgroundIdleMode(shouldUseExtendedBackgroundIdleMode bool)
Deprecated: Not supported
func (*NSURLSessionConfiguration) SetTLSMaximumSupportedProtocol
deprecated
func (o *NSURLSessionConfiguration) SetTLSMaximumSupportedProtocol(tLSMaximumSupportedProtocol security.SSLProtocol)
Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSURLSessionConfiguration) SetTLSMaximumSupportedProtocolVersion ¶
func (o *NSURLSessionConfiguration) SetTLSMaximumSupportedProtocolVersion(tLSMaximumSupportedProtocolVersion security.Tls_protocol_version_t)
func (*NSURLSessionConfiguration) SetTLSMinimumSupportedProtocol
deprecated
func (o *NSURLSessionConfiguration) SetTLSMinimumSupportedProtocol(tLSMinimumSupportedProtocol security.SSLProtocol)
Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSURLSessionConfiguration) SetTLSMinimumSupportedProtocolVersion ¶
func (o *NSURLSessionConfiguration) SetTLSMinimumSupportedProtocolVersion(tLSMinimumSupportedProtocolVersion security.Tls_protocol_version_t)
func (*NSURLSessionConfiguration) SetTimeoutIntervalForRequest ¶
func (o *NSURLSessionConfiguration) SetTimeoutIntervalForRequest(timeoutIntervalForRequest float64)
func (*NSURLSessionConfiguration) SetTimeoutIntervalForResource ¶
func (o *NSURLSessionConfiguration) SetTimeoutIntervalForResource(timeoutIntervalForResource float64)
func (*NSURLSessionConfiguration) SetURLCache ¶
func (o *NSURLSessionConfiguration) SetURLCache(uRLCache *NSURLCache)
func (*NSURLSessionConfiguration) SetURLCredentialStorage ¶
func (o *NSURLSessionConfiguration) SetURLCredentialStorage(uRLCredentialStorage *NSURLCredentialStorage)
func (*NSURLSessionConfiguration) SetUsesClassicLoadingMode ¶
func (o *NSURLSessionConfiguration) SetUsesClassicLoadingMode(usesClassicLoadingMode bool)
func (*NSURLSessionConfiguration) SetWaitsForConnectivity ¶
func (o *NSURLSessionConfiguration) SetWaitsForConnectivity(waitsForConnectivity bool)
func (*NSURLSessionConfiguration) SharedContainerIdentifier ¶
func (o *NSURLSessionConfiguration) SharedContainerIdentifier() *NSString
func (*NSURLSessionConfiguration) ShouldUseExtendedBackgroundIdleMode
deprecated
func (o *NSURLSessionConfiguration) ShouldUseExtendedBackgroundIdleMode() bool
Deprecated: Not supported
func (*NSURLSessionConfiguration) TLSMaximumSupportedProtocol
deprecated
func (o *NSURLSessionConfiguration) TLSMaximumSupportedProtocol() security.SSLProtocol
Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSURLSessionConfiguration) TLSMaximumSupportedProtocolVersion ¶
func (o *NSURLSessionConfiguration) TLSMaximumSupportedProtocolVersion() security.Tls_protocol_version_t
func (*NSURLSessionConfiguration) TLSMinimumSupportedProtocol
deprecated
func (o *NSURLSessionConfiguration) TLSMinimumSupportedProtocol() security.SSLProtocol
Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSURLSessionConfiguration) TLSMinimumSupportedProtocolVersion ¶
func (o *NSURLSessionConfiguration) TLSMinimumSupportedProtocolVersion() security.Tls_protocol_version_t
func (*NSURLSessionConfiguration) TimeoutIntervalForRequest ¶
func (o *NSURLSessionConfiguration) TimeoutIntervalForRequest() float64
func (*NSURLSessionConfiguration) TimeoutIntervalForResource ¶
func (o *NSURLSessionConfiguration) TimeoutIntervalForResource() float64
func (*NSURLSessionConfiguration) URLCache ¶
func (o *NSURLSessionConfiguration) URLCache() *NSURLCache
func (*NSURLSessionConfiguration) URLCredentialStorage ¶
func (o *NSURLSessionConfiguration) URLCredentialStorage() *NSURLCredentialStorage
func (*NSURLSessionConfiguration) UsesClassicLoadingMode ¶
func (o *NSURLSessionConfiguration) UsesClassicLoadingMode() bool
func (*NSURLSessionConfiguration) WaitsForConnectivity ¶
func (o *NSURLSessionConfiguration) WaitsForConnectivity() bool
type NSURLSessionDataDelegate ¶
type NSURLSessionDataDelegate interface {
NSURLSessionTaskDelegate
}
NSURLSessionDataDelegate wraps the ObjC protocol NSURLSessionDataDelegate.
type NSURLSessionDataTask ¶
type NSURLSessionDataTask struct {
NSURLSessionTask
}
A URL session task that returns downloaded data directly to the app in memory.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessiondatatask
func NSURLSessionDataTaskFromID ¶
func NSURLSessionDataTaskFromID(id objc.ID) *NSURLSessionDataTask
func NSURLSessionDataTaskNew
deprecated
func NSURLSessionDataTaskNew() *NSURLSessionDataTask
Deprecated: Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances
func (*NSURLSessionDataTask) Init
deprecated
func (o *NSURLSessionDataTask) Init() *NSURLSessionDataTask
Deprecated: Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances
type NSURLSessionDelayedRequestDisposition ¶
type NSURLSessionDelayedRequestDisposition int64
The action to take on a delayed URL session task.
const ( NSURLSessionDelayedRequestContinueLoading NSURLSessionDelayedRequestDisposition = 0 NSURLSessionDelayedRequestUseNewRequest NSURLSessionDelayedRequestDisposition = 1 NSURLSessionDelayedRequestCancel NSURLSessionDelayedRequestDisposition = 2 )
func (NSURLSessionDelayedRequestDisposition) String ¶
func (e NSURLSessionDelayedRequestDisposition) String() string
type NSURLSessionDelegate ¶
type NSURLSessionDelegate interface {
}
NSURLSessionDelegate wraps the ObjC protocol NSURLSessionDelegate.
type NSURLSessionDownloadDelegate ¶
type NSURLSessionDownloadDelegate interface {
NSURLSessionTaskDelegate
URLSessionDownloadTaskDidFinishDownloadingToURL(session *NSURLSession, downloadTask *NSURLSessionDownloadTask, location *NSURL)
}
NSURLSessionDownloadDelegate wraps the ObjC protocol NSURLSessionDownloadDelegate.
type NSURLSessionDownloadTask ¶
type NSURLSessionDownloadTask struct {
NSURLSessionTask
}
A URL session task that stores downloaded data to a file.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessiondownloadtask
func NSURLSessionDownloadTaskFromID ¶
func NSURLSessionDownloadTaskFromID(id objc.ID) *NSURLSessionDownloadTask
func NSURLSessionDownloadTaskNew
deprecated
func NSURLSessionDownloadTaskNew() *NSURLSessionDownloadTask
Deprecated: Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances
func (*NSURLSessionDownloadTask) CancelByProducingResumeData ¶
func (o *NSURLSessionDownloadTask) CancelByProducingResumeData(completionHandler func(*NSData))
func (*NSURLSessionDownloadTask) Init
deprecated
func (o *NSURLSessionDownloadTask) Init() *NSURLSessionDownloadTask
Deprecated: Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances
type NSURLSessionResponseDisposition ¶
type NSURLSessionResponseDisposition int64
Constants indicating how a data or upload session should proceed after receiving the initial headers.
const ( NSURLSessionResponseCancel NSURLSessionResponseDisposition = 0 NSURLSessionResponseAllow NSURLSessionResponseDisposition = 1 NSURLSessionResponseBecomeDownload NSURLSessionResponseDisposition = 2 NSURLSessionResponseBecomeStream NSURLSessionResponseDisposition = 3 )
func (NSURLSessionResponseDisposition) String ¶
func (e NSURLSessionResponseDisposition) String() string
type NSURLSessionStreamDelegate ¶
type NSURLSessionStreamDelegate interface {
NSURLSessionTaskDelegate
}
NSURLSessionStreamDelegate wraps the ObjC protocol NSURLSessionStreamDelegate.
type NSURLSessionStreamTask ¶
type NSURLSessionStreamTask struct {
NSURLSessionTask
}
A URL session task that is stream-based.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessionstreamtask
func NSURLSessionStreamTaskFromID ¶
func NSURLSessionStreamTaskFromID(id objc.ID) *NSURLSessionStreamTask
func NSURLSessionStreamTaskNew
deprecated
func NSURLSessionStreamTaskNew() *NSURLSessionStreamTask
Deprecated: Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances
func (*NSURLSessionStreamTask) CaptureStreams ¶
func (o *NSURLSessionStreamTask) CaptureStreams()
func (*NSURLSessionStreamTask) CloseRead ¶
func (o *NSURLSessionStreamTask) CloseRead()
func (*NSURLSessionStreamTask) CloseWrite ¶
func (o *NSURLSessionStreamTask) CloseWrite()
func (*NSURLSessionStreamTask) Init
deprecated
func (o *NSURLSessionStreamTask) Init() *NSURLSessionStreamTask
Deprecated: Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances
func (*NSURLSessionStreamTask) ReadDataOfMinLengthMaxLengthTimeoutCompletionHandler ¶
func (*NSURLSessionStreamTask) StartSecureConnection ¶
func (o *NSURLSessionStreamTask) StartSecureConnection()
func (*NSURLSessionStreamTask) StopSecureConnection
deprecated
func (o *NSURLSessionStreamTask) StopSecureConnection()
Deprecated: TLS cannot be disabled once it is enabled
func (*NSURLSessionStreamTask) WriteDataTimeoutCompletionHandler ¶
func (o *NSURLSessionStreamTask) WriteDataTimeoutCompletionHandler(data *NSData, timeout float64, completionHandler func(unsafe.Pointer))
type NSURLSessionTask ¶
type NSURLSessionTask struct {
NSObject
}
A task, like downloading a specific resource, performed in a URL session.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessiontask
func NSURLSessionTaskFromID ¶
func NSURLSessionTaskFromID(id objc.ID) *NSURLSessionTask
func NSURLSessionTaskNew
deprecated
func NSURLSessionTaskNew() *NSURLSessionTask
Deprecated: Not supported
func (*NSURLSessionTask) Cancel ¶
func (o *NSURLSessionTask) Cancel()
func (*NSURLSessionTask) CountOfBytesClientExpectsToReceive ¶
func (o *NSURLSessionTask) CountOfBytesClientExpectsToReceive() int64
func (*NSURLSessionTask) CountOfBytesClientExpectsToSend ¶
func (o *NSURLSessionTask) CountOfBytesClientExpectsToSend() int64
func (*NSURLSessionTask) CountOfBytesExpectedToReceive ¶
func (o *NSURLSessionTask) CountOfBytesExpectedToReceive() int64
func (*NSURLSessionTask) CountOfBytesExpectedToSend ¶
func (o *NSURLSessionTask) CountOfBytesExpectedToSend() int64
func (*NSURLSessionTask) CountOfBytesReceived ¶
func (o *NSURLSessionTask) CountOfBytesReceived() int64
func (*NSURLSessionTask) CountOfBytesSent ¶
func (o *NSURLSessionTask) CountOfBytesSent() int64
func (*NSURLSessionTask) CurrentRequest ¶
func (o *NSURLSessionTask) CurrentRequest() *NSURLRequest
func (*NSURLSessionTask) Delegate ¶
func (o *NSURLSessionTask) Delegate() NSURLSessionTaskDelegate
func (*NSURLSessionTask) EarliestBeginDate ¶
func (o *NSURLSessionTask) EarliestBeginDate() *NSDate
func (*NSURLSessionTask) Error ¶
func (o *NSURLSessionTask) Error() unsafe.Pointer
func (*NSURLSessionTask) Init
deprecated
func (o *NSURLSessionTask) Init() *NSURLSessionTask
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 (o *NSURLSessionTask) State() NSURLSessionTaskState
func (*NSURLSessionTask) Suspend ¶
func (o *NSURLSessionTask) Suspend()
func (*NSURLSessionTask) TaskDescription ¶
func (o *NSURLSessionTask) TaskDescription() *NSString
func (*NSURLSessionTask) TaskIdentifier ¶
func (o *NSURLSessionTask) TaskIdentifier() uint
type NSURLSessionTaskDelegate ¶
type NSURLSessionTaskDelegate interface {
NSURLSessionDelegate
}
NSURLSessionTaskDelegate wraps the ObjC protocol NSURLSessionTaskDelegate.
type NSURLSessionTaskMetrics ¶
type NSURLSessionTaskMetrics struct {
NSObject
}
An object encapsulating the metrics for a session task.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessiontaskmetrics
func NSURLSessionTaskMetricsFromID ¶
func NSURLSessionTaskMetricsFromID(id objc.ID) *NSURLSessionTaskMetrics
func NSURLSessionTaskMetricsNew
deprecated
func NSURLSessionTaskMetricsNew() *NSURLSessionTaskMetrics
Deprecated: Not supported
func (*NSURLSessionTaskMetrics) Init
deprecated
func (o *NSURLSessionTaskMetrics) Init() *NSURLSessionTaskMetrics
Deprecated: Not supported
func (*NSURLSessionTaskMetrics) RedirectCount ¶
func (o *NSURLSessionTaskMetrics) RedirectCount() uint
func (*NSURLSessionTaskMetrics) TaskInterval ¶
func (o *NSURLSessionTaskMetrics) TaskInterval() *NSDateInterval
func (*NSURLSessionTaskMetrics) TransactionMetrics ¶
func (o *NSURLSessionTaskMetrics) TransactionMetrics() *NSArray[*NSURLSessionTaskTransactionMetrics]
type NSURLSessionTaskMetricsDomainResolutionProtocol ¶
type NSURLSessionTaskMetricsDomainResolutionProtocol int64
const ( NSURLSessionTaskMetricsDomainResolutionProtocolUnknown NSURLSessionTaskMetricsDomainResolutionProtocol = 0 NSURLSessionTaskMetricsDomainResolutionProtocolUDP NSURLSessionTaskMetricsDomainResolutionProtocol = 1 NSURLSessionTaskMetricsDomainResolutionProtocolTCP NSURLSessionTaskMetricsDomainResolutionProtocol = 2 NSURLSessionTaskMetricsDomainResolutionProtocolTLS NSURLSessionTaskMetricsDomainResolutionProtocol = 3 NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS NSURLSessionTaskMetricsDomainResolutionProtocol = 4 )
func (NSURLSessionTaskMetricsDomainResolutionProtocol) String ¶
func (e NSURLSessionTaskMetricsDomainResolutionProtocol) String() string
type NSURLSessionTaskMetricsResourceFetchType ¶
type NSURLSessionTaskMetricsResourceFetchType int64
The manner in which a resource is fetched.
const ( NSURLSessionTaskMetricsResourceFetchTypeUnknown NSURLSessionTaskMetricsResourceFetchType = 0 NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad NSURLSessionTaskMetricsResourceFetchType = 1 NSURLSessionTaskMetricsResourceFetchTypeServerPush NSURLSessionTaskMetricsResourceFetchType = 2 NSURLSessionTaskMetricsResourceFetchTypeLocalCache NSURLSessionTaskMetricsResourceFetchType = 3 )
func (NSURLSessionTaskMetricsResourceFetchType) String ¶
func (e NSURLSessionTaskMetricsResourceFetchType) String() string
type NSURLSessionTaskState ¶
type NSURLSessionTaskState int64
Constants for determining the current state of a task.
const ( NSURLSessionTaskStateRunning NSURLSessionTaskState = 0 NSURLSessionTaskStateSuspended NSURLSessionTaskState = 1 NSURLSessionTaskStateCanceling NSURLSessionTaskState = 2 NSURLSessionTaskStateCompleted NSURLSessionTaskState = 3 )
func (NSURLSessionTaskState) String ¶
func (e NSURLSessionTaskState) String() string
type NSURLSessionTaskTransactionMetrics ¶
type NSURLSessionTaskTransactionMetrics struct {
NSObject
}
An object that encapsualtes the performance metrics collected by the URL Loading System during the execution of a session task.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics
func NSURLSessionTaskTransactionMetricsFromID ¶
func NSURLSessionTaskTransactionMetricsFromID(id objc.ID) *NSURLSessionTaskTransactionMetrics
func NSURLSessionTaskTransactionMetricsNew
deprecated
func NSURLSessionTaskTransactionMetricsNew() *NSURLSessionTaskTransactionMetrics
Deprecated: Not supported
func (*NSURLSessionTaskTransactionMetrics) ConnectEndDate ¶
func (o *NSURLSessionTaskTransactionMetrics) ConnectEndDate() *NSDate
func (*NSURLSessionTaskTransactionMetrics) ConnectStartDate ¶
func (o *NSURLSessionTaskTransactionMetrics) ConnectStartDate() *NSDate
func (*NSURLSessionTaskTransactionMetrics) CountOfRequestBodyBytesBeforeEncoding ¶
func (o *NSURLSessionTaskTransactionMetrics) CountOfRequestBodyBytesBeforeEncoding() int64
func (*NSURLSessionTaskTransactionMetrics) CountOfRequestBodyBytesSent ¶
func (o *NSURLSessionTaskTransactionMetrics) CountOfRequestBodyBytesSent() int64
func (*NSURLSessionTaskTransactionMetrics) CountOfRequestHeaderBytesSent ¶
func (o *NSURLSessionTaskTransactionMetrics) CountOfRequestHeaderBytesSent() int64
func (*NSURLSessionTaskTransactionMetrics) CountOfResponseBodyBytesAfterDecoding ¶
func (o *NSURLSessionTaskTransactionMetrics) CountOfResponseBodyBytesAfterDecoding() int64
func (*NSURLSessionTaskTransactionMetrics) CountOfResponseBodyBytesReceived ¶
func (o *NSURLSessionTaskTransactionMetrics) CountOfResponseBodyBytesReceived() int64
func (*NSURLSessionTaskTransactionMetrics) CountOfResponseHeaderBytesReceived ¶
func (o *NSURLSessionTaskTransactionMetrics) CountOfResponseHeaderBytesReceived() int64
func (*NSURLSessionTaskTransactionMetrics) DomainLookupEndDate ¶
func (o *NSURLSessionTaskTransactionMetrics) DomainLookupEndDate() *NSDate
func (*NSURLSessionTaskTransactionMetrics) DomainLookupStartDate ¶
func (o *NSURLSessionTaskTransactionMetrics) DomainLookupStartDate() *NSDate
func (*NSURLSessionTaskTransactionMetrics) DomainResolutionProtocol ¶
func (o *NSURLSessionTaskTransactionMetrics) DomainResolutionProtocol() NSURLSessionTaskMetricsDomainResolutionProtocol
func (*NSURLSessionTaskTransactionMetrics) FetchStartDate ¶
func (o *NSURLSessionTaskTransactionMetrics) FetchStartDate() *NSDate
func (*NSURLSessionTaskTransactionMetrics) Init
deprecated
func (o *NSURLSessionTaskTransactionMetrics) Init() *NSURLSessionTaskTransactionMetrics
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 (o *NSURLSessionTaskTransactionMetrics) LocalPort() *NSNumber
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 (o *NSURLSessionTaskTransactionMetrics) RemotePort() *NSNumber
func (*NSURLSessionTaskTransactionMetrics) Request ¶
func (o *NSURLSessionTaskTransactionMetrics) Request() *NSURLRequest
func (*NSURLSessionTaskTransactionMetrics) RequestEndDate ¶
func (o *NSURLSessionTaskTransactionMetrics) RequestEndDate() *NSDate
func (*NSURLSessionTaskTransactionMetrics) RequestStartDate ¶
func (o *NSURLSessionTaskTransactionMetrics) RequestStartDate() *NSDate
func (*NSURLSessionTaskTransactionMetrics) ResourceFetchType ¶
func (o *NSURLSessionTaskTransactionMetrics) ResourceFetchType() NSURLSessionTaskMetricsResourceFetchType
func (*NSURLSessionTaskTransactionMetrics) Response ¶
func (o *NSURLSessionTaskTransactionMetrics) Response() *NSURLResponse
func (*NSURLSessionTaskTransactionMetrics) ResponseEndDate ¶
func (o *NSURLSessionTaskTransactionMetrics) ResponseEndDate() *NSDate
func (*NSURLSessionTaskTransactionMetrics) ResponseStartDate ¶
func (o *NSURLSessionTaskTransactionMetrics) ResponseStartDate() *NSDate
func (*NSURLSessionTaskTransactionMetrics) SecureConnectionEndDate ¶
func (o *NSURLSessionTaskTransactionMetrics) SecureConnectionEndDate() *NSDate
func (*NSURLSessionTaskTransactionMetrics) SecureConnectionStartDate ¶
func (o *NSURLSessionTaskTransactionMetrics) SecureConnectionStartDate() *NSDate
type NSURLSessionUploadTask ¶
type NSURLSessionUploadTask struct {
NSURLSessionDataTask
}
A URL session task that uploads data to the network in a request body.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessionuploadtask
func NSURLSessionUploadTaskFromID ¶
func NSURLSessionUploadTaskFromID(id objc.ID) *NSURLSessionUploadTask
func NSURLSessionUploadTaskNew
deprecated
func NSURLSessionUploadTaskNew() *NSURLSessionUploadTask
Deprecated: Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances
func (*NSURLSessionUploadTask) CancelByProducingResumeData ¶
func (o *NSURLSessionUploadTask) CancelByProducingResumeData(completionHandler func(*NSData))
Cancels an upload and calls the completion handler with resume data for later use. resumeData will be nil if the server does not support the latest resumable uploads Internet-Draft from the HTTP Working Group, found at https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/ - Parameter completionHandler: The completion handler to call when the upload has been successfully canceled.
func (*NSURLSessionUploadTask) Init
deprecated
func (o *NSURLSessionUploadTask) Init() *NSURLSessionUploadTask
Deprecated: Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances
type NSURLSessionWebSocketCloseCode ¶
type NSURLSessionWebSocketCloseCode int64
A code that indicates why a WebSocket connection closed.
const ( NSURLSessionWebSocketCloseCodeInvalid NSURLSessionWebSocketCloseCode = 0 NSURLSessionWebSocketCloseCodeNormalClosure NSURLSessionWebSocketCloseCode = 1000 NSURLSessionWebSocketCloseCodeGoingAway NSURLSessionWebSocketCloseCode = 1001 NSURLSessionWebSocketCloseCodeProtocolError NSURLSessionWebSocketCloseCode = 1002 NSURLSessionWebSocketCloseCodeUnsupportedData NSURLSessionWebSocketCloseCode = 1003 NSURLSessionWebSocketCloseCodeNoStatusReceived NSURLSessionWebSocketCloseCode = 1005 NSURLSessionWebSocketCloseCodeAbnormalClosure NSURLSessionWebSocketCloseCode = 1006 NSURLSessionWebSocketCloseCodeInvalidFramePayloadData NSURLSessionWebSocketCloseCode = 1007 NSURLSessionWebSocketCloseCodePolicyViolation NSURLSessionWebSocketCloseCode = 1008 NSURLSessionWebSocketCloseCodeMessageTooBig NSURLSessionWebSocketCloseCode = 1009 NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing NSURLSessionWebSocketCloseCode = 1010 NSURLSessionWebSocketCloseCodeInternalServerError NSURLSessionWebSocketCloseCode = 1011 NSURLSessionWebSocketCloseCodeTLSHandshakeFailure NSURLSessionWebSocketCloseCode = 1015 )
func (NSURLSessionWebSocketCloseCode) String ¶
func (e NSURLSessionWebSocketCloseCode) String() 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 (o *NSURLSessionWebSocketMessage) Data() *NSData
func (*NSURLSessionWebSocketMessage) InitWithData ¶
func (o *NSURLSessionWebSocketMessage) InitWithData(data *NSData) *NSURLSessionWebSocketMessage
func (*NSURLSessionWebSocketMessage) InitWithString ¶
func (o *NSURLSessionWebSocketMessage) InitWithString(string_ *NSString) *NSURLSessionWebSocketMessage
func (*NSURLSessionWebSocketMessage) String ¶
func (o *NSURLSessionWebSocketMessage) String() *NSString
func (*NSURLSessionWebSocketMessage) Type ¶
func (o *NSURLSessionWebSocketMessage) Type() NSURLSessionWebSocketMessageType
type NSURLSessionWebSocketMessageType ¶
type NSURLSessionWebSocketMessageType int64
An enumeration of the types of messages sent and received.
const ( NSURLSessionWebSocketMessageTypeData NSURLSessionWebSocketMessageType = 0 NSURLSessionWebSocketMessageTypeString NSURLSessionWebSocketMessageType = 1 )
func (NSURLSessionWebSocketMessageType) String ¶
func (e NSURLSessionWebSocketMessageType) String() string
type NSURLSessionWebSocketTask ¶
type NSURLSessionWebSocketTask struct {
NSURLSessionTask
}
A URL session task that communicates over the WebSockets protocol standard.
Apple documentation: https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask
func NSURLSessionWebSocketTaskFromID ¶
func NSURLSessionWebSocketTaskFromID(id objc.ID) *NSURLSessionWebSocketTask
func (*NSURLSessionWebSocketTask) CancelWithCloseCodeReason ¶
func (o *NSURLSessionWebSocketTask) CancelWithCloseCodeReason(closeCode NSURLSessionWebSocketCloseCode, reason *NSData)
func (*NSURLSessionWebSocketTask) CloseCode ¶
func (o *NSURLSessionWebSocketTask) CloseCode() NSURLSessionWebSocketCloseCode
func (*NSURLSessionWebSocketTask) CloseReason ¶
func (o *NSURLSessionWebSocketTask) CloseReason() *NSData
func (*NSURLSessionWebSocketTask) MaximumMessageSize ¶
func (o *NSURLSessionWebSocketTask) MaximumMessageSize() int
func (*NSURLSessionWebSocketTask) ReceiveMessageWithCompletionHandler ¶
func (o *NSURLSessionWebSocketTask) ReceiveMessageWithCompletionHandler(completionHandler func(*NSURLSessionWebSocketMessage, unsafe.Pointer))
Reads a WebSocket message once all the frames of the message are available.
func (*NSURLSessionWebSocketTask) SendMessageCompletionHandler ¶
func (o *NSURLSessionWebSocketTask) SendMessageCompletionHandler(message *NSURLSessionWebSocketMessage, completionHandler func(unsafe.Pointer))
Sends a WebSocket message, receiving the result in a completion handler.
func (*NSURLSessionWebSocketTask) SendPingWithPongReceiveHandler ¶
func (o *NSURLSessionWebSocketTask) SendPingWithPongReceiveHandler(pongReceiveHandler func(unsafe.Pointer))
func (*NSURLSessionWebSocketTask) SetMaximumMessageSize ¶
func (o *NSURLSessionWebSocketTask) SetMaximumMessageSize(maximumMessageSize int)
type NSUUID ¶
type NSUUID struct {
NSObject
}
A universally unique value that can be used to identify types, interfaces, and other items.
Apple documentation: https://developer.apple.com/documentation/foundation/nsuuid
func NSUUIDFromID ¶
func NSUUIDUUID ¶
func NSUUIDUUID() *NSUUID
Create and returns a new UUID with RFC 4122 version 4 random bytes.
func (*NSUUID) Compare ¶
func (o *NSUUID) Compare(otherUUID *NSUUID) NSComparisonResult
Compares the receiver to another NSUUID in constant time.
func (*NSUUID) InitWithUUIDBytes ¶
Initializes a new UUID with the given bytes.
func (*NSUUID) InitWithUUIDString ¶
Initializes a new UUID with the formatted string.
func (*NSUUID) UUIDString ¶
type NSUbiquitousKeyValueStore ¶
type NSUbiquitousKeyValueStore struct {
NSObject
}
An iCloud-based container of key-value pairs you share among instances of your app running on a person’s devices.
Apple documentation: https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore
func NSUbiquitousKeyValueStoreDefaultStore ¶
func NSUbiquitousKeyValueStoreDefaultStore() *NSUbiquitousKeyValueStore
func NSUbiquitousKeyValueStoreFromID ¶
func NSUbiquitousKeyValueStoreFromID(id objc.ID) *NSUbiquitousKeyValueStore
func (*NSUbiquitousKeyValueStore) ArrayForKey ¶
func (o *NSUbiquitousKeyValueStore) ArrayForKey(aKey *NSString) *NSArray[objc.ID]
Returns the array associated with the specified key.
func (*NSUbiquitousKeyValueStore) BoolForKey ¶
func (o *NSUbiquitousKeyValueStore) BoolForKey(aKey *NSString) bool
Returns the Boolean value associated with the specified key.
func (*NSUbiquitousKeyValueStore) DataForKey ¶
func (o *NSUbiquitousKeyValueStore) DataForKey(aKey *NSString) *NSData
Returns the data object associated with the specified key.
func (*NSUbiquitousKeyValueStore) DictionaryForKey ¶
func (o *NSUbiquitousKeyValueStore) DictionaryForKey(aKey *NSString) *NSDictionary[*NSString, objc.ID]
Returns the dictionary object associated with the specified key.
func (*NSUbiquitousKeyValueStore) DictionaryRepresentation ¶
func (o *NSUbiquitousKeyValueStore) DictionaryRepresentation() *NSDictionary[*NSString, objc.ID]
func (*NSUbiquitousKeyValueStore) DoubleForKey ¶
func (o *NSUbiquitousKeyValueStore) DoubleForKey(aKey *NSString) float64
Returns the double value associated with the specified key.
func (*NSUbiquitousKeyValueStore) LongLongForKey ¶
func (o *NSUbiquitousKeyValueStore) LongLongForKey(aKey *NSString) int64
Returns the 64-bit integer value associated with the specified key.
func (*NSUbiquitousKeyValueStore) ObjectForKey ¶
func (o *NSUbiquitousKeyValueStore) ObjectForKey(aKey *NSString) objc.ID
Returns the object associated with the specified key.
func (*NSUbiquitousKeyValueStore) RemoveObjectForKey ¶
func (o *NSUbiquitousKeyValueStore) RemoveObjectForKey(aKey *NSString)
Removes the value for the specified key from the iCloud key-value store.
func (*NSUbiquitousKeyValueStore) SetArrayForKey ¶
func (o *NSUbiquitousKeyValueStore) SetArrayForKey(anArray *NSArray[objc.ID], aKey *NSString)
Sets the value of the specified key to an array of property list objects.
func (*NSUbiquitousKeyValueStore) SetBoolForKey ¶
func (o *NSUbiquitousKeyValueStore) SetBoolForKey(value bool, aKey *NSString)
Sets the value of the specified key to a Boolean value.
func (*NSUbiquitousKeyValueStore) SetDataForKey ¶
func (o *NSUbiquitousKeyValueStore) SetDataForKey(aData *NSData, aKey *NSString)
Sets the value of the specified key to a data object.
func (*NSUbiquitousKeyValueStore) SetDictionaryForKey ¶
func (o *NSUbiquitousKeyValueStore) SetDictionaryForKey(aDictionary *NSDictionary[*NSString, objc.ID], aKey *NSString)
Sets the value of the specified key to a dictionary of property list objects.
func (*NSUbiquitousKeyValueStore) SetDoubleForKey ¶
func (o *NSUbiquitousKeyValueStore) SetDoubleForKey(value float64, aKey *NSString)
Sets the value of the specified key to a double value.
func (*NSUbiquitousKeyValueStore) SetLongLongForKey ¶
func (o *NSUbiquitousKeyValueStore) SetLongLongForKey(value int64, aKey *NSString)
Sets the value of the specified key to a 64-bit integer value.
func (*NSUbiquitousKeyValueStore) SetObjectForKey ¶
func (o *NSUbiquitousKeyValueStore) SetObjectForKey(anObject objc.ID, aKey *NSString)
Sets the value of the specified key to a property list object.
func (*NSUbiquitousKeyValueStore) SetStringForKey ¶
func (o *NSUbiquitousKeyValueStore) SetStringForKey(aString *NSString, aKey *NSString)
Sets the value of the specified key to a string value.
func (*NSUbiquitousKeyValueStore) StringForKey ¶
func (o *NSUbiquitousKeyValueStore) StringForKey(aKey *NSString) *NSString
Returns the string associated with the specified key.
func (*NSUbiquitousKeyValueStore) Synchronize ¶
func (o *NSUbiquitousKeyValueStore) Synchronize() bool
Synchronizes the in-memory keys and values with the ones stored in iCloud.
type NSUnarchiver ¶
type NSUnarchiver struct {
NSCoder
}
A decoder that restores data from an archive.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunarchiver Deprecated: Use NSKeyedUnarchiver instead
func NSUnarchiverFromID ¶
func NSUnarchiverFromID(id objc.ID) *NSUnarchiver
func (*NSUnarchiver) ClassNameDecodedForArchiveClassName ¶
func (o *NSUnarchiver) ClassNameDecodedForArchiveClassName(inArchiveName *NSString) *NSString
Returns the name of the class that will be used when instantiating objects whose ostensible class, according to the archived data, is a given name.
func (*NSUnarchiver) DecodeClassNameAsClassName ¶
func (o *NSUnarchiver) DecodeClassNameAsClassName(inArchiveName *NSString, trueName *NSString)
Instructs the receiver to use the class with a given name when instantiating objects whose ostensible class, according to the archived data, is another given name.
func (*NSUnarchiver) InitForReadingWithData ¶
func (o *NSUnarchiver) InitForReadingWithData(data *NSData) *NSUnarchiver
Returns an NSUnarchiver object initialized to read an archive from a given data object.
func (*NSUnarchiver) IsAtEnd ¶
func (o *NSUnarchiver) IsAtEnd() bool
func (*NSUnarchiver) ReplaceObjectWithObject ¶
func (o *NSUnarchiver) ReplaceObjectWithObject(object objc.ID, newObject objc.ID)
Causes the receiver to substitute one given object for another whenever the latter is extracted from the archive.
type NSUndoManager ¶
type NSUndoManager struct {
NSObject
}
A general-purpose recorder of operations that enables undo and redo.
Apple documentation: https://developer.apple.com/documentation/foundation/nsundomanager
func NSUndoManagerFromID ¶
func NSUndoManagerFromID(id objc.ID) *NSUndoManager
func (*NSUndoManager) BeginUndoGrouping ¶
func (o *NSUndoManager) BeginUndoGrouping()
Marks the beginning of an undo group. All individual undo operations before a subsequent “endUndoGrouping“ message are grouped together and reversed by a later “undo“ message. By default undo groups are begun automatically at the start of the event loop, but you can begin your own undo groups with this method, and nest them within other groups. This method posts an “NSUndoManagerCheckpointNotification“ unless a top-level undo is in progress. It posts an “NSUndoManagerDidOpenUndoGroupNotification“ if a new group was successfully created.
func (*NSUndoManager) CanRedo ¶
func (o *NSUndoManager) CanRedo() bool
Whether the receiver has any actions to redo. Because any undo operation registered clears the redo stack, this method posts an NSUndoManagerCheckpointNotification to allow clients to apply their pending operations before testing the redo stack.
func (*NSUndoManager) CanUndo ¶
func (o *NSUndoManager) CanUndo() bool
Whether the receiver has any actions to undo. The return value does not mean you can safely invoke “undo“ or “undoNestedGroup“ — you may have to close open undo groups first.
func (*NSUndoManager) DisableUndoRegistration ¶
func (o *NSUndoManager) DisableUndoRegistration()
Disables the recording of undo operations, whether by “registerUndoWithTarget:selector:object:“ or by invocation-based undo. This method can be invoked multiple times by multiple clients. The “enableUndoRegistration“ method must be invoked an equal number of times to re-enable undo registration.
func (*NSUndoManager) EnableUndoRegistration ¶
func (o *NSUndoManager) EnableUndoRegistration()
Enables the recording of undo operations. Because undo registration is enabled by default, this is used to balance a prior “disableUndoRegistration“. Undo registration isn’t actually re-enabled until an enable message balances the last disable message in effect. Raises an NSInternalInconsistencyException if invoked while no disableUndoRegistration() message is in effect.
func (*NSUndoManager) EndUndoGrouping ¶
func (o *NSUndoManager) EndUndoGrouping()
Marks the end of an undo group. All individual undo operations back to the matching “beginUndoGrouping“ message are grouped together and reversed by a later “undo“ or “undoNestedGroup“ message. Undo groups can be nested, thus providing functionality similar to nested transactions. Raises an “NSInternalInconsistencyException“ if there’s no “beginUndoGrouping“ message in effect. This method posts an “NSUndoManagerCheckpointNotification“ and an “NSUndoManagerDidCloseUndoGroupNotification“ just before the group is closed.
func (*NSUndoManager) GroupingLevel ¶
func (o *NSUndoManager) GroupingLevel() int
The number of nested undo groups (or redo groups, if Redo was invoked last) in the current event loop. An integer indicating the number of nested groups. If `0` is returned, there is no open undo or redo group.
func (*NSUndoManager) GroupsByEvent ¶
func (o *NSUndoManager) GroupsByEvent() bool
A Boolean value that indicates whether the receiver automatically creates undo groups around each pass of the run loop. If `true`, the receiver automatically creates undo groups around each pass of the run loop. The default is `true`. If you turn automatic grouping off, you must close groups explicitly before invoking either “undo“ or “undoNestedGroup“.
func (*NSUndoManager) IsRedoing ¶
func (o *NSUndoManager) IsRedoing() bool
Whether the receiver is in the process of performing its “redo“ method.
func (*NSUndoManager) IsUndoRegistrationEnabled ¶
func (o *NSUndoManager) IsUndoRegistrationEnabled() bool
Whether the recording of undo operations is enabled.
func (*NSUndoManager) IsUndoing ¶
func (o *NSUndoManager) IsUndoing() bool
Whether the receiver is in the process of performing its “undo“ or “undoNestedGroup“ method.
func (*NSUndoManager) LevelsOfUndo ¶
func (o *NSUndoManager) LevelsOfUndo() uint
The maximum number of top-level undo groups the receiver holds. An integer specifying the number of undo groups. A limit of 0 indicates no limit, so old undo groups are never dropped. When ending an undo group results in the number of groups exceeding this limit, the oldest groups are dropped from the stack. The default is 0. If you change the limit to a level below the prior limit, old undo groups are immediately dropped.
func (*NSUndoManager) PrepareWithInvocationTarget ¶
func (o *NSUndoManager) PrepareWithInvocationTarget(target objc.ID) objc.ID
Prepares the undo manager for invocation-based undo with the given target as the subject of the next undo operation. For example, when called as: [[undoManager prepareWithInvocationTarget:target] setFont:oldFont color:oldColor] When undo is called, the specified target will be called with [target setFont:oldFont color:oldColor] - Parameter target: The target of the undo operation. The undo manager maintains a weak reference to `target`. - Returns: A proxy object that forwards messages to the undo manager for recording as undo actions.
func (*NSUndoManager) Redo ¶
func (o *NSUndoManager) Redo()
Performs the operations in the last group on the redo stack, if there are any, recording them on the undo stack as a single group. Raises an “NSInternalInconsistencyException“ if the method is invoked during an undo operation. This method posts an “NSUndoManagerCheckpointNotification“ and “NSUndoManagerWillRedoChangeNotification“ before it performs the redo operation, and it posts the “NSUndoManagerDidRedoChangeNotification“ after it performs the redo operation.
func (*NSUndoManager) RedoActionIsDiscardable ¶
func (o *NSUndoManager) RedoActionIsDiscardable() bool
Whether the next redo action is discardable. Specifies that the latest redo action may be safely discarded when a document can not be saved for any reason. These are typically actions that don’t affect persistent state. An example might be an redo action that changes the viewable area of a document.
func (*NSUndoManager) RedoActionName ¶
func (o *NSUndoManager) RedoActionName() *NSString
The name identifying the redo action. The redo action name. Returns an empty string if no action name has been assigned or if there is nothing to redo. For example, if the menu title is “Redo Delete,” the string returned is “Delete.”
func (*NSUndoManager) RedoActionUserInfoValueForKey ¶
func (o *NSUndoManager) RedoActionUserInfoValueForKey(key *NSString) objc.ID
Get a value from the redo action's user info - Parameter key: Which value should be retrieved
func (*NSUndoManager) RedoCount ¶
func (o *NSUndoManager) RedoCount() uint
How many times `redo` can be invoked before there are no more actions left to be redone
func (*NSUndoManager) RedoMenuItemTitle ¶
func (o *NSUndoManager) RedoMenuItemTitle() *NSString
The complete title of the Redo menu command, for example, “Redo Paste.” Returns “Redo” if no action name has been assigned or nil if there is nothing to redo.
func (*NSUndoManager) RedoMenuTitleForUndoActionName ¶
func (o *NSUndoManager) RedoMenuTitleForUndoActionName(actionName *NSString) *NSString
Returns the complete, localized title of the Redo menu command for the action identified by the given name. Override this method if you want to customize the localization behaviour. This method is invoked by “redoMenuItemTitle“. - Parameter actionName: The name of the redo action. - Returns: The localized title of the redo menu item.
func (*NSUndoManager) RegisterUndoWithTargetHandler ¶
func (o *NSUndoManager) RegisterUndoWithTargetHandler(target objc.ID, undoHandler func(objc.ID))
Records a single undo operation for a given target so that when the manager performs an undo, it executes the specified block.
func (*NSUndoManager) RegisterUndoWithTargetSelectorObject ¶
func (o *NSUndoManager) RegisterUndoWithTargetSelectorObject(target objc.ID, selector objc.SEL, object objc.ID)
Registers the selector of the specified target to implement a single undo operation that the target receives. - Parameter target: The target of the undo operation. The undo manager maintains an unowned reference to `target` to prevent retain cycles. - Parameter selector: The selector for the undo operation. - Parameter object: The argument sent with the selector. The undo manager maintains a strong reference to `object`
func (*NSUndoManager) RemoveAllActions ¶
func (o *NSUndoManager) RemoveAllActions()
Clears the undo and redo stacks and re-enables the receiver.
func (*NSUndoManager) RemoveAllActionsWithTarget ¶
func (o *NSUndoManager) RemoveAllActionsWithTarget(target objc.ID)
Clears the undo and redo stacks of all operations involving the specified target as the recipient of the undo message. Doesn't re-enable the receiver if it's disabled. - Parameter target: The recepient of the undo mesages to be removed.
func (*NSUndoManager) RunLoopModes ¶
func (o *NSUndoManager) RunLoopModes() *NSArray[*NSString]
The modes governing the types of input handled during a cycle of the run loop. An array of string constants specifying the current run-loop modes. By default, the sole run-loop mode is “NSDefaultRunLoopMode“ (which excludes data from “NSConnection“ objects). Some examples of other uses are to limit the input to data received during a mouse-tracking session by setting the mode to “NSEventTrackingRunLoopMode“, or limit it to data received from a modal panel with “NSModalPanelRunLoopMode“.
func (*NSUndoManager) SetActionIsDiscardable ¶
func (o *NSUndoManager) SetActionIsDiscardable(discardable bool)
Sets whether the next undo or redo action is discardable. Specifies that the latest undo action may be safely discarded when a document can not be saved for any reason. An example might be an undo action that changes the viewable area of a document. To find out if an undo group contains only discardable actions, look for the “NSUndoManagerGroupIsDiscardableKey“ in the `userInfo` dictionary of the “NSUndoManagerWillCloseUndoGroupNotification“. - Parameter discardable: Specifies if the action is discardable. YES if the next undo or redo action can be discarded; NO otherwise.
func (*NSUndoManager) SetActionName ¶
func (o *NSUndoManager) SetActionName(actionName *NSString)
Sets the name of the action associated with the Undo or Redo command. If `actionName` is an empty string, the undo manager removes the action name currently associated with the menu command. - Parameter actionName: The name of the action.
func (*NSUndoManager) SetActionUserInfoValueForKey ¶
func (o *NSUndoManager) SetActionUserInfoValueForKey(info objc.ID, key *NSString)
Set user info for the Undo or Redo command. - Parameter info: Value to be saved in the user info - Parameter key: Key at which the object should be saved
func (*NSUndoManager) SetGroupsByEvent ¶
func (o *NSUndoManager) SetGroupsByEvent(groupsByEvent bool)
func (*NSUndoManager) SetLevelsOfUndo ¶
func (o *NSUndoManager) SetLevelsOfUndo(levelsOfUndo uint)
func (*NSUndoManager) SetRunLoopModes ¶
func (o *NSUndoManager) SetRunLoopModes(runLoopModes *NSArray[*NSString])
func (*NSUndoManager) Undo ¶
func (o *NSUndoManager) Undo()
Closes the top-level undo group if necessary and invokes “undoNestedGroup“. This method also invokes “endUndoGrouping“ if the nesting level is 1. Raises an “NSInternalInconsistencyException“ if more than one undo group is open (that is, if the last group isn’t at the top level). This method posts an “NSUndoManagerCheckpointNotification“.
func (*NSUndoManager) UndoActionIsDiscardable ¶
func (o *NSUndoManager) UndoActionIsDiscardable() bool
Whether the next undo action is discardable. Specifies that the latest undo action may be safely discarded when a document can not be saved for any reason. These are typically actions that don’t affect persistent state. An example might be an undo action that changes the viewable area of a document.
func (*NSUndoManager) UndoActionName ¶
func (o *NSUndoManager) UndoActionName() *NSString
The name identifying the undo action. The undo action name. Returns an empty string if no action name has been assigned or if there is nothing to undo. For example, if the menu title is “Undo Delete,” the string returned is “Delete.”
func (*NSUndoManager) UndoActionUserInfoValueForKey ¶
func (o *NSUndoManager) UndoActionUserInfoValueForKey(key *NSString) objc.ID
Get a value from the undo action's user info - Parameter key: Which value should be retrieved
func (*NSUndoManager) UndoCount ¶
func (o *NSUndoManager) UndoCount() uint
How many times `undo` can be invoked before there are no more actions left to be undone
func (*NSUndoManager) UndoMenuItemTitle ¶
func (o *NSUndoManager) UndoMenuItemTitle() *NSString
The complete title of the Undo menu command, for example, “Undo Paste.” Returns “Undo” if no action name has been assigned or nil if there is nothing to undo.
func (*NSUndoManager) UndoMenuTitleForUndoActionName ¶
func (o *NSUndoManager) UndoMenuTitleForUndoActionName(actionName *NSString) *NSString
Returns the complete, localized title of the Undo menu command for the action identified by the given name. Override this method if you want to customize the localization behaviour. This method is invoked by “undoMenuItemTitle“. - Parameter actionName: The name of the undo action. - Returns: The localized title of the undo menu item.
func (*NSUndoManager) UndoNestedGroup ¶
func (o *NSUndoManager) UndoNestedGroup()
Performs the undo operations in the last undo group (whether top-level or nested), recording the operations on the redo stack as a single group. Raises an “NSInternalInconsistencyException“ if any undo operations have been registered since the last “enableUndoRegistration“ message. This method posts an “NSUndoManagerCheckpointNotification“ and “NSUndoManagerWillUndoChangeNotification“ before it performs the undo operation, and it posts an “NSUndoManagerDidUndoChangeNotification“ after it performs the undo operation.
type NSUniqueIDSpecifier ¶
type NSUniqueIDSpecifier struct {
NSScriptObjectSpecifier
}
A specifier for an object in a collection (or container) by unique ID.
Apple documentation: https://developer.apple.com/documentation/foundation/nsuniqueidspecifier
func NSUniqueIDSpecifierFromID ¶
func NSUniqueIDSpecifierFromID(id objc.ID) *NSUniqueIDSpecifier
func (*NSUniqueIDSpecifier) InitWithCoder ¶
func (o *NSUniqueIDSpecifier) InitWithCoder(inCoder *NSCoder) *NSUniqueIDSpecifier
func (*NSUniqueIDSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyUniqueID ¶
func (o *NSUniqueIDSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyUniqueID(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString, uniqueID objc.ID) *NSUniqueIDSpecifier
Returns an NSUniqueIDSpecifier object, initialized with the given arguments.
func (*NSUniqueIDSpecifier) SetUniqueID ¶
func (o *NSUniqueIDSpecifier) SetUniqueID(uniqueID objc.ID)
func (*NSUniqueIDSpecifier) UniqueID ¶
func (o *NSUniqueIDSpecifier) UniqueID() objc.ID
type NSUnit ¶
type NSUnit struct {
NSObject
}
An abstract class representing a unit of measure.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunit
func NSUnitFromID ¶
type NSUnitAcceleration ¶
type NSUnitAcceleration struct {
NSDimension
}
A unit of measure for acceleration.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitacceleration
func NSUnitAccelerationFromID ¶
func NSUnitAccelerationFromID(id objc.ID) *NSUnitAcceleration
func NSUnitAccelerationGravity ¶
func NSUnitAccelerationGravity() *NSUnitAcceleration
func NSUnitAccelerationMetersPerSecondSquared ¶
func NSUnitAccelerationMetersPerSecondSquared() *NSUnitAcceleration
type NSUnitAngle ¶
type NSUnitAngle struct {
NSDimension
}
A unit of measure for planar angle and rotation.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitangle
func NSUnitAngleArcMinutes ¶
func NSUnitAngleArcMinutes() *NSUnitAngle
func NSUnitAngleArcSeconds ¶
func NSUnitAngleArcSeconds() *NSUnitAngle
func NSUnitAngleDegrees ¶
func NSUnitAngleDegrees() *NSUnitAngle
func NSUnitAngleFromID ¶
func NSUnitAngleFromID(id objc.ID) *NSUnitAngle
func NSUnitAngleGradians ¶
func NSUnitAngleGradians() *NSUnitAngle
func NSUnitAngleRadians ¶
func NSUnitAngleRadians() *NSUnitAngle
func NSUnitAngleRevolutions ¶
func NSUnitAngleRevolutions() *NSUnitAngle
type NSUnitArea ¶
type NSUnitArea struct {
NSDimension
}
A unit of measure for area.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitarea
func NSUnitAreaAcres ¶
func NSUnitAreaAcres() *NSUnitArea
func NSUnitAreaAres ¶
func NSUnitAreaAres() *NSUnitArea
func NSUnitAreaFromID ¶
func NSUnitAreaFromID(id objc.ID) *NSUnitArea
func NSUnitAreaHectares ¶
func NSUnitAreaHectares() *NSUnitArea
func NSUnitAreaSquareCentimeters ¶
func NSUnitAreaSquareCentimeters() *NSUnitArea
func NSUnitAreaSquareFeet ¶
func NSUnitAreaSquareFeet() *NSUnitArea
func NSUnitAreaSquareInches ¶
func NSUnitAreaSquareInches() *NSUnitArea
func NSUnitAreaSquareKilometers ¶
func NSUnitAreaSquareKilometers() *NSUnitArea
func NSUnitAreaSquareMegameters ¶
func NSUnitAreaSquareMegameters() *NSUnitArea
func NSUnitAreaSquareMeters ¶
func NSUnitAreaSquareMeters() *NSUnitArea
func NSUnitAreaSquareMicrometers ¶
func NSUnitAreaSquareMicrometers() *NSUnitArea
func NSUnitAreaSquareMiles ¶
func NSUnitAreaSquareMiles() *NSUnitArea
func NSUnitAreaSquareMillimeters ¶
func NSUnitAreaSquareMillimeters() *NSUnitArea
func NSUnitAreaSquareNanometers ¶
func NSUnitAreaSquareNanometers() *NSUnitArea
func NSUnitAreaSquareYards ¶
func NSUnitAreaSquareYards() *NSUnitArea
type NSUnitConcentrationMass ¶
type NSUnitConcentrationMass struct {
NSDimension
}
A unit of measure for concentration of mass.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitconcentrationmass
func NSUnitConcentrationMassFromID ¶
func NSUnitConcentrationMassFromID(id objc.ID) *NSUnitConcentrationMass
func NSUnitConcentrationMassGramsPerLiter ¶
func NSUnitConcentrationMassGramsPerLiter() *NSUnitConcentrationMass
func NSUnitConcentrationMassMilligramsPerDeciliter ¶
func NSUnitConcentrationMassMilligramsPerDeciliter() *NSUnitConcentrationMass
func NSUnitConcentrationMassMillimolesPerLiterWithGramsPerMole ¶
func NSUnitConcentrationMassMillimolesPerLiterWithGramsPerMole(gramsPerMole float64) *NSUnitConcentrationMass
type NSUnitConverter ¶
type NSUnitConverter struct {
NSObject
}
An abstract class that provides a description of how to convert a unit to and from the base unit of its dimension.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitconverter
func NSUnitConverterFromID ¶
func NSUnitConverterFromID(id objc.ID) *NSUnitConverter
func (*NSUnitConverter) BaseUnitValueFromValue ¶
func (o *NSUnitConverter) BaseUnitValueFromValue(value float64) float64
func (*NSUnitConverter) ValueFromBaseUnitValue ¶
func (o *NSUnitConverter) ValueFromBaseUnitValue(baseUnitValue float64) float64
type NSUnitConverterLinear ¶
type NSUnitConverterLinear struct {
NSUnitConverter
}
A description of how to convert between units using a linear equation.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitconverterlinear
func NSUnitConverterLinearFromID ¶
func NSUnitConverterLinearFromID(id objc.ID) *NSUnitConverterLinear
func (*NSUnitConverterLinear) Coefficient ¶
func (o *NSUnitConverterLinear) Coefficient() float64
func (*NSUnitConverterLinear) Constant ¶
func (o *NSUnitConverterLinear) Constant() float64
func (*NSUnitConverterLinear) InitWithCoefficient ¶
func (o *NSUnitConverterLinear) InitWithCoefficient(coefficient float64) *NSUnitConverterLinear
func (*NSUnitConverterLinear) InitWithCoefficientConstant ¶
func (o *NSUnitConverterLinear) InitWithCoefficientConstant(coefficient float64, constant float64) *NSUnitConverterLinear
type NSUnitDispersion ¶
type NSUnitDispersion struct {
NSDimension
}
A unit of measure for specific quantities of dispersion.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitdispersion
func NSUnitDispersionFromID ¶
func NSUnitDispersionFromID(id objc.ID) *NSUnitDispersion
func NSUnitDispersionPartsPerMillion ¶
func NSUnitDispersionPartsPerMillion() *NSUnitDispersion
type NSUnitDuration ¶
type NSUnitDuration struct {
NSDimension
}
A unit of measure for a duration of time.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitduration
func NSUnitDurationFromID ¶
func NSUnitDurationFromID(id objc.ID) *NSUnitDuration
func NSUnitDurationHours ¶
func NSUnitDurationHours() *NSUnitDuration
func NSUnitDurationMicroseconds ¶
func NSUnitDurationMicroseconds() *NSUnitDuration
func NSUnitDurationMilliseconds ¶
func NSUnitDurationMilliseconds() *NSUnitDuration
func NSUnitDurationMinutes ¶
func NSUnitDurationMinutes() *NSUnitDuration
func NSUnitDurationNanoseconds ¶
func NSUnitDurationNanoseconds() *NSUnitDuration
func NSUnitDurationPicoseconds ¶
func NSUnitDurationPicoseconds() *NSUnitDuration
func NSUnitDurationSeconds ¶
func NSUnitDurationSeconds() *NSUnitDuration
type NSUnitElectricCharge ¶
type NSUnitElectricCharge struct {
NSDimension
}
A unit of measure for electric charge.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitelectriccharge
func NSUnitElectricChargeAmpereHours ¶
func NSUnitElectricChargeAmpereHours() *NSUnitElectricCharge
func NSUnitElectricChargeCoulombs ¶
func NSUnitElectricChargeCoulombs() *NSUnitElectricCharge
func NSUnitElectricChargeFromID ¶
func NSUnitElectricChargeFromID(id objc.ID) *NSUnitElectricCharge
func NSUnitElectricChargeKiloampereHours ¶
func NSUnitElectricChargeKiloampereHours() *NSUnitElectricCharge
func NSUnitElectricChargeMegaampereHours ¶
func NSUnitElectricChargeMegaampereHours() *NSUnitElectricCharge
func NSUnitElectricChargeMicroampereHours ¶
func NSUnitElectricChargeMicroampereHours() *NSUnitElectricCharge
func NSUnitElectricChargeMilliampereHours ¶
func NSUnitElectricChargeMilliampereHours() *NSUnitElectricCharge
type NSUnitElectricCurrent ¶
type NSUnitElectricCurrent struct {
NSDimension
}
A unit of measure for electric current.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitelectriccurrent
func NSUnitElectricCurrentAmperes ¶
func NSUnitElectricCurrentAmperes() *NSUnitElectricCurrent
func NSUnitElectricCurrentFromID ¶
func NSUnitElectricCurrentFromID(id objc.ID) *NSUnitElectricCurrent
func NSUnitElectricCurrentKiloamperes ¶
func NSUnitElectricCurrentKiloamperes() *NSUnitElectricCurrent
func NSUnitElectricCurrentMegaamperes ¶
func NSUnitElectricCurrentMegaamperes() *NSUnitElectricCurrent
func NSUnitElectricCurrentMicroamperes ¶
func NSUnitElectricCurrentMicroamperes() *NSUnitElectricCurrent
func NSUnitElectricCurrentMilliamperes ¶
func NSUnitElectricCurrentMilliamperes() *NSUnitElectricCurrent
type NSUnitElectricPotentialDifference ¶
type NSUnitElectricPotentialDifference struct {
NSDimension
}
A unit of measure for electric potential difference.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitelectricpotentialdifference
func NSUnitElectricPotentialDifferenceFromID ¶
func NSUnitElectricPotentialDifferenceFromID(id objc.ID) *NSUnitElectricPotentialDifference
func NSUnitElectricPotentialDifferenceKilovolts ¶
func NSUnitElectricPotentialDifferenceKilovolts() *NSUnitElectricPotentialDifference
func NSUnitElectricPotentialDifferenceMegavolts ¶
func NSUnitElectricPotentialDifferenceMegavolts() *NSUnitElectricPotentialDifference
func NSUnitElectricPotentialDifferenceMicrovolts ¶
func NSUnitElectricPotentialDifferenceMicrovolts() *NSUnitElectricPotentialDifference
func NSUnitElectricPotentialDifferenceMillivolts ¶
func NSUnitElectricPotentialDifferenceMillivolts() *NSUnitElectricPotentialDifference
func NSUnitElectricPotentialDifferenceVolts ¶
func NSUnitElectricPotentialDifferenceVolts() *NSUnitElectricPotentialDifference
type NSUnitElectricResistance ¶
type NSUnitElectricResistance struct {
NSDimension
}
A unit of measure for electric resistance.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitelectricresistance
func NSUnitElectricResistanceFromID ¶
func NSUnitElectricResistanceFromID(id objc.ID) *NSUnitElectricResistance
func NSUnitElectricResistanceKiloohms ¶
func NSUnitElectricResistanceKiloohms() *NSUnitElectricResistance
func NSUnitElectricResistanceMegaohms ¶
func NSUnitElectricResistanceMegaohms() *NSUnitElectricResistance
func NSUnitElectricResistanceMicroohms ¶
func NSUnitElectricResistanceMicroohms() *NSUnitElectricResistance
func NSUnitElectricResistanceMilliohms ¶
func NSUnitElectricResistanceMilliohms() *NSUnitElectricResistance
func NSUnitElectricResistanceOhms ¶
func NSUnitElectricResistanceOhms() *NSUnitElectricResistance
type NSUnitEnergy ¶
type NSUnitEnergy struct {
NSDimension
}
A unit of measure for energy.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitenergy
func NSUnitEnergyCalories ¶
func NSUnitEnergyCalories() *NSUnitEnergy
func NSUnitEnergyFromID ¶
func NSUnitEnergyFromID(id objc.ID) *NSUnitEnergy
func NSUnitEnergyJoules ¶
func NSUnitEnergyJoules() *NSUnitEnergy
func NSUnitEnergyKilocalories ¶
func NSUnitEnergyKilocalories() *NSUnitEnergy
func NSUnitEnergyKilojoules ¶
func NSUnitEnergyKilojoules() *NSUnitEnergy
func NSUnitEnergyKilowattHours ¶
func NSUnitEnergyKilowattHours() *NSUnitEnergy
type NSUnitFrequency ¶
type NSUnitFrequency struct {
NSDimension
}
A unit of measure for frequency.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitfrequency
func NSUnitFrequencyFramesPerSecond ¶
func NSUnitFrequencyFramesPerSecond() *NSUnitFrequency
func NSUnitFrequencyFromID ¶
func NSUnitFrequencyFromID(id objc.ID) *NSUnitFrequency
func NSUnitFrequencyGigahertz ¶
func NSUnitFrequencyGigahertz() *NSUnitFrequency
func NSUnitFrequencyHertz ¶
func NSUnitFrequencyHertz() *NSUnitFrequency
func NSUnitFrequencyKilohertz ¶
func NSUnitFrequencyKilohertz() *NSUnitFrequency
func NSUnitFrequencyMegahertz ¶
func NSUnitFrequencyMegahertz() *NSUnitFrequency
func NSUnitFrequencyMicrohertz ¶
func NSUnitFrequencyMicrohertz() *NSUnitFrequency
func NSUnitFrequencyMillihertz ¶
func NSUnitFrequencyMillihertz() *NSUnitFrequency
func NSUnitFrequencyNanohertz ¶
func NSUnitFrequencyNanohertz() *NSUnitFrequency
func NSUnitFrequencyTerahertz ¶
func NSUnitFrequencyTerahertz() *NSUnitFrequency
type NSUnitFuelEfficiency ¶
type NSUnitFuelEfficiency struct {
NSDimension
}
A unit of measure for fuel efficiency.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitfuelefficiency
func NSUnitFuelEfficiencyFromID ¶
func NSUnitFuelEfficiencyFromID(id objc.ID) *NSUnitFuelEfficiency
func NSUnitFuelEfficiencyLitersPer100Kilometers ¶
func NSUnitFuelEfficiencyLitersPer100Kilometers() *NSUnitFuelEfficiency
func NSUnitFuelEfficiencyMilesPerGallon ¶
func NSUnitFuelEfficiencyMilesPerGallon() *NSUnitFuelEfficiency
func NSUnitFuelEfficiencyMilesPerImperialGallon ¶
func NSUnitFuelEfficiencyMilesPerImperialGallon() *NSUnitFuelEfficiency
type NSUnitIlluminance ¶
type NSUnitIlluminance struct {
NSDimension
}
A unit of measure for illuminance.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitilluminance
func NSUnitIlluminanceFromID ¶
func NSUnitIlluminanceFromID(id objc.ID) *NSUnitIlluminance
func NSUnitIlluminanceLux ¶
func NSUnitIlluminanceLux() *NSUnitIlluminance
type NSUnitInformationStorage ¶
type NSUnitInformationStorage struct {
NSDimension
}
A unit of measure for quantities of information.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitinformationstorage
func NSUnitInformationStorageBits ¶
func NSUnitInformationStorageBits() *NSUnitInformationStorage
func NSUnitInformationStorageBytes ¶
func NSUnitInformationStorageBytes() *NSUnitInformationStorage
func NSUnitInformationStorageExabits ¶
func NSUnitInformationStorageExabits() *NSUnitInformationStorage
func NSUnitInformationStorageExabytes ¶
func NSUnitInformationStorageExabytes() *NSUnitInformationStorage
func NSUnitInformationStorageExbibits ¶
func NSUnitInformationStorageExbibits() *NSUnitInformationStorage
func NSUnitInformationStorageExbibytes ¶
func NSUnitInformationStorageExbibytes() *NSUnitInformationStorage
func NSUnitInformationStorageFromID ¶
func NSUnitInformationStorageFromID(id objc.ID) *NSUnitInformationStorage
func NSUnitInformationStorageGibibits ¶
func NSUnitInformationStorageGibibits() *NSUnitInformationStorage
func NSUnitInformationStorageGibibytes ¶
func NSUnitInformationStorageGibibytes() *NSUnitInformationStorage
func NSUnitInformationStorageGigabits ¶
func NSUnitInformationStorageGigabits() *NSUnitInformationStorage
func NSUnitInformationStorageGigabytes ¶
func NSUnitInformationStorageGigabytes() *NSUnitInformationStorage
func NSUnitInformationStorageKibibits ¶
func NSUnitInformationStorageKibibits() *NSUnitInformationStorage
func NSUnitInformationStorageKibibytes ¶
func NSUnitInformationStorageKibibytes() *NSUnitInformationStorage
func NSUnitInformationStorageKilobits ¶
func NSUnitInformationStorageKilobits() *NSUnitInformationStorage
func NSUnitInformationStorageKilobytes ¶
func NSUnitInformationStorageKilobytes() *NSUnitInformationStorage
func NSUnitInformationStorageMebibits ¶
func NSUnitInformationStorageMebibits() *NSUnitInformationStorage
func NSUnitInformationStorageMebibytes ¶
func NSUnitInformationStorageMebibytes() *NSUnitInformationStorage
func NSUnitInformationStorageMegabits ¶
func NSUnitInformationStorageMegabits() *NSUnitInformationStorage
func NSUnitInformationStorageMegabytes ¶
func NSUnitInformationStorageMegabytes() *NSUnitInformationStorage
func NSUnitInformationStorageNibbles ¶
func NSUnitInformationStorageNibbles() *NSUnitInformationStorage
func NSUnitInformationStoragePebibits ¶
func NSUnitInformationStoragePebibits() *NSUnitInformationStorage
func NSUnitInformationStoragePebibytes ¶
func NSUnitInformationStoragePebibytes() *NSUnitInformationStorage
func NSUnitInformationStoragePetabits ¶
func NSUnitInformationStoragePetabits() *NSUnitInformationStorage
func NSUnitInformationStoragePetabytes ¶
func NSUnitInformationStoragePetabytes() *NSUnitInformationStorage
func NSUnitInformationStorageTebibits ¶
func NSUnitInformationStorageTebibits() *NSUnitInformationStorage
func NSUnitInformationStorageTebibytes ¶
func NSUnitInformationStorageTebibytes() *NSUnitInformationStorage
func NSUnitInformationStorageTerabits ¶
func NSUnitInformationStorageTerabits() *NSUnitInformationStorage
func NSUnitInformationStorageTerabytes ¶
func NSUnitInformationStorageTerabytes() *NSUnitInformationStorage
func NSUnitInformationStorageYobibits ¶
func NSUnitInformationStorageYobibits() *NSUnitInformationStorage
func NSUnitInformationStorageYobibytes ¶
func NSUnitInformationStorageYobibytes() *NSUnitInformationStorage
func NSUnitInformationStorageYottabits ¶
func NSUnitInformationStorageYottabits() *NSUnitInformationStorage
func NSUnitInformationStorageYottabytes ¶
func NSUnitInformationStorageYottabytes() *NSUnitInformationStorage
func NSUnitInformationStorageZebibits ¶
func NSUnitInformationStorageZebibits() *NSUnitInformationStorage
func NSUnitInformationStorageZebibytes ¶
func NSUnitInformationStorageZebibytes() *NSUnitInformationStorage
func NSUnitInformationStorageZettabits ¶
func NSUnitInformationStorageZettabits() *NSUnitInformationStorage
func NSUnitInformationStorageZettabytes ¶
func NSUnitInformationStorageZettabytes() *NSUnitInformationStorage
type NSUnitLength ¶
type NSUnitLength struct {
NSDimension
}
A unit of measure for length.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitlength
func NSUnitLengthAstronomicalUnits ¶
func NSUnitLengthAstronomicalUnits() *NSUnitLength
func NSUnitLengthCentimeters ¶
func NSUnitLengthCentimeters() *NSUnitLength
func NSUnitLengthDecameters ¶
func NSUnitLengthDecameters() *NSUnitLength
func NSUnitLengthDecimeters ¶
func NSUnitLengthDecimeters() *NSUnitLength
func NSUnitLengthFathoms ¶
func NSUnitLengthFathoms() *NSUnitLength
func NSUnitLengthFeet ¶
func NSUnitLengthFeet() *NSUnitLength
func NSUnitLengthFromID ¶
func NSUnitLengthFromID(id objc.ID) *NSUnitLength
func NSUnitLengthFurlongs ¶
func NSUnitLengthFurlongs() *NSUnitLength
func NSUnitLengthHectometers ¶
func NSUnitLengthHectometers() *NSUnitLength
func NSUnitLengthInches ¶
func NSUnitLengthInches() *NSUnitLength
func NSUnitLengthKilometers ¶
func NSUnitLengthKilometers() *NSUnitLength
func NSUnitLengthLightyears ¶
func NSUnitLengthLightyears() *NSUnitLength
func NSUnitLengthMegameters ¶
func NSUnitLengthMegameters() *NSUnitLength
func NSUnitLengthMeters ¶
func NSUnitLengthMeters() *NSUnitLength
func NSUnitLengthMicrometers ¶
func NSUnitLengthMicrometers() *NSUnitLength
func NSUnitLengthMiles ¶
func NSUnitLengthMiles() *NSUnitLength
func NSUnitLengthMillimeters ¶
func NSUnitLengthMillimeters() *NSUnitLength
func NSUnitLengthNanometers ¶
func NSUnitLengthNanometers() *NSUnitLength
func NSUnitLengthNauticalMiles ¶
func NSUnitLengthNauticalMiles() *NSUnitLength
func NSUnitLengthParsecs ¶
func NSUnitLengthParsecs() *NSUnitLength
func NSUnitLengthPicometers ¶
func NSUnitLengthPicometers() *NSUnitLength
func NSUnitLengthScandinavianMiles ¶
func NSUnitLengthScandinavianMiles() *NSUnitLength
func NSUnitLengthYards ¶
func NSUnitLengthYards() *NSUnitLength
type NSUnitMass ¶
type NSUnitMass struct {
NSDimension
}
A unit of measure for mass.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitmass
func NSUnitMassCarats ¶
func NSUnitMassCarats() *NSUnitMass
func NSUnitMassCentigrams ¶
func NSUnitMassCentigrams() *NSUnitMass
func NSUnitMassDecigrams ¶
func NSUnitMassDecigrams() *NSUnitMass
func NSUnitMassFromID ¶
func NSUnitMassFromID(id objc.ID) *NSUnitMass
func NSUnitMassGrams ¶
func NSUnitMassGrams() *NSUnitMass
func NSUnitMassKilograms ¶
func NSUnitMassKilograms() *NSUnitMass
func NSUnitMassMetricTons ¶
func NSUnitMassMetricTons() *NSUnitMass
func NSUnitMassMicrograms ¶
func NSUnitMassMicrograms() *NSUnitMass
func NSUnitMassMilligrams ¶
func NSUnitMassMilligrams() *NSUnitMass
func NSUnitMassNanograms ¶
func NSUnitMassNanograms() *NSUnitMass
func NSUnitMassOunces ¶
func NSUnitMassOunces() *NSUnitMass
func NSUnitMassOuncesTroy ¶
func NSUnitMassOuncesTroy() *NSUnitMass
func NSUnitMassPicograms ¶
func NSUnitMassPicograms() *NSUnitMass
func NSUnitMassPoundsMass ¶
func NSUnitMassPoundsMass() *NSUnitMass
func NSUnitMassShortTons ¶
func NSUnitMassShortTons() *NSUnitMass
func NSUnitMassSlugs ¶
func NSUnitMassSlugs() *NSUnitMass
func NSUnitMassStones ¶
func NSUnitMassStones() *NSUnitMass
type NSUnitPower ¶
type NSUnitPower struct {
NSDimension
}
A unit of measure for power.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitpower
func NSUnitPowerFemtowatts ¶
func NSUnitPowerFemtowatts() *NSUnitPower
func NSUnitPowerFromID ¶
func NSUnitPowerFromID(id objc.ID) *NSUnitPower
func NSUnitPowerGigawatts ¶
func NSUnitPowerGigawatts() *NSUnitPower
func NSUnitPowerHorsepower ¶
func NSUnitPowerHorsepower() *NSUnitPower
func NSUnitPowerKilowatts ¶
func NSUnitPowerKilowatts() *NSUnitPower
func NSUnitPowerMegawatts ¶
func NSUnitPowerMegawatts() *NSUnitPower
func NSUnitPowerMicrowatts ¶
func NSUnitPowerMicrowatts() *NSUnitPower
func NSUnitPowerMilliwatts ¶
func NSUnitPowerMilliwatts() *NSUnitPower
func NSUnitPowerNanowatts ¶
func NSUnitPowerNanowatts() *NSUnitPower
func NSUnitPowerPicowatts ¶
func NSUnitPowerPicowatts() *NSUnitPower
func NSUnitPowerTerawatts ¶
func NSUnitPowerTerawatts() *NSUnitPower
func NSUnitPowerWatts ¶
func NSUnitPowerWatts() *NSUnitPower
type NSUnitPressure ¶
type NSUnitPressure struct {
NSDimension
}
A unit of measure for pressure.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitpressure
func NSUnitPressureBars ¶
func NSUnitPressureBars() *NSUnitPressure
func NSUnitPressureFromID ¶
func NSUnitPressureFromID(id objc.ID) *NSUnitPressure
func NSUnitPressureGigapascals ¶
func NSUnitPressureGigapascals() *NSUnitPressure
func NSUnitPressureHectopascals ¶
func NSUnitPressureHectopascals() *NSUnitPressure
func NSUnitPressureInchesOfMercury ¶
func NSUnitPressureInchesOfMercury() *NSUnitPressure
func NSUnitPressureKilopascals ¶
func NSUnitPressureKilopascals() *NSUnitPressure
func NSUnitPressureMegapascals ¶
func NSUnitPressureMegapascals() *NSUnitPressure
func NSUnitPressureMillibars ¶
func NSUnitPressureMillibars() *NSUnitPressure
func NSUnitPressureMillimetersOfMercury ¶
func NSUnitPressureMillimetersOfMercury() *NSUnitPressure
func NSUnitPressureNewtonsPerMetersSquared ¶
func NSUnitPressureNewtonsPerMetersSquared() *NSUnitPressure
func NSUnitPressurePoundsForcePerSquareInch ¶
func NSUnitPressurePoundsForcePerSquareInch() *NSUnitPressure
type NSUnitSpeed ¶
type NSUnitSpeed struct {
NSDimension
}
A unit of measure for speed.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitspeed
func NSUnitSpeedFromID ¶
func NSUnitSpeedFromID(id objc.ID) *NSUnitSpeed
func NSUnitSpeedKilometersPerHour ¶
func NSUnitSpeedKilometersPerHour() *NSUnitSpeed
func NSUnitSpeedKnots ¶
func NSUnitSpeedKnots() *NSUnitSpeed
func NSUnitSpeedMetersPerSecond ¶
func NSUnitSpeedMetersPerSecond() *NSUnitSpeed
func NSUnitSpeedMilesPerHour ¶
func NSUnitSpeedMilesPerHour() *NSUnitSpeed
type NSUnitTemperature ¶
type NSUnitTemperature struct {
NSDimension
}
A unit of measure for temperature.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunittemperature
func NSUnitTemperatureCelsius ¶
func NSUnitTemperatureCelsius() *NSUnitTemperature
func NSUnitTemperatureFahrenheit ¶
func NSUnitTemperatureFahrenheit() *NSUnitTemperature
func NSUnitTemperatureFromID ¶
func NSUnitTemperatureFromID(id objc.ID) *NSUnitTemperature
func NSUnitTemperatureKelvin ¶
func NSUnitTemperatureKelvin() *NSUnitTemperature
type NSUnitVolume ¶
type NSUnitVolume struct {
NSDimension
}
A unit of measure for volume.
Apple documentation: https://developer.apple.com/documentation/foundation/nsunitvolume
func NSUnitVolumeAcreFeet ¶
func NSUnitVolumeAcreFeet() *NSUnitVolume
func NSUnitVolumeBushels ¶
func NSUnitVolumeBushels() *NSUnitVolume
func NSUnitVolumeCentiliters ¶
func NSUnitVolumeCentiliters() *NSUnitVolume
func NSUnitVolumeCubicCentimeters ¶
func NSUnitVolumeCubicCentimeters() *NSUnitVolume
func NSUnitVolumeCubicDecimeters ¶
func NSUnitVolumeCubicDecimeters() *NSUnitVolume
func NSUnitVolumeCubicFeet ¶
func NSUnitVolumeCubicFeet() *NSUnitVolume
func NSUnitVolumeCubicInches ¶
func NSUnitVolumeCubicInches() *NSUnitVolume
func NSUnitVolumeCubicKilometers ¶
func NSUnitVolumeCubicKilometers() *NSUnitVolume
func NSUnitVolumeCubicMeters ¶
func NSUnitVolumeCubicMeters() *NSUnitVolume
func NSUnitVolumeCubicMiles ¶
func NSUnitVolumeCubicMiles() *NSUnitVolume
func NSUnitVolumeCubicMillimeters ¶
func NSUnitVolumeCubicMillimeters() *NSUnitVolume
func NSUnitVolumeCubicYards ¶
func NSUnitVolumeCubicYards() *NSUnitVolume
func NSUnitVolumeCups ¶
func NSUnitVolumeCups() *NSUnitVolume
func NSUnitVolumeDeciliters ¶
func NSUnitVolumeDeciliters() *NSUnitVolume
func NSUnitVolumeFluidOunces ¶
func NSUnitVolumeFluidOunces() *NSUnitVolume
func NSUnitVolumeFromID ¶
func NSUnitVolumeFromID(id objc.ID) *NSUnitVolume
func NSUnitVolumeGallons ¶
func NSUnitVolumeGallons() *NSUnitVolume
func NSUnitVolumeImperialFluidOunces ¶
func NSUnitVolumeImperialFluidOunces() *NSUnitVolume
func NSUnitVolumeImperialGallons ¶
func NSUnitVolumeImperialGallons() *NSUnitVolume
func NSUnitVolumeImperialPints ¶
func NSUnitVolumeImperialPints() *NSUnitVolume
func NSUnitVolumeImperialQuarts ¶
func NSUnitVolumeImperialQuarts() *NSUnitVolume
func NSUnitVolumeImperialTablespoons ¶
func NSUnitVolumeImperialTablespoons() *NSUnitVolume
func NSUnitVolumeImperialTeaspoons ¶
func NSUnitVolumeImperialTeaspoons() *NSUnitVolume
func NSUnitVolumeKiloliters ¶
func NSUnitVolumeKiloliters() *NSUnitVolume
func NSUnitVolumeLiters ¶
func NSUnitVolumeLiters() *NSUnitVolume
func NSUnitVolumeMegaliters ¶
func NSUnitVolumeMegaliters() *NSUnitVolume
func NSUnitVolumeMetricCups ¶
func NSUnitVolumeMetricCups() *NSUnitVolume
func NSUnitVolumeMilliliters ¶
func NSUnitVolumeMilliliters() *NSUnitVolume
func NSUnitVolumePints ¶
func NSUnitVolumePints() *NSUnitVolume
func NSUnitVolumeQuarts ¶
func NSUnitVolumeQuarts() *NSUnitVolume
func NSUnitVolumeTablespoons ¶
func NSUnitVolumeTablespoons() *NSUnitVolume
func NSUnitVolumeTeaspoons ¶
func NSUnitVolumeTeaspoons() *NSUnitVolume
type NSUserActivity ¶
type NSUserActivity struct {
NSObject
}
A representation of the state of your app at a moment in time.
Apple documentation: https://developer.apple.com/documentation/foundation/nsuseractivity
func NSUserActivityFromID ¶
func NSUserActivityFromID(id objc.ID) *NSUserActivity
func (*NSUserActivity) ActivityType
deprecated
func (o *NSUserActivity) ActivityType() *NSString
Deprecated: Use initWithActivityType: with a specific activity type string
func (*NSUserActivity) AddUserInfoEntriesFromDictionary ¶
func (o *NSUserActivity) AddUserInfoEntriesFromDictionary(otherDictionary *NSDictionary[objc.ID, objc.ID])
Adds the contents of the specified dictionary to the user info dictionary.
func (*NSUserActivity) BecomeCurrent ¶
func (o *NSUserActivity) BecomeCurrent()
Marks the activity as currently in use by the user.
func (*NSUserActivity) Delegate ¶
func (o *NSUserActivity) Delegate() NSUserActivityDelegate
func (*NSUserActivity) ExpirationDate ¶
func (o *NSUserActivity) ExpirationDate() *NSDate
func (*NSUserActivity) GetContinuationStreamsWithCompletionHandler ¶
func (o *NSUserActivity) GetContinuationStreamsWithCompletionHandler(completionHandler func(*NSInputStream, *NSOutputStream, unsafe.Pointer))
Requests streams back to the originating app.
func (*NSUserActivity) Init ¶
func (o *NSUserActivity) Init() *NSUserActivity
Creates a user activity object using the first activity type declared in the app’s information property list file. Deprecated: Use initWithActivityType: with a specific activity type string
func (*NSUserActivity) InitWithActivityType ¶
func (o *NSUserActivity) InitWithActivityType(activityType *NSString) *NSUserActivity
Creates a user activity object with the specified type.
func (*NSUserActivity) Invalidate ¶
func (o *NSUserActivity) Invalidate()
Invalidates an activity and marks it as no longer eligible for continuation.
func (*NSUserActivity) IsEligibleForHandoff ¶
func (o *NSUserActivity) IsEligibleForHandoff() bool
func (*NSUserActivity) IsEligibleForPublicIndexing ¶
func (o *NSUserActivity) IsEligibleForPublicIndexing() bool
func (*NSUserActivity) IsEligibleForSearch ¶
func (o *NSUserActivity) IsEligibleForSearch() bool
func (*NSUserActivity) Keywords ¶
func (o *NSUserActivity) Keywords() *NSSet[*NSString]
func (*NSUserActivity) NeedsSave ¶
func (o *NSUserActivity) NeedsSave() bool
func (*NSUserActivity) PersistentIdentifier ¶
func (o *NSUserActivity) PersistentIdentifier() *NSString
func (*NSUserActivity) ReferrerURL ¶
func (o *NSUserActivity) ReferrerURL() *NSURL
func (*NSUserActivity) RequiredUserInfoKeys ¶
func (o *NSUserActivity) RequiredUserInfoKeys() *NSSet[*NSString]
func (*NSUserActivity) ResignCurrent ¶
func (o *NSUserActivity) ResignCurrent()
Marks this activity object as inactive without invalidating it.
func (*NSUserActivity) SetDelegate ¶
func (o *NSUserActivity) SetDelegate(delegate NSUserActivityDelegate)
func (*NSUserActivity) SetEligibleForHandoff ¶
func (o *NSUserActivity) SetEligibleForHandoff(eligibleForHandoff bool)
func (*NSUserActivity) SetEligibleForPublicIndexing ¶
func (o *NSUserActivity) SetEligibleForPublicIndexing(eligibleForPublicIndexing bool)
func (*NSUserActivity) SetEligibleForSearch ¶
func (o *NSUserActivity) SetEligibleForSearch(eligibleForSearch bool)
func (*NSUserActivity) SetExpirationDate ¶
func (o *NSUserActivity) SetExpirationDate(expirationDate *NSDate)
func (*NSUserActivity) SetKeywords ¶
func (o *NSUserActivity) SetKeywords(keywords *NSSet[*NSString])
func (*NSUserActivity) SetNeedsSave ¶
func (o *NSUserActivity) SetNeedsSave(needsSave bool)
func (*NSUserActivity) SetPersistentIdentifier ¶
func (o *NSUserActivity) SetPersistentIdentifier(persistentIdentifier *NSString)
func (*NSUserActivity) SetReferrerURL ¶
func (o *NSUserActivity) SetReferrerURL(referrerURL *NSURL)
func (*NSUserActivity) SetRequiredUserInfoKeys ¶
func (o *NSUserActivity) SetRequiredUserInfoKeys(requiredUserInfoKeys *NSSet[*NSString])
func (*NSUserActivity) SetSupportsContinuationStreams ¶
func (o *NSUserActivity) SetSupportsContinuationStreams(supportsContinuationStreams bool)
func (*NSUserActivity) SetTargetContentIdentifier ¶
func (o *NSUserActivity) SetTargetContentIdentifier(targetContentIdentifier *NSString)
func (*NSUserActivity) SetTitle ¶
func (o *NSUserActivity) SetTitle(title *NSString)
func (*NSUserActivity) SetUserInfo ¶
func (o *NSUserActivity) SetUserInfo(userInfo *NSDictionary[objc.ID, objc.ID])
func (*NSUserActivity) SetWebpageURL ¶
func (o *NSUserActivity) SetWebpageURL(webpageURL *NSURL)
func (*NSUserActivity) SupportsContinuationStreams ¶
func (o *NSUserActivity) SupportsContinuationStreams() bool
func (*NSUserActivity) TargetContentIdentifier ¶
func (o *NSUserActivity) TargetContentIdentifier() *NSString
func (*NSUserActivity) Title ¶
func (o *NSUserActivity) Title() *NSString
func (*NSUserActivity) UserInfo ¶
func (o *NSUserActivity) UserInfo() *NSDictionary[objc.ID, objc.ID]
func (*NSUserActivity) WebpageURL ¶
func (o *NSUserActivity) WebpageURL() *NSURL
type NSUserActivityDelegate ¶
type NSUserActivityDelegate interface {
}
NSUserActivityDelegate wraps the ObjC protocol NSUserActivityDelegate.
type NSUserAppleScriptTask ¶
type NSUserAppleScriptTask struct {
NSUserScriptTask
}
An object that executes AppleScript scripts.
Apple documentation: https://developer.apple.com/documentation/foundation/nsuserapplescripttask
func NSUserAppleScriptTaskFromID ¶
func NSUserAppleScriptTaskFromID(id objc.ID) *NSUserAppleScriptTask
func (*NSUserAppleScriptTask) ExecuteWithAppleEventCompletionHandler ¶
func (o *NSUserAppleScriptTask) ExecuteWithAppleEventCompletionHandler(event *NSAppleEventDescriptor, handler func(*NSAppleEventDescriptor, unsafe.Pointer))
Execute the AppleScript script by sending it the specified Apple event.
type NSUserAutomatorTask ¶
type NSUserAutomatorTask struct {
NSUserScriptTask
}
An object that executes Automator workflows.
Apple documentation: https://developer.apple.com/documentation/foundation/nsuserautomatortask
func NSUserAutomatorTaskFromID ¶
func NSUserAutomatorTaskFromID(id objc.ID) *NSUserAutomatorTask
func (*NSUserAutomatorTask) ExecuteWithInputCompletionHandler ¶
func (o *NSUserAutomatorTask) ExecuteWithInputCompletionHandler(input NSSecureCoding, handler func(objc.ID, unsafe.Pointer))
Execute the Automator workflow by providing it as securely coded input.
func (*NSUserAutomatorTask) SetVariables ¶
func (o *NSUserAutomatorTask) SetVariables(variables *NSDictionary[*NSString, objc.ID])
func (*NSUserAutomatorTask) Variables ¶
func (o *NSUserAutomatorTask) Variables() *NSDictionary[*NSString, objc.ID]
type NSUserDefaults ¶
type NSUserDefaults struct {
NSObject
}
An interface to the user’s defaults database, which stores system-wide and app-specific settings.
Apple documentation: https://developer.apple.com/documentation/foundation/nsuserdefaults
func NSUserDefaultsFromID ¶
func NSUserDefaultsFromID(id objc.ID) *NSUserDefaults
func NSUserDefaultsStandardUserDefaults ¶
func NSUserDefaultsStandardUserDefaults() *NSUserDefaults
+standardUserDefaults returns a global instance of NSUserDefaults configured to search the current application's search list.
func (*NSUserDefaults) AddSuiteNamed ¶
func (o *NSUserDefaults) AddSuiteNamed(suiteName *NSString)
-addSuiteNamed: adds the full search list for 'suiteName' as a sub-search-list of the receiver's. The additional search lists are searched after the current domain, but before global defaults. Passing NSGlobalDomain or the current application's bundle identifier is unsupported.
func (*NSUserDefaults) ArrayForKey ¶
func (o *NSUserDefaults) ArrayForKey(defaultName *NSString) *NSArray[objc.ID]
-arrayForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSArray.
func (*NSUserDefaults) BoolForKey ¶
func (o *NSUserDefaults) BoolForKey(defaultName *NSString) bool
-boolForKey: is equivalent to -objectForKey:, except that it converts the returned value to a BOOL. If the value is an NSNumber, NO will be returned if the value is 0, YES otherwise. If the value is an NSString, values of "YES" or "1" will return YES, and values of "NO", "0", or any other string will return NO. If the value is absent or can't be converted to a BOOL, NO will be returned.
func (*NSUserDefaults) DataForKey ¶
func (o *NSUserDefaults) DataForKey(defaultName *NSString) *NSData
-dataForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSData.
func (*NSUserDefaults) DictionaryForKey ¶
func (o *NSUserDefaults) DictionaryForKey(defaultName *NSString) *NSDictionary[*NSString, objc.ID]
-dictionaryForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSDictionary.
func (*NSUserDefaults) DictionaryRepresentation ¶
func (o *NSUserDefaults) DictionaryRepresentation() *NSDictionary[*NSString, objc.ID]
-dictionaryRepresentation returns a composite snapshot of the values in the receiver's search list, such that [[receiver dictionaryRepresentation] objectForKey:x] will return the same thing as [receiver objectForKey:x].
func (*NSUserDefaults) DoubleForKey ¶
func (o *NSUserDefaults) DoubleForKey(defaultName *NSString) float64
-doubleForKey: is similar to -integerForKey:, except that it returns a double, and boolean values will not be converted.
func (*NSUserDefaults) FloatForKey ¶
func (o *NSUserDefaults) FloatForKey(defaultName *NSString) float32
-floatForKey: is similar to -integerForKey:, except that it returns a float, and boolean values will not be converted.
func (*NSUserDefaults) Init ¶
func (o *NSUserDefaults) Init() *NSUserDefaults
-init is equivalent to -initWithSuiteName:nil
func (*NSUserDefaults) InitWithSuiteName ¶
func (o *NSUserDefaults) InitWithSuiteName(suitename *NSString) *NSUserDefaults
-initWithSuiteName: initializes an instance of NSUserDefaults that searches the shared preferences search list for the domain 'suitename'. For example, using the identifier of an application group will cause the receiver to search the preferences for that group. Passing the current application's bundle identifier, NSGlobalDomain, or the corresponding CFPreferences constants is an error. Passing nil will search the default search list.
func (*NSUserDefaults) InitWithUser ¶
func (o *NSUserDefaults) InitWithUser(username *NSString) objc.ID
-initWithUser: is equivalent to -init Deprecated: Use -init instead
func (*NSUserDefaults) IntegerForKey ¶
func (o *NSUserDefaults) IntegerForKey(defaultName *NSString) int
-integerForKey: is equivalent to -objectForKey:, except that it converts the returned value to an NSInteger. If the value is an NSNumber, the result of -integerValue will be returned. If the value is an NSString, it will be converted to NSInteger if possible. If the value is a boolean, it will be converted to either 1 for YES or 0 for NO. If the value is absent or can't be converted to an integer, 0 will be returned.
func (*NSUserDefaults) ObjectForKey ¶
func (o *NSUserDefaults) ObjectForKey(defaultName *NSString) objc.ID
-objectForKey: will search the receiver's search list for a default with the key 'defaultName' and return it. If another process has changed defaults in the search list, NSUserDefaults will automatically update to the latest values. If the key in question has been marked as ubiquitous via a Defaults Configuration File, the latest value may not be immediately available, and the registered value will be returned instead.
func (*NSUserDefaults) ObjectIsForcedForKey ¶
func (o *NSUserDefaults) ObjectIsForcedForKey(key *NSString) bool
func (*NSUserDefaults) ObjectIsForcedForKeyInDomain ¶
func (o *NSUserDefaults) ObjectIsForcedForKeyInDomain(key *NSString, domain *NSString) bool
func (*NSUserDefaults) PersistentDomainForName ¶
func (o *NSUserDefaults) PersistentDomainForName(domainName *NSString) *NSDictionary[*NSString, objc.ID]
-persistentDomainForName: returns a dictionary representation of the search list entry specified by 'domainName', the current user, and any host. Deprecated: Not recommended
func (*NSUserDefaults) PersistentDomainNames ¶
func (o *NSUserDefaults) PersistentDomainNames() *NSArray[objc.ID]
-persistentDomainNames returns an incomplete list of domains that have preferences stored in them. Deprecated: Not recommended
func (*NSUserDefaults) RegisterDefaults ¶
func (o *NSUserDefaults) RegisterDefaults(registrationDictionary *NSDictionary[*NSString, objc.ID])
-registerDefaults: adds the registrationDictionary to the last item in every search list. This means that after NSUserDefaults has looked for a value in every other valid location, it will look in registered defaults, making them useful as a "fallback" value. Registered defaults are never stored between runs of an application, and are visible only to the application that registers them. Default values from Defaults Configuration Files will automatically be registered.
func (*NSUserDefaults) RemoveObjectForKey ¶
func (o *NSUserDefaults) RemoveObjectForKey(defaultName *NSString)
-removeObjectForKey: is equivalent to -[... setObject:nil forKey:defaultName]
func (*NSUserDefaults) RemovePersistentDomainForName ¶
func (o *NSUserDefaults) RemovePersistentDomainForName(domainName *NSString)
-removePersistentDomainForName: removes all values from the search list entry specified by 'domainName', the current user, and any host. The change is persistent.
func (*NSUserDefaults) RemoveSuiteNamed ¶
func (o *NSUserDefaults) RemoveSuiteNamed(suiteName *NSString)
-removeSuiteNamed: removes a sub-searchlist added via -addSuiteNamed:.
func (*NSUserDefaults) RemoveVolatileDomainForName ¶
func (o *NSUserDefaults) RemoveVolatileDomainForName(domainName *NSString)
func (*NSUserDefaults) SetBoolForKey ¶
func (o *NSUserDefaults) SetBoolForKey(value bool, defaultName *NSString)
-setBool:forKey: is equivalent to -setObject:forKey: except that the value is converted from a BOOL to an NSNumber.
func (*NSUserDefaults) SetDoubleForKey ¶
func (o *NSUserDefaults) SetDoubleForKey(value float64, defaultName *NSString)
-setDouble:forKey: is equivalent to -setObject:forKey: except that the value is converted from a double to an NSNumber.
func (*NSUserDefaults) SetFloatForKey ¶
func (o *NSUserDefaults) SetFloatForKey(value float32, defaultName *NSString)
-setFloat:forKey: is equivalent to -setObject:forKey: except that the value is converted from a float to an NSNumber.
func (*NSUserDefaults) SetIntegerForKey ¶
func (o *NSUserDefaults) SetIntegerForKey(value int, defaultName *NSString)
-setInteger:forKey: is equivalent to -setObject:forKey: except that the value is converted from an NSInteger to an NSNumber.
func (*NSUserDefaults) SetObjectForKey ¶
func (o *NSUserDefaults) SetObjectForKey(value objc.ID, defaultName *NSString)
-setObject:forKey: immediately stores a value (or removes the value if nil is passed as the value) for the provided key in the search list entry for the receiver's suite name in the current user and any host, then asynchronously stores the value persistently, where it is made available to other processes.
func (*NSUserDefaults) SetPersistentDomainForName ¶
func (o *NSUserDefaults) SetPersistentDomainForName(domain *NSDictionary[*NSString, objc.ID], domainName *NSString)
-setPersistentDomain:forName: replaces all values in the search list entry specified by 'domainName', the current user, and any host, with the values in 'domain'. The change will be persisted.
func (*NSUserDefaults) SetURLForKey ¶
func (o *NSUserDefaults) SetURLForKey(url *NSURL, defaultName *NSString)
-setURL:forKey is equivalent to -setObject:forKey: except that the value is archived to an NSData. Use -URLForKey: to retrieve values set this way.
func (*NSUserDefaults) SetVolatileDomainForName ¶
func (o *NSUserDefaults) SetVolatileDomainForName(domain *NSDictionary[*NSString, objc.ID], domainName *NSString)
func (*NSUserDefaults) StringArrayForKey ¶
func (o *NSUserDefaults) StringArrayForKey(defaultName *NSString) *NSArray[*NSString]
-stringForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSArray<NSString *>. Note that unlike -stringForKey:, NSNumbers are not converted to NSStrings.
func (*NSUserDefaults) StringForKey ¶
func (o *NSUserDefaults) StringForKey(defaultName *NSString) *NSString
-stringForKey: is equivalent to -objectForKey:, except that it will convert NSNumber values to their NSString representation. If a non-string non-number value is found, nil will be returned.
func (*NSUserDefaults) Synchronize ¶
func (o *NSUserDefaults) Synchronize() bool
-synchronize is deprecated and will be marked with the API_DEPRECATED macro in a future release. -synchronize blocks the calling thread until all in-progress set operations have completed. This is no longer necessary. Replacements for previous uses of -synchronize depend on what the intent of calling synchronize was. If you synchronized... - ...before reading in order to fetch updated values: remove the synchronize call - ...after writing in order to notify another program to read: the other program can use KVO to observe the default without needing to notify - ...before exiting in a non-app (command line tool, agent, or daemon) process: call CFPreferencesAppSynchronize(kCFPreferencesCurrentApplication) - ...for any other reason: remove the synchronize call
func (*NSUserDefaults) URLForKey ¶
func (o *NSUserDefaults) URLForKey(defaultName *NSString) *NSURL
-URLForKey: is equivalent to -objectForKey: except that it converts the returned value to an NSURL. If the value is an NSString path, then it will construct a file URL to that path. If the value is an archived URL from -setURL:forKey: it will be unarchived. If the value is absent or can't be converted to an NSURL, nil will be returned.
func (*NSUserDefaults) VolatileDomainForName ¶
func (o *NSUserDefaults) VolatileDomainForName(domainName *NSString) *NSDictionary[*NSString, objc.ID]
func (*NSUserDefaults) VolatileDomainNames ¶
func (o *NSUserDefaults) VolatileDomainNames() *NSArray[*NSString]
type NSUserNotification ¶
type NSUserNotification struct {
NSObject
}
A notification that can be scheduled for display in the notification center.
Apple documentation: https://developer.apple.com/documentation/foundation/nsusernotification Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API
func NSUserNotificationFromID ¶
func NSUserNotificationFromID(id objc.ID) *NSUserNotification
func (*NSUserNotification) ActionButtonTitle ¶
func (o *NSUserNotification) ActionButtonTitle() *NSString
func (*NSUserNotification) ActivationType ¶
func (o *NSUserNotification) ActivationType() NSUserNotificationActivationType
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 (o *NSUserNotification) Init() *NSUserNotification
func (*NSUserNotification) IsPresented ¶
func (o *NSUserNotification) IsPresented() bool
func (*NSUserNotification) IsRemote ¶
func (o *NSUserNotification) IsRemote() bool
func (*NSUserNotification) OtherButtonTitle ¶
func (o *NSUserNotification) OtherButtonTitle() *NSString
func (*NSUserNotification) Response ¶
func (o *NSUserNotification) Response() *NSAttributedString
func (*NSUserNotification) ResponsePlaceholder ¶
func (o *NSUserNotification) ResponsePlaceholder() *NSString
func (*NSUserNotification) SetActionButtonTitle ¶
func (o *NSUserNotification) SetActionButtonTitle(actionButtonTitle *NSString)
func (*NSUserNotification) SetAdditionalActions ¶
func (o *NSUserNotification) SetAdditionalActions(additionalActions *NSArray[*NSUserNotificationAction])
func (*NSUserNotification) SetContentImage ¶
func (o *NSUserNotification) SetContentImage(contentImage objc.ID)
func (*NSUserNotification) SetDeliveryDate ¶
func (o *NSUserNotification) SetDeliveryDate(deliveryDate *NSDate)
func (*NSUserNotification) SetDeliveryRepeatInterval ¶
func (o *NSUserNotification) SetDeliveryRepeatInterval(deliveryRepeatInterval *NSDateComponents)
func (*NSUserNotification) SetDeliveryTimeZone ¶
func (o *NSUserNotification) SetDeliveryTimeZone(deliveryTimeZone *NSTimeZone)
func (*NSUserNotification) SetHasActionButton ¶
func (o *NSUserNotification) SetHasActionButton(hasActionButton bool)
func (*NSUserNotification) SetHasReplyButton ¶
func (o *NSUserNotification) SetHasReplyButton(hasReplyButton bool)
func (*NSUserNotification) SetIdentifier ¶
func (o *NSUserNotification) SetIdentifier(identifier *NSString)
func (*NSUserNotification) SetInformativeText ¶
func (o *NSUserNotification) SetInformativeText(informativeText *NSString)
func (*NSUserNotification) SetOtherButtonTitle ¶
func (o *NSUserNotification) SetOtherButtonTitle(otherButtonTitle *NSString)
func (*NSUserNotification) SetResponsePlaceholder ¶
func (o *NSUserNotification) SetResponsePlaceholder(responsePlaceholder *NSString)
func (*NSUserNotification) SetSoundName ¶
func (o *NSUserNotification) SetSoundName(soundName *NSString)
func (*NSUserNotification) SetSubtitle ¶
func (o *NSUserNotification) SetSubtitle(subtitle *NSString)
func (*NSUserNotification) SetTitle ¶
func (o *NSUserNotification) SetTitle(title *NSString)
func (*NSUserNotification) SetUserInfo ¶
func (o *NSUserNotification) SetUserInfo(userInfo *NSDictionary[*NSString, objc.ID])
func (*NSUserNotification) SoundName ¶
func (o *NSUserNotification) SoundName() *NSString
func (*NSUserNotification) Subtitle ¶
func (o *NSUserNotification) Subtitle() *NSString
func (*NSUserNotification) Title ¶
func (o *NSUserNotification) Title() *NSString
func (*NSUserNotification) UserInfo ¶
func (o *NSUserNotification) UserInfo() *NSDictionary[*NSString, objc.ID]
type NSUserNotificationAction ¶
type NSUserNotificationAction struct {
NSObject
}
An action that the user can take in response to receiving a notification.
Apple documentation: https://developer.apple.com/documentation/foundation/nsusernotificationaction Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API
func NSUserNotificationActionActionWithIdentifierTitle ¶
func NSUserNotificationActionActionWithIdentifierTitle(identifier *NSString, title *NSString) *NSUserNotificationAction
Creates a user notification action with a specified identifier and title. Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API
func NSUserNotificationActionFromID ¶
func NSUserNotificationActionFromID(id objc.ID) *NSUserNotificationAction
func (*NSUserNotificationAction) Identifier ¶
func (o *NSUserNotificationAction) Identifier() *NSString
func (*NSUserNotificationAction) Title ¶
func (o *NSUserNotificationAction) Title() *NSString
type NSUserNotificationActivationType ¶
type NSUserNotificationActivationType int64
These constants describe how the user notification was activated. Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API
const ( NSUserNotificationActivationTypeNone NSUserNotificationActivationType = 0 NSUserNotificationActivationTypeContentsClicked NSUserNotificationActivationType = 1 NSUserNotificationActivationTypeActionButtonClicked NSUserNotificationActivationType = 2 NSUserNotificationActivationTypeReplied NSUserNotificationActivationType = 3 NSUserNotificationActivationTypeAdditionalActionClicked NSUserNotificationActivationType = 4 )
func (NSUserNotificationActivationType) String ¶
func (e NSUserNotificationActivationType) String() string
type NSUserNotificationCenter ¶
type NSUserNotificationCenter struct {
NSObject
}
An object that delivers notifications from apps to the user.
Apple documentation: https://developer.apple.com/documentation/foundation/nsusernotificationcenter Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API
func NSUserNotificationCenterDefaultUserNotificationCenter ¶
func NSUserNotificationCenterDefaultUserNotificationCenter() *NSUserNotificationCenter
func NSUserNotificationCenterFromID ¶
func NSUserNotificationCenterFromID(id objc.ID) *NSUserNotificationCenter
func (*NSUserNotificationCenter) Delegate ¶
func (o *NSUserNotificationCenter) Delegate() NSUserNotificationCenterDelegate
func (*NSUserNotificationCenter) DeliverNotification ¶
func (o *NSUserNotificationCenter) DeliverNotification(notification *NSUserNotification)
Deliver the specified user notification.
func (*NSUserNotificationCenter) DeliveredNotifications ¶
func (o *NSUserNotificationCenter) DeliveredNotifications() *NSArray[*NSUserNotification]
func (*NSUserNotificationCenter) RemoveAllDeliveredNotifications ¶
func (o *NSUserNotificationCenter) RemoveAllDeliveredNotifications()
Remove all delivered user notifications from the user notification center.
func (*NSUserNotificationCenter) RemoveDeliveredNotification ¶
func (o *NSUserNotificationCenter) RemoveDeliveredNotification(notification *NSUserNotification)
Remove a delivered user notification from the user notification center.
func (*NSUserNotificationCenter) RemoveScheduledNotification ¶
func (o *NSUserNotificationCenter) RemoveScheduledNotification(notification *NSUserNotification)
Removes the specified user notification for the scheduled notifications.
func (*NSUserNotificationCenter) ScheduleNotification ¶
func (o *NSUserNotificationCenter) ScheduleNotification(notification *NSUserNotification)
Schedules the specified user notification.
func (*NSUserNotificationCenter) ScheduledNotifications ¶
func (o *NSUserNotificationCenter) ScheduledNotifications() *NSArray[*NSUserNotification]
func (*NSUserNotificationCenter) SetDelegate ¶
func (o *NSUserNotificationCenter) SetDelegate(delegate NSUserNotificationCenterDelegate)
func (*NSUserNotificationCenter) SetScheduledNotifications ¶
func (o *NSUserNotificationCenter) SetScheduledNotifications(scheduledNotifications *NSArray[*NSUserNotification])
type NSUserNotificationCenterDelegate ¶
type NSUserNotificationCenterDelegate interface {
}
NSUserNotificationCenterDelegate wraps the ObjC protocol NSUserNotificationCenterDelegate.
type NSUserScriptTask ¶
type NSUserScriptTask struct {
NSObject
}
An object that executes scripts.
Apple documentation: https://developer.apple.com/documentation/foundation/nsuserscripttask
func NSUserScriptTaskFromID ¶
func NSUserScriptTaskFromID(id objc.ID) *NSUserScriptTask
func (*NSUserScriptTask) ExecuteWithCompletionHandler ¶
func (o *NSUserScriptTask) ExecuteWithCompletionHandler(handler func(unsafe.Pointer))
Executes the script with no input and ignoring any result.
func (*NSUserScriptTask) InitWithURLError ¶
func (o *NSUserScriptTask) InitWithURLError(url *NSURL) (*NSUserScriptTask, error)
Return a user script task instance given a URL for a script file.
func (*NSUserScriptTask) ScriptURL ¶
func (o *NSUserScriptTask) ScriptURL() *NSURL
type NSUserUnixTask ¶
type NSUserUnixTask struct {
NSUserScriptTask
}
An object that executes unix applications.
Apple documentation: https://developer.apple.com/documentation/foundation/nsuserunixtask
func NSUserUnixTaskFromID ¶
func NSUserUnixTaskFromID(id objc.ID) *NSUserUnixTask
func (*NSUserUnixTask) ExecuteWithArgumentsCompletionHandler ¶
func (o *NSUserUnixTask) ExecuteWithArgumentsCompletionHandler(arguments *NSArray[*NSString], handler func(unsafe.Pointer))
Execute the unix script with the specified arguments.
func (*NSUserUnixTask) SetStandardError ¶
func (o *NSUserUnixTask) SetStandardError(standardError *NSFileHandle)
func (*NSUserUnixTask) SetStandardInput ¶
func (o *NSUserUnixTask) SetStandardInput(standardInput *NSFileHandle)
func (*NSUserUnixTask) SetStandardOutput ¶
func (o *NSUserUnixTask) SetStandardOutput(standardOutput *NSFileHandle)
func (*NSUserUnixTask) StandardError ¶
func (o *NSUserUnixTask) StandardError() *NSFileHandle
func (*NSUserUnixTask) StandardInput ¶
func (o *NSUserUnixTask) StandardInput() *NSFileHandle
func (*NSUserUnixTask) StandardOutput ¶
func (o *NSUserUnixTask) StandardOutput() *NSFileHandle
type NSValue ¶
type NSValue struct {
NSObject
}
A simple container for a single C or Objective-C data item.
Apple documentation: https://developer.apple.com/documentation/foundation/nsvalue
func NSValueFromID ¶
func NSValueValueWithBytesObjCType ¶
Creates a value object containing the specified value, interpreted with the specified Objective-C type.
func NSValueValueWithEdgeInsets ¶
func NSValueValueWithEdgeInsets(insets NSEdgeInsets) *NSValue
Creates a new value object containing the specified edge insets structure.
func NSValueValueWithNonretainedObject ¶
Creates a value object containing the specified object.
func NSValueValueWithObjCType ¶
Creates a value object containing the specified value, interpreted with the specified Objective-C type.
func NSValueValueWithPoint ¶
func NSValueValueWithPoint(point corefoundation.CGPoint) *NSValue
Creates a new value object containing the specified Foundation point structure.
func NSValueValueWithPointer ¶
Creates a value object containing the specified pointer.
func NSValueValueWithRange ¶
Creates a new value object containing the specified Foundation range structure.
func NSValueValueWithRect ¶
func NSValueValueWithRect(rect corefoundation.CGRect) *NSValue
Creates a new value object containing the specified Foundation rectangle structure.
func NSValueValueWithSize ¶
func NSValueValueWithSize(size corefoundation.CGSize) *NSValue
Creates a new value object containing the specified Foundation size structure.
func (*NSValue) EdgeInsetsValue ¶
func (o *NSValue) EdgeInsetsValue() NSEdgeInsets
func (*NSValue) GetValue ¶
Copies the value into the specified buffer. Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSValue) GetValueSize ¶
Copies the value into the specified buffer.
func (*NSValue) InitWithBytesObjCType ¶
Initializes a value object to contain the specified value, interpreted with the specified Objective-C type.
func (*NSValue) InitWithCoder ¶
func (*NSValue) IsEqualToValue ¶
Returns a Boolean value that indicates whether the value object and another value object are equal.
func (*NSValue) NonretainedObjectValue ¶
func (*NSValue) PointValue ¶
func (o *NSValue) PointValue() corefoundation.CGPoint
func (*NSValue) PointerValue ¶
func (*NSValue) RangeValue ¶
func (*NSValue) RectValue ¶
func (o *NSValue) RectValue() corefoundation.CGRect
func (*NSValue) SizeValue ¶
func (o *NSValue) SizeValue() corefoundation.CGSize
type NSValueTransformer ¶
type NSValueTransformer struct {
NSObject
}
An abstract class used to transform values from one representation to another.
Apple documentation: https://developer.apple.com/documentation/foundation/nsvaluetransformer
func NSValueTransformerFromID ¶
func NSValueTransformerFromID(id objc.ID) *NSValueTransformer
func NSValueTransformerValueTransformerForName ¶
func NSValueTransformerValueTransformerForName(name *NSString) *NSValueTransformer
func (*NSValueTransformer) ReverseTransformedValue ¶
func (o *NSValueTransformer) ReverseTransformedValue(value objc.ID) objc.ID
func (*NSValueTransformer) TransformedValue ¶
func (o *NSValueTransformer) TransformedValue(value objc.ID) objc.ID
type NSVolumeEnumerationOptions ¶
type NSVolumeEnumerationOptions uint64
const ( NSVolumeEnumerationSkipHiddenVolumes NSVolumeEnumerationOptions = 2 NSVolumeEnumerationProduceFileReferenceURLs NSVolumeEnumerationOptions = 4 )
func (NSVolumeEnumerationOptions) String ¶
func (e NSVolumeEnumerationOptions) String() string
type NSWhoseSpecifier ¶
type NSWhoseSpecifier struct {
NSScriptObjectSpecifier
}
A specifier that indicates every object in a collection matching a condition.
Apple documentation: https://developer.apple.com/documentation/foundation/nswhosespecifier
func NSWhoseSpecifierFromID ¶
func NSWhoseSpecifierFromID(id objc.ID) *NSWhoseSpecifier
func (*NSWhoseSpecifier) EndSubelementIdentifier ¶
func (o *NSWhoseSpecifier) EndSubelementIdentifier() NSWhoseSubelementIdentifier
func (*NSWhoseSpecifier) EndSubelementIndex ¶
func (o *NSWhoseSpecifier) EndSubelementIndex() int
func (*NSWhoseSpecifier) InitWithCoder ¶
func (o *NSWhoseSpecifier) InitWithCoder(inCoder *NSCoder) *NSWhoseSpecifier
func (*NSWhoseSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyTest ¶
func (o *NSWhoseSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyTest(classDesc *NSScriptClassDescription, container *NSScriptObjectSpecifier, property *NSString, test *NSScriptWhoseTest) *NSWhoseSpecifier
Returns an NSWhoseSpecifier object initialized with the given attributes.
func (*NSWhoseSpecifier) SetEndSubelementIdentifier ¶
func (o *NSWhoseSpecifier) SetEndSubelementIdentifier(endSubelementIdentifier NSWhoseSubelementIdentifier)
func (*NSWhoseSpecifier) SetEndSubelementIndex ¶
func (o *NSWhoseSpecifier) SetEndSubelementIndex(endSubelementIndex int)
func (*NSWhoseSpecifier) SetStartSubelementIdentifier ¶
func (o *NSWhoseSpecifier) SetStartSubelementIdentifier(startSubelementIdentifier NSWhoseSubelementIdentifier)
func (*NSWhoseSpecifier) SetStartSubelementIndex ¶
func (o *NSWhoseSpecifier) SetStartSubelementIndex(startSubelementIndex int)
func (*NSWhoseSpecifier) SetTest ¶
func (o *NSWhoseSpecifier) SetTest(test *NSScriptWhoseTest)
func (*NSWhoseSpecifier) StartSubelementIdentifier ¶
func (o *NSWhoseSpecifier) StartSubelementIdentifier() NSWhoseSubelementIdentifier
func (*NSWhoseSpecifier) StartSubelementIndex ¶
func (o *NSWhoseSpecifier) StartSubelementIndex() int
func (*NSWhoseSpecifier) Test ¶
func (o *NSWhoseSpecifier) Test() *NSScriptWhoseTest
type NSWhoseSubelementIdentifier ¶
type NSWhoseSubelementIdentifier uint64
NSWhoseSpecifier uses these constants to specify sub-elements within the collection of objects being tested that pass the specifier’s test.
const ( NSIndexSubelement NSWhoseSubelementIdentifier = 0 NSEverySubelement NSWhoseSubelementIdentifier = 1 NSMiddleSubelement NSWhoseSubelementIdentifier = 2 NSRandomSubelement NSWhoseSubelementIdentifier = 3 NSNoSubelement NSWhoseSubelementIdentifier = 4 )
func (NSWhoseSubelementIdentifier) String ¶
func (e NSWhoseSubelementIdentifier) String() string
type NSXMLDTD ¶
type NSXMLDTD struct {
NSXMLNode
}
A representation of a Document Type Definition.
Apple documentation: https://developer.apple.com/documentation/foundation/nsxmldtd
func NSXMLDTDFromID ¶
func (*NSXMLDTD) AddChild ¶
@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) InsertChildAtIndex ¶
@method insertChild:atIndex: @abstract Inserts a child at a particular index.
func (*NSXMLDTD) InsertChildrenAtIndex ¶
@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 ¶
@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 ¶
@method removeChildAtIndex: @abstract Removes a child at a particular index.
func (*NSXMLDTD) ReplaceChildAtIndexWithNode ¶
@method replaceChildAtIndex:withNode: @abstract Replaces a child at a particular index with another child.
func (*NSXMLDTD) SetChildren ¶
@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 (*NSXMLDTD) SetSystemID ¶
type NSXMLDTDNode ¶
type NSXMLDTDNode struct {
NSXMLNode
}
A representation of element, attribute-list, entity, and notation declarations in a Document Type Definition.
Apple documentation: https://developer.apple.com/documentation/foundation/nsxmldtdnode
func NSXMLDTDNodeFromID ¶
func NSXMLDTDNodeFromID(id objc.ID) *NSXMLDTDNode
func NSXMLDTDPredefinedEntityDeclarationForName ¶
func NSXMLDTDPredefinedEntityDeclarationForName(name *NSString) *NSXMLDTDNode
@method predefinedEntityDeclarationForName: @abstract Returns the predefined entity declaration matching this name. @discussion The five predefined entities are <ul><li>&lt; - <</li><li>&gt; - ></li><li>&amp; - &</li><li>&quot; - "</li><li>&apos; - &</li></ul>
func (*NSXMLDTDNode) DTDKind ¶
func (o *NSXMLDTDNode) DTDKind() NSXMLDTDNodeKind
@abstract Sets the DTD sub kind.
func (*NSXMLDTDNode) Init ¶
func (o *NSXMLDTDNode) Init() *NSXMLDTDNode
func (*NSXMLDTDNode) InitWithKindOptions ¶
func (o *NSXMLDTDNode) InitWithKindOptions(kind NSXMLNodeKind, options NSXMLNodeOptions) *NSXMLDTDNode
func (*NSXMLDTDNode) InitWithXMLString ¶
func (o *NSXMLDTDNode) InitWithXMLString(string_ *NSString) *NSXMLDTDNode
@method initWithXMLString: @abstract Returns an element, attribute, entity, or notation DTD node based on the full XML string.
func (*NSXMLDTDNode) IsExternal ¶
func (o *NSXMLDTDNode) IsExternal() bool
@abstract True if the system id is set. Valid for entities and notations.
func (*NSXMLDTDNode) NotationName ¶
func (o *NSXMLDTDNode) NotationName() *NSString
@abstract Set the notation name. Valid for entities only.
func (*NSXMLDTDNode) PublicID ¶
func (o *NSXMLDTDNode) PublicID() *NSString
@abstract Sets the public id. This identifier should be in the default catalog in /etc/xml/catalog or in a path specified by the environment variable XML_CATALOG_FILES. When the public id is set the system id must also be set. Valid for entities and notations.
func (*NSXMLDTDNode) SetDTDKind ¶
func (o *NSXMLDTDNode) SetDTDKind(dTDKind NSXMLDTDNodeKind)
func (*NSXMLDTDNode) SetNotationName ¶
func (o *NSXMLDTDNode) SetNotationName(notationName *NSString)
func (*NSXMLDTDNode) SetPublicID ¶
func (o *NSXMLDTDNode) SetPublicID(publicID *NSString)
func (*NSXMLDTDNode) SetSystemID ¶
func (o *NSXMLDTDNode) SetSystemID(systemID *NSString)
func (*NSXMLDTDNode) SystemID ¶
func (o *NSXMLDTDNode) SystemID() *NSString
@abstract Sets the system id. This should be a URL that points to a valid DTD. Valid for entities and notations.
type NSXMLDTDNodeKind ¶
type NSXMLDTDNodeKind uint64
The type defined for the constants that specify the kind and subkind of DTD declaration represented by an NSXMLDTDNode object. You set the DTD-node kind using the doc:nsxmldtdnode/1806486-setdtdkind method.
const ( NSXMLEntityGeneralKind NSXMLDTDNodeKind = 1 NSXMLEntityParsedKind NSXMLDTDNodeKind = 2 NSXMLEntityUnparsedKind NSXMLDTDNodeKind = 3 NSXMLEntityParameterKind NSXMLDTDNodeKind = 4 NSXMLEntityPredefined NSXMLDTDNodeKind = 5 NSXMLAttributeCDATAKind NSXMLDTDNodeKind = 6 NSXMLAttributeIDKind NSXMLDTDNodeKind = 7 NSXMLAttributeIDRefKind NSXMLDTDNodeKind = 8 NSXMLAttributeIDRefsKind NSXMLDTDNodeKind = 9 NSXMLAttributeEntityKind NSXMLDTDNodeKind = 10 NSXMLAttributeEntitiesKind NSXMLDTDNodeKind = 11 NSXMLAttributeNMTokenKind NSXMLDTDNodeKind = 12 NSXMLAttributeNMTokensKind NSXMLDTDNodeKind = 13 NSXMLAttributeEnumerationKind NSXMLDTDNodeKind = 14 NSXMLAttributeNotationKind NSXMLDTDNodeKind = 15 NSXMLElementDeclarationUndefinedKind NSXMLDTDNodeKind = 16 NSXMLElementDeclarationEmptyKind NSXMLDTDNodeKind = 17 NSXMLElementDeclarationAnyKind NSXMLDTDNodeKind = 18 NSXMLElementDeclarationMixedKind NSXMLDTDNodeKind = 19 NSXMLElementDeclarationElementKind NSXMLDTDNodeKind = 20 )
func (NSXMLDTDNodeKind) String ¶
func (e NSXMLDTDNodeKind) String() string
type NSXMLDocument ¶
type NSXMLDocument struct {
NSXMLNode
}
An XML document as internalized into a logical tree structure.
Apple documentation: https://developer.apple.com/documentation/foundation/nsxmldocument
func NSXMLDocumentFromID ¶
func NSXMLDocumentFromID(id objc.ID) *NSXMLDocument
func (*NSXMLDocument) AddChild ¶
func (o *NSXMLDocument) AddChild(child *NSXMLNode)
@method addChild: @abstract Adds a child to the end of the existing children.
func (*NSXMLDocument) CharacterEncoding ¶
func (o *NSXMLDocument) CharacterEncoding() *NSString
@abstract Sets the character encoding to an IANA type.
func (*NSXMLDocument) DTD ¶
func (o *NSXMLDocument) DTD() *NSXMLDTD
@abstract Set the associated DTD. This DTD will be output with the document.
func (*NSXMLDocument) DocumentContentKind ¶
func (o *NSXMLDocument) DocumentContentKind() NSXMLDocumentContentKind
@abstract The kind of document.
func (*NSXMLDocument) Init ¶
func (o *NSXMLDocument) Init() *NSXMLDocument
func (*NSXMLDocument) InitWithContentsOfURLOptionsError ¶
func (o *NSXMLDocument) InitWithContentsOfURLOptionsError(url *NSURL, mask NSXMLNodeOptions) (*NSXMLDocument, error)
@method initWithContentsOfURL:options:error: @abstract Returns a document created from the contents of an XML or HTML URL. Connection problems such as 404, parse errors are returned in <tt>error</tt>.
func (*NSXMLDocument) InitWithDataOptionsError ¶
func (o *NSXMLDocument) InitWithDataOptionsError(data *NSData, mask NSXMLNodeOptions) (*NSXMLDocument, error)
@method initWithData:options:error: @abstract Returns a document created from data. Parse errors are returned in <tt>error</tt>.
func (*NSXMLDocument) InitWithRootElement ¶
func (o *NSXMLDocument) InitWithRootElement(element *NSXMLElement) *NSXMLDocument
@method initWithRootElement: @abstract Returns a document with a single child, the root element.
func (*NSXMLDocument) InitWithXMLStringOptionsError ¶
func (o *NSXMLDocument) InitWithXMLStringOptionsError(string_ *NSString, mask NSXMLNodeOptions) (*NSXMLDocument, error)
@method initWithXMLString:options:error: @abstract Returns a document created from either XML or HTML, if the HTMLTidy option is set. Parse errors are returned in <tt>error</tt>.
func (*NSXMLDocument) InsertChildAtIndex ¶
func (o *NSXMLDocument) InsertChildAtIndex(child *NSXMLNode, index uint)
@method insertChild:atIndex: @abstract Inserts a child at a particular index.
func (*NSXMLDocument) InsertChildrenAtIndex ¶
func (o *NSXMLDocument) InsertChildrenAtIndex(children *NSArray[*NSXMLNode], index uint)
@method insertChildren:atIndex: @abstract Insert several children at a particular index.
func (*NSXMLDocument) IsStandalone ¶
func (o *NSXMLDocument) IsStandalone() bool
@abstract Set whether this document depends on an external DTD. If this option is set the standalone declaration will appear on output.
func (*NSXMLDocument) MIMEType ¶
func (o *NSXMLDocument) MIMEType() *NSString
@abstract Set the MIME type, eg text/xml.
func (*NSXMLDocument) ObjectByApplyingXSLTArgumentsError ¶
func (o *NSXMLDocument) ObjectByApplyingXSLTArgumentsError(xslt *NSData, arguments *NSDictionary[*NSString, *NSString]) (objc.ID, error)
@method objectByApplyingXSLT:arguments:error: @abstract Applies XSLT with arguments (NSString key/value pairs) to this document, returning a new document.
func (*NSXMLDocument) ObjectByApplyingXSLTAtURLArgumentsError ¶
func (o *NSXMLDocument) ObjectByApplyingXSLTAtURLArgumentsError(xsltURL *NSURL, argument *NSDictionary[*NSString, *NSString]) (objc.ID, error)
@method objectByApplyingXSLTAtURL:arguments:error: @abstract Applies the XSLT at a URL with arguments (NSString key/value pairs) to this document, returning a new document. Error may contain a connection error from the URL.
func (*NSXMLDocument) ObjectByApplyingXSLTStringArgumentsError ¶
func (o *NSXMLDocument) ObjectByApplyingXSLTStringArgumentsError(xslt *NSString, arguments *NSDictionary[*NSString, *NSString]) (objc.ID, error)
@method objectByApplyingXSLTString:arguments:error: @abstract Applies XSLT as expressed by a string with arguments (NSString key/value pairs) to this document, returning a new document.
func (*NSXMLDocument) RemoveChildAtIndex ¶
func (o *NSXMLDocument) RemoveChildAtIndex(index uint)
@method removeChildAtIndex:atIndex: @abstract Removes a child at a particular index.
func (*NSXMLDocument) ReplaceChildAtIndexWithNode ¶
func (o *NSXMLDocument) ReplaceChildAtIndexWithNode(index uint, node *NSXMLNode)
@method replaceChildAtIndex:withNode: @abstract Replaces a child at a particular index with another child.
func (*NSXMLDocument) RootElement ¶
func (o *NSXMLDocument) RootElement() *NSXMLElement
@method rootElement @abstract The root element.
func (*NSXMLDocument) SetCharacterEncoding ¶
func (o *NSXMLDocument) SetCharacterEncoding(characterEncoding *NSString)
func (*NSXMLDocument) SetChildren ¶
func (o *NSXMLDocument) SetChildren(children *NSArray[*NSXMLNode])
@method setChildren: @abstract Removes all existing children and replaces them with the new children. Set children to nil to simply remove all children.
func (*NSXMLDocument) SetDTD ¶
func (o *NSXMLDocument) SetDTD(dTD *NSXMLDTD)
func (*NSXMLDocument) SetDocumentContentKind ¶
func (o *NSXMLDocument) SetDocumentContentKind(documentContentKind NSXMLDocumentContentKind)
func (*NSXMLDocument) SetMIMEType ¶
func (o *NSXMLDocument) SetMIMEType(mIMEType *NSString)
func (*NSXMLDocument) SetRootElement ¶
func (o *NSXMLDocument) SetRootElement(root *NSXMLElement)
@method setRootElement: @abstract Set the root element. Removes all other children including comments and processing-instructions.
func (*NSXMLDocument) SetStandalone ¶
func (o *NSXMLDocument) SetStandalone(standalone bool)
func (*NSXMLDocument) ValidateAndReturnError ¶
func (o *NSXMLDocument) ValidateAndReturnError() (bool, error)
func (*NSXMLDocument) XMLData ¶
func (o *NSXMLDocument) XMLData() *NSData
@abstract Invokes XMLDataWithOptions with NSXMLNodeOptionsNone.
func (*NSXMLDocument) XMLDataWithOptions ¶
func (o *NSXMLDocument) XMLDataWithOptions(options NSXMLNodeOptions) *NSData
@method XMLDataWithOptions: @abstract The representation of this node as it would appear in an XML document, encoded based on characterEncoding.
type NSXMLDocumentContentKind ¶
type NSXMLDocumentContentKind uint64
Type used to define the kind of document content.
const ( NSXMLDocumentXMLKind NSXMLDocumentContentKind = 0 NSXMLDocumentXHTMLKind NSXMLDocumentContentKind = 1 NSXMLDocumentHTMLKind NSXMLDocumentContentKind = 2 NSXMLDocumentTextKind NSXMLDocumentContentKind = 3 )
func (NSXMLDocumentContentKind) String ¶
func (e NSXMLDocumentContentKind) String() string
type NSXMLElement ¶
type NSXMLElement struct {
NSXMLNode
}
The element nodes in an XML tree structure.
Apple documentation: https://developer.apple.com/documentation/foundation/nsxmlelement
func NSXMLElementFromID ¶
func NSXMLElementFromID(id objc.ID) *NSXMLElement
func (*NSXMLElement) AddAttribute ¶
func (o *NSXMLElement) AddAttribute(attribute *NSXMLNode)
@method addAttribute: @abstract Adds an attribute. Attributes with duplicate names are not added.
func (*NSXMLElement) AddChild ¶
func (o *NSXMLElement) AddChild(child *NSXMLNode)
@method addChild: @abstract Adds a child to the end of the existing children.
func (*NSXMLElement) AddNamespace ¶
func (o *NSXMLElement) AddNamespace(aNamespace *NSXMLNode)
@method addNamespace:URI: @abstract Adds a namespace. Namespaces with duplicate names are not added.
func (*NSXMLElement) AttributeForLocalNameURI ¶
func (o *NSXMLElement) AttributeForLocalNameURI(localName *NSString, uRI *NSString) *NSXMLNode
@method attributeForLocalName:URI: @abstract Returns an attribute matching this localname URI pair.
func (*NSXMLElement) AttributeForName ¶
func (o *NSXMLElement) AttributeForName(name *NSString) *NSXMLNode
@method attributeForName: @abstract Returns an attribute matching this name.
func (*NSXMLElement) Attributes ¶
func (o *NSXMLElement) Attributes() *NSArray[*NSXMLNode]
@abstract Set the attributes. In the case of duplicate names, the first attribute with the name is used.
func (*NSXMLElement) ElementsForLocalNameURI ¶
func (o *NSXMLElement) ElementsForLocalNameURI(localName *NSString, uRI *NSString) *NSArray[*NSXMLElement]
@method elementsForLocalName:URI @abstract Returns all of the child elements that match this localname URI pair.
func (*NSXMLElement) ElementsForName ¶
func (o *NSXMLElement) ElementsForName(name *NSString) *NSArray[*NSXMLElement]
@method elementsForName: @abstract Returns all of the child elements that match this name.
func (*NSXMLElement) InitWithKindOptions ¶
func (o *NSXMLElement) InitWithKindOptions(kind NSXMLNodeKind, options NSXMLNodeOptions) *NSXMLElement
func (*NSXMLElement) InitWithName ¶
func (o *NSXMLElement) InitWithName(name *NSString) *NSXMLElement
@method initWithName: @abstract Returns an element <tt><name></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><name>string</name></tt>.
func (*NSXMLElement) InitWithNameURI ¶
func (o *NSXMLElement) InitWithNameURI(name *NSString, uRI *NSString) *NSXMLElement
@method initWithName:URI: @abstract Returns an element whose full QName is specified.
func (*NSXMLElement) InitWithXMLStringError ¶
func (o *NSXMLElement) InitWithXMLStringError(string_ *NSString) (*NSXMLElement, error)
@method initWithXMLString:error: @abstract Returns an element created from a string. Parse errors are collected in <tt>error</tt>.
func (*NSXMLElement) InsertChildAtIndex ¶
func (o *NSXMLElement) InsertChildAtIndex(child *NSXMLNode, index uint)
@method insertChild:atIndex: @abstract Inserts a child at a particular index.
func (*NSXMLElement) InsertChildrenAtIndex ¶
func (o *NSXMLElement) InsertChildrenAtIndex(children *NSArray[*NSXMLNode], index uint)
@method insertChildren:atIndex: @abstract Insert several children at a particular index.
func (*NSXMLElement) NamespaceForPrefix ¶
func (o *NSXMLElement) NamespaceForPrefix(name *NSString) *NSXMLNode
@method namespaceForPrefix: @abstract Returns the namespace matching this prefix.
func (*NSXMLElement) Namespaces ¶
func (o *NSXMLElement) Namespaces() *NSArray[*NSXMLNode]
@abstract Set the namespaces. In the case of duplicate names, the first namespace with the name is used.
func (*NSXMLElement) NormalizeAdjacentTextNodesPreservingCDATA ¶
func (o *NSXMLElement) NormalizeAdjacentTextNodesPreservingCDATA(preserve bool)
@method normalizeAdjacentTextNodesPreservingCDATA: @abstract Adjacent text nodes are coalesced. If the node's value is the empty string, it is removed. This should be called with a value of NO before using XQuery or XPath.
func (*NSXMLElement) RemoveAttributeForName ¶
func (o *NSXMLElement) RemoveAttributeForName(name *NSString)
@method removeAttributeForName: @abstract Removes an attribute based on its name.
func (*NSXMLElement) RemoveChildAtIndex ¶
func (o *NSXMLElement) RemoveChildAtIndex(index uint)
@method removeChildAtIndex:atIndex: @abstract Removes a child at a particular index.
func (*NSXMLElement) RemoveNamespaceForPrefix ¶
func (o *NSXMLElement) RemoveNamespaceForPrefix(name *NSString)
@method addNamespace:URI: @abstract Removes a namespace with a particular name.
func (*NSXMLElement) ReplaceChildAtIndexWithNode ¶
func (o *NSXMLElement) ReplaceChildAtIndexWithNode(index uint, node *NSXMLNode)
@method replaceChildAtIndex:withNode: @abstract Replaces a child at a particular index with another child.
func (*NSXMLElement) ResolveNamespaceForName ¶
func (o *NSXMLElement) ResolveNamespaceForName(name *NSString) *NSXMLNode
@method resolveNamespaceForName: @abstract Returns the namespace who matches the prefix of the name given. Looks in the entire namespace chain.
func (*NSXMLElement) ResolvePrefixForNamespaceURI ¶
func (o *NSXMLElement) ResolvePrefixForNamespaceURI(namespaceURI *NSString) *NSString
@method resolvePrefixForNamespaceURI: @abstract Returns the URI of this prefix. Looks in the entire namespace chain.
func (*NSXMLElement) SetAttributes ¶
func (o *NSXMLElement) SetAttributes(attributes *NSArray[*NSXMLNode])
func (*NSXMLElement) SetAttributesAsDictionary ¶
func (o *NSXMLElement) SetAttributesAsDictionary(attributes *NSDictionary[objc.ID, objc.ID])
@method setAttributesAsDictionary: @abstract Set the attributes base on a name-value dictionary. @discussion This method is deprecated and does not function correctly. Use -setAttributesWithDictionary: instead. Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*NSXMLElement) SetAttributesWithDictionary ¶
func (o *NSXMLElement) SetAttributesWithDictionary(attributes *NSDictionary[*NSString, *NSString])
@method setAttributesWithDictionary: @abstract Set the attributes based on a name-value dictionary.
func (*NSXMLElement) SetChildren ¶
func (o *NSXMLElement) SetChildren(children *NSArray[*NSXMLNode])
@method setChildren: @abstract Removes all existing children and replaces them with the new children. Set children to nil to simply remove all children.
func (*NSXMLElement) SetNamespaces ¶
func (o *NSXMLElement) SetNamespaces(namespaces *NSArray[*NSXMLNode])
type NSXMLNode ¶
type NSXMLNode struct {
NSObject
}
The nodes in the abstract, logical tree structure that represents an XML document.
Apple documentation: https://developer.apple.com/documentation/foundation/nsxmlnode
func NSXMLNodeFromID ¶
func NSXMLNodePredefinedNamespaceForPrefix ¶
@method predefinedNamespaceForPrefix: @abstract Returns the namespace belonging to one of the predefined namespaces xml, xs, or xsi
func (*NSXMLNode) CanonicalXMLStringPreservingComments ¶
@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 ¶
@method childAtIndex: @abstract Returns the child node at a particular index.
func (*NSXMLNode) ChildCount ¶
@abstract The amount of children, relevant for documents, elements, and document type declarations. Use this instead of [[self children] count].
func (*NSXMLNode) Children ¶
@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) 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 ¶
@abstract The depth of the node within the tree. Documents and standalone nodes are level 0.
func (*NSXMLNode) LocalName ¶
@abstract Returns the local name bar if this attribute or element's name is foo:bar
func (*NSXMLNode) Name ¶
@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 ¶
@abstract Returns the next node in document order. This can be used to walk the tree forwards.
func (*NSXMLNode) NextSibling ¶
@abstract Returns the next sibling, or nil if there isn't one.
func (*NSXMLNode) NodesForXPathError ¶
@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 ¶
@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 (*NSXMLNode) Parent ¶
@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 ¶
@abstract Returns the prefix foo if this attribute or element's name if foo:bar
func (*NSXMLNode) PreviousNode ¶
@abstract Returns the previous node in document order. This can be used to walk the tree backwards.
func (*NSXMLNode) PreviousSibling ¶
@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) SetObjectValue ¶
func (*NSXMLNode) SetStringValue ¶
func (*NSXMLNode) SetStringValueResolvingEntities ¶
@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) StringValue ¶
@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 ¶
@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 ¶
@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.
type NSXMLNodeKind ¶
type NSXMLNodeKind uint64
NSXMLNode declares the following constants of type NSXMLNodeKind for specifying a node’s kind in the initializer methods initWithKind: and initWithKind:options::
const ( NSXMLInvalidKind NSXMLNodeKind = 0 NSXMLDocumentKind NSXMLNodeKind = 1 NSXMLElementKind NSXMLNodeKind = 2 NSXMLAttributeKind NSXMLNodeKind = 3 NSXMLNamespaceKind NSXMLNodeKind = 4 NSXMLProcessingInstructionKind NSXMLNodeKind = 5 NSXMLCommentKind NSXMLNodeKind = 6 NSXMLTextKind NSXMLNodeKind = 7 NSXMLDTDKind NSXMLNodeKind = 8 NSXMLEntityDeclarationKind NSXMLNodeKind = 9 NSXMLAttributeDeclarationKind NSXMLNodeKind = 10 NSXMLElementDeclarationKind NSXMLNodeKind = 11 NSXMLNotationDeclarationKind NSXMLNodeKind = 12 )
func (NSXMLNodeKind) String ¶
func (e NSXMLNodeKind) String() string
type NSXMLNodeOptions ¶
type NSXMLNodeOptions uint64
These constants are input and output options for all NSXMLNode objects (unless otherwise indicated), including NSXMLDocument objects. You can specify these options in the NSXMLNode methods initWithKind:options: and XMLStringWithOptions:.
const ( // No options are requested for this input or output action. NSXMLNodeOptionsNone NSXMLNodeOptions = 0 NSXMLNodeIsCDATA NSXMLNodeOptions = 1 NSXMLNodeExpandEmptyElement NSXMLNodeOptions = 2 NSXMLNodeCompactEmptyElement NSXMLNodeOptions = 4 NSXMLNodeUseSingleQuotes NSXMLNodeOptions = 8 NSXMLNodeUseDoubleQuotes NSXMLNodeOptions = 16 NSXMLNodeNeverEscapeContents NSXMLNodeOptions = 32 NSXMLDocumentTidyHTML NSXMLNodeOptions = 512 NSXMLDocumentTidyXML NSXMLNodeOptions = 1024 NSXMLDocumentValidate NSXMLNodeOptions = 8192 NSXMLNodeLoadExternalEntitiesAlways NSXMLNodeOptions = 16384 NSXMLNodeLoadExternalEntitiesSameOriginOnly NSXMLNodeOptions = 32768 NSXMLNodeLoadExternalEntitiesNever NSXMLNodeOptions = 524288 NSXMLDocumentXInclude NSXMLNodeOptions = 65536 NSXMLNodePrettyPrint NSXMLNodeOptions = 131072 NSXMLDocumentIncludeContentTypeDeclaration NSXMLNodeOptions = 262144 NSXMLNodePreserveNamespaceOrder NSXMLNodeOptions = 1048576 NSXMLNodePreserveAttributeOrder NSXMLNodeOptions = 2097152 NSXMLNodePreserveEntities NSXMLNodeOptions = 4194304 NSXMLNodePreservePrefixes NSXMLNodeOptions = 8388608 NSXMLNodePreserveCDATA NSXMLNodeOptions = 16777216 NSXMLNodePreserveWhitespace NSXMLNodeOptions = 33554432 NSXMLNodePreserveDTD NSXMLNodeOptions = 67108864 NSXMLNodePreserveCharacterReferences NSXMLNodeOptions = 134217728 NSXMLNodePromoteSignificantWhitespace NSXMLNodeOptions = 268435456 NSXMLNodePreserveEmptyElements NSXMLNodeOptions = 6 NSXMLNodePreserveQuotes NSXMLNodeOptions = 24 NSXMLNodePreserveAll NSXMLNodeOptions = 4293918750 )
func (NSXMLNodeOptions) String ¶
func (e NSXMLNodeOptions) String() string
type NSXMLParser ¶
type NSXMLParser struct {
NSObject
}
An event driven parser of XML documents (including DTD declarations).
Apple documentation: https://developer.apple.com/documentation/foundation/nsxmlparser
func NSXMLParserFromID ¶
func NSXMLParserFromID(id objc.ID) *NSXMLParser
func (*NSXMLParser) AbortParsing ¶
func (o *NSXMLParser) AbortParsing()
func (*NSXMLParser) AllowedExternalEntityURLs ¶
func (o *NSXMLParser) AllowedExternalEntityURLs() *NSSet[*NSURL]
func (*NSXMLParser) ColumnNumber ¶
func (o *NSXMLParser) ColumnNumber() int
func (*NSXMLParser) Delegate ¶
func (o *NSXMLParser) Delegate() NSXMLParserDelegate
func (*NSXMLParser) ExternalEntityResolvingPolicy ¶
func (o *NSXMLParser) ExternalEntityResolvingPolicy() NSXMLParserExternalEntityResolvingPolicy
func (*NSXMLParser) InitWithContentsOfURL ¶
func (o *NSXMLParser) InitWithContentsOfURL(url *NSURL) *NSXMLParser
func (*NSXMLParser) InitWithData ¶
func (o *NSXMLParser) InitWithData(data *NSData) *NSXMLParser
func (*NSXMLParser) InitWithStream ¶
func (o *NSXMLParser) InitWithStream(stream *NSInputStream) *NSXMLParser
func (*NSXMLParser) LineNumber ¶
func (o *NSXMLParser) LineNumber() int
func (*NSXMLParser) Parse ¶
func (o *NSXMLParser) Parse() bool
func (*NSXMLParser) ParserError ¶
func (o *NSXMLParser) ParserError() unsafe.Pointer
func (*NSXMLParser) PublicID ¶
func (o *NSXMLParser) PublicID() *NSString
func (*NSXMLParser) SetAllowedExternalEntityURLs ¶
func (o *NSXMLParser) SetAllowedExternalEntityURLs(allowedExternalEntityURLs *NSSet[*NSURL])
func (*NSXMLParser) SetDelegate ¶
func (o *NSXMLParser) SetDelegate(delegate NSXMLParserDelegate)
func (*NSXMLParser) SetExternalEntityResolvingPolicy ¶
func (o *NSXMLParser) SetExternalEntityResolvingPolicy(externalEntityResolvingPolicy NSXMLParserExternalEntityResolvingPolicy)
func (*NSXMLParser) SetShouldProcessNamespaces ¶
func (o *NSXMLParser) SetShouldProcessNamespaces(shouldProcessNamespaces bool)
func (*NSXMLParser) SetShouldReportNamespacePrefixes ¶
func (o *NSXMLParser) SetShouldReportNamespacePrefixes(shouldReportNamespacePrefixes bool)
func (*NSXMLParser) SetShouldResolveExternalEntities ¶
func (o *NSXMLParser) SetShouldResolveExternalEntities(shouldResolveExternalEntities bool)
func (*NSXMLParser) ShouldProcessNamespaces ¶
func (o *NSXMLParser) ShouldProcessNamespaces() bool
func (*NSXMLParser) ShouldReportNamespacePrefixes ¶
func (o *NSXMLParser) ShouldReportNamespacePrefixes() bool
func (*NSXMLParser) ShouldResolveExternalEntities ¶
func (o *NSXMLParser) ShouldResolveExternalEntities() bool
func (*NSXMLParser) SystemID ¶
func (o *NSXMLParser) SystemID() *NSString
type NSXMLParserDelegate ¶
type NSXMLParserDelegate interface {
}
NSXMLParserDelegate wraps the ObjC protocol NSXMLParserDelegate.
type NSXMLParserError ¶
type NSXMLParserError int64
The following error codes are defined by NSXMLParser. For error codes not listed here, see the <libxml/xmlerror.h> header file.
const ( NSXMLParserInternalError NSXMLParserError = 1 NSXMLParserOutOfMemoryError NSXMLParserError = 2 NSXMLParserDocumentStartError NSXMLParserError = 3 NSXMLParserEmptyDocumentError NSXMLParserError = 4 NSXMLParserPrematureDocumentEndError NSXMLParserError = 5 NSXMLParserInvalidHexCharacterRefError NSXMLParserError = 6 NSXMLParserInvalidDecimalCharacterRefError NSXMLParserError = 7 NSXMLParserInvalidCharacterRefError NSXMLParserError = 8 NSXMLParserInvalidCharacterError NSXMLParserError = 9 NSXMLParserCharacterRefAtEOFError NSXMLParserError = 10 NSXMLParserCharacterRefInPrologError NSXMLParserError = 11 NSXMLParserCharacterRefInEpilogError NSXMLParserError = 12 NSXMLParserCharacterRefInDTDError NSXMLParserError = 13 NSXMLParserEntityRefAtEOFError NSXMLParserError = 14 NSXMLParserEntityRefInPrologError NSXMLParserError = 15 NSXMLParserEntityRefInEpilogError NSXMLParserError = 16 NSXMLParserEntityRefInDTDError NSXMLParserError = 17 NSXMLParserParsedEntityRefAtEOFError NSXMLParserError = 18 NSXMLParserParsedEntityRefInPrologError NSXMLParserError = 19 NSXMLParserParsedEntityRefInEpilogError NSXMLParserError = 20 NSXMLParserParsedEntityRefInInternalSubsetError NSXMLParserError = 21 NSXMLParserEntityReferenceWithoutNameError NSXMLParserError = 22 NSXMLParserEntityReferenceMissingSemiError NSXMLParserError = 23 NSXMLParserParsedEntityRefNoNameError NSXMLParserError = 24 NSXMLParserParsedEntityRefMissingSemiError NSXMLParserError = 25 NSXMLParserUndeclaredEntityError NSXMLParserError = 26 NSXMLParserUnparsedEntityError NSXMLParserError = 28 NSXMLParserEntityIsExternalError NSXMLParserError = 29 NSXMLParserEntityIsParameterError NSXMLParserError = 30 NSXMLParserUnknownEncodingError NSXMLParserError = 31 NSXMLParserEncodingNotSupportedError NSXMLParserError = 32 NSXMLParserStringNotStartedError NSXMLParserError = 33 NSXMLParserStringNotClosedError NSXMLParserError = 34 NSXMLParserNamespaceDeclarationError NSXMLParserError = 35 NSXMLParserEntityNotStartedError NSXMLParserError = 36 NSXMLParserEntityNotFinishedError NSXMLParserError = 37 NSXMLParserLessThanSymbolInAttributeError NSXMLParserError = 38 NSXMLParserAttributeNotStartedError NSXMLParserError = 39 NSXMLParserAttributeNotFinishedError NSXMLParserError = 40 NSXMLParserAttributeHasNoValueError NSXMLParserError = 41 NSXMLParserAttributeRedefinedError NSXMLParserError = 42 NSXMLParserLiteralNotStartedError NSXMLParserError = 43 NSXMLParserLiteralNotFinishedError NSXMLParserError = 44 NSXMLParserCommentNotFinishedError NSXMLParserError = 45 NSXMLParserProcessingInstructionNotStartedError NSXMLParserError = 46 NSXMLParserProcessingInstructionNotFinishedError NSXMLParserError = 47 NSXMLParserNotationNotStartedError NSXMLParserError = 48 NSXMLParserNotationNotFinishedError NSXMLParserError = 49 NSXMLParserAttributeListNotStartedError NSXMLParserError = 50 NSXMLParserAttributeListNotFinishedError NSXMLParserError = 51 NSXMLParserMixedContentDeclNotStartedError NSXMLParserError = 52 NSXMLParserMixedContentDeclNotFinishedError NSXMLParserError = 53 NSXMLParserElementContentDeclNotStartedError NSXMLParserError = 54 NSXMLParserElementContentDeclNotFinishedError NSXMLParserError = 55 NSXMLParserXMLDeclNotStartedError NSXMLParserError = 56 NSXMLParserXMLDeclNotFinishedError NSXMLParserError = 57 NSXMLParserConditionalSectionNotStartedError NSXMLParserError = 58 NSXMLParserConditionalSectionNotFinishedError NSXMLParserError = 59 NSXMLParserExternalSubsetNotFinishedError NSXMLParserError = 60 NSXMLParserDOCTYPEDeclNotFinishedError NSXMLParserError = 61 NSXMLParserMisplacedCDATAEndStringError NSXMLParserError = 62 NSXMLParserCDATANotFinishedError NSXMLParserError = 63 NSXMLParserMisplacedXMLDeclarationError NSXMLParserError = 64 NSXMLParserSpaceRequiredError NSXMLParserError = 65 NSXMLParserSeparatorRequiredError NSXMLParserError = 66 NSXMLParserNMTOKENRequiredError NSXMLParserError = 67 NSXMLParserNAMERequiredError NSXMLParserError = 68 NSXMLParserPCDATARequiredError NSXMLParserError = 69 NSXMLParserURIRequiredError NSXMLParserError = 70 NSXMLParserPublicIdentifierRequiredError NSXMLParserError = 71 NSXMLParserLTRequiredError NSXMLParserError = 72 NSXMLParserGTRequiredError NSXMLParserError = 73 NSXMLParserLTSlashRequiredError NSXMLParserError = 74 NSXMLParserEqualExpectedError NSXMLParserError = 75 NSXMLParserTagNameMismatchError NSXMLParserError = 76 NSXMLParserUnfinishedTagError NSXMLParserError = 77 NSXMLParserStandaloneValueError NSXMLParserError = 78 NSXMLParserInvalidEncodingNameError NSXMLParserError = 79 NSXMLParserCommentContainsDoubleHyphenError NSXMLParserError = 80 NSXMLParserInvalidEncodingError NSXMLParserError = 81 NSXMLParserExternalStandaloneEntityError NSXMLParserError = 82 NSXMLParserInvalidConditionalSectionError NSXMLParserError = 83 NSXMLParserEntityValueRequiredError NSXMLParserError = 84 NSXMLParserNotWellBalancedError NSXMLParserError = 85 NSXMLParserExtraContentError NSXMLParserError = 86 NSXMLParserInvalidCharacterInEntityError NSXMLParserError = 87 NSXMLParserParsedEntityRefInInternalError NSXMLParserError = 88 NSXMLParserEntityRefLoopError NSXMLParserError = 89 NSXMLParserEntityBoundaryError NSXMLParserError = 90 NSXMLParserInvalidURIError NSXMLParserError = 91 NSXMLParserURIFragmentError NSXMLParserError = 92 NSXMLParserNoDTDError NSXMLParserError = 94 NSXMLParserDelegateAbortedParseError NSXMLParserError = 512 )
func (NSXMLParserError) String ¶
func (e NSXMLParserError) String() string
type NSXMLParserExternalEntityResolvingPolicy ¶
type NSXMLParserExternalEntityResolvingPolicy uint64
Defines the external entity resolving policy used by an NSXMLParser instance.
const ( NSXMLParserResolveExternalEntitiesNever NSXMLParserExternalEntityResolvingPolicy = 0 NSXMLParserResolveExternalEntitiesNoNetwork NSXMLParserExternalEntityResolvingPolicy = 1 NSXMLParserResolveExternalEntitiesSameOriginOnly NSXMLParserExternalEntityResolvingPolicy = 2 NSXMLParserResolveExternalEntitiesAlways NSXMLParserExternalEntityResolvingPolicy = 3 )
func (NSXMLParserExternalEntityResolvingPolicy) String ¶
func (e NSXMLParserExternalEntityResolvingPolicy) String() string
type NSXPCCoder ¶
type NSXPCCoder struct {
NSCoder
}
A coder that encodes and decodes objects that your app sends over an XPC connection.
Apple documentation: https://developer.apple.com/documentation/foundation/nsxpccoder
func NSXPCCoderFromID ¶
func NSXPCCoderFromID(id objc.ID) *NSXPCCoder
func (*NSXPCCoder) Connection ¶
func (o *NSXPCCoder) Connection() *NSXPCConnection
func (*NSXPCCoder) DecodeXPCObjectOfTypeForKey ¶
func (o *NSXPCCoder) DecodeXPCObjectOfTypeForKey(type_ unsafe.Pointer, key *NSString) *NSObject
Decodes an object and validates that its type matches the type a service provides over XPC.
func (*NSXPCCoder) EncodeXPCObjectForKey ¶
func (o *NSXPCCoder) EncodeXPCObjectForKey(xpcObject *NSObject, key *NSString)
Encodes an object to send over an XPC connection.
func (*NSXPCCoder) SetUserInfo ¶
func (o *NSXPCCoder) SetUserInfo(userInfo NSObjectProtocol)
func (*NSXPCCoder) UserInfo ¶
func (o *NSXPCCoder) UserInfo() NSObjectProtocol
type NSXPCConnection ¶
type NSXPCConnection struct {
NSObject
}
A bidirectional communication channel between two processes.
Apple documentation: https://developer.apple.com/documentation/foundation/nsxpcconnection
func NSXPCConnectionCurrentConnection ¶
func NSXPCConnectionCurrentConnection() *NSXPCConnection
Returns the current connection, in the context of a call to a method on your exported object.
func NSXPCConnectionFromID ¶
func NSXPCConnectionFromID(id objc.ID) *NSXPCConnection
func (*NSXPCConnection) AuditSessionIdentifier ¶
func (o *NSXPCConnection) AuditSessionIdentifier() int
func (*NSXPCConnection) EffectiveGroupIdentifier ¶
func (o *NSXPCConnection) EffectiveGroupIdentifier() uint
func (*NSXPCConnection) EffectiveUserIdentifier ¶
func (o *NSXPCConnection) EffectiveUserIdentifier() uint
func (*NSXPCConnection) Endpoint ¶
func (o *NSXPCConnection) Endpoint() *NSXPCListenerEndpoint
func (*NSXPCConnection) ExportedInterface ¶
func (o *NSXPCConnection) ExportedInterface() *NSXPCInterface
func (*NSXPCConnection) ExportedObject ¶
func (o *NSXPCConnection) ExportedObject() objc.ID
func (*NSXPCConnection) InitWithListenerEndpoint ¶
func (o *NSXPCConnection) InitWithListenerEndpoint(endpoint *NSXPCListenerEndpoint) *NSXPCConnection
Initializes an NSXPCConnection object to connect to an NSXPCListener object in another process, identified by an NSXPCListenerEndpoint object.
func (*NSXPCConnection) InitWithMachServiceNameOptions ¶
func (o *NSXPCConnection) InitWithMachServiceNameOptions(name *NSString, options NSXPCConnectionOptions) *NSXPCConnection
Initializes an NSXPCConnection object to connect to a LaunchAgent or LaunchDaemon with a name advertised in a launchd.plist.
func (*NSXPCConnection) InitWithServiceName ¶
func (o *NSXPCConnection) InitWithServiceName(serviceName *NSString) *NSXPCConnection
Initializes an NSXPCConnection object to connect to an NSXPCListener object in an XPC service, identified by a service name.
func (*NSXPCConnection) InterruptionHandler ¶
func (o *NSXPCConnection) InterruptionHandler() objc.Block
func (*NSXPCConnection) Invalidate ¶
func (o *NSXPCConnection) Invalidate()
Invalidates the connection.
func (*NSXPCConnection) InvalidationHandler ¶
func (o *NSXPCConnection) InvalidationHandler() objc.Block
func (*NSXPCConnection) ProcessIdentifier ¶
func (o *NSXPCConnection) ProcessIdentifier() int
func (*NSXPCConnection) RemoteObjectInterface ¶
func (o *NSXPCConnection) RemoteObjectInterface() *NSXPCInterface
func (*NSXPCConnection) RemoteObjectProxy ¶
func (o *NSXPCConnection) RemoteObjectProxy() objc.ID
func (*NSXPCConnection) RemoteObjectProxyWithErrorHandler ¶
func (o *NSXPCConnection) RemoteObjectProxyWithErrorHandler(handler func(unsafe.Pointer)) objc.ID
Returns a proxy for the remote object (that is, the object exported from the other side of this connection) with the specified error handler.
func (*NSXPCConnection) Resume ¶
func (o *NSXPCConnection) Resume()
Starts or resumes handling of messages on a connection.
func (*NSXPCConnection) ScheduleSendBarrierBlock ¶
func (o *NSXPCConnection) ScheduleSendBarrierBlock(block func())
Add a barrier block to execute on the connection.
func (*NSXPCConnection) ServiceName ¶
func (o *NSXPCConnection) ServiceName() *NSString
func (*NSXPCConnection) SetCodeSigningRequirement ¶
func (o *NSXPCConnection) SetCodeSigningRequirement(requirement *NSString)
Sets the code signing requirement for this connection.
func (*NSXPCConnection) SetExportedInterface ¶
func (o *NSXPCConnection) SetExportedInterface(exportedInterface *NSXPCInterface)
func (*NSXPCConnection) SetExportedObject ¶
func (o *NSXPCConnection) SetExportedObject(exportedObject objc.ID)
func (*NSXPCConnection) SetInterruptionHandler ¶
func (o *NSXPCConnection) SetInterruptionHandler(interruptionHandler func())
func (*NSXPCConnection) SetInvalidationHandler ¶
func (o *NSXPCConnection) SetInvalidationHandler(invalidationHandler func())
func (*NSXPCConnection) SetRemoteObjectInterface ¶
func (o *NSXPCConnection) SetRemoteObjectInterface(remoteObjectInterface *NSXPCInterface)
func (*NSXPCConnection) SynchronousRemoteObjectProxyWithErrorHandler ¶
func (o *NSXPCConnection) SynchronousRemoteObjectProxyWithErrorHandler(handler func(unsafe.Pointer)) objc.ID
Returns a proxy that makes a synchronous IPC call instead of the default async behavior.
type NSXPCConnectionOptions ¶
type NSXPCConnectionOptions uint64
Options that you can pass to a connection.
const (
NSXPCConnectionPrivileged NSXPCConnectionOptions = 4096
)
func (NSXPCConnectionOptions) String ¶
func (e NSXPCConnectionOptions) String() string
type NSXPCInterface ¶
type NSXPCInterface struct {
NSObject
}
An interface that may be sent to an exported object or remote object proxy.
Apple documentation: https://developer.apple.com/documentation/foundation/nsxpcinterface
func NSXPCInterfaceFromID ¶
func NSXPCInterfaceFromID(id objc.ID) *NSXPCInterface
func NSXPCInterfaceInterfaceWithProtocol ¶
func NSXPCInterfaceInterfaceWithProtocol(protocol unsafe.Pointer) *NSXPCInterface
Returns an NSXPCInterface instance for a given protocol.
func (*NSXPCInterface) ClassesForSelectorArgumentIndexOfReply ¶
func (o *NSXPCInterface) ClassesForSelectorArgumentIndexOfReply(sel objc.SEL, arg uint, ofReply bool) *NSSet[objc.Class]
Returns the current list of allowed classes that can appear within the specified collection object argument to the specified method.
func (*NSXPCInterface) InterfaceForSelectorArgumentIndexOfReply ¶
func (o *NSXPCInterface) InterfaceForSelectorArgumentIndexOfReply(sel objc.SEL, arg uint, ofReply bool) *NSXPCInterface
Returns the interface previously set for the specified selector and parameter.
func (*NSXPCInterface) Protocol ¶
func (o *NSXPCInterface) Protocol() unsafe.Pointer
func (*NSXPCInterface) SetClassesForSelectorArgumentIndexOfReply ¶
func (o *NSXPCInterface) SetClassesForSelectorArgumentIndexOfReply(classes *NSSet[objc.Class], sel objc.SEL, arg uint, ofReply bool)
Sets the classes that can appear within the (numerically) specified collection object argument to the specified method.
func (*NSXPCInterface) SetInterfaceForSelectorArgumentIndexOfReply ¶
func (o *NSXPCInterface) SetInterfaceForSelectorArgumentIndexOfReply(ifc *NSXPCInterface, sel objc.SEL, arg uint, ofReply bool)
Configures a specific parameter of a method to be sent as a proxy object instead of copied.
func (*NSXPCInterface) SetProtocol ¶
func (o *NSXPCInterface) SetProtocol(protocol unsafe.Pointer)
func (*NSXPCInterface) SetXPCTypeForSelectorArgumentIndexOfReply ¶
func (*NSXPCInterface) XPCTypeForSelectorArgumentIndexOfReply ¶
type NSXPCListener ¶
type NSXPCListener struct {
NSObject
}
A listener that waits for new incoming connections, configures them, and accepts or rejects them.
Apple documentation: https://developer.apple.com/documentation/foundation/nsxpclistener
func NSXPCListenerAnonymousListener ¶
func NSXPCListenerAnonymousListener() *NSXPCListener
Returns a new anonymous listener connection.
func NSXPCListenerFromID ¶
func NSXPCListenerFromID(id objc.ID) *NSXPCListener
func NSXPCListenerServiceListener ¶
func NSXPCListenerServiceListener() *NSXPCListener
Returns the singleton listener used to listen for incoming connections in an XPC service.
func (*NSXPCListener) Delegate ¶
func (o *NSXPCListener) Delegate() NSXPCListenerDelegate
func (*NSXPCListener) Endpoint ¶
func (o *NSXPCListener) Endpoint() *NSXPCListenerEndpoint
func (*NSXPCListener) InitWithMachServiceName ¶
func (o *NSXPCListener) InitWithMachServiceName(name *NSString) *NSXPCListener
Initializes a listener in a LaunchAgent or LaunchDaemon which has a name advertised in a launchd.plist file.
func (*NSXPCListener) Resume ¶
func (o *NSXPCListener) Resume()
Starts processing of incoming requests.
func (*NSXPCListener) SetConnectionCodeSigningRequirement ¶
func (o *NSXPCListener) SetConnectionCodeSigningRequirement(requirement *NSString)
Sets the code signing requirement for connections to this listener.
func (*NSXPCListener) SetDelegate ¶
func (o *NSXPCListener) SetDelegate(delegate NSXPCListenerDelegate)
type NSXPCListenerDelegate ¶
type NSXPCListenerDelegate interface {
}
NSXPCListenerDelegate wraps the ObjC protocol NSXPCListenerDelegate.
type NSXPCListenerEndpoint ¶
type NSXPCListenerEndpoint struct {
NSObject
}
An object that names a specific XPC listener.
Apple documentation: https://developer.apple.com/documentation/foundation/nsxpclistenerendpoint
func NSXPCListenerEndpointFromID ¶
func NSXPCListenerEndpointFromID(id objc.ID) *NSXPCListenerEndpoint
type NSXPCProxyCreating ¶
type NSXPCProxyCreating interface {
RemoteObjectProxy() objc.ID
RemoteObjectProxyWithErrorHandler(handler func(unsafe.Pointer)) objc.ID
}
NSXPCProxyCreating wraps the ObjC protocol NSXPCProxyCreating.
type ObjcClass ¶
type ObjcClass struct{}
An opaque type that represents an Objective-C class. C struct: objc_class ObjcClass is an opaque type.
type ObjcObject ¶
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 ¶
func (e Virtual_memory_guard_exception_code_t) String() 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 ¶
func (e Xpc_listener_create_flags_t) String() 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 ¶
func (e Xpc_session_create_flags_t) String() string
Source Files
¶
- NSAffineTransform.go
- NSAppleEventDescriptor.go
- NSAppleEventManager.go
- NSAppleScript.go
- NSArchiver.go
- NSArray.go
- NSAssertionHandler.go
- NSAttributedString.go
- NSAttributedStringMarkdownParsingOptions.go
- NSAttributedStringMarkdownSourcePosition.go
- NSAutoreleasePool.go
- NSBackgroundActivityScheduler.go
- NSBlockOperation.go
- NSBundle.go
- NSByteCountFormatter.go
- NSCache.go
- NSCachedURLResponse.go
- NSCalendar.go
- NSCalendarDate.go
- NSCharacterSet.go
- NSClassDescription.go
- NSCloneCommand.go
- NSCloseCommand.go
- NSCoder.go
- NSComparisonPredicate.go
- NSCompoundPredicate.go
- NSCondition.go
- NSConditionLock.go
- NSConnection.go
- NSConstantString.go
- NSCountedSet.go
- NSCreateCommand.go
- NSData.go
- NSDataDetector.go
- NSDate.go
- NSDateComponents.go
- NSDateComponentsFormatter.go
- NSDateFormatter.go
- NSDateInterval.go
- NSDateIntervalFormatter.go
- NSDecimalNumber.go
- NSDecimalNumberHandler.go
- NSDeleteCommand.go
- NSDictionary.go
- NSDimension.go
- NSDirectoryEnumerator.go
- NSDistantObject.go
- NSDistantObjectRequest.go
- NSDistributedLock.go
- NSDistributedNotificationCenter.go
- NSEnergyFormatter.go
- NSEnumerator.go
- NSError.go
- NSException.go
- NSExpression.go
- NSExtensionContext.go
- NSExtensionItem.go
- NSFileAccessIntent.go
- NSFileCoordinator.go
- NSFileHandle.go
- NSFileManager.go
- NSFileProviderService.go
- NSFileSecurity.go
- NSFileVersion.go
- NSFileWrapper.go
- NSFormatter.go
- NSGarbageCollector.go
- NSHTTPCookie.go
- NSHTTPCookieStorage.go
- NSHTTPURLResponse.go
- NSHashTable.go
- NSHost.go
- NSISO8601DateFormatter.go
- NSIndexPath.go
- NSIndexSet.go
- NSIndexSpecifier.go
- NSInflectionRule.go
- NSInflectionRuleExplicit.go
- NSInputStream.go
- NSInvocation.go
- NSInvocationOperation.go
- NSItemProvider.go
- NSJSONSerialization.go
- NSKeyValueSharedObservers.go
- NSKeyValueSharedObserversSnapshot.go
- NSKeyedArchiver.go
- NSKeyedUnarchiver.go
- NSLengthFormatter.go
- NSLinguisticTagger.go
- NSListFormatter.go
- NSLocale.go
- NSLocalizedNumberFormatRule.go
- NSLock.go
- NSLogicalTest.go
- NSMachBootstrapServer.go
- NSMachPort.go
- NSMapTable.go
- NSMassFormatter.go
- NSMeasurement.go
- NSMeasurementFormatter.go
- NSMessagePort.go
- NSMessagePortNameServer.go
- NSMetadataItem.go
- NSMetadataQuery.go
- NSMetadataQueryAttributeValueTuple.go
- NSMetadataQueryResultGroup.go
- NSMethodSignature.go
- NSMorphology.go
- NSMorphologyCustomPronoun.go
- NSMorphologyPronoun.go
- NSMoveCommand.go
- NSMutableArray.go
- NSMutableAttributedString.go
- NSMutableCharacterSet.go
- NSMutableData.go
- NSMutableDictionary.go
- NSMutableIndexSet.go
- NSMutableOrderedSet.go
- NSMutableSet.go
- NSMutableString.go
- NSMutableURLRequest.go
- NSNameSpecifier.go
- NSNetService.go
- NSNetServiceBrowser.go
- NSNotification.go
- NSNotificationCenter.go
- NSNotificationQueue.go
- NSNull.go
- NSNumber.go
- NSNumberFormatter.go
- NSObject.go
- NSOperation.go
- NSOperationQueue.go
- NSOrderedCollectionChange.go
- NSOrderedCollectionDifference.go
- NSOrderedSet.go
- NSOrthography.go
- NSOutputStream.go
- NSPersonNameComponents.go
- NSPersonNameComponentsFormatter.go
- NSPipe.go
- NSPointerArray.go
- NSPointerFunctions.go
- NSPort.go
- NSPortCoder.go
- NSPortMessage.go
- NSPortNameServer.go
- NSPositionalSpecifier.go
- NSPredicate.go
- NSPresentationIntent.go
- NSProcessInfo.go
- NSProgress.go
- NSPropertyListSerialization.go
- NSProtocolChecker.go
- NSProxy.go
- NSPurgeableData.go
- NSQuitCommand.go
- NSRangeSpecifier.go
- NSRecursiveLock.go
- NSRegularExpression.go
- NSRelativeDateTimeFormatter.go
- NSRelativeSpecifier.go
- NSRunLoop.go
- NSScanner.go
- NSScriptClassDescription.go
- NSScriptCoercionHandler.go
- NSScriptCommand.go
- NSScriptCommandDescription.go
- NSScriptExecutionContext.go
- NSScriptObjectSpecifier.go
- NSScriptSuiteRegistry.go
- NSScriptWhoseTest.go
- NSSecureUnarchiveFromDataTransformer.go
- NSSet.go
- NSSetCommand.go
- NSSimpleCString.go
- NSSocketPort.go
- NSSocketPortNameServer.go
- NSSortDescriptor.go
- NSSpecifierTest.go
- NSSpellServer.go
- NSStream.go
- NSString.go
- NSTask.go
- NSTermOfAddress.go
- NSTextCheckingResult.go
- NSThread.go
- NSTimeZone.go
- NSTimer.go
- NSURL.go
- NSURLAuthenticationChallenge.go
- NSURLCache.go
- NSURLComponents.go
- NSURLConnection.go
- NSURLCredential.go
- NSURLCredentialStorage.go
- NSURLDownload.go
- NSURLHandle.go
- NSURLProtectionSpace.go
- NSURLProtocol.go
- NSURLQueryItem.go
- NSURLRequest.go
- NSURLResponse.go
- NSURLSession.go
- NSURLSessionConfiguration.go
- NSURLSessionDataTask.go
- NSURLSessionDownloadTask.go
- NSURLSessionStreamTask.go
- NSURLSessionTask.go
- NSURLSessionTaskMetrics.go
- NSURLSessionTaskTransactionMetrics.go
- NSURLSessionUploadTask.go
- NSURLSessionWebSocketMessage.go
- NSURLSessionWebSocketTask.go
- NSUUID.go
- NSUbiquitousKeyValueStore.go
- NSUnarchiver.go
- NSUndoManager.go
- NSUniqueIDSpecifier.go
- NSUnit.go
- NSUnitAcceleration.go
- NSUnitAngle.go
- NSUnitArea.go
- NSUnitConcentrationMass.go
- NSUnitConverter.go
- NSUnitConverterLinear.go
- NSUnitDispersion.go
- NSUnitDuration.go
- NSUnitElectricCharge.go
- NSUnitElectricCurrent.go
- NSUnitElectricPotentialDifference.go
- NSUnitElectricResistance.go
- NSUnitEnergy.go
- NSUnitFrequency.go
- NSUnitFuelEfficiency.go
- NSUnitIlluminance.go
- NSUnitInformationStorage.go
- NSUnitLength.go
- NSUnitMass.go
- NSUnitPower.go
- NSUnitPressure.go
- NSUnitSpeed.go
- NSUnitTemperature.go
- NSUnitVolume.go
- NSUserActivity.go
- NSUserAppleScriptTask.go
- NSUserAutomatorTask.go
- NSUserDefaults.go
- NSUserNotification.go
- NSUserNotificationAction.go
- NSUserNotificationCenter.go
- NSUserScriptTask.go
- NSUserUnixTask.go
- NSValue.go
- NSValueTransformer.go
- NSWhoseSpecifier.go
- NSXMLDTD.go
- NSXMLDTDNode.go
- NSXMLDocument.go
- NSXMLElement.go
- NSXMLNode.go
- NSXMLParser.go
- NSXPCCoder.go
- NSXPCConnection.go
- NSXPCInterface.go
- NSXPCListener.go
- NSXPCListenerEndpoint.go
- doc.go
- foundation_enums.go
- foundation_externs.go
- foundation_functions.go
- foundation_protocols.go
- foundation_runtime.go
- foundation_structs.go