开发者

MainMenu.xib with dispositioned main window

开发者 https://www.devze.com 2022-12-16 20:52 出处:网络
Each time I create any type of cocoa project (document-based, with core-data and/or spotlight import开发者_StackOverflower) and open MainMenu.xib, I get a warning sign in bottom right object palette w

Each time I create any type of cocoa project (document-based, with core-data and/or spotlight import开发者_StackOverflower) and open MainMenu.xib, I get a warning sign in bottom right object palette window corner saying that window is out of screen bounds. Why is this so? Any remedy?


I get a warning sign in bottom right object palette window corner saying that window is out of screen bounds. Why is this so?

Because the window falls at least partially outside the screen bounds.

Any remedy?

Put it completely within the screen bounds. Select the window and use the Content Size & Position section of the Size (⌘3) inspector to move it.

Simply dragging the window by its title bar will not help, since that position is only for display in IB; it doesn't affect the window that will appear in your app, which is what the warning is about. You need to use the Size inspector.


I once had a similar problem when I had a second monitor connected to my MBP.
When the second monitor was set to a low resolution (I think it was 1024x768), Interface Builder came up with that particular warning. (Although the window did fit between the main menu and the Dock).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号