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

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

References: 
 >NSLocalizedStringFromTableInBundle Questions (From: Todd Fantz <email@hidden>)

  • Prev by Date: Re: Changing CAConstraint for a CALayer
  • Next by Date: Screen Savers
  • Previous by thread: Re: NSLocalizedStringFromTableInBundle Questions
  • Next by thread: WebKit Caching
  • Index(es):
    • Date
    • Thread