Re: [NEWBIE] Sheets problem
Re: [NEWBIE] Sheets problem
- Subject: Re: [NEWBIE] Sheets problem
- From: Brian Webster <email@hidden>
- Date: Sat, 23 Jun 2001 14:31:39 -0500
On Saturday, June 23, 2001, at 02:09 PM, cocoa-dev-
email@hidden wrote:
Hi !
I've a small problem : I've three NSWindows, one blank sheet (call it
sheet A), an another sheet (sheet B) and a my app's main
window, and two
NSViews.
I add my first NSView as a subview of A's content view, I display A
(using NSApp's beginSheet), and use runModalForWindow:.
Why are you using both beginSheet: and runModalForWindow:? The
main point of using sheets is to be able to display panels
without blocking out functions in the rest of the app. If you
want to do something as app modal, you should just use
runModalForWindow: and pass in your sheet A window. If you
don't want to run app modal, you should just call beginSheet:
and not call runModalForWindow:. Or am I missing something?
--
Brian Webster
email@hidden
http://www.owlnet.rice.edu/~bwebster