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

Re: Screen Savers


  • Subject: Re: Screen Savers
  • From: Dave Keck <email@hidden>
  • Date: Fri, 10 Apr 2009 08:46:40 -1000

To get the path to a bundle that's loaded inside an arbitrary process,
I create a stub subclass of NSObject (let's call it MyStubClass) and
simply call [NSBundle bundleForClass: [MyStubClass class]];

This technique is the most straightforward way I know of to accomplish
what you're looking for - it's never failed me. A little precaution
though: to avoid potential conflicts, be sure to name your stub class
something a little more unique than 'MyStubClass' :)

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

  • Follow-Ups:
    • Re: Screen Savers
      • From: Nicko van Someren <email@hidden>
    • Re: Screen Savers
      • From: Douglas Davidson <email@hidden>
References: 
 >Screen Savers (From: Development <email@hidden>)

  • Prev by Date: Screen Savers
  • Next by Date: Re: Screen Savers
  • Previous by thread: Screen Savers
  • Next by thread: Re: Screen Savers
  • Index(es):
    • Date
    • Thread