• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSImage inside(?) NSBezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSImage inside(?) NSBezierPath (From: "Hell's KItchen Hell's KItchen" <email@hidden>)
 >Re: NSImage inside(?) NSBezierPath (From: "Alan Smith" <email@hidden>)
 >Re: NSImage inside(?) NSBezierPath (From: Uli Kusterer <email@hidden>)
 >Re: NSImage inside(?) NSBezierPath (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: NSImage inside(?) NSBezierPath
  • Next by Date: Re: Singletons and Threads
  • Previous by thread: Re: NSImage inside(?) NSBezierPath
  • Next by thread: Re: NSImage inside(?) NSBezierPath
  • Index(es):
    • Date
    • Thread