Re: Floating window across all Spaces?
Re: Floating window across all Spaces?
- Subject: Re: Floating window across all Spaces?
- From: Keith Blount <email@hidden>
- Date: Sun, 11 Nov 2007 06:15:45 -0800 (PST)
Thanks, Joachim. I was about to post a "D'oh!" reply to my own message as I just found this after reading the discussion about Spaces notifications. This works perfectly.
Thanks for replying, and sorry for wasting bandwidth. :)
Keith
----- Original Message ----
From: Joachim Deelen <email@hidden>
To: Keith Blount <email@hidden>
Cc: email@hidden
Sent: Sunday, November 11, 2007 1:51:58 PM
Subject: Re: Floating window across all Spaces?
Hi,
maybe
- (void)setCollectionBehavior:(NSWindowCollectionBehavior)collectionBehavior;
of NSWindow is what you are looking for. It has the following options:
enum {
NSWindowCollectionBehaviorDefault = 0,
NSWindowCollectionBehaviorCanJoinAllSpaces = 1 << 0,
NSWindowCollectionBehaviorMoveToActiveSpace = 1 << 1
};
typedef NSUInteger NSWindowCollectionBehavior;
ConstantsNSWindowCollectionBehaviorDefaultThe window can be associated to one space at a time.
Available in Mac OS X v10.5 and later.
Declared in NSWindow.h
NSWindowCollectionBehaviorCanJoinAllSpacesThe window appears in all spaces. The menu bar behaves this way.
Available in Mac OS X v10.5 and later.
Declared in NSWindow.h
NSWindowCollectionBehaviorMoveToActiveSpaceMaking the window active does not cause a space switch; the window switches to the active space.
Available in Mac OS X v10.5 and later.
Declared in NSWindow.h
AvailabilityAvailable in Mac OS X v10.5 and later.
regards
Joachim
Am 11.11.2007 um 14:07 schrieb Keith Blount:
Hi,
Before I file an enhancement request, I thought I'd better check to see if this feature already exists and I'm missing it (I've looked in the usual places, checked the 10.5 NSWindow and NSPanel changes etc).
Is there any way to set a floating window so that it appears in all Spaces? My app has a "scratch pad" floating panel which the user can choose to keep open whilst working in other applications, so that he or she can copy content into the scratch pad panel ready for use when they return to my app. Several users have requested that this scratch pad stay visible in all Spaces workspaces, which makes sense.
Is there any way to do this already? Or is this an enhancement request?
Thanks and all the best,
Keith
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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