• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: This is bullsheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: This is bullsheet
      • From: Steve Klingsporn <email@hidden>
References: 
 >This is bullsheet (From: Steve Klingsporn <email@hidden>)

  • Prev by Date: Bullsheet cured
  • Next by Date: Unicode
  • Previous by thread: This is bullsheet
  • Next by thread: Re: This is bullsheet
  • Index(es):
    • Date
    • Thread