• 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: modal dialogs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modal dialogs


  • Subject: Re: modal dialogs
  • From: Dustin Voss <email@hidden>
  • Date: Fri, 4 Oct 2002 09:06:29 -0700

On Wednesday, October 2, 2002, at 11:17 PM, Richard Hood wrote:

I realize that apple discourages the use of traditional modal dialogs in cocoa. however, sheets do not cascade. therefore if you have multiple levels of modal input, sheets wont do. I've redesigned my app as much as I can but I still need one level of modal input/dialog (dialogs actually) to make it work.

If you use sheets, Apple recommends handling nested modals as follows: User opens sheet A and does something that requires sheet B. The app closes sheet A and opens sheet B. User does stuff in sheet B and clicks OK. App closes sheet B and re-opens sheet A.

There is some code for this in the developer documentation at "file:///Developer/Documentation/Cocoa/TasksAndConcepts/ ProgrammingTopics/Sheets/Tasks/UsingCascadingSheets.html".

however, because apple mislikes modal dialogs in cocoa, there is no sample code as to how to implement them. can anyone point me to some source that will illustrate for me how I can implement a modal dialog in IB/PB? failing that, can someone run me through the process of creating the nib and the code (calling, institution, invocation and implementation) to make a modal dialog work in cocoa?

I don't have any sample code, but check "file:///Developer/Documentation/Cocoa/TasksAndConcepts/ ProgrammingTopics/WinPanel/Concepts/UsingModalWindows.html".

--
Dustin
_______________________________________________
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.

References: 
 >modal dialogs (From: Richard Hood <email@hidden>)

  • Prev by Date: Re: Insert text at end of Textview
  • Next by Date: Get access to MyDocument
  • Previous by thread: modal dialogs
  • Next by thread: Accepting drag from Mail.app
  • Index(es):
    • Date
    • Thread