• 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: CALayer Border, Not Inset
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer Border, Not Inset


  • Subject: Re: CALayer Border, Not Inset
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 8 Jan 2008 15:10:22 -0500


On Jan 7, 2008, at 5:03 PM, David Duncan wrote:

On Jan 7, 2008, at 12:17 PM, Bridger Maxwell wrote:

Thanks Scott, but that is not quite what I am looking for. That solution
would normally be fine, but I need to be able to resize the CALayer with the
picture displayed in it. Is there a way to tell the image within it to
resize, but not fill the whole bounds?


Implement a layer delegate that handles the -drawLayer:inContext: message, then draw the image yourself inset from the layer's edges enough to cover whatever you need.

Oh, well, or that.. :-)

_______________________________________________

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: 
 >CALayer Border, Not Inset (From: "Bridger Maxwell" <email@hidden>)
 >Re: CALayer Border, Not Inset (From: Scott Anguish <email@hidden>)
 >Re: CALayer Border, Not Inset (From: "Bridger Maxwell" <email@hidden>)
 >Re: CALayer Border, Not Inset (From: David Duncan <email@hidden>)

  • Prev by Date: Need advice on creating a Bookmark Bar View
  • Next by Date: Re: NSTreeController selectedObjects always returns top level object
  • Previous by thread: Re: CALayer Border, Not Inset
  • Next by thread: Re: CALayer Border, Not Inset
  • Index(es):
    • Date
    • Thread