• 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
An alert sheet on a just-opened document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

An alert sheet on a just-opened document


  • Subject: An alert sheet on a just-opened document
  • From: John Nairn <email@hidden>
  • Date: Tue, 28 May 2002 16:59:42 -0600

My previous question ("Controlling NSOutlineView selection after an Alert panel?") involved a problem with NSRunAlertPanel and my delegate methods. The solution was to use an alert sheet which is the better user interface too. So I got excited and converted more appropriate things to alert sheets.

For example, in my program a user can open any file, but some files may not be formatted correctly. I plan to have tools for the the user to fix such files. I thus open the file any way, alert the user, and select the first error in the file. I think it is best to alert the user in a sheet on the new window, so I added an NSBeginInformationalAlertSheet in my windowControllerDidLoadNib. The problem is that the sheet appears before the window and the window comes up on top of the sheet. Is there a "Cocoa" place that is called after the window is really displayed so I can post a sheet on that just-opened document window?
----------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page: http://www.mse.utah.edu/~nairn
_______________________________________________
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.
  • Prev by Date: Re: Saving a NSMutableArray into a plain ASCII file
  • Next by Date: Sending event to myself
  • Previous by thread: Re: NSCell, Matrix, coordinate system
  • Next by thread: Sending event to myself
  • Index(es):
    • Date
    • Thread