Cocoa…

Wade Williams wrote on the dotnetaddict blog: One of the toughest hurdles I had to overcome when learning Cocoa coming from the procedural C world was learning to look for the easy way. It’s been a long time so I don’t remember the details, but I have a hazy memory of one example of wanting … Continue reading “Cocoa…”

Wade Williams wrote on the dotnetaddict blog:

One of the toughest hurdles I had to overcome when learning Cocoa coming from the procedural C world was learning to look for the easy way. It’s been a long time so I don’t remember the details, but I have a hazy memory of one example of wanting to print an NSView. I started off thinking I’d need to subclass the NSView, implement a print method, figure out what methods I’d need to call in there to create a connection to the printer and then I guessed I’d need to draw the view again to some special printer view to make it actually print.

The real answer? Send the NSView a print message. Done.

In short, it took quite a while to quit looking for the hard way to do something and shift to the mindset of assuming there was an easy way until proven wrong.

Thanks, Wade. I don’t have your contact details, but it’s a great quote.

Leave a Reply