Custom drawing in a cell in NSMatrix problem
Custom drawing in a cell in NSMatrix problem
- Subject: Custom drawing in a cell in NSMatrix problem
- From: Jean Bovet <email@hidden>
- Date: Mon, 25 Mar 2002 21:06:21 +0100
I'm new to Cocoa and maybe my problem is very simple.
I would like to customize the drawing part of a cell in a matrix.
My custom class inherit from NSCell (@interface MyCellClass : NSCell) and
then I override the following method:
-(void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView.
I can then draw any text within and image (with [myImage compositeToPoint:p
operation:NSCompositeCopy]). The problem is that images are displayed with
an rotation of 1800. I've realized that the relative coordinates system for
the NSCell view is on the upper-left corner (and not the lower-left corner),
but how can I display an image with the right orientation (with no rotation
at all) ?
Thank you for any help!
Jean Bovet
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.