Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.quicktime
Class NSObject

java.lang.Object
  extended by net.java.sip.communicator.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
NSObject(long ptr)
          Initializes a new NSObject instance which is to represent a specific Objective-C object.
 
Method Summary
protected  long getPtr()
          Gets the pointer to the Objective-C object represented by this instance.
 void release()
          Decrements the reference count of the Objective-C object represented by this instance.
(package private) static void release(long ptr)
          Decrements the reference count of a specific Objective-C object.
 void retain()
          Increments the reference count of the Objective-C object represented by this instance.
(package private) static void retain(long ptr)
          Increments the reference count of a specific Objective-C object.
protected  void setPtr(long ptr)
          Sets the pointer to the Objective-C object represented by this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NSObject

public NSObject(long ptr)
Initializes a new NSObject instance which is to represent a specific Objective-C object.

Parameters:
ptr - the pointer to the Objective-C object to be represented by the new instance
Method Detail

getPtr

protected 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

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.


retain

static void retain(long ptr)
Increments the reference count of a specific Objective-C object.

Parameters:
ptr - the pointer to be Objective-C object to increment the reference count of

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

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.