• 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
(errata): NSDates, NSTimestamps and the Java-bridge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(errata): NSDates, NSTimestamps and the Java-bridge


  • Subject: (errata): NSDates, NSTimestamps and the Java-bridge
  • From: Ricardo Strausz <email@hidden>
  • Date: Wed, 14 May 2003 14:43:44 -0500

sorry!
in the previous post, the line:

>     [Util setAuxiliaryQualifierTo:[dgFacturas dataSource]:eo:nst];


has to be commented.

Begin forwarded message:

> From: Ricardo Strausz <email@hidden>
> Date: miir. mayo 14, 2003  14:40:50 America/Mexico_City
> To: Art Isbell <email@hidden>
> Cc: email@hidden
> Subject: Re: NSDates, NSTimestamps and the Java-bridge
>
>
> 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.

  • Prev by Date: Re: NSPropertyListSerialization
  • Next by Date: Attempt to insert null key into a com.webobjects.foundation.NSMutableDictionary
  • Previous by thread: Re: Unique ids
  • Next by thread: Attempt to insert null key into a com.webobjects.foundation.NSMutableDictionary
  • Index(es):
    • Date
    • Thread