Hi Dan, Thanks a lot for your reply. I added the -Objc linker flag. And now it works well.
Thanks and best regards Leon 2011/2/25 Dan Treiman <dtrei...@mac.com> > You can fix this by adding the -ObjC linker flag. See related issue: > http://developer.apple.com/library/mac/#qa/qa2006/qa1490.html > This will force the linker to load classes from the static library > > > Another way is to reference the class directly somewhere in the code such > that it has no effect, i.e. > [ClassINeed class]; > > > -Dan Treiman > > On Feb 24, 2011, at 9:19 PM, Leon Qiao wrote: > > Dear all, > > I got a problem when using the NSClassFromString method to get a class. > The code is used in the google docs library. It failed to get the Class > object, the return value is 0x0. > But I already linked the library, and it works fine when using the class > itself directly. > Anyone who met the same problem, please help me. Thanks! > > -- > Best regards > Leon > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/dtreiman%40mac.com > > This email sent to dtrei...@mac.com > > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com