• 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: NSDocument subclass not dealloced after promising data - best way out this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument subclass not dealloced after promising data - best way out this?


  • Subject: Re: NSDocument subclass not dealloced after promising data - best way out this?
  • From: Steven Kramer <email@hidden>
  • Date: Mon, 6 Dec 2004 10:19:36 +0100

So far, so good. But this setup is causing me crashes.
It seems that if I do any sort of drag operation in my
outline view, and then close the docoment window,
MyDocument does not get released. This means that
dealloc is never called, and consequently, MyDocument
is never unregistered as an observer. Thus, the closed
MyDocument may receive and act on a notification, and
its methods may try to access a view that *has* been
released when the window was closed - which results in
a crash.


I'd say the document needs to retain the view if it depends on it for correct behaviour. I may be oversimplifying, because I don't know the context, though.


Regards

   Steven

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSDocument subclass not dealloced after promising data - best way out this?
      • From: Keith Blount <email@hidden>
References: 
 >NSDocument subclass not dealloced after promising data - best way out this? (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: NSFileManager fun & games
  • Next by Date: cached image outside cache window?
  • Previous by thread: NSDocument subclass not dealloced after promising data - best way out this?
  • Next by thread: Re: NSDocument subclass not dealloced after promising data - best way out this?
  • Index(es):
    • Date
    • Thread