[Mono-osx] Need a replacement for NSWindow.Close()

Maxi Combina maxi.combina at passwordbank.com
Tue Mar 29 05:54:17 EDT 2011


Hello,

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
own release
                 * Removing this method for now
                [Export ("close")]
                void Close ();
                 */

I am looking for a way of closing (and releasing) the window.
Any ideas?

Thanks!
maxi

-- 
*Maxi Combina*
Cell:+1 408 300 3614
Tel:  +1 408 524 1579
440 N. Wolfe Road. Sunnyvale. CA. 94085. USA

<http://www.passwordbank.com/>www.PasswordBank.com<http://www.passwordbank.com/>
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...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110329/3ec25c5b/attachment.html 


More information about the Mono-osx mailing list