Objective C memory leaking

Posted by Jakub Lédl on Stack Overflow See other posts from Stack Overflow or by Jakub Lédl
Published on 2010-05-20T19:39:13Z Indexed on 2010/05/20 19:40 UTC
Read the original article Hit count: 175

Filed under:
|
|
|

Hi everyone, I'm creating one Cocoa application for myself and I found a problem. I have two NSTextFields and they're connected to each other as nextKeyViews. When I run this app with memory leaks detection tool and tab through those 2 textboxes for a while, enter some text etc., I start to leak memory. It shows me that the AppKit library is responsible, the leaked objects are NSCFStrings and the responsible frames are [NSEvent charactersIgnoringModifiers] and [NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]. I know this is quite a brief and incomplete description, but does anyone have any ideas what could be the problem?

Also, I don't use GC, so I release my instance variables in the controllers dealloc. What about the outlets? Since IBOutlet is just a mark for Interface Builder and doesn't actually mean anything, should I release them too?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about memory