One Quickie

Truncating text in the middle of a string (NSTextView->General)
Sometimes you see text that is of the form "Some Gro...eral Fish", with the middle truncated but the ends still readable. You can get this effect yourself with:
[[textfield cell] setLineBreakMode: NSLineBreakByTruncatingMiddle]
(Thanks to Daniel Jalkut for this one)

borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book