Re: NSTextView retain count and HICocoaView problems

2010-07-15 Thread Tony Romano
The reason dealloc is not being called is because you still have a retain count > 0. In cases like this, personally, I always assume my code is at fault. Once I have exhausted all known techniques trying to resolve the discrepancy then I escalate it. Your best bet is to use Instruments, forc

Re: NSTextView retain count and HICocoaView problems

2010-07-15 Thread Ryan Joseph
On Jul 15, 2010, at 4:25 PM, Kyle Sluder wrote: > On Wed, Jul 14, 2010 at 9:39 AM, Ryan Joseph > wrote: >> 1) The retainCount from the newly created NSTextView returns 4 and goes up >> to 7 after I call HICocoaViewCreate on the NSTextView instance. I tried >> calling release on the NSTextView

Re: NSTextView retain count and HICocoaView problems

2010-07-15 Thread Kyle Sluder
On Wed, Jul 14, 2010 at 9:39 AM, Ryan Joseph wrote: > 1) The retainCount from the newly created NSTextView returns 4 and goes up to > 7 after I call HICocoaViewCreate on the NSTextView instance. I tried calling > release on the NSTextView and DisposeControl on the HICocoaView but neither > actu

NSTextView retain count and HICocoaView problems

2010-07-15 Thread Ryan Joseph
I have an NSTextView I am allocating programmatically then inserting into a HICocoaView for use in a Carbon app. The problem I'm experiencing has 2 points that are probably related. 1) The retainCount from the newly created NSTextView returns 4 and goes up to 7 after I call HICocoaViewCreate on