Re: This is bullsheet
Re: This is bullsheet
- Subject: Re: This is bullsheet
- From: j o a r <email@hidden>
- Date: Sun, 27 Oct 2002 07:51:43 +0100
1) I don't really know about Cocoa for Java, but in Objective-C you
wouldn't (probably _shouldn't_) use the runModal and stopModal methods
- it's all taken care of by the beginSheet and endSheet methods.
2) If you want to close the sheet and end the modal session from
another method all you need is a reference to the sheet window, because
that is what you pass to the endSheet method (again, at least in ObjC).
j o a r
On Sunday, Oct 27, 2002, at 07:07 Europe/Stockholm, Steve Klingsporn
wrote:
Okay...
This seems to be the proper order to call things when doing sheet:
NSApplication.beginSheet()
NSApplication.runModalForWindow()
NSApplicaion.stopModal()
NSApplication.endSheet()
sheet.orderOut()
So if I want to properly close a sheet from another method, what is
the correct order?
I've tried everything I can think of, and the close and minimize boxes
on my windows are disabled.
Thanks,
Steve
_______________________________________________
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.