• 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
Re: List of all available classes ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List of all available classes ?


  • Subject: Re: List of all available classes ?
  • From: "Martin Wilz" <email@hidden>
  • Date: Wed, 1 Mar 2006 03:02:28 +0100

Hi Guy,

On 28/02/06, Guy English <email@hidden> wrote:
if ( [myObject isKindOfClass: [NSObject class]] ) { /* blah */ };

tried it and unfortunately (as predicted in the linked discussion) sending
messages to unknown object may cause problems...

NSProxy for example doesn't like being messaged. But accessing the
underlying structures seems to work fine. For example finding direct
subclasses of NSObject:

for (i = 0; i < numClasses; i++)
    if (classes[i]->super_class != nil)
            if (strcmp ((classes[i])->super_class->name,[[NSObject
className] cString]) == 0)
                    NSLog (@"found NSObject subclass %@",[classes[i]
className]);

with Regards,
Martin
 _______________________________________________
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

References: 
 >List of all available classes ? (From: "Martin Wilz" <email@hidden>)
 >Re: List of all available classes ? (From: Martin Wierschin <email@hidden>)
 >Re: List of all available classes ? (From: "Martin Wilz" <email@hidden>)
 >Re: List of all available classes ? (From: Guy English <email@hidden>)

  • Prev by Date: Re: objc_msgsend intel and nil objects
  • Next by Date: Re: List of all available classes ?
  • Previous by thread: Re: List of all available classes ?
  • Next by thread: Re: List of all available classes ?
  • Index(es):
    • Date
    • Thread