Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: linking to private frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linking to private frameworks



On Wed, 29 Sep 2004 21:51:44 -0700, Eric Ocean <email@hidden> wrote:
> 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. The linker
> complains, so I add the private framework to my project, but it still
> complains.

I think the '-undefined suppress' linker flag is what you're looking
for.  You'll also need '-force_flat_namespace' to keep everything
working.


Besides that, I'd generate headers for the relevant classes of the
framework using class-dump[1], and I would not add the framework to
the project.

-Ken

[1] <http://www.codethecode.com/Projects/class-dump/>
 _______________________________________________
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

References: 
 >linking to private frameworks (From: Eric Ocean <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.