I'm sure this has an obvious answer, but I'm having a senior
moment or something. How can I create an FSRef for a folder given
a volume ref num, parent directory ID, and folder name given as
Unicode? I thought it was possible with PBMakeFSRefUnicodeSync,
but it looks like it only takes the parent directory as an FSRef
in the ref field, not as a pair of ioVRefNum and ioDirID.
I found one way to do this, but it requires 2 steps:
Not checking the return code? Brings up an interesting question,
though, about the returned error code and the one stored in ioResult.
Apple's sample code relies on the returned error code and I think
ioResult is more for use with PBMakeFSRefAsync. Someone can correct
me if I'm wrong.
Not really, since this isn't a very common need. Normally you would
have an FSRef for the parent, and you would normally get a directory
ID from the directory's FSRef.
You can simplify the above a little with the following:
_______________________________________________
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