Re: NSImageView frames
Re: NSImageView frames
- Subject: Re: NSImageView frames
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sat, 27 Dec 2003 20:13:40 +0100
At 5:31 Uhr -0500 27.12.2003, Devon E Bowen wrote:
Anyway, everything looks great in IB. But when I run the app, the frame
disappears. In my drawRect method I am doing:
[checkers compositeToPoint:NSMakePoint(8,8) operation:NSCompositeCopy];
Why are you overriding drawRect in an NSImageView? NSImageView's
drawRect: takes care of all drawing automatically. It draws the
border *and* the image of the view. All you do is call setImage: to
give it the image you're drawing.
If you're overriding drawRect: in your own NSImageView subclass, it's
no surprise that NSImageView's drawRect: method isn't called and you
don't get your frame.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.