FROM : Ben Trumbull
DATE : Sat Jun 21 23:07:05 2008
Grant,
You don't need a bundle or package or anything besides a plain old
directory. Core Data doesn't care where you place your images on the
file system. One file URL is just as good as any other to Core Data.
As others have mentioned, it's probably the transition from
JPEG->NSImage->NSData that's decompressed the bytes. You're probably
bested served by just keeping the JPEG bytes on disk and using the
NSImage representation exclusively in memory for display purposes.
--
-Ben
DATE : Sat Jun 21 23:07:05 2008
Grant,
You don't need a bundle or package or anything besides a plain old
directory. Core Data doesn't care where you place your images on the
file system. One file URL is just as good as any other to Core Data.
As others have mentioned, it's probably the transition from
JPEG->NSImage->NSData that's decompressed the bytes. You're probably
bested served by just keeping the JPEG bytes on disk and using the
NSImage representation exclusively in memory for display purposes.
--
-Ben
| Related mails | Author | Date |
|---|---|---|
| Grant Limberg | Jun 20, 23:43 | |
| Ken Thomases | Jun 21, 00:16 | |
| Matt Long | Jun 21, 00:22 | |
| Grant Limberg | Jun 21, 00:28 | |
| j o a r | Jun 21, 00:38 | |
| Jerry Krinock | Jun 21, 00:40 | |
| Grant Limberg | Jun 21, 00:43 | |
| j o a r | Jun 21, 00:53 | |
| Grant Limberg | Jun 21, 01:00 | |
| j o a r | Jun 21, 01:10 | |
| Jens Alfke | Jun 21, 01:20 | |
| Ben Trumbull | Jun 21, 23:07 |






Cocoa mail archive

