• 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: Summary of drawing routines?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Summary of drawing routines?


  • Subject: Re: Summary of drawing routines?
  • From: "David W. Halliday" <email@hidden>
  • Date: Thu, 07 Jun 2001 16:10:21 -0500
  • Organization: Latin AmeriCom, formerly Latino Online

John C. Randolph wrote:

> On Thursday, June 7, 2001, at 08:31 AM, Clyde McQueen wrote:
>
> > I keep looking in the online docs for a summary of all the methods used
> > to draw (text, images, etc.). Am I missing something?
>
> No, not really.
>
> There are quite a few different ways to draw in Cocoa. Most of the
> things we used to do with Postscript path operations are now done with
> NSBezierPath. Bitmap images are drawn using NSImage and NSImageRep.
> Text is drawn using NSAttributedString, NSText, etc. 3d drawing is done
> with OpenGL, typically in an NSOpenGLView.
>
> Basically, there's no single place in the docs that deals with all the
> ways to get something to the screen or printer in Cocoa.
>
> -jcr
> ...

Basically, Clyde, the reason there is no single place that describes
drawing and/or printing things is because of the difference between the
procedural approach vs. the object oriented approach. In the Object Oriented
view of the way things work, every object that will have a visual
representation will know how to create that representation itself (it can
"draw" itself)---nothing else knows how to do this (we just give it a context
in which to "draw" itself and tell it to "go for it"---it handles the
details). (The same will be true if, for instance, there will be an audio
interface---the objects, themselves, will be responsible for expressing
themselves.)
Another feature of this is that the methods for doing this "drawing" will
be the same for all similar objects, whether or not they are common
subclasses---they will adhere to the same "protocol" (whether formal or
informal).

David email@hidden


References: 
 >Re: Summary of drawing routines? (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: "Tricks" of the "Trade"
  • Next by Date: Re: Getting started with Cocoa
  • Previous by thread: Re: Summary of drawing routines?
  • Next by thread: Re: Summary of drawing routines?
  • Index(es):
    • Date
    • Thread