• 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: Is there a ready chart plotting view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a ready chart plotting view?


  • Subject: Re: Is there a ready chart plotting view?
  • From: Henry McGilton <email@hidden>
  • Date: Sun, 30 Mar 2003 23:23:21 -0800

On Sunday, March 30, 2003, at 10:39 PM, John Anderson wrote:

Scott,

Thanks again for your help (I was already planning on buying your book the next time I had any money).

Now, it is pretty clear the most the old NeXT PostScript functions (eg PSthis(), PSthat()) have been incorporated into the NSBezierPath class. There are only a few a classes used, and most of them are obvious to decipher (eg NXThis -> NSThis).

That is mostly true. If you wish to get deep into the transliteration of PS functions to
NSBezierPath methods, you really need to have at least a minimal understanding of
the PostScript graphics operators.

However, it is not yet clear what the type NXCoord represents? (A pair of NSPoints?) Apparently this type was defined in the old <appkit/Form.h> .

NXCoord is simply a typedef for a float.


The other thing that is now on my radar is the NeXT class "UserPath." According, to its head this class has a "set of rountines [that] manage he allocation and growth of the operator and operand arrays, as well as the calculation of the bounding box." This class set itself in its own memory zone and to be drawing related. So, I suspect that "UserPath" is obsolete is Cocoa, but I am not sure?

User Paths are/were a Display PostScript mechanism for caching paths. The
NSBezierPath methods for caching likely accomplish the same objective. The
idea of user paths is that you can set up a path that you wish to use
many times, and then just call it up and have it rendered. User paths
had to adhere to a very strict and stylised format, and had to ensure that
their bounding boxes were correct. Chapter 2 of my book PostScript By
Example contains some examples of how to set up user paths. The concept
needs explaining for Cocoa, but the fine details do not.



Truly Yours,
John Anderson
"That's right, I said French Fries . . . "




On Monday, Mar 31, 2003, at 00:11 America/Detroit, Scott Anguish wrote:


On Sunday, March 30, 2003, at 09:43 PM, John Anderson wrote:

Oleg,

I guess that I will take the lead on the source-code "Rosetta-stone" facet of the project.

I think that we may need to just start by identifying which NeXT classes, methods and functions do not in Cocoa.

To start with:

NXStream -> NSPipe???


Nope.. NXStream was a stream class that allowed you to read and write from a disk file. There is no equivalent in Cocoa.


Aside from that... drawing has changed.. you've got NSBezierPath now instead of the functions... 3.1 had no notion of foundation, or anything along that line. views, mouse handling are the same..

You may want to look at it more for inspiration design wise rather than anything concrete code wise.

===============================+============================
Henry McGilton | Trilithon Software
Boulevardier, Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden | http://www.trilithon.com
===============================+============================
_______________________________________________
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.

References: 
 >Re: Is there a ready chart plotting view? (From: John Anderson <email@hidden>)

  • Prev by Date: Re: NSView setVisible: method -- NOT
  • Next by Date: Re: Is there a ready chart plotting view?
  • Previous by thread: Re: Is there a ready chart plotting view?
  • Next by thread: Re: Is there a ready chart plotting view?
  • Index(es):
    • Date
    • Thread