• 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 22:44:36 -0800

On Sunday, March 30, 2003, at 09:11 PM, 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.

This is partly true. NXStream revolved primarily around streams of data
in *memory*. By using NXMapFile, you would map an entire file into VM.
I assume that these functions were using the underlying mmap kernel
functions.

The closest analogy in Cocoa would be NSData and NSMutableData. You could
overlay those two classes with a bunch of functions that would replicate
the behaviour of NXStream. For example (*very* rough analogies):

NXOpenMemory ====>>>> [NSData dataWithBytes:length:] or [NSMutableData dataWithCapacity:]
NXMapFile ====>>>> [NSData dataWithContentsOfFile]
NXSaveToFile ====>>>> [NSData writeToFile: atomically:]

And so on. There would be more to the equation than all that, but it would
be achievable. The question is whether anybody actually needs to achieve it
at all.



Aside from that... drawing has changed.. you've got NSBezierPath now instead of the functions

Right --- the NSBezierPath methods and capabilities hew closely to
the functions of the old Display PostScript System, as well as the
PostScript language itself. The declarative parts of PostScript
carried over more or less into NSBezierPath, but the ability to
define an entirely new programming system dynamically has gone,
and good riddance as far as I am concerned.

... 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.

That's the best bit of advice so far . . .


Best Wishes,
........ Henry

===============================+============================
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.

  • Follow-Ups:
    • Re: Is there a ready chart plotting view?
      • From: John Anderson <email@hidden>
References: 
 >Re: Is there a ready chart plotting view? (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Is there a ready chart plotting view?
  • Next by Date: Re: Thread, timer, notifications, or something else?
  • 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