• 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
Forcing dealloc on IBOutlets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Forcing dealloc on IBOutlets


  • Subject: Forcing dealloc on IBOutlets
  • From: Tito Ciuro <email@hidden>
  • Date: Mon, 7 Apr 2003 09:21:31 +0200

Hello,

I'm using an NSTabView to act as a container for custom views, which act as controllers. When I quit the app, the dealloc method in the hierarchy doesn't get called.

Example:

NSTabView
|
| Page1Controller
|
| IBOutlets (NSButtons, NSTextFields, etc)
| Collection objects (retained)
| Other custom objects (retained)
| Page2Controller
|
| IBOutlets (NSSliders, etc)
| Collection objects (retained)
| Other custom objects (retained)

When I quit the app, I need Page1Controller and Page2Controller to be dealloc'ed so I can continue cleaning up the rest of the objects, which include writing defaults back to the user defaults plist.

Should I retrieve each controller manually and call release for each of them? Am I doing too much work? I thought that NSTabView would dealloc each view in its hierarchy automatically, but it isn't the case.

Any ideas?

Thanks!

-- Tito
_______________________________________________
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.

  • Prev by Date: workaround for broken numlock support?
  • Next by Date: Finding out if a folder is invisible
  • Previous by thread: workaround for broken numlock support?
  • Next by thread: Finding out if a folder is invisible
  • Index(es):
    • Date
    • Thread