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 881875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:20:05+00:00 2026-05-15T12:20:05+00:00

An object which used to identify itself as NSCFArray under previous iPhoneOSes now seems

  • 0

An object which used to identify itself as NSCFArray under previous iPhoneOSes now seems to identify itself as __NSArrayI under devices running iOS 4.0.

Any idea what’s up with this? I can’t find it in any documentation.

In addition, it doesn’t match “[NSArray class]”.

It should be a simple array. It’s defined like this:

NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:
                         thisPlayerName,@"name",
                         [NSNumber numberWithInt:[myTable.visiblePlayer.number intValue]],@"number",
                         playerCountArray,@"players",
                         [NSArray arrayWithObjects:@"easy",@"medium",@"hard",nil],@"opponent difficulty",
                         [NSNumber numberWithBool:[cardDecks getOptionBoolForKey:@"seeMoney"]],@"see money",
                         [cardDecks gameSpeedOptions],@"computer turn speed",
                         [NSArray arrayWithObjects:@"aqua",@"green",@"orange",@"purple",@"red",nil],@"player color",
                         nil];

Then fed into another dictionary like this:

    myRecord = [[NSMutableDictionary alloc] initWithCapacity:5];
    [myRecord addEntriesFromDictionary:newDictionary];

Everything else has classes like I’d expect: NSCFString, NSCFNumber, NSCFBoolean, but not the arrays, and I can’t figure out how to match it.

  • 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-05-15T12:20:06+00:00Added an answer on May 15, 2026 at 12:20 pm

    Why does it appear like that? Because we can’t trust the internal names of classes from one release to another.

    How to match it? Don’t try and match the name of the class or to equivalate the class. Just use isKindOfClass: which will match against a class and its subclasses, and does the right thing for weird variants like this.

    For example:

        } else if ([thisValue isKindOfClass:[NSArray class]]) {
    

    Note that you’re sending the isKindOfClass: message to an object, not to [object class]!

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

Sidebar

Related Questions

I have some objects which will be used in the same manor. This object
which one should be used to manipulating data, Array or Array Object? Like search,sort
The Entity Framework context object implements a Dispose() method which Releases the resources used
I have a need to have XYZIdentifier object which will be used in composition
I have an XSD file which is used to generate some objects which are
How to tell ARC do not release objects in main thread, which are used
I have a SelectItem object which has a few items. I set a value
I have a 3d object which I want to keep in the center of
So I have an object which contains a set of objects in a private
I've declared an object which gets instantiated on application start. I want to access

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.