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?



Sorry, I wouldn't have thought to include iterator in the search. Makes sense in hindsight, but, well, that's why they call it hindsight.

Cheers!

On Apr 24, 2008, at 12:59 PM, Steve Mills wrote:

On Apr 24, 2008, at 14:50:47, 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.


A search of developer.apple.com for "folder iterator" finds this as the 3rd hit:

<http://developer.apple.com/DOCUMENTATION/Performance/Conceptual/FileSystem/Articles/IteratingFiles.html >


________________________________________________________________________
Keith Wiley    email@hidden   http://www.cs.unm.edu/~kwiley

"I do not feel obliged to believe that the same God who has endowed us
with sense, reason, and intellect has intended us to forgo their use."
                                           --  Galileo Galilei
________________________________________________________________________



_______________________________________________
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: "Steve Mills" <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.