Comments on: Schizophrenic plugins https://briksoftware.com/blog/archives/42 Thu, 14 Jun 2012 18:56:48 +0000 hourly 1 https://wordpress.org/?v=4.7 By: Jordy/Jediknil https://briksoftware.com/blog/archives/42/comment-page-1#comment-8715 Mon, 10 Sep 2007 01:19:02 +0000 https://briksoftware.com/blog/?p=42#comment-8715 Sorry, that should have been -[NSBundle classNamed:], not NSStringFromClass().

]]>
By: Jordy/Jediknil https://briksoftware.com/blog/archives/42/comment-page-1#comment-8714 Mon, 10 Sep 2007 01:07:25 +0000 https://briksoftware.com/blog/?p=42#comment-8714 It took me a while to realize this, but all [NSBundle principleClass] does is look up the NSPrincipleClass key and use NSStringFromClass. (At least conceptually.) Which means you can just use your own key in Info.plist with the name of the inspector class (or whatever) and avoid having to +initialize the actual “principle object” class. Of course, this only helps if you weren’t already planning to use the principle class.

]]>