[Mono-osx] Need a replacement for NSWindow.Close()
maxi.combina at passwordbank.com
Tue Mar 29 05:54:17 EDT 2011
I have a Borderless window which can not be closed with PerformClose(),
since this method (as per Apple documentation) "simulates the user clicking
the close button" and "if the windows doesn't ahve a close button or can't
be closed [...], the system emits the alert sound".
For closing a window I used the "Close()" method. But in the current
src/appkit.cs the "Close()" is commented out:
/* NSWindow.Close by default calls [window release]
* This will cause a double free in our code since we're not
aware of this
* and we end up GCing the proxy eventually and sending our
* Removing this method for now
void Close ();
I am looking for a way of closing (and releasing) the window.
Cell:+1 408 300 3614
Tel: +1 408 524 1579
440 N. Wolfe Road. Sunnyvale. CA. 94085. USA
This message and its attachments are sent from PasswordBank, Inc. and may
contain information that is
confidential. If you are not the intended recipient, you are prohibited from
printing, copying, forwarding or
saving them. Please delete the message and attachments without printing,
copying, forwarding or saving
them, and notify the sender immediately. Message transmission is not
guaranteed to be secure.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-osx