• 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
Proper way to initialize application support file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Proper way to initialize application support file


  • Subject: Proper way to initialize application support file
  • From: Paul Johnson <email@hidden>
  • Date: Wed, 17 Feb 2010 16:21:07 -0500

I am working on a Document-based application that needs to have a
certain file in ~/Library/Application Support/<appname> before it can
do anything. It needs to be created the first time the program is run
(or if it has been deleted by the user).

I've created a class XXAppDelegate and declared it as implementing the
NSApplicationDelegate protocol, and I defined
-(void)applicationDidFinishedLaunching:(NSNotification*)aNotification.
In this method I want to perform the file creation. Does this sound
like I'm on the right track? (Newbie as you can tell.)

I should add that the file needs to be created by accessing the
internet and could take even a minute to finish, so I will no doubt
have to worry about informing the user about the delay when the
program is run for the first time, but before I charge in this
direction I would appreciate some affirmation I'm on the right track.
_______________________________________________

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: Proper way to initialize application support file
      • From: Ken Thomases <email@hidden>
    • Re: Proper way to initialize application support file
      • From: Steven Degutis <email@hidden>
  • Prev by Date: Re: Debugging "NSManagedObject with ID has been invalidated"
  • Next by Date: Re: Proper way to initialize application support file
  • Previous by thread: Re: “EXC_BAD_ACCESS” on Custom TableView with custom NSCell when clicking.
  • Next by thread: Re: Proper way to initialize application support file
  • Index(es):
    • Date
    • Thread