WebObjects 5.2.3

com.webobjects.eointerface.cocoa
Class EOCocoaUtilities

java.lang.Object
  extended bycom.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.apple.cocoa.foundation.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.apple.cocoa.foundation.NSGregorianDate date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

gregorianDateForTimestamp

public static com.apple.cocoa.foundation.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.apple.cocoa.foundation.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).

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.