Re: Scheme for efficiently archiving images.

2008-11-27 Thread Graham Cox
On 28 Nov 2008, at 12:30 am, Jens Miltner wrote: Well, you _can_ ask the NSImage or it's rep for a certain bitmap representation (see e.g. ). Even if the NSImage can't provide that data, you could still use the BSD layer to convert to e.g. a JP

Re: Scheme for efficiently archiving images.

2008-11-27 Thread Jens Miltner
Am 27.11.2008 um 07:54 schrieb Graham Cox: On 27 Nov 2008, at 2:00 pm, Ken Thomases wrote: First, it seems to me like you don't want an NSImage in your model. You want the original source of the image. Either a file path or a blob of data with some meta-data (e.g. UTI) describing it an

Re: Scheme for efficiently archiving images.

2008-11-26 Thread Graham Cox
On 27 Nov 2008, at 2:00 pm, Ken Thomases wrote: First, it seems to me like you don't want an NSImage in your model. You want the original source of the image. Either a file path or a blob of data with some meta-data (e.g. UTI) describing it and what it is. You'd use NSImage as a view-en

Re: Scheme for efficiently archiving images.

2008-11-26 Thread Graham Cox
On 27 Nov 2008, at 12:49 pm, Ken Ferry wrote: I don't have time to go much into this before I go off for the holiday, but one thing: On Wed, Nov 26, 2008 at 5:26 PM, Graham Cox <[EMAIL PROTECTED]> wrote: For images from a file, I am thinking I can copy the original file into my package and

Re: Scheme for efficiently archiving images.

2008-11-26 Thread Ken Thomases
On Nov 26, 2008, at 7:26 PM, Graham Cox wrote: In my app I have a class that "has a" NSImage which it displays. Currently, when I archive the whole kit-n-kaboodle when saving to a file, the image simply gets archived as an object. [...] There are a few issues though. When my image-owning ob

Re: Scheme for efficiently archiving images.

2008-11-26 Thread Ken Ferry
I don't have time to go much into this before I go off for the holiday, but one thing: On Wed, Nov 26, 2008 at 5:26 PM, Graham Cox <[EMAIL PROTECTED]> wrote: > For images from a file, I am thinking I can copy the > original file into my package and simply archive a relative path to it. If you cre

Scheme for efficiently archiving images.

2008-11-26 Thread Graham Cox
In my app I have a class that "has a" NSImage which it displays. Currently, when I archive the whole kit-n-kaboodle when saving to a file, the image simply gets archived as an object. With small images it's not too bad, but I have noticed for some larger images a huge amount of inflation oc