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

  • Home
  • SEARCH
  • 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 6729241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:15:57+00:00 2026-05-26T10:15:57+00:00

I have array of NSDistantObject class objects. NSLog(@%@, [[saveClassObject objectAtIndex:0] connectionForProxy]); NSLog(@%@, NSStringFromClass([[saveClassObject objectAtIndex:0]

  • 0

I have array of NSDistantObject class objects.

NSLog(@"%@", [[saveClassObject objectAtIndex:0] connectionForProxy]);
        NSLog(@"%@", NSStringFromClass([[saveClassObject objectAtIndex:0] class]));
        if ([[saveClassObject objectAtIndex:0] isKindOfClass:[NSDistantObject class]]) {
            NSLog(@"Yes");
        }
        else {
            NSLog(@"NO");
        }  

Output for obove code is

2011-10-20 20:49:58.841 DistributedServer[4239:a0f] (** NSConnection 0x10013ec80 receivePort <CFSocket 0x1001133d0 [0x7fff70289ee0]>{valid = Yes, type = 1, socket = 3, socket set count = 140733193388036,
    callback types = 0x2, callout = __NSFireSocketAccept (0x7fff8254e74a), source = 0x10010abb0,
    run loops = <CFArray 0x10015f930 [0x7fff70289ee0]>{type = mutable-small, count = 4, values = (
    0 : <0x100112870>
    1 : <0x100112870>
    2 : <0x1001126a0>
    3 : <0x1001126a0>
)},
    context = <CFSocket context 0x1002000b0>} sendPort <02010610 1002c323 c0a801ae 00000000 00000000> refCount 3 **)
2011-10-20 20:49:58.842 DistributedServer[4239:a0f] NSDistantObject
2011-10-20 20:49:58.844 DistributedServer[4239:a0f] NO

NSStringFromClass returns saveClassObject array contains NSDistantObject class object. isKindofClass returns No for the same. why?

  • 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-26T10:15:58+00:00Added an answer on May 26, 2026 at 10:15 am

    NSProxy‘s -isKindOfClass: calls forwardInvocation:. It’s intended to test the class of the object the proxy stands in for, not the proxy itself.

    • To check if the object you have is a proxy, you might want to use isProxy instead.
    • To check the proxy’s class, you could check if it’s class equals [NSDistantObject class] or call isSubclassOfClass:.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have array of Objects (let say that class name is Snap) Snap. Is
Why, if I have array of objects like this: class testClass { private $_x
I have array of objects with created images (Object.Image), i want to show images
I have array of objects. I want to write method wich i will use
I have array with colors as its objects. I want to create an image
I have array of objects MyClass MyArr[10]; In method of one element of array
I have array of objects person (int age; String name;) . How can I
I have array of objects form AR I want to rarefy them, with limit.
I have array output like this. { id = 1; user = { name=ABC
I have Array of objects SomeObjects[] objects. This 'objects' may contain type of 'Employee',

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.