views:

50

answers:

1

Does anyone know how to use setLeftCapWidth on the mac? I know that Apple uses it in iChat and atebits uses it in Tweetie for mac. So does anyone know how to re-create it?

A: 

Assuming that what you want to do is draw button-like artwork that consists of a left image, a right image, and a tiled center image, then see NSDrawThreePartImage.

Ken
I tried NSDrawThreePartImage but i cant get it to stop scaling the left cap (speech bubble) to resize the top cap while resizing the fill , same with the right cap of the bubble
timothy5216
I even tried NSDrawNinePartImage but i still cant seem to get it to scale right
timothy5216
The comments in the header describe exactly how everything is scaled.
Ken