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: SFPGetFile and SFPPutFile carbon replacements



on 7/25/04 9:53 AM, Ian Anderson <email@hidden> wrote:

>> On Jul 23, 2004, at 10:53 PM, Kurt Bigler wrote:
>>> I need to replace SFPGetFile and SFPPutFile in the app I am
>>> carbonizing with
>>> the Carbon equivalents. There is no budget nor apparent immediate
>>> reason
>>> for any additional functionality. It looks to me like what I may
>>> want are
>>> the *deprecated* functions NavChooseFile and NavPutFile. Is that
>>> correct?
>>
>> If your goal is to run on Mac OS X exclusively then you should use
>> NavCreateGetFileDialog and NavCreatePutFileDialog along with
>> NavRunDialog. I believe those are the most up-to-date Carbon savvy
>> versions of the Navigation routines.
>>
>> If, however, you have to continue to run on Mac OS 9, then you should
>> probably use NavChooseFile and NavPutFile.
>
> NavCreateXXXDialog/NavRunDialog work in CarbonLib and are the preferred
> APIs so I would just go ahead and use them now. In fact I'm pretty
> sure you can even specify window modality for a CarbonLib project and
> when running in Mac OS 9 it will make an app modal dialog.
>
> Ian

Thanks to everyone for their inputs.

I take it from all this that the deprecated NavChooseFile and NavPutFile
don't just call the new APIs internally, as I originally figured they
probably did. So I'm taking a shot at learning the new APIs.

Right now I'm building/testing under OS 9.2 and I find that although
NavGetDefaultDialogCreationOptions does indeed set up
kWindowModalityAppModal as the default as the doc says, I am getting a fully
modal dialog. My event proc ptr is NULL but the doc says that's ok unless I
want a modeless or window-modal dialog.

Any ideas why kWindowModalityAppModal is not working?

-Kurt
_______________________________________________
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: 
 >Re: SFPGetFile and SFPPutFile carbon replacements (From: Ian Anderson <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.