• 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
Keys of the kingdom
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keys of the kingdom


  • Subject: Keys of the kingdom
  • From: Kevin Bracey <email@hidden>
  • Date: Thu, 20 Apr 2006 09:10:21 +1200

Hi Folks,

I'm polishing some of my code and have a "best practices" dilemma I hope you can help with.

I'm making extensive use of Dictionaries, Localised Strings and UserDefaults, In my prototypes I have simply used the form
[currentDic objectForKey:@"someKeyName"]; As a oldtime coder having strings scattered through my code irks me.


My question:
How do you manage these 3 different types of Keys? (and any others)
( I notice the Cocoa headers use extern const which seems like 4x the work and I'm not sure why they do it like this?)
For the Localised Strings and UserDefaults where should I define these keys?


Thanks for your insights
Kaveman

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Keys of the kingdom
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Implementation across several files
  • Next by Date: Re: object Allocation
  • Previous by thread: Re: object Allocation
  • Next by thread: Re: Keys of the kingdom
  • Index(es):
    • Date
    • Thread