Re: How to load my framework programatically ?
Re: How to load my framework programatically ?
- Subject: Re: How to load my framework programatically ?
- From: "rohit dhamija" <email@hidden>
- Date: Thu, 25 May 2006 19:14:47 +0530
Hi Jonathon,
Thanks for your reply. Also, it would be great if you could clarify/suggest below concerns too
1. We no longer need to link the framework explicitly, i.e. gcc myuseApp.c -framework myFramework.framework. Is that correct ?
2. Also,if I just specify the header file and use the function I require from framework, then will the "initialize routines" and "terminate routine" of the framework be called automatically.
Actually we have routine(s) that get called up when the framework gets loaded and unloaded respectively.
If not, then we need to also call those routines explicitly from our application.
Please comment.
Regards,
Rohit
On 5/25/06, Jonathon Mah <email@hidden> wrote:
Hi Rohit,
On 2006-05-25, at 16:37, rohit dhamija wrote:
> As now of now, i load my framework using
>
> "gcc myUserApplication.c -F. -framework myFramework.framework"
>
> Can I load my framework inside my userapplication code ?
>
> ///////////////////////////////////////
> example: myUserApp.c
> int main(){
> printf("Hello APPLE!!!");
> [ LoadMyFramework] =====>contains function func()
> // now since i loaded my framework, i use this function
> func();
> return 0;
> }
You don't need to load anything; just #include the header file from
your framework and call the function. Specifying -framework will make
it all link together.
Jonathon Mah
email@hidden
--
Rohit Dhamija(M) 9818446545
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden