• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: nib leaking NSFormatters?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >nib leaking NSFormatters? (From: Adam Ohren <email@hidden>)
 >Re: nib leaking NSFormatters? (From: Amul Goswamy <email@hidden>)

  • Prev by Date: Re: People who develop with MySQL and/or other GPL based code
  • Next by Date: Re: my application's Help fails to appear
  • Previous by thread: Re: nib leaking NSFormatters?
  • Next by thread: darkening an NSIMage
  • Index(es):
    • Date
    • Thread