nib leaking NSFormatters?
nib leaking NSFormatters?
- Subject: nib leaking NSFormatters?
- From: Adam Ohren <email@hidden>
- Date: Tue, 6 Jan 2004 00:34:10 -0500
This is my first post, so sorry for anything stupid (this didn't get
anywhere on studentdev).
I have a document-based app that has an NSTableView, whose
NSTableColumns have anonymous NSNumberFormatters attached - by
"anonymous" I mean they were created in IB by simply dropping the
formatters from a palette onto the columns.
All is well, until I run the app and create a few document windows and
then close them. running the command line tool 'leaks' indicates there
are multiple NSCFString objects leaked. these appear to be related to
those formatters; if I manually send release messages to the formatters
in myDocument's -dealloc method, the leaks go away.
I thought that the document's window controller was responsible for
releasing all the objects created by a nib. am I responsible for
releasing NSFormatters created by dropping them from the palette like
that?
thanks a lot,
Adam Ohren
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.