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 PROTECTED]

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to