Re: NSApplicationMain question
Re: NSApplicationMain question
- Subject: Re: NSApplicationMain question
- From: Michael Ash <email@hidden>
- Date: Tue, 27 Apr 2010 10:48:58 -0400
On Tue, Apr 27, 2010 at 5:53 AM, Paul Sanders
<email@hidden> wrote:
>> Um, actually the menu bar is on the primary display. That's
>> the definition of the primary display
>> -- it's the one with the menu bar. Did you perhaps mean the
>> built-in display?
>
> I was speaking from memory. My recollection is that after I
> moved the menu bar the primary display, as reported by NSScreen,
> did not change. But it was a while ago so I could be wrong and
> the docs agree with you. This implies that the primary display
> can change at run time.
NSScreen does not define the concept of the "primary" screen.
Perhaps you were thinking of +mainScreen? That one is defined as the
screen which contains the key window. Not a very useful definition for
most purposes, but there you are.
Mike
_______________________________________________
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