Re: Coordinate system question
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.