Re: cocoa-dev digest, Vol 2 #1502 - 13 msgs
Re: cocoa-dev digest, Vol 2 #1502 - 13 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #1502 - 13 msgs
- From: Finlay Dobbie <email@hidden>
- Date: Sun, 10 Nov 2002 16:19:50 +0000
On Sunday, November 10, 2002, at 12:28 pm, Luca Torella wrote:
how can I create a folder from Cocoa?
RTFM NSFileManager. -(BOOL)createDirectoryAtPath:(NSString *)path
attributes:(NSDictionary *)attributes iirc.
And how to know the path of my
app?
Why do you need to know? :-)
(those two questions next to each other makes it sound like you want to
create a folder in the same dir as your app -- you shouldn't do this,
you can't rely on having write privileges to your app's directory, but
if you really do need to know where your app is, try [[NSBundle
mainBundle] bundlePath]).
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.