• 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
placing a window in the top left corner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

placing a window in the top left corner


  • Subject: placing a window in the top left corner
  • From: Nick Rogers <email@hidden>
  • Date: Wed, 19 Nov 2008 20:17:21 +0530

Hi,
whenever my app opens a second preview window, I want it to be positioned at the top left corner of the desktop screen.


I have come across two methods in NSWindow, they are:
– setFrameTopLeftPoint:
and
– cascadeTopLeftFromPoint:
But these require a point as input.
How do I calculate this point?
Also if the user has the dock vertical on the left side, how do I adjust for that?
What if the user has different resolution like 800x600?


Thanks,
Nick_______________________________________________

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: placing a window in the top left corner
      • From: Etienne Guérard <email@hidden>
    • Re: placing a window in the top left corner
      • From: Joseph Crawford <email@hidden>
  • Prev by Date: Re: InputManagers in Leopard
  • Next by Date: Re: placing a window in the top left corner
  • Previous by thread: Re: Changing Services HotKey at Runtime
  • Next by thread: Re: placing a window in the top left corner
  • Index(es):
    • Date
    • Thread