Re: Global utility windows
Re: Global utility windows
- Subject: Re: Global utility windows
- From: Clark Mueller <email@hidden>
- Date: Sun, 22 Dec 2002 10:55:40 -0700
- Resent-date: Sun, 22 Dec 2002 10:56:29 -0700
- Resent-from: Clark Mueller <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
This produces the behavior I was looking for, thanks!
Clark
On Saturday, December 21, 2002, at 03:25 PM, Bill Cheeseman wrote:
on 02-12-21 4:44 PM, Finlay Dobbie at email@hidden wrote:
On Saturday, December 21, 2002, at 09:27 pm, Clark Mueller wrote:
Can these be done in Cocoa? What I'm looking for is a window that
behaves like a utility window but that stays floating in all
applications, like is used in Christ's Tree (it's on Apple's main Mac
OS X downloads page, right now)? Can it be done in Cocoa? Can it be
done in Carbon? I haven't been able to find how to do it at all, but
I've seen a lot of evidence that it's possible. I haven't found any
kind of documentation that has tipped me off, and all of my web
searches on the topic have turned up dry - many examples of apps that
use them, but none on how to make them.
See NSWindow's setWindowLevel method for the Cocoa way of doing it
(and
also see CGWindowLevel.h in CoreGraphics.framework).
In Cocoa, you can do it right in IB. Make your window an NSPanel, then
check
the Utility Window setting. ("Utility window" doesn't stand right out
as
meaning global floating, but that's what it means, at least if you put
[[self window] setHidesOnDeactivate:NO] in your controller's
awakeFromNib
method.
If you don't want to do it in IB, look at setFloatingPanel: in NSPanel.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont - http://members.valley.net/croquetvermont
_______________________________________________
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.
_______________________________________________
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.