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: Get folder (not file), then read all files from folder?



On Apr 24, 2008, at 12:50 PM, Keith Wiley wrote:

I know how to use NavCreateChooseFolderDialog to get a folder and then, with some finangling, construct the generic FSSpec of a file in that that folder. I have used this to save multiple files into a folder of the user's choosing by filling in the generic FSSpec's filename parameter for each file to save. However, what I want to do now is let the user select a folder, not for writing, but for reading, and then to automatically read all the files out of that folder. I know how to do a multi-file select and loop through the files with AEGetNthPtr, but for this application, I would really rather let the user specify the folder instead of doing a multi-file open.

Any ideas?

Get the DTSCarbonShell <http://developer.apple.com/samplecode/DTSCarbonShell/ > example.
It's almost what you need right out of the box.


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Sent from my SE/30

_______________________________________________
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: 
 >Get folder (not file), then read all files from folder? (From: Keith Wiley <email@hidden>)
 >Re: Get folder (not file), then read all files from folder? (From: Rob Petrovec <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.