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: Charles Srstka <email@hidden>
- Date: Sat, 13 Mar 2004 18:56:55 -0600
On Mar 13, 2004, at 3:19 PM, Bruce Truax wrote:
On 3/13/04 1:02 PM, "Charles Srstka" <email@hidden>
eloquently wrote:
I know this probably isn't what you want to hear, but doing so would
violate this section of the Apple UI guidelines:
http://developer.apple.com/documentation/UserExperience/Conceptual/
OSXHIGuidelines/XHIGHowEnvAffects/chapter_7_section_3.html#//
apple_ref/
doc/uid/20000957-CH294-CHDICFGC
"Clicking an application icon in the Dock should always result in a
window becoming active:
If the application is not open, a new window should open. In a
document-based application, the application should open a new,
untitled
window. In an application that is not document-based, the application
window opens.
When a user clicks an open applications icon in the Dock, the
application becomes active and all open unminimized windows are
brought
to the front; minimized document windows remain in the Dock. If there
are no unminimized windows when the user clicks the Dock icon, the
last
minimized window should be expanded and made active. If no windows are
open, the application should open a new windowa new untitled window
for document-based applications, otherwise the main application
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. Other document based applications I
have
created do not do this and I cannot figure out why this one behaves
incorrectly.
Now, back on topic - try logging [[NSDocumentController
sharedDocumentController] documents] with a few documents open and see
if they show up in the list. If you have documents open, Cocoa
shouldn't be doing this, so the first thing to do would be to see if
the documents are getting managed by the controller properly.
Charles
_______________________________________________
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.