Re: Overriding -dealloc on any object

2009-03-25 Thread Keary Suska
On Mar 25, 2009, at 7:29 AM, Ryan Joseph wrote: The question is, will it be safe to override methods like initWithObjects: that are owned by Cocoa and created through convenience functions? Will those objects be sent -dealloc also? Second, given the Objective-C runtime should I replace the

Overriding -dealloc on any object

2009-03-25 Thread Ryan Joseph
I'm working on a Cocoa bridge for Pascal and looking for a solution to manage the wrapper objects that are directly related to all their Objective-C counterparts, and therefore must be released in pairs. I understand that -dealloc is the designated location to release instances owned by the