• 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: Class name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class name


  • Subject: Re: Class name
  • From: Shawn Erickson <email@hidden>
  • Date: Mon, 22 Nov 2004 11:43:28 -0800


On Nov 22, 2004, at 9:42 AM, email@hidden wrote:

How can i get a name as a NSString of a Class Object?

ex:

Class	_someClass = (Class )NSButton;
NSString*	_className = [ _someClass ???? ];

Just an FYI... the use of underscore for instance variables should be consider reserved for the use by Apple when working with Cocoa objects.


See Apple's Cocoa coding guidelines...

<http://developer.apple.com/documentation/Cocoa/Conceptual/ CodingGuidelines/index.html>

...in particular...

<http://developer.apple.com/documentation/Cocoa/Conceptual/ CodingGuidelines/Articles/NamingIvarsAndTypes.html#//apple_ref/doc/uid/ 20001284/BAJGIIJE>

-Shawn

_______________________________________________
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: 
 >Class name (From: email@hidden)

  • Prev by Date: Re: Class name
  • Next by Date: Installing a font programmatically?
  • Previous by thread: Re: Class name
  • Next by thread: help on 'help books'
  • Index(es):
    • Date
    • Thread