• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cocoa-dev digest, Vol 2 #1502 - 13 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: cocoa-dev digest, Vol 2 #1502 - 13 msgs (From: Luca Torella <email@hidden>)

  • Prev by Date: Re: Getting thumbnail of document to appear?
  • Next by Date: Re: Constants in Cocoa [Was Re: Magic Numbers]
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #1502 - 13 msgs
  • Next by thread: Re: cocoa-dev digest, Vol 2 #1502 - 13 msgs
  • Index(es):
    • Date
    • Thread