Skip navigation.
 
mlRe: linking to private frameworks
FROM : Greg Hurrell
DATE : Thu Sep 30 13:29:13 2004

El 30/09/2004, a las 6:51, Eric Ocean escribió:

> I'm trying to override a method in a private framework for an
> application I own. I generated a header for the class (using
> RuntimeBrowser), and then created my category to override the method.
> I'm loading the category implementation via SIMBL.


If it's for an application that you own, I don't know why you'd need to
use SIMBL. Just having the category in your project and linking to the
framework should be enough. SIMBL is for injecting code into other
apps, not your own.

> The linker complains, so I add the private framework to my project,
> but it still complains.
>
> I'm assuming that's because the private framework contains no headers,
> but I don't see why that would matter to the linker.


It's a good idea to make your own header, in any case, that lists the
functions/methods etc in the private framework that you'll be making
reference to. This at least will quell the compiler warnings.

As for the linker warnings, you haven't said what they are.

> Any suggestions? I know I could delve deep and manipulate the
> objective-c runtime dynamically, but I don't want to go that far just
> yet.


Sounds like it would definitely be overkill!

Cheers
Greg

Related mailsAuthorDate
mllinking to private frameworks Eric Ocean Sep 30, 06:51
mlRe: linking to private frameworks Karin Kosina Sep 30, 12:37
mlRe: linking to private frameworks Greg Hurrell Sep 30, 13:29
mlRe: linking to private frameworks Eric Ocean Sep 30, 18:13
mlRe: linking to private frameworks Glenn Andreas Sep 30, 18:28
mlRe: linking to private frameworks Eric Ocean Sep 30, 19:07
mlRe: linking to private frameworks Frederick Cheung Sep 30, 20:13
mlRe: linking to private frameworks Ken Ferry Sep 30, 22:08
mlRe: linking to private frameworks [solved] Eric Ocean Oct 1, 00:41