Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows that float above all other applications?



> This is an interesting point. FaceSpan had a very nice Feature though:
> Its runtime contained a "FLOT" resource, in which one could have registered
> the signatures of the apps, to bring the utility window in front of.
> Whenever an app with a signature registered in the "FLOT" resource was in
> focus, the utility window would float above it.
>
> Is there a way to achieve that in AS Studio ?
> Could such an app receive events thru that window without being activated ?
>
>
>> Mark H. Delfs :
>
>> Can this be done with Applescript Studio? I want an application that
>> has a little utility panel that floats above all other applications.
>>
>> Any thoughts?


You could try to send your NSWindow the following message with a call
method:
setLevel: NSStatusWindowLevel

But I'm not sure what happens if you try to use an NS constant within
AppleScript, so you may need to write a very simple Cocoa method to do this
- let me know if you'd need help with that. This will float above
everything (like clock.app), but you could also change it back by sending it
NSNormalWindowLevel as the argument.

Cheers,

JT

--

"Microsoft does however have the power to make fundamentally dumb ideas into
industry standards, and that's clearly a worry." - The Register
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Windows that float above all other applications? (From: klaus umland <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.