Re: Can a sheet appear at an arbitrary window position?
Re: Can a sheet appear at an arbitrary window position?
- Subject: Re: Can a sheet appear at an arbitrary window position?
- From: Jeremy Dronfield <email@hidden>
- Date: Sat, 8 May 2004 10:04:07 +0100
There's the window delegate method -window:willPositionSheet:usingRect:
(10.3 only) From the NSWindow docs:
- (NSRect)window:(NSWindow *)window willPositionSheet:(NSWindow *)sheet
usingRect:(NSRect)rect
"Sent to the delegate just before the animation of a sheet, giving it
the opportunity to return a custom location for the attachment of the
sheet (sheet) to the window (window)"
There's more information in:
file:///Developer/Documentation/Cocoa/Conceptual/Sheets/index.html
Look at "Positioning Sheets".
Regards,
-Jeremy
On 8 May 2004, at 6:32 am, Lance Drake wrote:
Hi Cocoa-Dev Folks,
Perhaps it's not a suggested approach, but is it possible to cause a
sheet to appear from some place other than the title bar of a window?
For instance, I have several NSBoxes which surround several
NSTableViews. For purposes of clarity about which NSTableView the
sheet might pertain, if I wanted to cause a sheet to appear from the
upper lip of one of those NSBoxes, can anyone suggest how that might
be accomplished.
Thanks,
Lance Drake
_______________________________________________
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.
_______________________________________________
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.