• 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: Double precision drawing in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double precision drawing in Cocoa


  • Subject: Re: Double precision drawing in Cocoa
  • From: John Nairn <email@hidden>
  • Date: Wed, 12 Apr 2006 17:01:17 -0700

Is there any way to get double precision drawing in appkit/
foundation? I ask because I am making a view that needs to be able to
handle *huge* sizes at pixel resolution (a hex editor), and 24 bits
of precision just doesn't cut it (I get artifacts after I scroll down
aways, and they get worse the further I go). Is there some double
version of the geometry structures (NSPoint, NSRect, etc)? Or do I
have to use Quartz / ATSUI?


I have had problems on the other end by drawing to a view with the frame set to very small dimensions. The problems start to occur when I get frame coordinates such that there are less than 0.0025 drawing units per pixel. In this range the scrolling starts to develop artifacts just as you described. When it gets much smaller (around 0.00001 drawing units per pixel) the scrolling can stop working altogether and window updates might do nothing.


---------------
John Nairn (1-541-737-4265, FAX:1-541-737-3385)
Professor and Richardson Chair
Web Page: http://woodscience.oregonstate.edu/faculty/nairn(under construction)
FEA/MPM Web Page: http://oregonstate.edu/~nairnj


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Double precision drawing in Cocoa
      • From: email@hidden
  • Prev by Date: transparency weirdness
  • Next by Date: Drag and Drop: Strange behavior with propertyListForType
  • Previous by thread: Re: Double precision drawing in Cocoa
  • Next by thread: Re: Double precision drawing in Cocoa
  • Index(es):
    • Date
    • Thread