On 8/29/11 1:17 PM, wadesli...@mac.com wrote:
One warning about extremely large views is that at some point you will run into 
floating-point rounding errors, since AppKit and CoreGraphics coords are 32-bit 
floats and have only 24 bits of precision. Still, that should get you to 
millions of pixels before the coords stop being pixel-accurate.
64-bit AppKit is much better in this regard than 32-bit.  If memory serves, it 
lets you reliably operate NSScrollViews over dimensions in the billions.

At the moment I need to support power PC (I have 5 computers.) most at least are running 10.5.8 which helps a lot.

I am not to worried about the rounding. Much of this code was coded in postscript. So the graphics already are in floating point.

In some ways it is too bad I can not call the cocoa classes from a postscript syntax, considering that the program already defines the data in arrays of dictionaries. I think at one time there was interactive postscript on the NEXT. Not sure if any of that still exists or not.

As for the original question. I am not sure I ever got it answered? Simply where, as in what files, do I put the code that creates the super view that describes all my lines? I do have the code working that imports the data into the same array of dictionaries. The imported array comes in at 20713.

Now I want to create a view that is 20713 lines high and 2600 lines wide. I am pretty sure I create or subclass NSScrollview do do this? Where do I put the code that sets this frame or clip area (which I think is the superview?) If I make a subclass of NSScrollVew called cisView, I get some basically empty files in the class, with no hints as to where things go or what to override.

The "Scroll View Programming guide" has a code snippet (listing 1) Creating a scroll view programetically. This however uses an ImageView, which would require a data source that would read all the lines at once. I only want to draw or update the lines contained in the array that are visible dependent on where the scroller thumb is located.



-julie








_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to