Re: Executable linking
Re: Executable linking
- Subject: Re: Executable linking
- From: John Stiles <email@hidden>
- Date: Wed, 1 Mar 2006 10:49:20 -0800
I don't think this is possible in the general case.
What if this app needs to set up some globals or other state? Many
apps use awakeFromNib or applicationDidFinishLaunching to do basic
initialization, and these classes may depend on that. The app could
even be doing some types of setup inside main().
I'm not saying that this is the best way to design an app or
anything, but it's certainly a plausible way to do it, and my point
is that these classes may not be usable in a stand-alone way without
actually running the app as a whole. If you don't have their source,
you really don't know either way.
On Mar 1, 2006, at 10:28 AM, Shon Frazier wrote:
Can I link to an existing executable and call into it like a
library? I do really mean an existing .app executable, not a
framework or library (static or otherwise). This app has some
functionality that I desperately want for my own app, but don't
have the time to re-implement. I've tried linking the .app as a
framework, the the actual executable file as a library ... doesn't
work.
I've used class-dump (http://www.codethecode.com/Projects/class-
dump/) to extract [Objective-C] headers for custom classes that it
implements. I'd like to use those classes if possible.
Thoughts?
::SF
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden