• 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: Properly Releasing NSWindows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Properly Releasing NSWindows


  • Subject: Re: Properly Releasing NSWindows
  • From: Allan Odgaard <email@hidden>
  • Date: Fri, 16 Apr 2004 05:47:02 +0200

On 16. Apr 2004, at 4:22, email@hidden wrote:

[...] "setReleasedWhenClosed(true)" for good measure.

I know *nothing* about the Cocoa/Java-bridge and how the mix GC of Java with retain count in ObjC, but: the releasedWhenClosed instructs the window object to release itself when it is getting closed. Is it possible that this is the problem? i.e. the window is destroyed from the ObjC-side w/o Java's knowledge, and when doing GC the next time, the collector will send an extra release to the object, because it is no longer used, but the object was already destroyed and thus no longer exists.
_______________________________________________
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: 
 >Properly Releasing NSWindows (From: email@hidden)

  • Prev by Date: Re: Display to screen but will not print
  • Next by Date: Re: drawing on top of a NSMovieView?
  • Previous by thread: Properly Releasing NSWindows
  • Next by thread: bindings and undo
  • Index(es):
    • Date
    • Thread