Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NavDialog Question



on 11/1/03 12:50 PM, Michel at email@hidden wrote:

> I have an application where many windows are mutually dependent. Some
> window subscribes to data in other windows. If a user tries to close a
> data source window, and other windows subscribe to data in the data
> source window, the application must first close the subscribers (since
> these cannot live without the data). The subscribers may again
> subscribe to other data sources which may or may not have data stored
> to disk (and the subscribers cannot be stored before all data sources
> have associated files [The subscribers store Alias records to the data
> source files for re-opening] ). Hence, the closing of one window will
> trigger a fixed sequence of window closures/saves (with possible
> cancels). During this application state, the sequence cannot be broken
> and each close dialog must be application modal. Still, sheets are
> the best way to clearly show which window is currently associated with
> the Navigation dialogs. Unfortunately I have problems of changing the
> modality of the sheets (after creation during the Nav start callback,
> since NavDialogRun returns Parameter error if I do so.
>
> Do anybody know of a safe way to use the Navigation services with
> sheets, and forcing the sheets to be application modal rather than
> window modal. I feel that sheets are much better in the above
> situation, and there will be more and more applications which have more
> complex "Document / Window" relationships than what the window modal
> metaphor was primarily designed for.

You can make the Nav dialogs application modal simply by specifying so
(although I don't necessarily recommend it).

You could hide the "subscriber" windows, or perhaps simply "dim" the content
area of the "subscriber" windows while the Nav dialog is posted on the
document window.

--
Glenn L. Austin <><
Computer Wizard and Race Car Driver
<email@hidden>
<http://www.austin-home.com/glenn/>
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >NavDialog Question (From: Michel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.