I am trying to create an Application on Mac OS X Lion which requires application to be assigned to All Desktops (Spaces). This can be manually done by Right clicking on application's dock icon and Selecting Options > Assign To > All Desktops. But, I need to find a way to do this via Objective C. Is there a way to achieve this programmatically?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- back button text does not change
- iOS (objective-c) compression_decode_buffer() retu
- how to find the index position of the ARRAY Where
相关文章
- 现在使用swift开发ios应用好还是swift?
- Visual Studio Code, MAC OS X, OmniSharp server is
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- IntelliJ IDEA can't open projects or add SDK o
- Automator: How do I use the Choose from List actio
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
You can use method
setCollectionBehavior:
ofNSWindow
with theNSWindowCollectionBehaviorCanJoinAllSpaces
bitwise flag.It will make the window visible on all spaces.
Note
This method was introduced in Mac OS X 10.6.
On Mac OS X 10.5, you'll need to use the
canBeVisibleOnAllSpaces:
method ofNSWindow
.