Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8265621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:52:10+00:00 2026-06-08T04:52:10+00:00

My app needs to convert between the singular and plural versions of certain words

  • 0

My app needs to convert between the singular and plural versions of certain words at various moments. I’ve therefore got a dictionary where the keys are the singular versions and the values are the plural versions.

I’m wondering what the best way is to reinitialize this dictionary when necessary. As I see it, I have two options:

  1. Store this data in a plist and reinitialize the dictionary from the plist
  2. Create a wrapper object for NSDictionary that simply has a single NSDictionary property, whose value is set in the init method.

My guess is that #2 is faster, but doesn’t feel very elegant. Ultimately, subclassing NSDictionary seems like the right approach, but once I found out that NSDictionary is actually a class cluster, well, I chose not to do that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:52:12+00:00Added an answer on June 8, 2026 at 4:52 am

    Is the dictionary going to be very large? If so, why not just initialize it as an instance variable when your app activates and don’t release it. Also, I’m confused by your 2nd option and your comment. You mentioned in your option that you were going to create a wrapper object for a NSDictionary, but then you said you were going to subclass it. I’m not sure if you just got the confused or what, but your 2nd option (By creating a wrapper object with 1 NSDictionary and initializing the values in the init) also seems feasible to me too. Ultimately, any option should be fine as long as it doesn’t impact the performance of your app too much.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building an app in Rails that needs to convert a Twitter ID into
I have an app which has a section that needs to convert the temperature
I'm writing a Rails app that needs to convert an IDN domain name from
I'm building an Iphone app that needs to convert a UIImage to a CGImageRef.
I am recently making an app which needs to exchange messages between different iOS
I have a C# app and I need to convert between 3 different units
I need to convert a web app into ipad app. Stressing on style and
I have developed my app for tablet. Now I need to convert it to
My app needs feature to open iPhone/iPad Mail, contacts, Calendars settings panel and automatically
My app needs to have multiple screen e.g. one login page then another page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.