Re: casting in qualifier format strings
Re: casting in qualifier format strings
- Subject: Re: casting in qualifier format strings
- From: Florijan Stamenkovic <email@hidden>
- Date: Thu, 18 Dec 2008 12:12:43 -0400
Cool...
How in the world did you discover this?!? You didn't actually try to
do it???
F
On Dec 18, 2008, at 00:12, Mike Schrag wrote:
I very rarely use qualifier format strings, but i have a special
case where I needed one, but i needed a timestamp literal in it ...
turns out you can cast inside of a qualifier format string:
EOQualifier q = EOQualifier.qualifierWithQualifierFormat("date =
(NSTimestamp)'2008-10-01 05:37:01 EST'", null);
You can actually cast to ANY object here, and if it's not a known
type, it looks like it will call a string constructor, passing it
the value. Fancy.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden