• 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: Activate app but bring only *one* window to the front
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Activate app but bring only *one* window to the front


  • Subject: Re: Activate app but bring only *one* window to the front
  • From: Scott Ribe <email@hidden>
  • Date: Thu, 30 Jun 2011 15:22:00 -0600

On Jun 30, 2011, at 2:39 PM, Jerry Krinock wrote:

> However, Cocoa still wins.  My purpose was to show an alert-type of window (my own custom version of NSAlert) without bringing forward a document window.  Initially, it works, but when the user clicks a button which sends -[NSWindow close] to the alert window, the document window is brought forward, even if I try and tell it "no" by deactivating the app…

That's the way windowing behavior is defined in OS X. When the frontmost regular window is closed, the next window of that app is made frontmost.

Sounds like you need a floating/utility window of some flavor.

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Activate app but bring only *one* window to the front (From: Jerry Krinock <email@hidden>)
 >Re: Activate app but bring only *one* window to the front (From: Kyle Sluder <email@hidden>)
 >Re: Activate app but bring only *one* window to the front (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: dealloc and scarce resources
  • Next by Date: Re: [Q] Will the be any problem in implementing an NSArray method using fast enumeration?
  • Previous by thread: Re: Activate app but bring only *one* window to the front
  • Next by thread: Re: Activate app but bring only *one* window to the front
  • Index(es):
    • Date
    • Thread