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: How to get DirID



>Hi,
>I'm totally new to MAC OS so please bear with my stupid question. But I
>really need help. Actually I'm trying to create a file for which I need to
>create a FSSpec. I'm useing the function FSMakeFSSpec. In carbon
>documentaiton it is specified that you must pass a valid directory id and
>volume id in FSMakeFSSpec. But I could not find a function which gives me
>the dirID by giving the path. Please help

If you have the path you can use FSPathMakeRef() to creat a FSRef. It's suggested to use FSRef's rather than FSSpec's, anyway. But if you really need an FSSpec you can convert the FSRef into an FSSpec using FSGetCatalogInfo().

Hope that helps.

Roland Blaser
_______________________________________________
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: 
 >How to get DirID (From: Mamta Choudhary <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.