• 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: Framework project config & accessing resources in the framework bundle.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Framework project config & accessing resources in the framework bundle.


  • Subject: Re: Framework project config & accessing resources in the framework bundle.
  • From: Nelson Santos <email@hidden>
  • Date: Sun, 11 Mar 2007 08:53:46 -0400

Hi there.

I've got 3 fully defined classes so far in my framework project, including methods, enums and extern NSString *'s. But I don't like the fact that the NSBundle path is pointing to the framework that I have in my user/library/frameworks directory. I'd like for it to find the framework in the app bundle that I am building.

Nelson


On Mar 10, 2007, at 8:33 PM, Jerry Krinock wrote:

on 07/03/10 6:33, Nelson Santos at email@hidden wrote:

NSBundle *bundle = [NSBundle bundleForClass:[MyFrameworkClass class]];

I've done this too, and it works for me. But I wonder how you've defined
MyFrameworkClass? In order to do this, I had to declare an empty class for
my framework, as shown below, which I thought was pretty goofy.


@interface MyFrameworkClass : NSObject {
}
@end

@implementation MyFrameworkClass
@end


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Re: Framework project config & accessing resources in the framework bundle. (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Coredata performance problem : massive insertion produces error in allocate region
  • Next by Date: Re: Framework project config & accessing resources in the framework bundle.
  • Previous by thread: Re: Framework project config & accessing resources in the framework bundle.
  • Next by thread: Re: Framework project config & accessing resources in the framework bundle.
  • Index(es):
    • Date
    • Thread