Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / June 2006



Tip: Looking for answers? Try searching our database.

How to find a Framework's own path (or URL)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shai@waves.com - 18 Jun 2006 14:43 GMT
I have a Framework which is used as a DLL by several other projects.
In it's initialization routine, the Framework needs to know it's own
path.

I found no way of doing this.

Any suggestion?

I'm building the framework in C using Xcode 2.3.
Michael Ash - 18 Jun 2006 18:01 GMT
> I have a Framework which is used as a DLL by several other projects.
> In it's initialization routine, the Framework needs to know it's own
[quoted text clipped - 5 lines]
>
> I'm building the framework in C using Xcode 2.3.

CFBundleGetBundleWithIdentifier().

Signature

Michael Ash
Rogue Amoeba Software

Tom Harrington - 18 Jun 2006 19:34 GMT
> > I have a Framework which is used as a DLL by several other projects.
> > In it's initialization routine, the Framework needs to know it's own
[quoted text clipped - 7 lines]
>
> CFBundleGetBundleWithIdentifier().

Or possibly NSBundle's +bundleForClass:, with one of the framework
classes as an argument.

Signature

Tom "Tom" Harrington
Macaroni, Automated System Maintenance for Mac OS X.
Version 2.0:  Delocalize, Repair Permissions, lots more.
See http://www.atomicbird.com/

Sherm Pendley - 18 Jun 2006 21:12 GMT
>> > I have a Framework which is used as a DLL by several other projects.
>> > In it's initialization routine, the Framework needs to know it's own
[quoted text clipped - 10 lines]
> Or possibly NSBundle's +bundleForClass:, with one of the framework
> classes as an argument.

He said he's using C, not Objective-C. So he needs the CF function.

sherm--

Signature

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.