Re: I hate NSMatrix...
Re: I hate NSMatrix...
- Subject: Re: I hate NSMatrix...
- From: Brad Werth <email@hidden>
- Date: Tue, 20 May 2003 08:26:20 -0700
know, file a bug...), but then I need to override
- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView
*)controlView;
Which would be fine, if all I needed to do was modify cellFrame to
inset it a bit and then composite my image in, but unfortunately, it
comes in flipped upside down.
So I can go and figure out all the graphics state pushing and popping
to make this work right, I expect, but I'm hoping that someone has
dealt with this and can point out the painfully obvious four lines of
code that are eluding me right now (note:
I have dealt with this problem. Call [controlView lockFocus] before
drawing, and [controlView unlockFocus] after drawing, and your
coordinate system should be setup correctly.
Brad Werth
email@hidden
_______________________________________________
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.