CompositeToPoint - avoid its use?
CompositeToPoint - avoid its use?
- Subject: CompositeToPoint - avoid its use?
- From: Matt <email@hidden>
- Date: Fri, 17 Oct 2008 21:04:53 -0700
Recently found this in the Apple NSImage docs re: CompositeToPoint method:
"Important: If you are writing new code, or updating old code, you
should avoid using this method. Instead, you should use the
drawAtPoint:fromRect:operation:fraction: or
drawInRect:fromRect:operation:fraction: method to draw the image.
Although the method itself is not deprecated, the behavior it provides
is not recommended for general use."
I am currently using compositeToPoint extensively in one of my
projects because I read in the apple drawing guide that it is more
efficient since it ignores some extra checks like bounds and view
rotation, etc.
I have had trouble finding any other details on the above warning in
the docs. Does anyone have any information they might be able to share
on why 'compositeToPoint' is 'not recommended for general use'?
Thanks in advance,
-Matt
_______________________________________________
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