• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSApplicationMain question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSApplicationMain question
      • From: Shawn Erickson <email@hidden>
References: 
 >NSApplicationMain question (From: Bill Appleton <email@hidden>)
 >Re: NSApplicationMain question (From: Abhinay Kartik Reddyreddy <email@hidden>)
 >Re: NSApplicationMain question (From: Bill Appleton <email@hidden>)
 >Re: NSApplicationMain question (From: Shawn Erickson <email@hidden>)
 >Re: NSApplicationMain question (From: Bill Appleton <email@hidden>)
 >Re: NSApplicationMain question (From: Michael Ash <email@hidden>)
 >Re: NSApplicationMain question (From: Bill Appleton <email@hidden>)
 >Re: NSApplicationMain question (From: Jens Alfke <email@hidden>)
 >Re: NSApplicationMain question (From: Bill Appleton <email@hidden>)
 >Re: NSApplicationMain question (From: Jack Carbaugh <email@hidden>)
 >Re: NSApplicationMain question (From: Bill Appleton <email@hidden>)
 >Re: NSApplicationMain question (From: Keary Suska <email@hidden>)
 >Re: NSApplicationMain question (From: "Paul Sanders" <email@hidden>)
 >Re: NSApplicationMain question (From: Ken Thomases <email@hidden>)
 >Re: NSApplicationMain question (From: "Paul Sanders" <email@hidden>)
 >Re: NSApplicationMain question (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: menu madness with retain count
  • Next by Date: Re: menu madness with retain count
  • Previous by thread: Re: NSApplicationMain question
  • Next by thread: Re: NSApplicationMain question
  • Index(es):
    • Date
    • Thread