FROM : Clark Mueller
DATE : Sun Dec 22 18:55:40 2002
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_removed> 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_removed>
> 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_removed>
> 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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Sun Dec 22 18:55:40 2002
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_removed> 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_removed>
> 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_removed>
> 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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Clark Mueller | Dec 21, 22:27 | |
| Finlay Dobbie | Dec 21, 22:44 | |
| Jan Van Boghout | Dec 21, 23:23 | |
| Bill Cheeseman | Dec 21, 23:25 | |
| Bill Cheeseman | Dec 21, 23:45 | |
| Jan Van Boghout | Dec 22, 09:27 | |
| adam baker | Dec 22, 17:29 | |
| Clark Mueller | Dec 22, 18:55 |






Cocoa mail archive

