Stretching NSImage PNGs smoothly
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