• 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: Problem with dataWithPDFInsideRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with dataWithPDFInsideRect


  • Subject: Re: Problem with dataWithPDFInsideRect
  • From: Izidor Jerebic <email@hidden>
  • Date: Sat, 12 Nov 2005 19:11:06 +0100


On Nov 12, 2005, at 5:28 PM, Erik Buck wrote:


Having bounds different from the frame is used just to transform a view for _viewing_. In other words, because the transforming operation is performed by the -display mechanisms in AppKit, the transform is only for display. With this reasoning, the bounds is the "true" definition of the view for WYSIWYG purposes and any differences between between frame and bounds are just for display.


In contrast, a transform that is applied within a -drawRect: implementation is part of the drawing regardless of the output device. Transforms within -drawRect: define the drawing as opposed to the environment in which drawing takes place ?

You are wrong. This is not what is happening.

The scaling is applied correctly to the contents of the pdf document, but the bounding box (pdf media box) of pdf document is wrong. The scaling is not applied to everything, it is applied only partially.

This partiality is the problem. If it wouldn't apply at all, that would be wrong but at least sometimes useful. As it stands now it is always wrong and just plain broken...

izidor

P.S. And I checked the bugreport date - it was back in 2003....

_______________________________________________
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


References: 
 >Re: Problem with dataWithPDFInsideRect (From: Erik Buck <email@hidden>)

  • Prev by Date: Re: Linking error with C++ framework and GCC 4.0.1
  • Next by Date: Re: Linking error with C++ framework and GCC 4.0.1
  • Previous by thread: Re: Problem with dataWithPDFInsideRect
  • Next by thread: NSTableView -- possible to override autoscroll behavior?
  • Index(es):
    • Date
    • Thread