Re: Movable Document Modal Dialogs
Re: Movable Document Modal Dialogs
- Subject: Re: Movable Document Modal Dialogs
- From: Matt Neuburg <email@hidden>
- Date: Sun, 05 Jul 2009 20:03:40 -0700
- Thread-topic: Movable Document Modal Dialogs
On Sun, 5 Jul 2009 08:52:12 -0500, Fritz Anderson <email@hidden>
said:
>On 4 Jul 2009, at 5:41 PM, Matt Neuburg wrote:
>
>> It is a delightful, yet little-known, fact that sheets can emerge
>> from *anywhere* on a window - not merely from its top. ... This is
>> unusual but only because (IMHO) not enough developers take advantage
>> of this feature!
>
>More would take advantage if they knew. It's an NSWindow delegate
>method called window:willPositionSheet:usingRect:.
Sure - I *said* it was little-known. But the *information* isn't hard to
find; there's a chapter of the Sheet Programming Guide devoted to this
point:
http://developer.apple.com/documentation/Cocoa/Conceptual/Sheets/Sheets.html
It's the chapter called "Positioning Sheets". It's hard to get more up front
than that. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
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