Class NSObject
- java.lang.Object
-
- org.jitsi.impl.neomedia.quicktime.NSObject
-
- Direct Known Subclasses:
NSDictionary,NSError,QTCaptureDevice,QTCaptureInput,QTCaptureOutput,QTCaptureSession,QTFormatDescription,QTSampleBuffer
public class NSObject extends Object
Represents the root of most Objective-C class hierarchies which which objects inherit a basic interface to the runtime system and the ability to behave as Objective-C objects.- Author:
- Lyubomir Marinov
-
-
Constructor Summary
Constructors Constructor Description NSObject(long ptr)Initializes a new NSObject instance which is to represent a specific Objective-C object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetPtr()Gets the pointer to the Objective-C object represented by this instance.voidrelease()Decrements the reference count of the Objective-C object represented by this instance.static voidrelease(long ptr)Decrements the reference count of a specific Objective-C object.voidretain()Increments the reference count of the Objective-C object represented by this instance.protected voidsetPtr(long ptr)Sets the pointer to the Objective-C object represented by this instance.
-
-
-
Method Detail
-
getPtr
public long getPtr()
Gets the pointer to the Objective-C object represented by this instance.- Returns:
- the pointer to the Objective-C object represented by this instance
-
release
public void release()
Decrements the reference count of the Objective-C object represented by this instance. It is sent a dealloc message when its reference count reaches 0.
-
release
public static void release(long ptr)
Decrements the reference count of a specific Objective-C object. It is sent a dealloc message when its reference count reaches 0.- Parameters:
ptr- the pointer to the Objective-C object to decrement the reference count of
-
retain
public void retain()
Increments the reference count of the Objective-C object represented by this instance.
-
setPtr
protected void setPtr(long ptr)
Sets the pointer to the Objective-C object represented by this instance.- Parameters:
ptr- the pointer to the Objective-C object to be represented by this instance
-
-