Re: NSLocalizedStringFromTableInBundle Questions
Re: NSLocalizedStringFromTableInBundle Questions
- Subject: Re: NSLocalizedStringFromTableInBundle Questions
- From: Dave Keck <email@hidden>
- Date: Fri, 10 Apr 2009 08:35:31 -1000
> If I do a NSBundle *thisBundle = [NSBundle bundleForClass:[self class]]; it
> won't compile.
I'm going to go out on a limb and say you're using the above line in a
plain-C function rather than an Objective-C class. Is this correct?
'self' is meaningless/undefined outside of the Objective-C classes.
If so, instead of saying 'self', use your classes' name directly.
David
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden