I just discovered the NSRect helper functions in NSGeometry.h (i.e. NSMidX, NSMaxX, etc...)
These would have made some repetitive coding much easier. I knew about NSMak
Creating a colour from a pattern image with
[UIColor colorWithPatternImage:[UIImage imageNamed:@"mypattern.png"]];