Re: how do I make chat bubbles using a custom cell
Re: how do I make chat bubbles using a custom cell
- Subject: Re: how do I make chat bubbles using a custom cell
- From: Jens Alfke <email@hidden>
- Date: Thu, 17 Jul 2008 09:41:48 -0700
On 16 Jul '08, at 8:22 AM, chaitanya pandit wrote:
One idea would be to create an NSBezierPath with the shape of the
chat bubble, once u have it you can use the CTGradient calss's
[gradient fillBezierPath] method to fill it with an aqua look.
The CTGradient project is here: http://blog.oofn.net/2006/01/15/gradients-in-cocoa/
There's an NSGradient class in 10.5.
I haven't tried this, but I don't think a plain gradient would look
very good. The iChat balloons are more complicated than that; the
artwork was done in Photoshop using some of those fancy layer effects
that the Apple HI team can probably do in their sleep.
Once you have a template image like that, it's easy to stretch it to
fill the balloon bounds using NSDrawNinePartImage.
—Jens
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