James' Blog
  • Projects
  • Code Snippets
  • Photos
  • About

Print Instances of NSObject’s Sub-class Friendly By Overriding NSObject Description Method

By James Liu On February 3, 2012 · Leave a Comment

Using NSLog to print object instances into messages (such as NSString , NSDate , NSArray , NSDictionary), the messages in console are very useful when we’re debugging our APP. But when we inherited an object from NSObject(for exmaple , named it TestObject):

// TestObject.h @interface TestObject : NSObject { NSString *_name; int _age; } @property [...]

Continue Reading →

Notes for OpenGL ES Programming Guide for iOS

By James Liu On November 27, 2011 · 1 Comment

Read Implementation-Dependent Values Common OpenGL ES implementation-dependent values

Values should be tested in both OpenGL ES 1.1 and OpenGL ES 2.0 applications.

GL_MAX_TEXTURE_SIZE    Maximum size of the texture GL_DEPTH_BITS   Number of depth buffer planes GL_STENCIL_BITS  Number of stencil buffer planes OpenGL ES 2.0 shader values

In an OpenGL ES 2.0 application, [...]

Continue Reading →
  • Categories

    • iOS
  • Recent Posts

    • Print Instances of NSObject’s Sub-class Friendly By Overriding NSObject Description Method
    • Notes for OpenGL ES Programming Guide for iOS
  • Archives

    • February 2012
    • November 2011
  • Tags

    debug description Implementation-Dependent ios notes objective-c opengl pragramming property

James' Blog

Pages

  • Projects
  • Code Snippets
  • Photos
  • About

The Latest

  • Print Instances of NSObject's Sub-class Friendly By Overriding NSObject Description Method
    Using NSLog to print object instances into messages (such as NSString , […]

More

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed.
© 2011 James' Blog