• 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: how do I make chat bubbles using a custom cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: how do I make chat bubbles using a custom cell
      • From: "I. Savant" <email@hidden>
References: 
 >how do I make chat bubbles using a custom cell (From: TARUN CHAPLOT <email@hidden>)
 >Re: how do I make chat bubbles using a custom cell (From: chaitanya pandit <email@hidden>)

  • Prev by Date: Re: Handling key equivalents in a controller class?
  • Next by Date: IBOutlet to same control in different nibs
  • Previous by thread: Re: how do I make chat bubbles using a custom cell
  • Next by thread: Re: how do I make chat bubbles using a custom cell
  • Index(es):
    • Date
    • Thread