The Shape of Everything
A website mostly about Mac stuff, written by August "Gus" Mueller
» Acorn
» Retrobatch
» Mastodon
» Micro.blog
» Instagram
» Github
» Maybe Pizza?
» Archives
» Feed
» Micro feed
February 6, 2004
(This post is from my old, old, super old site. My views have changed over the years, hopefully my writing has improved, and there is now more than a handful of folks reading my site. Enjoy.)

Friday, February 6th, 2004

Method Swizzling is not for the faint of heart. I've been playing around with it a little bit with my NSTextView + ODB editing stuff, and I had a bug. I was swizzling dealloc. Safari crashed. Then I think the crash reporter crashed. Then the crash reporter tried to come up to report the crash reporter crashing (I think- it wasn't working correctly anyway). Then the UserNotificationCenter started spewing stuff in the the console. It wasn't good, don't try this at home kids.

Bug fixed. But I'm still veeeeery nervious, as I should be. But it's still fun. Objective-C is very, very cool. With categories and method swizzling, the sky is the limit.

-- posted 1:15 pm