Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9118967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:16:54+00:00 2026-06-17T05:16:54+00:00

I have 2 NSWindows (both without title bar) that gets displayed right beneath a

  • 0

I have 2 NSWindows (both without title bar) that gets displayed right beneath a Status Bar item after it is clicked. Inside the first NSWindow I have a button to start the flipping animation to the second NSWindow and vice versa.

Here is the code that I use to make the flipping animation:

  • .h file
  • .m file

I also have the windowDidResignKey: method so, when one of the NSWindow loses focus I close both windows inside the method.

So here’s the problem:

  • I click on the status bar item and the first NSWindow is displayed
  • I click the button to perform the flipping animation (the flipping animation is displayed without any problems) to the second window
  • I switch from the current space to another space (this triggers the windowDidResignKey: method)
  • I click, again, on the status bar item and the second NSWindow is displayed
  • I click on the button of the 2nd window to perform the flipping animation to the first window but the animation is not displayed correctly. The second window disappears, nothing appears for a second or two and the first window appears (the animation is performed, it’s just not visible)
  • But if I go the first space (where I first performed the first flipping animation) the animation is performed correctly, without any errors.

I think that this error is caused by something like: one window is in one space and another one is in another space (because of the windowDidResignKey: method).
Any ideas on how to fix this? I’ve tried change both NSWindows to ‘Can Join All Spaces’ and ‘Move To Active Space’ but without any success.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:16:55+00:00Added an answer on June 17, 2026 at 5:16 am

    Solved the problem, and updated the library.

    The container window, responsible for flipping, needs to be movable between spaces, and automatically move to the active space. I simply added

    [flippingContainerWindow setMovable: YES];
    [flippingContainerWindow setMovableByWindowBackground: YES];
    [flippingContainerWindow setCollectionBehavior: NSWindowCollectionBehaviorMoveToActiveSpace];
    

    to + (NSWindow *)flippingContainerWindow

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a status item app that does not have an NSWindow. I
So right now I have an NSWindow that draws itself like an NSToolbar using
I have two NSWindows , both with an NSPanel in them. I want to
I have read many answers to questions about dynamically resizing NSWindows and nothing has
I have a NSWindow that hosts a WebView that Ive hooked up to a
I have an NSWindow that shows up when you click either of two items
I have a document-based application with a view controller that contains a table, array
lets say I have an NSWindow Class, that has several events for mouse and
I have an NSWindow containing and NSImageView. I want that the user can drag
I have a custom NSWindow class that has the following methods: - (void)setupWindowForEvents{ [[NSNotificationCenter

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.