Re: Clicking Dock Icon creates a new window
Re: Clicking Dock Icon creates a new window
- Subject: Re: Clicking Dock Icon creates a new window
- From: Bruce Truax <email@hidden>
- Date: Sun, 14 Mar 2004 09:29:30 -0500
On 3/14/04 12:51 AM, "Louis C. Sacha" <email@hidden> eloquently
wrote:
>
It mentions that NSApplication checks for visible NSWindows, but
>
specifically excludes NSPanels. If you are using an NSPanel as the
>
basis for your document window (or a subclass of NSPanel, etc), then
>
that might be the reason why this particular application is having
>
the problem and your previous applications worked correctly.
Louis,
Thank you for the suggestion. Your mention of using an NSPanel reminded me
that when I was working in IB yesterday I noticed that the NSPanel popped up
in the info panel when I was working on the window. I quick check showed
that indeed, I was using a panel instead of a window. I simply changed the
custom class from NSPanel to NSWindow and the problem was solved.
I appreciate all of the suggestions to add and App Delegate but as Louis
suggested, this improper behavior from an application which was derived from
the Cocoa doc application template was indicative of another problem which I
was concerned would keep popping up in other forms if I did not find the
root cause.
Thanks again.
Bruce
_______________________________________________
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.