• 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: Coordinate system question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coordinate system question


  • Subject: Re: Coordinate system question
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 20 Mar 2002 01:44:38 +0100

On Tuesday, March 19, 2002, at 11:00 , email@hidden wrote:

@implementation NSWindow (WindowCentering)
- (void)centerOnScreen:(NSScreen *)screen

...or how to invent a wheel:

=== NSWindow.html ===
center

- (void)center

Sets the receiver's location to the center of the screen. The receiver is placed exactly in the center horizontally and somewhat above center vertically. Such a placement carries a certain visual immediacy and importance. This method doesn't put the receiver on screen, however; use makeKeyAndOrderFront: to do that.

You typically use this method to place an NSWindow-most likely an attention panel-where the user can't miss it. This method is invoked automatically when an NSPanel is placed on the screen by NSApplication's runModalForWindow: method.
=== end ===

;)))
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Coordinate system question
      • From: email@hidden
References: 
 >Re: Coordinate system question (From: email@hidden)

  • Prev by Date: Re: Code for a Control with a continuous action
  • Next by Date: Re: Encoding BOOL Objects?
  • Previous by thread: Re: Coordinate system question
  • Next by thread: Re: Coordinate system question
  • Index(es):
    • Date
    • Thread