David Beck's Blog

Posts filed under "Programming"

Tips and tools for programmers.


CGInsetRect

Wednesday, September 9th, 2009

I titled this post as such because I am hoping to help others that are in the situation I was in. Go ahead and Google “CGInsetRect”. When I did, I got 0 results. Not a single page has anything on it. The reason? While on Mac OS X you would call NSInsetRect, on iPhone you use CGRects. They are almost identical including having the same function set. The catch? NSRects functions all use the naming convention NSFunctionRect. CGRects on the other hand, as I forgot, use CGRectFunction.
Read More »

Filed under: Programming

NSTableView, NSArrayController and editing new rows

Sunday, May 10th, 2009

Figured out a very nice solution to automatically edit new rows added by NSArrayControllers via bindings! I searched for a while and didn’t find any correct solutions, so I made my own.
Read More »

Filed under: Programming