I’ve written a simple SQLite Wrapper with two Examples one for Mac and one for the iPhone. The Wrapper class has the same source code for both platforms.
Today I’m playing a bit with Quartz and Cocoa Drawing system (that is based on Quartz).
I’ve made a simple example that you can see below where I’ve used custom NSView that draws an Image and a Bezier Path with some text inside, and around the Bezier Path there’s a Shadow.
Cocoa Drawing Example
…And this is the drawRect method source code of the custom NSView.
It’s a couple of days that I’m searching for something like QHBoxLayout (Qt Horizonal Box Layout) in Cocoa. There’s NSMatrix that do something like this… but it uses NSCell and it sets the same size for all the cells, so this is not what I want. My solution is a simple NSView subclass…
Quick Look is a technology introduced in Mac OS X version 10.5 that enables client applications, such as Spotlight and the Finder, to display thumbnail images and full-size previews of documents.
Today’s example is “How to add your own Item inside System Status Bar“. It’s really easy but the Apple OS X Human Interface Guidelines discourage it, at the end of the post you can find the Apple HIG notes.
Cocoa System Status Bar
Something about Names… Apple HIG call this MenuBar part “MenuBar Extra” (See Apple HIG Part III – The Menu Bar and Its Menus) using Cocoa you can get it from NSStatusBarsystemStatusBar.