Re: App hides when loose focus
Re: App hides when loose focus
- Subject: Re: App hides when loose focus
- From: Greg Titus <email@hidden>
- Date: Wed, 4 Jun 2003 06:45:40 -0700
On Wednesday, June 4, 2003, at 04:37 AM, Suman Ganguly wrote:
I have developed an application in Mac OS 10.2.4 using Cocoa/Object-C.
In my
application, I'm displaying a busy sheet with a barber pole while
processing
some task. When my application is processing something, if I clicked
other
applications or if my application window looses focus, the application
window hides. The application window reappears only if I click on the
icon
at dock.
Any kind of help or reference would be highly appreciated.
Hi Suman,
You are looking for NSWindow's -setHidesOnDeactivate: method. But most
likely, you've accidently used an NSPanel as your document window,
instead of an NSWindow. (The former defaults to hiding on deactivate,
the latter does not). You'll probably want to just use an NSWindow
instead
of setting the hides-on-deactivate flag directly.
Hope this helps,
-Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.