NSLocale class

NSLocale

Inheritance
Implemented types
Available extensions

Constructors

NSLocale.new()
Returns a new instance of NSLocale constructed with the default new method.
factory
NSLocale.castFrom(ObjCObjectBase other)
Constructs a NSLocale that points to the same underlying object as other.
NSLocale.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a NSLocale that wraps the given raw object pointer.

Properties

debugDescription NSString

Available on NSObject, provided by the NSObject$Methods extension

debugDescription
no setter
description NSString

Available on NSObject, provided by the NSObject$Methods extension

description
no setter
hash int

Available on NSObject, provided by the NSObject$Methods extension

hash
no setter
hashCode int
The hash code for this object.
no setterinherited
isProxy bool

Available on NSObject, provided by the NSObject$Methods extension

isProxy
no setter
ref ObjCObjectRef
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
superclass ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

superclass
no setter

Methods

addObserver(Observer observer, {required NSString forKeyPath, NSKeyValueObservingOptions options = NSKeyValueObservingOptions.NSKeyValueObservingOptionNew, Pointer<Void>? context}) Observation

Available on NSObject, provided by the Observed extension

Registers the Observer to receive KVO notifications for the key path relative to this NSObject.
autorelease() NSLocale

Available on NSLocale, provided by the NSLocale$Methods extension

autorelease
autorelease() NSObject

Available on NSObject, provided by the NSObject$Methods extension

autorelease
class$() ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

class
conformsToProtocol(Protocol aProtocol) bool

Available on NSObject, provided by the NSObject$Methods extension

conformsToProtocol:
copy() ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

copy
dealloc() → void

Available on NSObject, provided by the NSObject$Methods extension

dealloc
displayNameForKey(NSString key, {required ObjCObjectBase value}) NSString?

Available on NSLocale, provided by the NSLocale$Methods extension

displayNameForKey:value:
doesNotRecognizeSelector(Pointer<ObjCSelector> aSelector) → void

Available on NSObject, provided by the NSObject$Methods extension

doesNotRecognizeSelector:
encodeWithCoder(NSCoder coder) → void

Available on NSLocale, provided by the NSLocale$Methods extension

encodeWithCoder:
forwardingTargetForSelector(Pointer<ObjCSelector> aSelector) ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

forwardingTargetForSelector:
forwardInvocation(NSInvocation anInvocation) → void

Available on NSObject, provided by the NSObject$Methods extension

forwardInvocation:
init() NSLocale

Available on NSLocale, provided by the NSLocale$Methods extension

init
init() NSObject

Available on NSObject, provided by the NSObject$Methods extension

init
initWithCoder(NSCoder coder) NSLocale?

Available on NSLocale, provided by the NSLocale$Methods extension

initWithCoder:
initWithLocaleIdentifier(NSString string) NSLocale

Available on NSLocale, provided by the NSLocale$Methods extension

initWithLocaleIdentifier:
isEqual(ObjCObjectBase object) bool

Available on NSObject, provided by the NSObject$Methods extension

isEqual:
isKindOfClass(ObjCObjectBase aClass) bool

Available on NSObject, provided by the NSObject$Methods extension

isKindOfClass:
isMemberOfClass(ObjCObjectBase aClass) bool

Available on NSObject, provided by the NSObject$Methods extension

isMemberOfClass:
methodForSelector(Pointer<ObjCSelector> aSelector) Pointer<NativeFunction<Void Function()>>

Available on NSObject, provided by the NSObject$Methods extension

methodForSelector:
methodSignatureForSelector(Pointer<ObjCSelector> aSelector) NSMethodSignature

Available on NSObject, provided by the NSObject$Methods extension

methodSignatureForSelector:
mutableCopy() ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

mutableCopy
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
objectForKey(NSString key) ObjCObjectBase?

Available on NSLocale, provided by the NSLocale$Methods extension

objectForKey:
performSelector(Pointer<ObjCSelector> aSelector) ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

performSelector:
performSelector$1(Pointer<ObjCSelector> aSelector, {required ObjCObjectBase withObject}) ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

performSelector:withObject:
performSelector$2(Pointer<ObjCSelector> aSelector, {required ObjCObjectBase withObject, required ObjCObjectBase withObject$1}) ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

performSelector:withObject:withObject:
release() → void

Available on NSObject, provided by the NSObject$Methods extension

release
respondsToSelector(Pointer<ObjCSelector> aSelector) bool

Available on NSObject, provided by the NSObject$Methods extension

respondsToSelector:
retain() NSLocale

Available on NSLocale, provided by the NSLocale$Methods extension

retain
retain() NSObject

Available on NSObject, provided by the NSObject$Methods extension

retain
retainCount() int

Available on NSObject, provided by the NSObject$Methods extension

retainCount
self$1() NSLocale

Available on NSLocale, provided by the NSLocale$Methods extension

self
self$1() NSObject

Available on NSObject, provided by the NSObject$Methods extension

self
toString() String
A string representation of this object.
inherited
zone() Pointer<NSZone>

Available on NSObject, provided by the NSObject$Methods extension

zone

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

alloc() NSLocale
alloc
override
allocWithZone(Pointer<NSZone> zone) NSLocale
allocWithZone:
override
getSupportsSecureCoding() bool
supportsSecureCoding
isInstance(ObjCObjectBase obj) bool
Returns whether obj is an instance of NSLocale.
override
localeWithLocaleIdentifier(NSString ident) NSLocale
localeWithLocaleIdentifier:
new$() NSLocale
new
override