NSView drawing problem
NSView drawing problem
- Subject: NSView drawing problem
- From: Thilo Ettelt <email@hidden>
- Date: Sat, 21 Dec 2002 11:50:22 +0100
Hi, I have a problem with drawing in an NSView. The code loads a NIB
file in its -init method and has another method for drawing -draw. The
thing loads a custom shaped window. When I call the -draw method from
the -init method it will draw something in the NSView (in that window)
correctly but when I fire the -draw method from -awakeFromNib it won't
work. The method is actually called but it doesn't draw anything or it
at least it doesn't display. I am using lockFocus/unlockFocus and then
in between -drawAtPoint an image using NSCompositeSourceOver and
fraction 1.0 to draw my stuff.
Do you have an idea what could be going wrong here? Thanks in advance.
Cheers, Thilo
_______________________________________________
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.