Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.
In a Objective-C application which uses garbage collection, like a MacRuby app, any objects instantiated in a NIB will get collected as well. Unless you keep a ‘strong’ reference to them from an object reachable from a ‘root’ object, such as NSApplication.sharedApplication (NSApp).

As I normally make my AppController instance the NSApp's delegate (‘strong’ reference) right from the start, I didn't notice this and it kept me busy for a good hour.
No Soup for you

Don't be the product, buy the product!

YES, I want to SOUP ●UP for ...