• 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: override drawRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: override drawRect


  • Subject: Re: override drawRect
  • From: Wade Tregaskis <email@hidden>
  • Date: Fri, 19 Nov 2004 20:00:13 +1100

Is it possible to override an NSView's ( or any of its subclasses) "drawRect:" method so that i can flip the coordinate system before its called? I want the graphicsContext to have a coordinate system much like that of a QuickDraw CGrafPtr.

<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSView.html#//apple_ref/doc/uid/ 20000014/BBCDECEF>


That's assuming you're working in your own NSView subclass. If not, well, things get trickier... :)

Wade Tregaskis (AIM, Yahoo & Skype: wadetregaskis, ICQ: 40056898, MSN & email: email@hidden, Jabber: email@hidden)
-- Sed quis custodiet ipsos custodes?


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >override drawRect (From: email@hidden)

  • Prev by Date: Re: Creating links through NSWorkspace or something?
  • Next by Date: -document works inconsistently in NSWindowController subclass
  • Previous by thread: Re: override drawRect
  • Next by thread: Unable to coalesce notifications
  • Index(es):
    • Date
    • Thread