• 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: [CoreData] Undo of insert - how to close the removed object's window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [CoreData] Undo of insert - how to close the removed object's window?


  • Subject: Re: [CoreData] Undo of insert - how to close the removed object's window?
  • From: Kaspar Fischer <email@hidden>
  • Date: Tue, 15 Nov 2005 19:19:17 +0100

On 15.11.2005, at 16:38, mmalcolm crawford wrote:
I would first suspect that you're leaking the nib files -- see "Memory Management and Retain Cycles" at <http://homepage.mac.com/ mmalc/CocoaExamples/controllers.html>.

Hm, are you saying that the window should actually be released *immediately* when I close it from my observation routine? And that due to a leaking error from my side (which is more than possible!) it is not released?

Funnily enough, the window *does* get released when I ignore
the assertions. (You have to know that the "crash" I mentioned
in the original post is not really a crash -- it's simply one
of my NSAssert's being violated because a view is accessing
the MVC model object via one of my controllers when the model
isn't there anymore. If I remove these assertions, everything
works fine: the window gets released, the bindings unbound, etc.)

So I am a little confused now because I thought that a window
is never released directly but only autoreleased (so that it
gets released safely at the end of the event loop). Is this
correct?

If so then I really have to manually unbind it, don't I? :-(

Thanks,
Kaspar
_______________________________________________
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


References: 
 >[CoreData] Undo of insert - how to close the removed object's window? (From: Kaspar Fischer <email@hidden>)
 >Re: [CoreData] Undo of insert - how to close the removed object's window? (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Core Data inverse relationships
  • Next by Date: Re: NSOutlineView as dragging destination for promised files
  • Previous by thread: Re: [CoreData] Undo of insert - how to close the removed object's window?
  • Next by thread: Interface Builder and Command Key Equivalents
  • Index(es):
    • Date
    • Thread