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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to