Re: NSApplicationMain question
Re: NSApplicationMain question
- Subject: Re: NSApplicationMain question
- From: Uli Kusterer <email@hidden>
- Date: Tue, 27 Apr 2010 23:34:47 +0200
On 27.04.2010, at 11:53, Paul Sanders wrote:
> 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.
Maybe you were asking for the -mainScreen? In Carbon and some other documentation, the screen with the menu bar is called the "main" screen. But in Cocoa, the -mainScreen method actually returns the screen on which the window that is currently "main" is placed. Tricks many people.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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