• 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: Getting the name of a class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the name of a class


  • Subject: Re: Getting the name of a class
  • From: Marc Weil <email@hidden>
  • Date: Thu, 14 Aug 2003 11:36:25 -0400

It would be something like this, iirc:

NSStringFromClass([self class]);

- Marc Weil


On 8/14/03 3:21 AM, "John Lombardo" <email@hidden> wrote:

> I'd like to use the function NSStringFromClass() to obtain the name of the
> class from which it is being called. Essentially, how can I find out what
> kind of class 'self' is? I've seen it somewhere before but I couldn9t locate
> it in any references on hand.
>
> Cheers,
> john
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Getting the name of a class (From: John Lombardo <email@hidden>)

  • Prev by Date: Re: Creating new instances of an IB object
  • Next by Date: Control Over IB 'Visible At Launch Time' Flag
  • Previous by thread: Re: Getting the name of a class (solv0red)
  • Next by thread: Full Keyboard Access - selecting programmatically?
  • Index(es):
    • Date
    • Thread