Re: Static Library Equivalent of a Framework?
Re: Static Library Equivalent of a Framework?
- Subject: Re: Static Library Equivalent of a Framework?
- From: Jim Ingham <email@hidden>
- Date: Tue, 18 Nov 2003 11:08:47 -0800
On Nov 17, 2003, at 6:56 PM, Timothy J. Wood wrote:
On Monday, November 17, 2003, at 09:19 AM, Jim Ingham wrote:
Note that if you have resources in your framework, you can't access
them as straightforwardly if you try to make a "static framework" as
you would with a dynamic framework. The CFBundle code relies on
noticing where it was loaded from to know where all it's associated
structure is. All this information is lost when you link statically.
Right -- but presumably a 'static framework' would have support in
Xcode for merging resources from the framework into the app (care
would need to be taken to avoid duplicates).
Another option would be to cons up a dummy dylib for the framework that
does get loaded, but doesn't expose any of the API's in the framework.
This would suffice to locate the bundle and its associated resources.
I think this would be a better option than trying to handle merging
resources since avoiding duplicates could get tricky...
Jim
One of the most interesting part of a 'static framework' is that it
would work around the limitation of -mdynamic-no-pic not being
supported for frameworks and bundles. I'm really not clear on why we
can't have MH_FVMLIB frameworks with -mdynamic-no-pic -- I assume
Apple doesn't want to guarantee a range of memory for ISV frameworks.
-tim
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Jim Ingham
email@hidden
Developer Tools - gdb
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.