Re: NSApplicationMain question
Re: NSApplicationMain question
- Subject: Re: NSApplicationMain question
- From: Thomas Clement <email@hidden>
- Date: Tue, 27 Apr 2010 17:29:39 +0200
On Apr 27, 2010, at 4:48 PM, Michael Ash wrote:
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.
From the documentation of the NSScreen class:
+ (NSArray *)screens
The screen at index 0 in the returned array corresponds to the primary
screen of the user’s system. This is the screen that contains the menu
bar and whose origin is at the point (0, 0).
I would suggest to the OP to look directly at the documentation.
Thomas_______________________________________________
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