Monthly Archives: July 2007

How not to implement dragging and resizing in Cocoa

As you must have noticed by now as programers go I am a rank amateur.  So most of these entries are a way for me to solidify what I have learned.  Today I am covering a mistake that I made when I first started goofing around with dragging and resizing views and windows in the hope that [...]

Simple Comic 1.4 is out

Simple Comic 1.4 is out.
Download
Changes
Here is a source dump as of 1.4.
Source 

Programatically generated iTunes progress bar.

This is a neat little progress bar that I coded a while ago. I am constantly amazed by how well these controls are turning out without the use of images.

NSSegmentedControls and tooltips

There are two methods in NSSegmentedCell that mildly irritate me.  Mainly because they are not fully implemented. Namely setToolTip: forSegment: and toolTipForSegment:.  In the discussion for these methods the docs state “Tool tips are currently not displayed.”  Arg!
Luckily it is really easy to get them working using NSView’s addToolTipRect:owner:userdata:.  What I have done is add a method [...]

Simple Comic 1.3.1 is out

Changes

Updated the Simple Comic Repository

I have not been using the Simple Comic repository as of late and the difference between it and my local copy had grown rather large.  Instead of doing the “right” thing and checking in my changes I backed up and nuked the old repository.
The repository now holds the most up to date version along with [...]

Comic Icon 0.2.3

A little while ago I happened upon the IconFamily class.  In the course of goofing around with it I actually ended up with a neat little utility, Comic Icon.  It is an icon generation droplet for comic archives.  Drop any number of archives on it, select the images that you want used from the archive contents, crop [...]

Stupid Interface Tricks

Cocoa makes it easy to speed up drawing during window resizing by providing three NSView methods: inLiveResize, viewDidEndLiveResize and viewWillStartLiveResize.  When a user starts to resize a window viewWillStartLiveResize is called for all its views.  When the window resize ends viewDidEndLiveResize is called.  The basic idea is to use a simplified but faster drawing method while the [...]

Simple Comic 1.3 out

Last night I released Simple Comic 1.3.
Changes  
Have fun.