com.webobjects.eointerface.cocoa
Class EOCocoaUtilities
java.lang.Object
|
+--com.webobjects.eointerface.cocoa.EOCocoaUtilities
- public class EOCocoaUtilities
- extends Object
EOcocoaUtilities is a class of static methods aimed at making it easy to use
the pure java implementation of EOF with Apple's "bridged Java" Cocoa technology.
Method Summary |
static com.webobjects.eointerface.cocoa.NSGregorianDate |
gregorianDateForTimestamp(NSTimestamp timestamp)
|
static void |
registerCocoaSet()
Registers EOCocoaSetPlugin as the widget set for the EOInterface layer to use
and the default WidgetPlugins for use with their associations and widgets. |
static void |
releaseObject(Object object)
Ensures that object is available to have its Objective-C
handle freed. |
static void |
retainObject(Object object)
Ensures that object does not have it's handle (which lives on the
Objective-C side of the bridge) freed by the bridge. |
static NSTimestamp |
timestampForGregorianDate(com.webobjects.eointerface.cocoa.NSGregorianDate date)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
gregorianDateForTimestamp
public static com.webobjects.eointerface.cocoa.NSGregorianDate gregorianDateForTimestamp(NSTimestamp timestamp)
- Parameters:
timestamp
- NSTimestamp instance used to create a new NSGregorianDate- Returns:
- NSGregorianDate instance that represents the time that the NSTimestamp,
timestamp
, represents - See Also:
timestampForGregorianDate(NSGregorianDate date).
registerCocoaSet
public static void registerCocoaSet()
- Registers EOCocoaSetPlugin as the widget set for the EOInterface layer to use
and the default WidgetPlugins for use with their associations and widgets.
Also loads all Cocoa framework bundles used in the application
releaseObject
public static void releaseObject(Object object)
- Ensures that
object
is available to have its Objective-C
handle freed.
- Parameters:
object
- the object to be released; object must be non-null and should be an object that
had been retained with retainObject
- See Also:
retainObject(Object object)
retainObject
public static void retainObject(Object object)
- Ensures that
object
does not have it's handle (which lives on the
Objective-C side of the bridge) freed by the bridge.
Once you are done with the object, you should release it with releaseObject
.
- Parameters:
object
- the object to be retained; object
must be non-null- See Also:
releaseObject(Object object)
timestampForGregorianDate
public static NSTimestamp timestampForGregorianDate(com.webobjects.eointerface.cocoa.NSGregorianDate date)
- Parameters:
date
- NSGregorianDate instance used to create a new NSTimestamp- Returns:
- NSTimestamp instance that represents the time that the NSGregorianDate,
date
, represents - See Also:
gregorianDateForTimestamp(NSTimestamp timestamp).
Copyright © 2003 Apple Computer, Inc.