Re: Issue of NSStatusBar

2013-02-27 Thread Kyle Sluder
> if([awindow isVisible] && ![aWindow aboutWin] && ![aWindow loginWindow] && > ![[aWindow className] isEqual:@"NSStatusBarWindow"]) > > Thanks. > From: Kyle Sluder > To: Anil Saini > Cc: "cocoa-dev@lists.apple.com" > Sent: Tu

Re: Issue of NSStatusBar

2013-02-27 Thread anni saini
rom a list or giving them some unique property so that you can distinguish them." is the proper one. Thanks. From: Ken Thomases To: anni saini Cc: "cocoa-dev@lists.apple.com" Sent: Wednesday, 27 February 2013 12:04 PM Subject: Re: Issue of NSSt

Re: Issue of NSStatusBar

2013-02-27 Thread Ken Thomases
On Feb 27, 2013, at 12:59 AM, anni saini wrote: > I got the solution, just need to check for NSStatusBarWindow className as > follows: > if([awindow isVisible] && ![aWindow aboutWin] && ![aWindow loginWindow] && > ![[aWindow className] isEqual:@"NSStatusBarWindow"]) You're relying on Apple-priv

Re: Issue of NSStatusBar

2013-02-26 Thread anni saini
: Kyle Sluder To: Anil Saini Cc: "cocoa-dev@lists.apple.com" Sent: Tuesday, 26 February 2013 9:35 PM Subject: Re: Issue of NSStatusBar On Feb 26, 2013, at 9:16 AM, Anil Saini wrote: > Hi, > > I was facing issue of NSStatusBar getting closed by the [window close

Re: Issue of NSStatusBar

2013-02-26 Thread Kyle Sluder
On Feb 26, 2013, at 9:16 AM, Anil Saini wrote: > Hi, > > I was facing issue of NSStatusBar getting closed by the [window close]. > > In our application, we have used [NSStatusBar SystemStatusBar] to display > menu. In a particular scenario, I need to close all the windows of

Issue of NSStatusBar

2013-02-26 Thread Anil Saini
Hi, I was facing issue of NSStatusBar getting closed by the [window close]. In our application, we have used [NSStatusBar SystemStatusBar] to display menu. In a particular scenario, I need to close all the windows of my application except About and Login, so I wrote following function: - (void