• 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
dataWithPDFInsideRect doesn't clip
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dataWithPDFInsideRect doesn't clip


  • Subject: dataWithPDFInsideRect doesn't clip
  • From: Lorenzo <email@hidden>
  • Date: Sat, 12 Apr 2008 12:50:32 +0200

I have subclassed an NSView (myView) and added it within a pageView. Within
myView's drawRect method I draw myImage using

    [myImage drawInRect:mInRect fromRect:mFromRect

Even when mInRect is larger than myView's bounds I properly get the clipped
image on the screen, but when I get
    [pageView dataWithPDFInsideRect:[pageView bounds]];
the image is not clipped at all. Its frame is just equal to the mInRect on
the pageView. I give you some data.

pageView frame {{0, 0}, {640, 400}}
myImage  size  {1500, 1000}
myView   frame {{20, 70}, {600, 300}}
mInRect        {{0, -50}, {600, 400}}
mFromRect      {{0, 0}, {1500, 1000}}

The strange thing is that on the screen I get the right result while
dataWithPDFInsideRect gives me the wrong result. Do I miss something?
Should I specify to clip myView someway?


Best Regards
--
Lorenzo
email: email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Prev by Date: Re: NSApplicationMain arguments
  • Next by Date: Re: Core Data and the Document Dirty indicator
  • Previous by thread: Re: Custom view output to projector
  • Next by thread: dataWithPDFInsideRect doesn't clip
  • Index(es):
    • Date
    • Thread