• 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
what is the proper place to store application settings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

what is the proper place to store application settings


  • Subject: what is the proper place to store application settings
  • From: "Laimonas Simutis" <email@hidden>
  • Date: Wed, 9 Apr 2008 13:19:01 -0500

Hey,

I started programming with Cocoa recently. Created an application
which makes REST calls and displays the response values in a simple
window. For each particular REST function I have a corresponding class
which defines functionality for constructing a proper URL needed to
call a function, initiating the call and informing the interested
delegate object once the REST response is received.

Right now I have the host part of the url hardcoded in each class that
represents a different REST function call. I know I should store it in
one place, not sure what's the recommended "place" in cocoa apps. I
was thinking maybe one class with #defines and then all the REST
representing classes would include that? Also I see some docs
mentioning plist setting files, could that be a better place? Based on
my environment (debug, testing, prod) this url will change as well.

Thanks for any recommendations,

L
_______________________________________________

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: what is the proper place to store application settings
      • From: Jeff LaMarche <email@hidden>
  • Prev by Date: Re: System Preferences window is wider in Leopard? How do you make a Tiger compatible UI?
  • Next by Date: Re: [OFF] unicode characters
  • Previous by thread: Re: [OFF] unicode characters
  • Next by thread: Re: what is the proper place to store application settings
  • Index(es):
    • Date
    • Thread