• 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
Re: I hate NSMatrix...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Class Clusters
  • Next by Date: Re: Interface Builder Framework docs (or just a clue, please)
  • Previous by thread: I hate NSMatrix...
  • Next by thread: Notification
  • Index(es):
    • Date
    • Thread