Re: Cocoa wizard & gurus, Help!!
Re: Cocoa wizard & gurus, Help!!
- Subject: Re: Cocoa wizard & gurus, Help!!
- From: John Timmer <email@hidden>
- Date: Wed, 11 Feb 2004 16:47:56 -0500
>
> I'm not sure what's creating the limit (or if you've even discovered that).
>
> If it's simply an offscreen window that's too large, you could either create
>
> a subclass of the window in order to override the size limits or make an
>
> NSView that's not contained by a window (that's how I typically do my
>
> offscreen drawing, but I don't know if it winds up caching the image).
>
Ok, the latter might be an option but can you just lock focus on a view and
>
draw from a different one to get a kind of cache like I do with NSImage? And
>
if so, how would you then use it when you want to use the cached view to be
>
displayed again? Do you have some code snippets perhaps?
I just create them in project builder - there's a palette with various
views, and you can drag them straight into the nib window, rather than onto
a separate window. You could simply make an NSImageView with outlets in
order to have access to the contents - I assume that allows caching.
Otherwise, I'd imagine you could lock focus and composite - when I've needed
to composite within a view in the past, I've created a custom subclass and
drawn within the rect. If the above option using an image view doesn't
work, let me know and I'll send you the code I use for compositing.
Cheers,
John
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.