• 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
Question about the Foundation Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about the Foundation Framework


  • Subject: Question about the Foundation Framework
  • From: Michael <email@hidden>
  • Date: Thu, 19 Feb 2009 06:15:30 -0800

Hi all
I am going through Kochan's new book to learn Obj-C and cocoa..trying to start with the basics...so hope you don't mind if I post some very basic questions....



Going through the exercises, I am currently stuck on this one as follows.


"Given the NSPathUtilities.h function NSTemporaryDirectory and the NSProcessInfo methodgloballyUniqueString described in this chapter, add a category called TempFiles to NSString, and in it define a method called temporaryFileName that returns a different, unique filename every time it is invoked."

My question, having seen that the author creates and then stores these unique names in the NSTemporaryDirectory, is **why** one would choose that directory over, say, some locally created directory..is there a good OOP reason for choosing that Foundation directory? Unless I have missed something, ( quite probably) the documentation does not specifically discuss this aspect...but if it does...I will gladly read that if available.


Thanks in advance _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Question about the Foundation Framework
      • From: Michael Ash <email@hidden>
  • Prev by Date: Cocoa, Finder Preferences & Blank Media (CD-R etc) ...
  • Next by Date: Re: Question about the Foundation Framework
  • Previous by thread: Re: Cocoa, Finder Preferences & Blank Media (CD-R etc) ...
  • Next by thread: Re: Question about the Foundation Framework
  • Index(es):
    • Date
    • Thread