Re: Close/Minimize the app

2009-11-13 Thread Andrew Farmer
On 11 Nov 2009, at 21:23, kirankumar wrote: > this will help you > keep this 3lines of code in awakeFromNib, and mpwindow is you are window name. > > id closeButton = [mpWindow standardWindowButton:NSWindowCloseButton ]; > [closeButton setAction:@selector(closeapp:)]; > [closeButton setTarget:self

Re: Close/Minimize the app

2009-11-13 Thread kirankumar
<http://discussions.apple.com/>; is not functioning as expected. Regards Symadept On Thu, Nov 12, 2009 at 12:27 PM, Nick Zitzmann mailto:n...@chronosnet.com>> wrote: On Nov 11, 2009, at 8:50 PM, Symadept wrote: How to close/minimize the app programmatically. To close the app, cal

Re: Close/Minimize the app

2009-11-12 Thread Symadept
sions.apple.com/>; > is not functioning as expected. > > Regards > Symadept > > > On Thu, Nov 12, 2009 at 12:27 PM, Nick Zitzmann > wrote: > > > On Nov 11, 2009, at 8:50 PM, Symadept wrote: > > How to close/minimize the app programma

Re: Close/Minimize the app

2009-11-11 Thread Symadept
d. Regards Symadept On Thu, Nov 12, 2009 at 12:27 PM, Nick Zitzmann wrote: > > On Nov 11, 2009, at 8:50 PM, Symadept wrote: > > > How to close/minimize the app programmatically. > > To close the app, call -[NSApplication terminate:]. > > > I tried the followin

Re: Close/Minimize the app

2009-11-11 Thread Nick Zitzmann
On Nov 11, 2009, at 8:50 PM, Symadept wrote: > How to close/minimize the app programmatically. To close the app, call -[NSApplication terminate:]. > I tried the following way > but no luck. > >[[NSApp mainWindow] performMiniaturize:nil]; This will only miniaturize the main

Close/Minimize the app

2009-11-11 Thread Symadept
Hi, How to close/minimize the app programmatically. I tried the following way but no luck. [[NSApp mainWindow] performMiniaturize:nil]; [OR] [NSApp miniaturizeAll:self]; And close should not terminate my app, it should place an icon in the Dock, I hope it would be the