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

  • Home
  • SEARCH
  • 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 9118333
In Process

The Archive Base Latest Questions

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

Is it possible to use Auto Layout to position a window on the screen?

  • 0

Is it possible to use Auto Layout to position a window on the screen?

I’d like to set up constraints to position a window relative to an NSStatusItem. I’d like the window to be centered below the NSStatusItem, but also not be partially offscreen. So, I’d need weak constraints for centering relative to the NSStatusItem and strong constraints for maintaining a minimum distance from the screen edges.

How can I accomplish this?

  • 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:07:43+00:00Added an answer on June 17, 2026 at 5:07 am

    Auto Layout doesn’t work to position windows. The layout engine works per-window to lay out views within that window.

    Luckily, this particular layout problem doesn’t look too difficult to accomplish the old way. Figure the frame of the window below the NSStatusItem assuming it fits. Then check to see if that frame intersects with the screen edge. If it does, nudge it to the left until it doesn’t.

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

Sidebar

Related Questions

I cant use auto increment in phpmyadmin for this but I would like to
I have an idea for a layout I would like to use, but I
Possible Duplicate: Is there any reason to use the 'auto' keyword in C /
Is this possible to use Ajax.Beginform with update target inside of ajax form. like
Possible Duplicate: Enabling auto layout in iOS 6 while remaining backwards compatible with iOS
Is it possible to use XSD.exe to auto generate a class which has a
Why is it possible to use an object initializer to set a private set
is it possible to use CSS3 table to make it look like this +---A---+---B---+---C---+---D---+---E---+
Is It possible To Use ASP.NET TextBox With Jquery UI Auto CompletE? I am
is it possible to use a url to set background for framelayout ? Example:

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.