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

Geoff Norton gnorton at novell.com
Tue Mar 29 10:36:49 EDT 2011


Use .OrderOut ()

-g

On 2011-03-29, at 5:54 AM, Maxi Combina wrote:

> 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
> 
> 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.
> 
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110329/dab738f9/attachment.html 


More information about the Mono-osx mailing list