• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDates, NSTimestamps and the Java-bridge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDates, NSTimestamps and the Java-bridge


  • Subject: Re: NSDates, NSTimestamps and the Java-bridge
  • From: Ricardo Strausz <email@hidden>
  • Date: Wed, 14 May 2003 14:40:50 -0500

On miircoles, mayo 14, 2003, at 13:36 America/Mexico_City, Art Isbell
wrote:

> On Wednesday, May 14, 2003, at 07:01  AM, Ricardo Strausz wrote:
>
>>> 	Have you tried forgetting about NSTimestamp and using
>>> NSCalendarDate instead from the ObjC side?  EOModeler, an ObjC app,
>>> seems to equate NSCalendarDate for an ObjC value class with
>>> NSTimestamp for a Java value class.
>>
>> I did, but still with out results...
>> I did try things as:
>>
>>     id eoq = [EOQualifier qualifierWithQualifierFormat:@"cliente=%@
>> and fecha>=%@ and estado>0",[eo folio],desde,nil:nil];
>>
>>     id eoq = [EOQualifier qualifierWithQualifierFormat:@"cliente=%@
>> and fecha>=%@ and estado>0",[eo folio],desde:nil];
>>
>>     id eoq = [EOQualifier qualifierWithQualifierFormat:@"cliente=%@
>> and fecha>=%@ and estado>0":[eo folio],desde,nil];
>
> 	If I recall my ObjC, the correct form should be
>
>     id eoq = [EOQualifier qualifierWithQualifierFormat:@"cliente=%@
> and fecha>=%@ and estado>0",[eo folio],desde];
>
> The argument list of qualifierWithQualifierFormat: includes the format
> string followed by n arguments, where n is the number of '%'-prefixed
> format characters in the format string.
>
>

The problem with such a sintaxis is that qualifierWithQualifierFormat
is expecting 2 arguments (an string and an array) so the run-time says
something like "does not recognizes selector". I'd tried also

     id nst = [Util nst:[desde description]]; //this is an NSTimestamp
created by Util.java

     NSMutableArray* nsma = [NSMutableArray array];
     [nsma addObject:[eo folio]];
     [nsma addObject:nst];

     id eoq = [EOQualifier qualifierWithQualifierFormat:@"cliente=%@ and
fecha>=%@ and estado>0" :nsma];
     [[dgFacturas dataSource] setAuxiliaryQualifier:eoq];

     [Util setAuxiliaryQualifierTo:[dgFacturas dataSource]:eo:nst];
     [dgFacturas fetch:self];


but the app quits (with siggbus 10).

I'd found a (dirty) solution... I will post it
Thanks!





Dino
http://homepage.mac.com/strausz
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSDates, NSTimestamps and the Java-bridge
      • From: Art Isbell <email@hidden>
References: 
 >Re: NSDates, NSTimestamps and the Java-bridge (From: Art Isbell <email@hidden>)

  • Prev by Date: (dirty solved): NSDates, NSTimestamps and the Java-bridge
  • Next by Date: Re: Attempt to insert null key into a com.webobjects.foundation.NSMutableDictionary
  • Previous by thread: Re: NSDates, NSTimestamps and the Java-bridge
  • Next by thread: Re: NSDates, NSTimestamps and the Java-bridge
  • Index(es):
    • Date
    • Thread