Michael
This user hasn't shared any biographical information
Posts by Michael
Custom Drawing Using drawRect, Part 1
December 18, 2009 - 10:01 PM
Tags: Cocoa, drawing, Objective-C, Sample Code, UIView
Posted in Cocoa, Design, Sample Code | 1 comment
One of the more advanced techniques for creating custom user interfaces on the Mac is the use of NSView’s drawRect method. Many answers to questions on StackOverflow and Apple’s mailing lists include recommendations to “just override drawRect and do the drawing yourself”. Some folks see this recommendation and their eyes glaze over, thinking that it’s [...]
Bottom Bars in Interface Builder
December 18, 2009 - 3:30 PM
Posted in Cocoa, Link | No comments
Dave posts a handy tip for those that may not know that there’s a non-code way of setting up the bottom bars on your windows. Check it out here: Bottom Bars in Interface Builder – Dave Dribin’s Blog.
iLife 09 Won't Install When the iPhone Simulator Is Running
October 20, 2009 - 7:59 PM
Posted in Uncategorized | No comments
This post is a bit of a deviation from my usual posts, but it falls into the something-that-bit-me-that-might-bite-you-too-so-here’s-how-to-fix-it category.
I recently upgraded to Snow Leopard by doing an erase and install. After getting everything back up and running I realized that I still needed to install iLife. I popped in disc 2 of my [...]
Core Data Code Generation
September 9, 2009 - 9:44 AM
Tags: Category, Cocoa, Core Data, Objective-C, performance, Sample Code
Posted in Cocoa, Link | No comments
Bill Dudney has a great post about using categories to avoid some of the work when generating and regenerating classes from your Core Data model. Read about it on his blog, PrEV, here: Core Data Code Generation.
Your New Friends: Obj-C Associated Objects
August 28, 2009 - 12:32 PM
Tags: Cocoa, code, Objective-C, Sample Code, Snow Leopard
Posted in Cocoa, Link, Sample Code | No comments
Andy Matuschak has posted a little-known feature of the Objective-C API under Snow Leopard on his blog. I can’t think of a use for associated objects at the moment, but there’s a good chance that I will need them in the future. You can read about them at his blog: Square Signals : Your New Friends: [...]
UIView Manipulation Made Easier with a Category
July 27, 2009 - 2:30 PM
Tags: Category, CocoaHeads, code reuse, Debugging, iPhone, mistakes, Sample Code, UIView
Posted in Cocoa, Sample Code | 5 comments
I was watching a presentation recently where the presenter showed the header for a category that he had added to UIView to make his life a little easier. The point of the talk did not center around the category so I never saw much more than the header, but that was all I needed [...]
Standard iPhone Element Sizes
Great quick reference for Standard iPhone Element Sizes at Jonathan George’s site.
iPhone Development: Updating Project Hint
July 15, 2009 - 3:56 PM
Tags: iPhone, project, Xcode
Posted in Link | No comments
Jeff posts a great hint that answers some problems that folks were having with one of my older posts, Finding Memory Leaks With The LLVM/Clang Static Analyzer
Check out Jeff’s post here: iPhone Development: Updating Project Hint.
Quick and Easy Drawing Performance Debugging with NSShowAllDrawing
July 10, 2009 - 10:59 AM
Tags: Bezipped, Debugging, drawing, interface_builder, performance, WWDC
Posted in Cocoa, Debugging | 3 comments
While watching one of the WWDC09 session videos I was informed of a great tip that I had been previously unknown to me: Pass -NSShowAllDrawing YES as an argument to your application in Xcode to see a visual representation of the drawing that your application performs as it runs.
To illustrate how NSShowAllDrawing works and the [...]
The Best Interface Builder Layout Ever
July 7, 2009 - 11:58 AM
Tags: best, Design, ever, IB, interface_builder, layout
Posted in Cocoa, Design | 3 comments
This morning I posted a screenshot of my Interface Builder layout on Twitter. I didn’t think much of it at the time, but I received enough positive feedback on it that I decided to post it here for generations of future Cocoa developers to find. The layout gets harder to work with the smaller your [...]
