public class NSObject extends org.moe.natj.objc.ObjCObject implements NSObject
| Modifier and Type | Class and Description |
|---|---|
static interface |
NSObject.Function_instanceMethodForSelector_ret |
static interface |
NSObject.Function_methodForSelector_ret |
| Modifier | Constructor and Description |
|---|---|
protected |
NSObject(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accessibilityActivate()
Implement accessibilityActivate on an element in order to handle the default action.
|
CGPoint |
accessibilityActivationPoint()
Returns the activation point for an accessible element in screen coordinates.
|
NSSet<java.lang.String> |
accessibilityAssistiveTechnologyFocusedIdentifiers()
Returns a set of identifier keys indicating which technology is focused on this object
|
NSAttributedString |
accessibilityAttributedHint()
The underlying attributed version of the accessibility hint.
|
NSAttributedString |
accessibilityAttributedLabel()
The underlying attributed version of the accessibility label.
|
NSArray<? extends NSAttributedString> |
accessibilityAttributedUserInputLabels()
The underlying attributed versions of the accessibility user input label(s).
|
NSAttributedString |
accessibilityAttributedValue()
The underlying attributed version of the accessibility value.
|
long |
accessibilityContainerType()
Some containers provide more context for accessibility elements, such as tables or lists.
|
NSArray<? extends UIAccessibilityCustomAction> |
accessibilityCustomActions()
Return an array of UIAccessibilityCustomAction objects to make custom actions for an element accessible to an assistive technology.
|
NSArray<? extends UIAccessibilityCustomRotor> |
accessibilityCustomRotors() |
void |
accessibilityDecrement() |
NSArray<? extends UIAccessibilityLocationDescriptor> |
accessibilityDragSourceDescriptors()
By default, if an accessible view or its subtree has drag and/or drop interactions, they will be
automatically exposed by assistive technologies.
|
NSArray<? extends UIAccessibilityLocationDescriptor> |
accessibilityDropPointDescriptors() |
java.lang.Object |
accessibilityElementAtIndex(long index)
Returns the accessibility element in order, based on index.
|
long |
accessibilityElementCount()
Returns the number of accessibility elements in the container.
|
void |
accessibilityElementDidBecomeFocused()
Override the following methods to know when an assistive technology has set or unset its virtual focus on the element.
|
void |
accessibilityElementDidLoseFocus() |
boolean |
accessibilityElementIsFocused()
Returns whether an assistive technology is focused on the element.
|
NSArray<?> |
accessibilityElements()
A list of container elements managed by the receiver.
|
boolean |
accessibilityElementsHidden()
Marks all the accessible elements contained within as hidden.
|
CGRect |
accessibilityFrame()
Returns the frame of the element in screen coordinates.
|
java.lang.String |
accessibilityHint()
Returns a localized string that describes the result of performing an action on the element, when the result is non-obvious.
|
void |
accessibilityIncrement()
If an element has the UIAccessibilityTraitAdjustable trait, it must also implement
the following methods.
|
java.lang.String |
accessibilityLabel()
Returns the localized label that represents the element.
|
java.lang.String |
accessibilityLanguage()
Returns the language code that the element's label, value and hint should be spoken in.
|
long |
accessibilityNavigationStyle()
Some assistive technologies allow the user to select a parent view or container to navigate its elements.
|
UIBezierPath |
accessibilityPath()
Returns the path of the element in screen coordinates.
|
boolean |
accessibilityPerformEscape()
Implement accessibilityPerformEscape on an element or containing view to exit a modal or hierarchical interface view.
|
boolean |
accessibilityPerformMagicTap()
Implement accessibilityPerformMagicTap on an element, or the application, in order to provide a context-sensitive action.
|
boolean |
accessibilityRespondsToUserInteraction()
Returns whether the element performs an action based on user interaction.
|
boolean |
accessibilityScroll(long direction) |
java.lang.String |
accessibilityTextualContext()
Returns an appropriate, named context to help identify and classify the type of text inside this element.
|
long |
accessibilityTraits()
Returns a UIAccessibilityTraits mask that is the OR combination of
all accessibility traits that best characterize the element.
|
NSArray<java.lang.String> |
accessibilityUserInputLabels()
Returns the localized label(s) that should be provided by the user to refer to this element.
|
java.lang.String |
accessibilityValue()
Returns a localized string that represents the value of the element, such as the value
of a slider or the text in a text field.
|
boolean |
accessibilityViewIsModal()
Informs whether the receiving view should be considered modal by accessibility.
|
static boolean |
accessInstanceVariablesDirectly()
Return YES if -valueForKey:, -setValue:forKey:, -mutableArrayValueForKey:, -storedValueForKey:, -takeStoredValue:forKey:, and -takeValue:forKey: may directly manipulate instance variables when sent to instances of the receiving class, NO otherwise.
|
void |
addObserverForKeyPathOptionsContext(NSObject observer,
java.lang.String keyPath,
long options,
org.moe.natj.general.ptr.VoidPtr context)
Register or deregister as an observer of the value at a key path relative to the receiver.
|
static NSObject |
alloc() |
static NSObject |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
attemptRecoveryFromErrorOptionIndex(NSError error,
long recoveryOptionIndex)
Given that an error alert has been presented applicaton-modally to the user, and the user has chosen one of the error's recovery options, attempt recovery from the error, and return YES if error recovery was completely successful, NO otherwise.
|
void |
attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo(NSError error,
long recoveryOptionIndex,
java.lang.Object delegate,
org.moe.natj.objc.SEL didRecoverSelector,
org.moe.natj.general.ptr.VoidPtr contextInfo)
Given that an error alert has been presented document-modally to the user, and the user has chosen one of the error's recovery options, attempt recovery from the error, and send the selected message to the specified delegate.
|
java.lang.Object |
autoContentAccessingProxy() |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key)
Return YES if the key-value observing machinery should automatically invoke -willChangeValueForKey:/-didChangeValueForKey:, -willChange:valuesAtIndexes:forKey:/-didChange:valuesAtIndexes:forKey:, or -willChangeValueForKey:withSetMutation:usingObjects:/-didChangeValueForKey:withSetMutation:usingObjects: whenever instances of the class receive key-value coding messages for the key, or mutating key-value coding-compliant methods for the key are invoked.
|
java.lang.Object |
awakeAfterUsingCoder(NSCoder coder) |
void |
awakeFromNib() |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
org.moe.natj.objc.Class |
class_objc() |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver()
Implemented by classes to substitute new instances for the receiving
instance during encoding.
|
org.moe.natj.objc.Class |
classForCoder() |
org.moe.natj.objc.Class |
classForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.Object |
copy() |
void |
dealloc() |
static java.lang.String |
debugDescription_static() |
java.lang.String |
debugDescription() |
static java.lang.String |
description_static() |
java.lang.String |
description() |
NSDictionary<java.lang.String,?> |
dictionaryWithValuesForKeys(NSArray<java.lang.String> keys)
Given an array of keys, return a dictionary containing the keyed attribute values, to-one-related objects, and/or collections of to-many-related objects.
|
void |
didChangeValueForKey(java.lang.String key) |
void |
didChangeValueForKeyWithSetMutationUsingObjects(java.lang.String key,
long mutationKind,
NSSet<?> objects) |
void |
didChangeValuesAtIndexesForKey(long changeKind,
NSIndexSet indexes,
java.lang.String key) |
void |
doesNotRecognizeSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
fileManagerShouldProceedAfterError(NSFileManager fm,
NSDictionary<?,?> errorInfo)
Deprecated.
|
void |
fileManagerWillProcessPath(NSFileManager fm,
java.lang.String path)
Deprecated.
|
void |
finalize_objc()
Deprecated.
|
java.lang.Object |
forwardingTargetForSelector(org.moe.natj.objc.SEL aSelector) |
void |
forwardInvocation(NSInvocation anInvocation) |
static long |
hash_static() |
long |
hash() |
long |
indexOfAccessibilityElement(java.lang.Object element)
Returns the ordered index for an accessibility element
default == NSNotFound
|
NSObject |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isAccessibilityElement()
Return YES if the receiver should be exposed as an accessibility element.
|
boolean |
isEqual(java.lang.Object object) |
boolean |
isKindOfClass(org.moe.natj.objc.Class aClass) |
boolean |
isMemberOfClass(org.moe.natj.objc.Class aClass) |
boolean |
isProxy() |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key)
Return a set of key paths for properties whose values affect the value of the keyed property.
|
NSObject.Function_methodForSelector_ret |
methodForSelector(org.moe.natj.objc.SEL aSelector) |
NSMethodSignature |
methodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
NSMutableArray<?> |
mutableArrayValueForKey(java.lang.String key)
Given a key that identifies an _ordered_ to-many relationship, return a mutable array that provides read-write access to the related objects.
|
NSMutableArray<?> |
mutableArrayValueForKeyPath(java.lang.String keyPath) |
java.lang.Object |
mutableCopy() |
NSMutableOrderedSet<?> |
mutableOrderedSetValueForKey(java.lang.String key)
Given a key that identifies an _ordered_ and uniquing to-many relationship, return a mutable ordered set that provides read-write access to the related objects.
|
NSMutableOrderedSet<?> |
mutableOrderedSetValueForKeyPath(java.lang.String keyPath) |
NSMutableSet<?> |
mutableSetValueForKey(java.lang.String key)
Given a key that identifies an _unordered_ and uniquing to-many relationship, return a mutable set that provides read-write access to the related objects.
|
NSMutableSet<?> |
mutableSetValueForKeyPath(java.lang.String keyPath) |
static NSObject |
new_objc() |
org.moe.natj.general.ptr.VoidPtr |
observationInfo()
Take or return a pointer that identifies information about all of the observers that are registered with the receiver, the options that were used at registration-time, etc.
|
void |
observeValueForKeyPathOfObjectChangeContext(java.lang.String keyPath,
java.lang.Object object,
NSDictionary<java.lang.String,?> change,
org.moe.natj.general.ptr.VoidPtr context)
Given that the receiver has been registered as an observer of the value at a key path relative to an object, be notified of a change to that value.
|
java.lang.Object |
performSelector(org.moe.natj.objc.SEL aSelector) |
void |
performSelectorInBackgroundWithObject(org.moe.natj.objc.SEL aSelector,
java.lang.Object arg)
equivalent to the first method with kCFRunLoopCommonModes
|
void |
performSelectorOnMainThreadWithObjectWaitUntilDone(org.moe.natj.objc.SEL aSelector,
java.lang.Object arg,
boolean wait_) |
void |
performSelectorOnMainThreadWithObjectWaitUntilDoneModes(org.moe.natj.objc.SEL aSelector,
java.lang.Object arg,
boolean wait_,
NSArray<java.lang.String> array) |
void |
performSelectorOnThreadWithObjectWaitUntilDone(org.moe.natj.objc.SEL aSelector,
NSThread thr,
java.lang.Object arg,
boolean wait_) |
void |
performSelectorOnThreadWithObjectWaitUntilDoneModes(org.moe.natj.objc.SEL aSelector,
NSThread thr,
java.lang.Object arg,
boolean wait_,
NSArray<java.lang.String> array)
equivalent to the first method with kCFRunLoopCommonModes
|
java.lang.Object |
performSelectorWithObject(org.moe.natj.objc.SEL aSelector,
java.lang.Object object) |
void |
performSelectorWithObjectAfterDelay(org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument,
double delay) |
void |
performSelectorWithObjectAfterDelayInModes(org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument,
double delay,
NSArray<java.lang.String> modes) |
java.lang.Object |
performSelectorWithObjectWithObject(org.moe.natj.objc.SEL aSelector,
java.lang.Object object1,
java.lang.Object object2) |
void |
prepareForInterfaceBuilder() |
void |
provideImageDataBytesPerRowOrigin_Size_UserInfo(org.moe.natj.general.ptr.VoidPtr data,
long rowbytes,
long x,
long y,
long width,
long height,
java.lang.Object info)
Callee should initialize the given bitmap with the subregion x,y
width,height of the image.
|
void |
removeObserverForKeyPath(NSObject observer,
java.lang.String keyPath) |
void |
removeObserverForKeyPathContext(NSObject observer,
java.lang.String keyPath,
org.moe.natj.general.ptr.VoidPtr context) |
java.lang.Object |
replacementObjectForCoder(NSCoder coder) |
java.lang.Object |
replacementObjectForKeyedArchiver(NSKeyedArchiver archiver)
Implemented by classes to substitute a new class for instances during
encoding.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
boolean |
respondsToSelector(org.moe.natj.objc.SEL aSelector) |
NSObject |
self() |
void |
setAccessibilityActivationPoint(CGPoint value)
Returns the activation point for an accessible element in screen coordinates.
|
void |
setAccessibilityAttributedHint(NSAttributedString value)
The underlying attributed version of the accessibility hint.
|
void |
setAccessibilityAttributedLabel(NSAttributedString value)
The underlying attributed version of the accessibility label.
|
void |
setAccessibilityAttributedUserInputLabels(NSArray<? extends NSAttributedString> value)
The underlying attributed versions of the accessibility user input label(s).
|
void |
setAccessibilityAttributedValue(NSAttributedString value)
The underlying attributed version of the accessibility value.
|
void |
setAccessibilityContainerType(long value)
Some containers provide more context for accessibility elements, such as tables or lists.
|
void |
setAccessibilityCustomActions(NSArray<? extends UIAccessibilityCustomAction> value)
Return an array of UIAccessibilityCustomAction objects to make custom actions for an element accessible to an assistive technology.
|
void |
setAccessibilityCustomRotors(NSArray<? extends UIAccessibilityCustomRotor> value) |
void |
setAccessibilityDragSourceDescriptors(NSArray<? extends UIAccessibilityLocationDescriptor> value)
By default, if an accessible view or its subtree has drag and/or drop interactions, they will be
automatically exposed by assistive technologies.
|
void |
setAccessibilityDropPointDescriptors(NSArray<? extends UIAccessibilityLocationDescriptor> value) |
void |
setAccessibilityElements(NSArray<?> value)
A list of container elements managed by the receiver.
|
void |
setAccessibilityElementsHidden(boolean value)
Marks all the accessible elements contained within as hidden.
|
void |
setAccessibilityFrame(CGRect value)
Returns the frame of the element in screen coordinates.
|
void |
setAccessibilityHint(java.lang.String value)
Returns a localized string that describes the result of performing an action on the element, when the result is non-obvious.
|
void |
setAccessibilityLabel(java.lang.String value)
Returns the localized label that represents the element.
|
void |
setAccessibilityLanguage(java.lang.String value)
Returns the language code that the element's label, value and hint should be spoken in.
|
void |
setAccessibilityNavigationStyle(long value)
Some assistive technologies allow the user to select a parent view or container to navigate its elements.
|
void |
setAccessibilityPath(UIBezierPath value)
Returns the path of the element in screen coordinates.
|
void |
setAccessibilityRespondsToUserInteraction(boolean value)
Returns whether the element performs an action based on user interaction.
|
void |
setAccessibilityTextualContext(java.lang.String value)
Returns an appropriate, named context to help identify and classify the type of text inside this element.
|
void |
setAccessibilityTraits(long value)
Returns a UIAccessibilityTraits mask that is the OR combination of
all accessibility traits that best characterize the element.
|
void |
setAccessibilityUserInputLabels(NSArray<java.lang.String> value)
Returns the localized label(s) that should be provided by the user to refer to this element.
|
void |
setAccessibilityValue(java.lang.String value)
Returns a localized string that represents the value of the element, such as the value
of a slider or the text in a text field.
|
void |
setAccessibilityViewIsModal(boolean value)
Informs whether the receiving view should be considered modal by accessibility.
|
void |
setIsAccessibilityElement(boolean value)
Return YES if the receiver should be exposed as an accessibility element.
|
void |
setNilValueForKey(java.lang.String key)
Given that an invocation of -setValue:forKey: would be unable to set the keyed value because the type of the parameter of the corresponding accessor method is an NSNumber scalar type or NSValue structure type but the value is nil, set the keyed value using some other mechanism.
|
void |
setObservationInfo(org.moe.natj.general.ptr.VoidPtr value)
Take or return a pointer that identifies information about all of the observers that are registered with the receiver, the options that were used at registration-time, etc.
|
void |
setShouldGroupAccessibilityChildren(boolean value)
Forces children elements to be grouped together regardless of their position on screen.
|
void |
setValueForKey(java.lang.Object value,
java.lang.String key)
Given a value and a key that identifies an attribute, set the value of the attribute.
|
void |
setValueForKeyPath(java.lang.Object value,
java.lang.String keyPath) |
void |
setValueForUndefinedKey(java.lang.Object value,
java.lang.String key)
Given that an invocation of -setValue:forKey: would be unable to set the keyed value using its default mechanism, set the keyed value using some other mechanism.
|
void |
setValuesForKeysWithDictionary(NSDictionary<java.lang.String,?> keyedValues)
Given a dictionary containing keyed attribute values, to-one-related objects, and/or collections of to-many-related objects, set the keyed values.
|
static void |
setVersion_static(long aVersion) |
boolean |
shouldGroupAccessibilityChildren()
Forces children elements to be grouped together regardless of their position on screen.
|
static org.moe.natj.objc.Class |
superclass_static() |
org.moe.natj.objc.Class |
superclass() |
boolean |
validateValueForKeyError(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> ioValue,
java.lang.String inKey,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Given a pointer to a value pointer, a key that identifies an attribute or to-one relationship, and a pointer to an NSError pointer, return a value that is suitable for use in subsequent -setValue:forKey: messages sent to the same receiver.
|
boolean |
validateValueForKeyPathError(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> ioValue,
java.lang.String inKeyPath,
org.moe.natj.general.ptr.Ptr<NSError> outError) |
java.lang.Object |
valueForKey(java.lang.String key)
Given a key that identifies an attribute or to-one relationship, return the attribute value or the related object.
|
java.lang.Object |
valueForKeyPath(java.lang.String keyPath)
Key-path-taking variants of like-named methods.
|
java.lang.Object |
valueForUndefinedKey(java.lang.String key)
Given that an invocation of -valueForKey: would be unable to get a keyed value using its default access mechanism, return the keyed value using some other mechanism.
|
static long |
version_static() |
void |
willChangeValueForKey(java.lang.String key)
Given a key that identifies a property (attribute, to-one relationship, or ordered or unordered to-many relationship), send -observeValueForKeyPath:ofObject:change:context: notification messages of kind NSKeyValueChangeSetting to each observer registered for the key, including those that are registered with other objects using key paths that locate the keyed value in this object.
|
void |
willChangeValueForKeyWithSetMutationUsingObjects(java.lang.String key,
long mutationKind,
NSSet<?> objects)
Given a key that identifies an _unordered_ to-many relationship, send -observeValueForKeyPath:ofObject:change:context: notification messages to each observer registered for the key, including those that are registered with other objects using key paths that locate the keyed value in this object.
|
void |
willChangeValuesAtIndexesForKey(long changeKind,
NSIndexSet indexes,
java.lang.String key)
Given a key that identifies an _ordered_ to-many relationship, send -observeValueForKeyPath:ofObject:change:context: notification messages of the passed-in change kind to each observer registered for the key, including those that are registered with other objects using key paths that locate the keyed value in this object.
|
public static boolean accessInstanceVariablesDirectly()
public static NSObject alloc()
public static NSObject allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
This method and KVO's automatic use of it comprise a dependency mechanism that you can use instead of sending -willChangeValueForKey:/-didChangeValueForKey: messages for dependent, computed, properties.
You can override this method when the getter method of one of your properties computes a value to return using the values of other properties, including those that are located by key paths. Your override should typically invoke super and return a set that includes any members in the set that result from doing that (so as not to interfere with overrides of this method in superclasses).
You can't really override this method when you add a computed property to an existing class using a category, because you're not supposed to override methods in categories. In that case, implement a matching +keyPathsForValuesAffecting
public static NSObject new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public boolean accessibilityActivate()
public CGPoint accessibilityActivationPoint()
public NSSet<java.lang.String> accessibilityAssistiveTechnologyFocusedIdentifiers()
public NSArray<? extends UIAccessibilityCustomAction> accessibilityCustomActions()
public NSArray<? extends UIAccessibilityCustomRotor> accessibilityCustomRotors()
public void accessibilityDecrement()
public java.lang.Object accessibilityElementAtIndex(long index)
public long accessibilityElementCount()
public void accessibilityElementDidBecomeFocused()
public void accessibilityElementDidLoseFocus()
public boolean accessibilityElementIsFocused()
public NSArray<?> accessibilityElements()
public boolean accessibilityElementsHidden()
public CGRect accessibilityFrame()
public java.lang.String accessibilityHint()
public void accessibilityIncrement()
public java.lang.String accessibilityLabel()
public java.lang.String accessibilityLanguage()
public long accessibilityNavigationStyle()
public UIBezierPath accessibilityPath()
public boolean accessibilityPerformEscape()
public boolean accessibilityPerformMagicTap()
public boolean accessibilityScroll(long direction)
public long accessibilityTraits()
public java.lang.String accessibilityValue()
public boolean accessibilityViewIsModal()
public void addObserverForKeyPathOptionsContext(NSObject observer, java.lang.String keyPath, long options, org.moe.natj.general.ptr.VoidPtr context)
public boolean attemptRecoveryFromErrorOptionIndex(NSError error, long recoveryOptionIndex)
public void attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo(NSError error, long recoveryOptionIndex, java.lang.Object delegate, org.moe.natj.objc.SEL didRecoverSelector, org.moe.natj.general.ptr.VoidPtr contextInfo)
- (void)didPresentErrorWithRecovery:(BOOL)didRecover contextInfo:(void *)contextInfo;
The value passed for didRecover must be YES if error recovery was completely successful, NO otherwise.
public java.lang.Object autoContentAccessingProxy()
public java.lang.Object awakeAfterUsingCoder(NSCoder coder)
public void awakeFromNib()
public org.moe.natj.objc.Class class_objc()
class_objc in interface NSObjectpublic org.moe.natj.objc.Class classForCoder()
public org.moe.natj.objc.Class classForKeyedArchiver()
public java.lang.Object copy()
public final void dealloc()
public java.lang.String debugDescription()
debugDescription in interface NSObjectpublic java.lang.String description()
description in interface NSObjectpublic NSDictionary<java.lang.String,?> dictionaryWithValuesForKeys(NSArray<java.lang.String> keys)
public void didChangeValuesAtIndexesForKey(long changeKind,
NSIndexSet indexes,
java.lang.String key)
public void didChangeValueForKey(java.lang.String key)
public void didChangeValueForKeyWithSetMutationUsingObjects(java.lang.String key,
long mutationKind,
NSSet<?> objects)
public void doesNotRecognizeSelector(org.moe.natj.objc.SEL aSelector)
@Deprecated public boolean fileManagerShouldProceedAfterError(NSFileManager fm, NSDictionary<?,?> errorInfo)
@Deprecated public void fileManagerWillProcessPath(NSFileManager fm, java.lang.String path)
@Deprecated public void finalize_objc()
public void forwardInvocation(NSInvocation anInvocation)
public java.lang.Object forwardingTargetForSelector(org.moe.natj.objc.SEL aSelector)
public long indexOfAccessibilityElement(java.lang.Object element)
public NSObject init()
public boolean isAccessibilityElement()
public boolean isEqual(java.lang.Object object)
public boolean isKindOfClass(org.moe.natj.objc.Class aClass)
isKindOfClass in interface NSObjectpublic boolean isMemberOfClass(org.moe.natj.objc.Class aClass)
isMemberOfClass in interface NSObjectpublic NSObject.Function_methodForSelector_ret methodForSelector(org.moe.natj.objc.SEL aSelector)
public NSMethodSignature methodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public NSMutableArray<?> mutableArrayValueForKey(java.lang.String key)
The default implementation of this method recognizes the same simple accessor methods and array accessor methods as -valueForKey:'s, and follows the same direct instance variable access policies, but always returns a mutable collection proxy object instead of the immutable collection that -valueForKey: would return. It also:
1. Searches the class of the receiver for methods whose names match the patterns -insertObject:in
Performance note: the repetitive -set
public NSMutableArray<?> mutableArrayValueForKeyPath(java.lang.String keyPath)
public java.lang.Object mutableCopy()
public NSMutableOrderedSet<?> mutableOrderedSetValueForKey(java.lang.String key)
The default implementation of this method recognizes the same simple accessor methods and ordered set accessor methods as -valueForKey:'s, and follows the same direct instance variable access policies, but always returns a mutable collection proxy object instead of the immutable collection that -valueForKey: would return. It also:
1. Searches the class of the receiver for methods whose names match the patterns -insertObject:in
Performance note: the repetitive -set
public NSMutableOrderedSet<?> mutableOrderedSetValueForKeyPath(java.lang.String keyPath)
public NSMutableSet<?> mutableSetValueForKey(java.lang.String key)
The default implementation of this method recognizes the same simple accessor methods and set accessor methods as -valueForKey:'s, and follows the same direct instance variable access policies, but always returns a mutable collection proxy object instead of the immutable collection that -valueForKey: would return. It also:
1. Searches the class of the receiver for methods whose names match the patterns -add
Performance note: the repetitive -set
public NSMutableSet<?> mutableSetValueForKeyPath(java.lang.String keyPath)
public org.moe.natj.general.ptr.VoidPtr observationInfo()
public void observeValueForKeyPathOfObjectChangeContext(java.lang.String keyPath,
java.lang.Object object,
NSDictionary<java.lang.String,?> change,
org.moe.natj.general.ptr.VoidPtr context)
The change dictionary always contains an NSKeyValueChangeKindKey entry whose value is an NSNumber wrapping an NSKeyValueChange (use -[NSNumber unsignedIntegerValue]). The meaning of NSKeyValueChange depends on what sort of property is identified by the key path: - For any sort of property (attribute, to-one relationship, or ordered or unordered to-many relationship) NSKeyValueChangeSetting indicates that the observed object has received a -setValue:forKey: message, or that the key-value coding-compliant set method for the key has been invoked, or that a -willChangeValueForKey:/-didChangeValueForKey: pair has otherwise been invoked. - For an _ordered_ to-many relationship, NSKeyValueChangeInsertion, NSKeyValueChangeRemoval, and NSKeyValueChangeReplacement indicate that a mutating message has been sent to the array returned by a -mutableArrayValueForKey: message sent to the object, or sent to the ordered set returned by a -mutableOrderedSetValueForKey: message sent to the object, or that one of the key-value coding-compliant array or ordered set mutation methods for the key has been invoked, or that a -willChange:valuesAtIndexes:forKey:/-didChange:valuesAtIndexes:forKey: pair has otherwise been invoked. - For an _unordered_ to-many relationship (introduced in Mac OS 10.4), NSKeyValueChangeInsertion, NSKeyValueChangeRemoval, and NSKeyValueChangeReplacement indicate that a mutating message has been sent to the set returned by a -mutableSetValueForKey: message sent to the object, or that one of the key-value coding-compliant set mutation methods for the key has been invoked, or that a -willChangeValueForKey:withSetMutation:usingObjects:/-didChangeValueForKey:withSetMutation:usingObjects: pair has otherwise been invoked.
For any sort of property, the change dictionary contains an NSKeyValueChangeNewKey entry if NSKeyValueObservingOptionNew was specified at observer registration time, it's the right kind of change, and this isn't a prior notification. The change dictionary contains an NSKeyValueChangeOldKey if NSKeyValueObservingOptionOld was specified and it's the right kind of change. See the comments for the NSKeyValueObserverNotification informal protocol methods for what the values of those entries can be.
For an _ordered_ to-many relationship, the change dictionary always contains an NSKeyValueChangeIndexesKey entry whose value is an NSIndexSet containing the indexes of the inserted, removed, or replaced objects, unless the change is an NSKeyValueChangeSetting.
If NSKeyValueObservingOptionPrior (introduced in Mac OS 10.5) was specified at observer registration time, and this notification is one being sent prior to a change as a result, the change dictionary contains an NSKeyValueChangeNotificationIsPriorKey entry whose value is an NSNumber wrapping YES (use -[NSNumber boolValue]).
context is always the same pointer that was passed in at observer registration time.
public java.lang.Object performSelector(org.moe.natj.objc.SEL aSelector)
performSelector in interface NSObjectpublic void performSelectorOnThreadWithObjectWaitUntilDone(org.moe.natj.objc.SEL aSelector,
NSThread thr,
java.lang.Object arg,
boolean wait_)
public void performSelectorOnThreadWithObjectWaitUntilDoneModes(org.moe.natj.objc.SEL aSelector,
NSThread thr,
java.lang.Object arg,
boolean wait_,
NSArray<java.lang.String> array)
public java.lang.Object performSelectorWithObject(org.moe.natj.objc.SEL aSelector,
java.lang.Object object)
performSelectorWithObject in interface NSObjectpublic void performSelectorWithObjectAfterDelay(org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument,
double delay)
public void performSelectorWithObjectAfterDelayInModes(org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument,
double delay,
NSArray<java.lang.String> modes)
public java.lang.Object performSelectorWithObjectWithObject(org.moe.natj.objc.SEL aSelector,
java.lang.Object object1,
java.lang.Object object2)
performSelectorWithObjectWithObject in interface NSObjectpublic void performSelectorInBackgroundWithObject(org.moe.natj.objc.SEL aSelector,
java.lang.Object arg)
public void performSelectorOnMainThreadWithObjectWaitUntilDone(org.moe.natj.objc.SEL aSelector,
java.lang.Object arg,
boolean wait_)
public void performSelectorOnMainThreadWithObjectWaitUntilDoneModes(org.moe.natj.objc.SEL aSelector,
java.lang.Object arg,
boolean wait_,
NSArray<java.lang.String> array)
public void prepareForInterfaceBuilder()
public void provideImageDataBytesPerRowOrigin_Size_UserInfo(org.moe.natj.general.ptr.VoidPtr data,
long rowbytes,
long x,
long y,
long width,
long height,
java.lang.Object info)
By default, this method will be called to requests the full image data regardless of what subregion is needed for the current render. All of the image is loaded or none of it is.
If the kCIImageProviderTileSize option is specified, then only the tiles that are needed are requested.
Changing the virtual memory mapping of the supplied buffer (e.g. using vm_copy () to modify it) will give undefined behavior.
public void removeObserverForKeyPath(NSObject observer, java.lang.String keyPath)
public void removeObserverForKeyPathContext(NSObject observer, java.lang.String keyPath, org.moe.natj.general.ptr.VoidPtr context)
public java.lang.Object replacementObjectForCoder(NSCoder coder)
public java.lang.Object replacementObjectForKeyedArchiver(NSKeyedArchiver archiver)
public boolean respondsToSelector(org.moe.natj.objc.SEL aSelector)
respondsToSelector in interface NSObjectpublic void setAccessibilityActivationPoint(CGPoint value)
public void setAccessibilityCustomActions(NSArray<? extends UIAccessibilityCustomAction> value)
public void setAccessibilityCustomRotors(NSArray<? extends UIAccessibilityCustomRotor> value)
public void setAccessibilityElements(NSArray<?> value)
public void setAccessibilityElementsHidden(boolean value)
public void setAccessibilityFrame(CGRect value)
public void setAccessibilityHint(java.lang.String value)
public void setAccessibilityLabel(java.lang.String value)
public void setAccessibilityLanguage(java.lang.String value)
public void setAccessibilityNavigationStyle(long value)
public void setAccessibilityPath(UIBezierPath value)
public void setAccessibilityTraits(long value)
public void setAccessibilityValue(java.lang.String value)
public void setAccessibilityViewIsModal(boolean value)
public void setIsAccessibilityElement(boolean value)
public void setNilValueForKey(java.lang.String key)
public void setObservationInfo(org.moe.natj.general.ptr.VoidPtr value)
public void setShouldGroupAccessibilityChildren(boolean value)
public void setValueForKey(java.lang.Object value,
java.lang.String key)
The default implementation of this method does the following:
1. Searches the class of the receiver for an accessor method whose name matches the pattern -set
Compatibility notes:
- For backward binary compatibility with -takeValue:forKey:'s behavior, a method whose name matches the pattern -_set
public void setValueForKeyPath(java.lang.Object value,
java.lang.String keyPath)
public void setValueForUndefinedKey(java.lang.Object value,
java.lang.String key)
public void setValuesForKeysWithDictionary(NSDictionary<java.lang.String,?> keyedValues)
public boolean shouldGroupAccessibilityChildren()
public org.moe.natj.objc.Class superclass()
superclass in interface NSObjectpublic boolean validateValueForKeyError(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> ioValue,
java.lang.String inKey,
org.moe.natj.general.ptr.Ptr<NSError> outError)
The default implementation of this method searches the class of the receiver for a validator method whose name matches the pattern -validate
public boolean validateValueForKeyPathError(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> ioValue,
java.lang.String inKeyPath,
org.moe.natj.general.ptr.Ptr<NSError> outError)
public java.lang.Object valueForKey(java.lang.String key)
The default implementation of this method does the following:
1. Searches the class of the receiver for an accessor method whose name matches the pattern -get
Compatibility notes:
- For backward binary compatibility, an accessor method whose name matches the pattern -_get
public java.lang.Object valueForKeyPath(java.lang.String keyPath)
public java.lang.Object valueForUndefinedKey(java.lang.String key)
public void willChangeValuesAtIndexesForKey(long changeKind,
NSIndexSet indexes,
java.lang.String key)
The change dictionaries in notifications resulting from use of these methods contain optional entries if requested at observer registration time: - The NSKeyValueChangeOldKey entry, if present (only for NSKeyValueChangeRemoval and NSKeyValueChangeReplacement), contains an array of the indexed objects from the array returned by -valueForKey: at the instant that -willChangeValueForKey:valuesAtIndexes:forKey: is invoked. - The NSKeyValueChangeNewKey entry, if present (only for NSKeyValueChangeInsertion and NSKeyValueChangeReplacement), contains an array of the indexed objects from the array returned by -valueForKey: at the instant that -didChangeValueForKey:valuesAtIndexes:forKey: is invoked.
public void willChangeValueForKey(java.lang.String key)
The change dictionaries in notifications resulting from use of these methods contain optional entries if requested at observer registration time: - The NSKeyValueChangeOldKey entry, if present, contains the value returned by -valueForKey: at the instant that -willChangeValueForKey: is invoked (or an NSNull if -valueForKey: returns nil). - The NSKeyValueChangeNewKey entry, if present, contains the value returned by -valueForKey: at the instant that -didChangeValueForKey: is invoked (or an NSNull if -valueForKey: returns nil).
public void willChangeValueForKeyWithSetMutationUsingObjects(java.lang.String key,
long mutationKind,
NSSet<?> objects)
The value of the NSKeyValueChangeKindKey entry in change dictionaries in notifications resulting from use of these methods depends on the passed-in mutationKind value: - NSKeyValueUnionSetMutation -> NSKeyValueChangeInsertion - NSKeyValueMinusSetMutation -> NSKeyValueChangeRemoval - NSKeyValueIntersectSetMutation -> NSKeyValueChangeRemoval - NSKeyValueSetSetMutation -> NSKeyValueChangeReplacement
The change dictionaries may also contain optional entries: - The NSKeyValueChangeOldKey entry, if present (only for for NSKeyValueChangeRemoval and NSKeyValueChangeReplacement), contains the set of objects that were removed. - The NSKeyValueChangeNewKey entry, if present (only for NSKeyValueChangeInsertion and NSKeyValueChangeReplacement), contains the set of objects that were added.
public NSAttributedString accessibilityAttributedHint()
public NSAttributedString accessibilityAttributedLabel()
public NSAttributedString accessibilityAttributedValue()
public long accessibilityContainerType()
public NSArray<? extends UIAccessibilityLocationDescriptor> accessibilityDragSourceDescriptors()
This is trivially the case when the element is not a view at all, but an instance of UIAccessibilityElement.
Another example is when a container view maintains interactions that are logically associated with subviews. For instance, UITableView has associated drag interactions that allow for dragging its rows; to make the rows draggable by assistive technologies, UITableViewCell has drag descriptors that describe where in the table view to start a drag to activate dragging of the cell. (Note that this implementation detail is noted here for expository purposes only and may change at any time without warning.)
Properties defined here allow you to fine-tune how drags and drops are exposed to assistive technologies. Both of their getter methods can be overridden to provide information on-demand. For each location descriptor, the associated view should be the UIView with the appropriate UIInteraction object for that drag or drop.
`accessibilityDragSourceDescriptors` is an array of UIAccessibilityLocationDescriptor objects and is used to define and describe what drags are available from an element.
`accessibilityDropPointDescriptors` is similarly an array of UIAccessibilityLocationDescriptor objects and is used to define and describe where drops are possible on this element.
To restore the default automatic behavior for these properties, assign (or return) the default value of nil. Note that nil does not describe the same behavior as the empty array, which specifies that there are no relevant interactions for this element.
public NSArray<? extends UIAccessibilityLocationDescriptor> accessibilityDropPointDescriptors()
public void setAccessibilityAttributedHint(NSAttributedString value)
public void setAccessibilityAttributedLabel(NSAttributedString value)
public void setAccessibilityAttributedValue(NSAttributedString value)
public void setAccessibilityContainerType(long value)
public void setAccessibilityDragSourceDescriptors(NSArray<? extends UIAccessibilityLocationDescriptor> value)
This is trivially the case when the element is not a view at all, but an instance of UIAccessibilityElement.
Another example is when a container view maintains interactions that are logically associated with subviews. For instance, UITableView has associated drag interactions that allow for dragging its rows; to make the rows draggable by assistive technologies, UITableViewCell has drag descriptors that describe where in the table view to start a drag to activate dragging of the cell. (Note that this implementation detail is noted here for expository purposes only and may change at any time without warning.)
Properties defined here allow you to fine-tune how drags and drops are exposed to assistive technologies. Both of their getter methods can be overridden to provide information on-demand. For each location descriptor, the associated view should be the UIView with the appropriate UIInteraction object for that drag or drop.
`accessibilityDragSourceDescriptors` is an array of UIAccessibilityLocationDescriptor objects and is used to define and describe what drags are available from an element.
`accessibilityDropPointDescriptors` is similarly an array of UIAccessibilityLocationDescriptor objects and is used to define and describe where drops are possible on this element.
To restore the default automatic behavior for these properties, assign (or return) the default value of nil. Note that nil does not describe the same behavior as the empty array, which specifies that there are no relevant interactions for this element.
public void setAccessibilityDropPointDescriptors(NSArray<? extends UIAccessibilityLocationDescriptor> value)
public NSArray<? extends NSAttributedString> accessibilityAttributedUserInputLabels()
public boolean accessibilityRespondsToUserInteraction()
public java.lang.String accessibilityTextualContext()
public NSArray<java.lang.String> accessibilityUserInputLabels()
public void setAccessibilityAttributedUserInputLabels(NSArray<? extends NSAttributedString> value)
public void setAccessibilityRespondsToUserInteraction(boolean value)
public void setAccessibilityTextualContext(java.lang.String value)
public void setAccessibilityUserInputLabels(NSArray<java.lang.String> value)