Le 22 janv. 2010 à 19:41, David Duncan a écrit : > This will set layer1 and layer2 to use the same contents, and have them use > different parts of that bitmap. > > However your contentsRect is being set incorrectly. The contentsRect is a > rectangle in a unit coordinate system, which means that the coordinates range > from 0 to 1. Assuming your contents are 200x200, then the proper > contentsRects would be CGRectMake(0.5, 0.5, 0.25, 0.25) and CGRectMake(0.0, > 0.0, 0.25, 0.25).
Ok, thanks a lot. I'll tinker with my code and try to find further answers. Have a great week-end Vincent_______________________________________________ Cocoa-dev mailing list ([email protected]) 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]
