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: NavDialogRun automatic file extension



Extensions are added whenever the save file name is set either at dialog creation time with the saveFileName field of the NavDialogCreationOptions structure or at runtime with either the kNavCtlSetEditFileName custom control message or the NavDialogSetSaveFileName API. The kNavPreserveSaveFileExtension option flag can also be set at creation time to make sure the extension, once set by any of the above methods, is not editable by the user.


On Nov 20, 2007, at 3:39 PM, PageStream Support wrote:

Can someone point me to docs or an example that explains how to wedge into NavDialogRun to properly append a file extension when appropriate?

Currently, in the event proc I am catching the kNavCBAccept NavEventCallbackMessage and getting/modifying/setting the filename. It works, except that the overwrite condition is checked on the original filename.

So is there a prior event I should be looking for instead of kNavCBAccept, or someway to disable and self-implement my own overwrite message?

I've read the docs and searched for examples but have found nothing that did this. Thanks for any guidance on the proper way to do this.

Deron

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >NavDialogRun automatic file extension (From: PageStream Support <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.