NSDrawThreePartImage() might help. Of course, it requires three
separate images to begin with. (I find this preferable, though,
because it avoids having to hard-code image sizes in your code.)

In my testing several months ago, though, I found that manually
drawing the three segments (using NSImage's -drawInRect:) to be
faster. So if performance is an issue, you might be better off rolling
your own.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to