Passing instances of type:         
    com.apple.yellow.foundation.NSGregorianDate$IntRefs
as the argument for year, month, day, etc for the method
gregorianUnitsSinceDate() does work.


----------
>From: "Geoffrey Wiseman" <[EMAIL PROTECTED]>
>To: Multiple recipients of list <[EMAIL PROTECTED]>
>Subject: NSGregorianDate.IntRef problem?
>Date: Fri, Mar 12, 1999, 5:59
>

> I'm trying to use NSGregorianDate.gregorianUnitsSinceDate( ).  The function
> description says the parameters are NSGregorianDate.IntRef, but the attached
> examples use ints.  When I try and put an int in (WO 4.0, java), it doesn't
> like it.  (Invalid type for method, I think it says.)
>
> Do I have to use NSGregorianDate.IntRefs instead?  And then getthe integer
> out of it, or am I missing something obvious?
>
> All in all, I'm used to date objects that can be converted into integers and
> manipulated that way, so I was puzzled when dateOne < dateTwo failed to
> work.  While I like gregorianUnitsSinceDate's flexibility, I do miss the
> option to simply do a numeric comparison.  Ah well.
>
>     - Geoffrey
> --
> Geoffrey Wiseman,
> New Media Developer, Medium One Productions
> [EMAIL PROTECTED]  http://www.mediumone.com/ (416)361-2030
> "here is little effie's head whose brains are made of gingerbread"
> 

Reply via email to