Fri, May 15, 2009A quick Cocoa 9-part image example

Here is a quick example of how to use Cocoa/Objective-C's NSDrawNinePartImage method for custom backgrounds and such. You can see an example of this in the new Tweetie desktop app (the status 'bubbles').


This is a bit of a simpler method to the Cocoa Drawing with bezier path that you saw with my last entry. I hope you find some use in this. As always if you have any questions just ask! So I hope you enjoy!


StretchMyView.zip


Here is a link to the offical documentation from apple: NSDrawNinePartImage