• 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: Drawing an image via 9 slices?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing an image via 9 slices?


  • Subject: Re: Drawing an image via 9 slices?
  • From: Ashley Clark <email@hidden>
  • Date: Wed, 22 Oct 2008 18:26:41 -0500

On Oct 22, 2008, at 6:21 PM, Randall Meadows wrote:

I'd have sworn in times past I've run across a Cocoa method that takes 9 "slice" of an image, and expands the middle piece while retaining the outer 8 pieces to create an "expandable" image.

(Imagine a button image with a custom border, but a plain gray middle. using this alleged method, you could draw that image at any size, the border looks correct at all sizes, because only the middle slice (both horizontally and vertically) grows.)

Can anyone refresh my memory of what this beast is? Or am I hallucinating (again)?


It's new in Leopard and not documented well (or at all?) outside of the header file. Look in NSCell.h for NSDrawNinePartImage though.

Ashley


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Follow-Ups:
    • Re: Drawing an image via 9 slices?
      • From: Randall Meadows <email@hidden>
References: 
 >Drawing an image via 9 slices? (From: Randall Meadows <email@hidden>)

  • Prev by Date: Re: LSUIElement application and coming to the front
  • Next by Date: Unregistered weak referrer
  • Previous by thread: Drawing an image via 9 slices?
  • Next by thread: Re: Drawing an image via 9 slices?
  • Index(es):
    • Date
    • Thread