Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making a sheet from a view



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.