• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Clicking Dock Icon creates a new window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Clicking Dock Icon creates a new window (From: Bruce Truax <email@hidden>)

  • Prev by Date: Re: Controlling Insertion Point
  • Next by Date: Re: Can't create an NSBundle
  • Previous by thread: Re: Clicking Dock Icon creates a new window
  • Next by thread: Re: Clicking Dock Icon creates a new window
  • Index(es):
    • Date
    • Thread