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

Re: placing a window in the top left corner


  • Subject: Re: placing a window in the top left corner
  • From: Joseph Crawford <email@hidden>
  • Date: Wed, 19 Nov 2008 09:52:43 -0500

Wouldn't the point just be 0, 0 in that case?
I'm a beginner so I am not positive.

On Nov 19, 2008, at 9:47 AM, Nick Rogers wrote:

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

_______________________________________________

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


References: 
 >placing a window in the top left corner (From: Nick Rogers <email@hidden>)

  • Prev by Date: placing a window in the top left corner
  • Next by Date: Re: Outlets / IBOutlet declarations (was Re: Interface Builder & Wiring Objects)
  • Previous by thread: placing a window in the top left corner
  • Next by thread: RE: placing a window in the top left corner
  • Index(es):
    • Date
    • Thread