How to programmatically close/minimize my app

Hi,

How to programmatically close/minimize my app.

Regards
Symadept

Mac Pro, Mac OS X (10.5.7)

Posted on Nov 11, 2009 7:43 PM

Reply
6 replies

Nov 12, 2009 12:32 AM in response to Symadept

Hi,

I have fixed my problem of miniaturizing the window. It was quite cool.
{
NSApplication *application = [NSApplication sharedApplication];
NSWindow *keyWindow = [application keyWindow];
[keyWindow miniaturize:keyWindow];
}

My app has KeyWindow but not MainWindow, because my app's window is NSBorderlessWindowMask.

Thanks alot for all of your effort.

Regards
Mustafa

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to programmatically close/minimize my app

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.