Re: NSImage inside(?) NSBezierPath
Re: NSImage inside(?) NSBezierPath
- Subject: Re: NSImage inside(?) NSBezierPath
- From: Ricky Sharp <email@hidden>
- Date: Fri, 14 Sep 2007 15:19:30 -0500
On Sep 14, 2007, at 2:26 PM, I. Savant wrote:
On 9/14/07, Uli Kusterer <email@hidden> wrote:
On 13.09.2007, at 23:59, Alan Smith wrote:
Passing NSZeroRect as the "fromRect" argument tells NSImage
that you want to draw the whole image, this prevents you from call -
[NSImage size] and making your own rect that is the same size as the
image.
Ooooo... neat! I never saw this in the docs. That'll save me a lot
of annoying typing in the future :-)
Ditto! Perhaps a quick note in the documentation feedback might see
this added ...
The NSImage Class Reference was updated in 2006 to mention this
NSZeroRect tip.
Xcode's API ref on drawInRect:fromRect:operation:fraction also
mentions it. Curiously though, this same named API in CIImage,
doesn't mention the tip. I would assume though that passing
NSZeroRect would do the right thing.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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