• 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
Stretching NSImage PNGs smoothly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stretching NSImage PNGs smoothly


  • Subject: Stretching NSImage PNGs smoothly
  • From: John Wright <email@hidden>
  • Date: Thu, 19 Nov 2009 18:14:14 -0700

I know about how to use UIKit's

     -(UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth
topCapHeight:(NSInteger)topCapHeight

to stretch a PNG smoothly, e.g when inserting text in an iChat like bubble.
 I would like to do the same on regular AppKit/Cocoa/desktop app using
CoreGraphics or some NSImage related API but couldn't find an equivalent
method.  Does anybody know how to do this in AppKit?

Ref:
http://stackoverflow.com/questions/663435/implement-view-like-standard-iphone-sms-chat-bubbles-view

Thanks,

John Wright
_______________________________________________

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: Stretching NSImage PNGs smoothly
      • From: Dave Keck <email@hidden>
  • Prev by Date: resizing PDF obtained from dataWithPDFInsideRect:
  • Next by Date: Re: Stretching NSImage PNGs smoothly
  • Previous by thread: Re: resizing PDF obtained from dataWithPDFInsideRect:
  • Next by thread: Re: Stretching NSImage PNGs smoothly
  • Index(es):
    • Date
    • Thread