• 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: Simple question - Subclassing NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple question - Subclassing NSView


  • Subject: Re: Simple question - Subclassing NSView
  • From: Andy Lee <email@hidden>
  • Date: Thu, 12 Jun 2008 14:45:40 -0400

On Jun 12, 2008, at 2:20 PM, I. Savant wrote:
NSRectFill() is a C function, not part of any class e.g. NSView. aRect is simply a struct which specify location points (doesnt contain reference of any window). How the function knows about the drawing surface, in which window/surface to paint? Does it implicitly make use of some self pointer? If so, then, what if this function is not called from inside a simple C function then there will not be any self pointer?

Did you read my previous message?

1) Read the Cocoa Drawing Guide.

In particular,

<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaDrawingGuide/GraphicsContexts/chapter_3_section_2.html#//apple_ref/doc/uid/TP40003290-CH203-DontLinkElementID_42 >

Note the section "The Current Context".

--Andy

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Simple question - Subclassing NSView (From: "Hamish Allan" <email@hidden>)
 >Re: Simple question - Subclassing NSView (From: Vikas <email@hidden>)
 >Re: Simple question - Subclassing NSView (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Authentication and NSURLConnection sendSynchronousRequest
  • Next by Date: Re: Accessors Question
  • Previous by thread: Re: Simple question - Subclassing NSView
  • Next by thread: Re: Simple question - Subclassing NSView
  • Index(es):
    • Date
    • Thread