Re: NSApplicationMain question
Re: NSApplicationMain question
- Subject: Re: NSApplicationMain question
- From: "Paul Sanders" <email@hidden>
- Date: Tue, 27 Apr 2010 22:40:26 +0100
Actually, I think I was just plain wrong but what I meant was
[[NSScreen screens] objectAtIndex: 0].
Paul Sanders.
----- Original Message -----
From: "Uli Kusterer" <email@hidden>
To: "Paul Sanders" <email@hidden>
Cc: "Cocoa-Dev (Apple)" <email@hidden>
Sent: Tuesday, April 27, 2010 10:34 PM
Subject: Re: NSApplicationMain question
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