• 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: Floating window on top of everything
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Floating window on top of everything


  • Subject: Re: Floating window on top of everything
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 09 Apr 2009 12:02:34 -0700
  • Thread-topic: Floating window on top of everything

On Thu, 9 Apr 2009 17:31:52 +0100, Benjamin Dobson
<email@hidden> said:
>
>On 9 Apr 2009, at 16:49:48, Matt Neuburg wrote:
>
>> On or about 4/8/09 11:25 PM, thus spake "Andrew Farmer" <email@hidden
>> >:
>>
>>> On 08 Apr 09, at 08:03, Matt Neuburg wrote:
>>>> On Tue, 7 Apr 2009 12:37:05 -0400, Walker Argendeli
>>>> <email@hidden> said:
>>>>> I am making a simple application that consists of a small HUD
>>>>> window
>>>>> that needs to float above another application.  How do I make it so
>>>>> that A. it floats above everything, and B. when I switch to another
>>>>> application, it remains on top.
>>>>
>>>> Search the archives for example code showing how your app can be
>>>> notified
>>>> when an app switch occurs... m.
>>>
>>> This isn't necessary, actually. Setting the window's level to
>>> NSFloatingWindowLevel or so, and setting it to not hide on
>>> deactivate,
>>> should be sufficient to make it stay above everything.
>>
>> Really? He wants the HUD window to float above a certain *particular*
>> application — different from his own — and vanish when any other
>> application
>> is frontmost. What, in your proposed architecture, would make it do
>> that? m.
>
>
>That's not what he said:
>
>> How do I make it so that A. it floats above everything, and B. when
>> I switch to another application, it remains on top.

Oh, I thought "floats above another application" meant "floats above another
*particular* application". After all, if that isn't what's meant, then why
didn't he start by asking for a HUD window that just floats above all
applications always?

You see, I've written some applications where I've got a floating window
that floats above *my* app if it is frontmost, but also floats a certain
particular other app if *it* is frontmost. (But vanishes if any *other*
application is frontmost.) Thus, my application's window and my
application's abilities are, as it were, injected into this one other
application, supplementing it. Now, of course the OP's original note was
confusingly written, but still, I thought I recognized in it a desire to do
the kind of thing I was doing... m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

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

  • Follow-Ups:
    • Re: Floating window on top of everything
      • From: Benjamin Dobson <email@hidden>
  • Prev by Date: Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...
  • Next by Date: [MEET] LA CocoaHeads TONIGHT 4/9 7:30pm
  • Previous by thread: Re: Floating window on top of everything
  • Next by thread: Re: Floating window on top of everything
  • Index(es):
    • Date
    • Thread