Can't cache image...
Can't cache image...
- Subject: Can't cache image...
- From: Ruben Westerberg <email@hidden>
- Date: Sun, 11 Nov 2001 10:56:40 +1000
Hi all,
i have managed to render bezier paths to an image, isn't difficult at
all. Well that's what I thought... I am trying to render more than one.
The first image works fine,I used lock focus and unlock focus to
compose it.
But at a later position in my program, the same code gives me a "can't
cache image" in the run dialog of PB.
The first image is created from an NSView subclass (but is not created
in the drawRect method,just draws the bezier path in to the image), and
the second one is created in NSObject subclass. Is there something from
NSView that the NSImage needs? or should the lockfocus and unlockFocus
calls be enough, from any class?Am i missing some thing.
Thanks
Ruben