Re: nib leaking NSFormatters?
Re: nib leaking NSFormatters?
- Subject: Re: nib leaking NSFormatters?
- From: Adam Ohren <email@hidden>
- Date: Tue, 6 Jan 2004 23:00:36 -0500
On Jan 6, 2004, at 2:53 PM, Amul Goswamy wrote:
Note that NSWindowController automatically releases its nib files
objects for you. Also, NSWindow has a isReleasedOnCloseattribute, which
automatically releases the window for you when its closed.
This is the behavior I was curious about. When I close a document's
window, I'm assuming the document's NSWindowController releases its nib
files objects. However it does not appear to release my
NSNumberFormatters. I can successfully send them release messages
manually.
On the other hand, if I make the NSNumberFormatters top-level objects
(as opposed to having been dropped off a palette) , 'leaks' still
reports a NSCFString objects leaking. Only in this case, I get SIGBUS
signals if I try to send them release messages manually.
What's the correct way to release the NumberFormatters, in either case?
Thanks oodles :) ,
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.