• 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 across all Spaces?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Floating window across all Spaces?


  • Subject: Re: Floating window across all Spaces?
  • From: Joachim Deelen <email@hidden>
  • Date: Sun, 11 Nov 2007 14:51:58 +0100

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;

Constants
NSWindowCollectionBehaviorDefault
The window can be associated to one space at a time.

Available in Mac OS X v10.5 and later.

Declared in NSWindow.h

NSWindowCollectionBehaviorCanJoinAllSpaces
The window appears in all spaces. The menu bar behaves this way.

Available in Mac OS X v10.5 and later.

Declared in NSWindow.h

NSWindowCollectionBehaviorMoveToActiveSpace
Making 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

Availability
Available 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

_______________________________________________

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


References: 
 >Floating window across all Spaces? (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: Notification when switching Spaces?
  • Next by Date: Re: Floating window across all Spaces?
  • Previous by thread: Floating window across all Spaces?
  • Next by thread: Re: Floating window across all Spaces?
  • Index(es):
    • Date
    • Thread