• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom drawing in a cell in NSMatrix problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: OT-Reward
  • Next by Date: Cannot display an alert while selection is changing in a NSOutlineView
  • Previous by thread: Re: OT-Reward
  • Next by thread: Cannot display an alert while selection is changing in a NSOutlineView
  • Index(es):
    • Date
    • Thread