RE: Cocoa wizard & gurus, Help!!
RE: Cocoa wizard & gurus, Help!!
- Subject: RE: Cocoa wizard & gurus, Help!!
- From: <email@hidden>
- Date: Wed, 11 Feb 2004 23:21:23 +0100
- Thread-topic: Cocoa wizard & gurus, Help!!
>
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.
Maybe I misunderstand you, but this is not working. I quickly tried, but it's not possible to allocate an NSView and lockfocus on it and draw. I get this error:
lockFocus sent to a view whose window is deferred and does not yet have a corresponding platform window
Now, I didn't try it with a view thrown in a nib, I can check. But maybe your sample code may indeed shed some light...
Alex
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.