Re: Making a sheet from a view
Re: Making a sheet from a view
- Subject: Re: Making a sheet from a view
- From: Lorenzo <email@hidden>
- Date: Tue, 02 Sep 2003 08:54:57 +0200
Hi,
again, it's easier than you can think.
You have a main window and a sheet window
you want to attach the sheet window to the main window.
They are NSWindows and not NSViews.
To open the sheet simply call:
[NSApp beginSheet:sheetWindow modalForWindow:maiWindow
modalDelegate:self didEndSelector:NULL contextInfo:NULL];
To close the sheet call:
[NSApp endSheet:sheetWindow];
[sheetWindow close];
Best Regards
--
Lorenzo
email: email@hidden
>
Hi everybody,
>
>
I've noticed many Cocoa programs have the ability to treat some views
>
as sheets.
>
Where can I find docs and helps on how to do this?
>
>
TY
>
>
--
>
Sanri Parov
_______________________________________________
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.