[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #13031] Archive-unarchive of data objects does not work on PowerPC
From: |
Adam Fedor |
Subject: |
[bug #13031] Archive-unarchive of data objects does not work on PowerPC |
Date: |
Thu, 12 May 2005 04:03:31 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312 |
Update of bug #13031 (project gnustep):
Status: None => Works For Me
Assigned to: None => fedor
_______________________________________________________
Follow-up Comment #1:
I've tried this on YDL 3.0 and it works fine for me with the latest release
and also CVS versions of GNUstep, also with several other architectures (with
different byte orders). Below is the test I used. Maybe there is something
more specific I need to do to make it (not) work?
#include <Foundation/Foundation.h>
#include <AppKit/AppKit.h>
int main (int argc, char *argv[])
{
CREATE_AUTORELEASE_POOL(pool);
NSColor * red = [NSColor redColor];
NSData * redAr = [NSArchiver archivedDataWithRootObject: red];
NSColor * redU = [NSUnarchiver unarchiveObjectWithData: redAr];
GSPrintf(stdout, @"Original red %@\n", red);
GSPrintf(stdout, @"New red %@\n", redU);
[pool release];
return 0;
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13031>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/