dataWithPDFInsideRect doesn't clip
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