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: Andy Lee <email@hidden>
- Date: Sat, 13 Mar 2004 16:48:16 -0500
On Mar 13, 2004, at 4:19 PM, Bruce Truax wrote:
This behavior is exactly what I would like to happen except that that
is
actually happening is that a new untitled window opens even if there is
already a document window open.
Have you figured out at what point exactly the app thinks it needs to
open a new window? I would try putting a breakpoint in the
-windowDidBecomeKey: method of your window's delegate. Look for
something in your code that would cause it to hit that breakpoint.
I don't know much about document-based apps, but I would also look
closely at any documentation about the automatic window-opening
feature. Maybe there's some assumption it makes about the app's window
list, or the type of window you use, that you're violating. In other
words, maybe the app thinks you *don't* already have a window open for
some reason.
--Andy
_______________________________________________
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.