Re: FolderItem equivalent?
Re: FolderItem equivalent?
- Subject: Re: FolderItem equivalent?
- From: Matt Neuburg <email@hidden>
- Date: Sun, 10 Sep 2006 12:13:48 -0700
- Thread-topic: FolderItem equivalent?
On Sun, 10 Sep 2006 19:57:27 +0200, Uli Kusterer
<email@hidden> said:
>Am 10.09.2006 um 01:16 schrieb William Squires:
>> Does cocoa/ObjC have an equivalent class to REALbasic's
>> FolderItem class?
>
> No, but depending on what you want, the following classes provide
>equivalent functionality by different means:
>
>NSFileManager
>NSWorkspace
>NSDirectoryEnumerator (get one through NSFileManager)
>NSDictionary (well, the one you get from NSDirectoryEnumerator of
>NSFileManager)
But it's more complicated than that, because data classes such as NSString
can "see" files directly (given a pathname or URL) in order to read to and
write from them. An RB programmer might be surprised by this.
Then there are the various ways of locating a file (a pathname string, an
NSURL, or NSBundle even). Plus, there is the question of Cocoa's support (or
lack thereof) for aliases.
In short, it really is (as someone already implied) a question not of
looking for some particular class, but of what you want to do. The OP seems
reticent on this point. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden