public class NSObject extends Object
| Constructor and Description |
|---|
NSObject()
The default constructor of the NSObject.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObserver(NSObject observer,
String keyPath,
int NSKeyValueObservingOptions,
Object context) |
void |
observeValueForKeyPath(String keyPath,
Object object,
Map<String,Object> change,
Object context) |
<A> void |
performSelector(NSSelector<A> selector,
A arg,
double delay)
Applies the specified method to this object using delay.
|
<A> void |
performSelectorOnMainThread(NSSelector<A> selector,
A arg,
boolean waitUntilDone)
Applies the specified method to this object with the option of suspending
the thread.
|
void |
release()
Applies the low level method on this object.
|
void |
removeObserver(NSObject observer,
String keyPath) |
void |
removeObserver(NSObject observer,
String keyPath,
Object context) |
NSObject |
retain()
Sends the retain message to this object.(Objective-C's feature)
|
void |
setValueForKey(Object value,
String key)
Sets the value of the property specified by the key to the specified value.
|
void |
setValueForUndefinedKey(Object value,
String key) |
Object |
valueForKey(String key)
Returns the id value of the specified key.
|
Object |
valueForUndefinedKey(String key) |
public final <A> void performSelector(NSSelector<A> selector, A arg, double delay)
A - argument typeselector - Defines which method to apply.arg - The argument of the method that is applied. NULL if the method
has no arguments.delay - The minimum time before which the message is sent.public final <A> void performSelectorOnMainThread(NSSelector<A> selector, A arg, boolean waitUntilDone)
A - The type of the argumentselector - Defines which method to apply.arg - The argument of the method that is applied. NULL if the method
has no arguments.waitUntilDone - TRUE then the current thread waits until the method
is applied.public final NSObject retain()
public final void release()
public void setValueForKey(Object value, String key)
value - The value to set on the property.key - The name of the property whose value you want to retrieve.public Object valueForKey(String key)
key - The key name of the value to be retrieved.public void addObserver(NSObject observer, String keyPath, int NSKeyValueObservingOptions, Object context)
Copyright © 2020. All rights reserved.