• 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: Preventing Opening a New Document When Clicking Active Program in Dock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preventing Opening a New Document When Clicking Active Program in Dock


  • Subject: Re: Preventing Opening a New Document When Clicking Active Program in Dock
  • From: Todd Ransom <email@hidden>
  • Date: Sun, 4 Sep 2005 11:05:54 -0600

There is an application delegate method that appears to do what you want:

- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag


Todd Ransom Return Self Software http://returnself.com



On Sep 2, 2005, at 2:55 PM, Kirt Cathey wrote:

Hi All.

I have noticed that some applications, including the one I am developing, automatically open a new document when the user clicks an active application icon in launcher. How can we pevent this from happening? In other words, when the dock icon is clicked, instead of opening a new document, just to bring the application most forward and active.

Regards,
-------------------------
Kirt S. Cathey
http://www.bizolutions.com
-------------------------

_________________________________________________________________
ウィルス駆除も無料の 「MSN Hotmail」 http:// www.hotmail.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Preventing Opening a New Document When Clicking Active Program in Dock (From: "Kirt Cathey" <email@hidden>)

  • Prev by Date: Re.: [ANN] LogSurfer monitors logfiles [OT]
  • Next by Date: Re: Cocoa-dev Digest, Vol 2, Issue 1328
  • Previous by thread: Re: Preventing Opening a New Document When Clicking Active Program in Dock
  • Next by thread: how expensive is char* -> NSString?
  • Index(es):
    • Date
    • Thread