• 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
nib leaking NSFormatters?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: nib leaking NSFormatters?
      • From: Amul Goswamy <email@hidden>
  • Prev by Date: Re: Changing the cell for a control
  • Next by Date: darkening an NSIMage
  • Previous by thread: Re: NSSpellServer & period
  • Next by thread: Re: nib leaking NSFormatters?
  • Index(es):
    • Date
    • Thread