Re: plist ERRest and dateformatters
Re: plist ERRest and dateformatters
- Subject: Re: plist ERRest and dateformatters
- From: David LeBer <email@hidden>
- Date: Sat, 18 Dec 2010 12:23:36 -0500
On 2010-12-18, at 12:04 PM, Jesse Tayler wrote:
> well then! Why don't _I_ switch to binary plist!
>
> sounds smaller and better!
>
> how might I then switch to a binary plist format?
Assuming you are vending rom ERRest on the Wonder5_0_0_WebObjects_5_4 branch:
- Request .bplist instead of .plist.
And consuming on iOS or Cocoa:
- Use [NSPropertyListSerialization propertyListFromData:mutabilityOption:format:errorDescription:] with your response data
>
> On Dec 18, 2010, at 11:33 AM, David LeBer wrote:
>
>>
>> On 2010-12-17, at 11:15 PM, Jesse Tayler wrote:
>>
>>>
>>> Downloading plist format, I get dates formatted with this funky Etc/GMT timezone, so I try to get a date from the string
>>>
>>> "2010-12-16 19:25:42 Etc/GMT";
>>>
>>> I try a few formats like this or that, fish around and either I'm missing something or somebody's got a dateformat out there which they use when transferring plist format?
>>>
>>> @"yyyy-MM-dd HH:mm:ss' ZZZZ"
>>>
>>> Anyone got an incantation on that?
>>
>> I punted and manually replaced the ZZZZ with something I could format.
>>
>> Then I switched to binary plist which are type aware so you get dates from dates, instead of strings.
>>
>> ;david
>>
>> --
>> David LeBer
>> Codeferous Software
>> 'co-def-er-ous' adj. Literally 'code-bearing'
>> site: http://codeferous.com
>> blog: http://davidleber.net
>> profile: http://www.linkedin.com/in/davidleber
>> twitter: http://twitter.com/rebeld
>> --
>> Toronto Area Cocoa / WebObjects developers group:
>> http://tacow.org
>>
>>
>>
>>
>>
>
>
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
twitter: http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
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