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: Panther NavCreateAskSaveChangesDialog Problem



Hello:

>> 5) Possibly related: Why does the cmd-D shortcut for the
>> NavCreateAskSaveChangesDialog sheet now "leak through" to my main menu
>> handler? (This did not happen pre-10.3) I had to remove the cmd-D
shortcut
>> from my menu due to interference.
>
>You don't need to remove it. Just disable it when a Nav dialog is open.
>

Ah, yes, that is certainly reasonable. I could check to see if the active
window is sporting a nav dialog.

What's a good way to do that? I use this kludge-ish method:

Boolean WindowHasSheet ( WindowRef inWPtr )

{
WindowAttributes attributes;
OSStatus myErr = noErr;

myErr = GetWindowAttributes( inWPtr, &attributes );
if ( !myErr && ( attributes & kWindowNoActivatesAttribute ) )
return TRUE;

return FALSE;
}


And, where should I look to find the documentation explaining 10.3 changes?

Thank you very much for your help. The crash bug is driving me nuts.

Sincerely,
Tom
email@hidden
_______________________________________________
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.



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.