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
Unarchive Data from URL (was Can't Convert Image...)
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Unarchive Data from URL (was Can't Convert Image...)
Subject
:
Unarchive Data from URL (was Can't Convert Image...)
From: "Ian G. Gillespie" <
email@hidden
>
Date: Tue, 30 Aug 2005 14:27:28 -0400
When I create an NSData object from a URL and set the data for a Core Data entity's attributes I got this error:
+[NSUnarchiver unarchiveObjectWith
Data:]:
extra data discarded
This is my code:
-(void)setImagePath:(NSURL *)path {
NSLog([path className]); //just to check that I am actually getting a URL (could come from an AppleScript)
NSData *data = [NSData dataWithContentsOfURL:path];
[self setValue:data forKey:@"image"];
}
Dp Does anyone know why this is happening when it is unarchived?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Follow-Ups
:
Re: Unarchive Data from URL (was Can't Convert Image...)
From:
Timothy Larkin <email@hidden>
References:
>
Can't Convert Image on Disk to NSData for Core Data
(From: "Ian G. Gillespie" <email@hidden>)
Prev by Date:
Re: Pausing and terminating a thread
Next by Date:
Re: multiple objects in my view
Previous by thread:
Re: Can't Convert Image on Disk to NSData for Core Data
Next by thread:
Re: Unarchive Data from URL (was Can't Convert Image...)
Index(es):
Date
Thread