Link superclass at runtime?

  • This is probably a dumb question, and the answer is probably "no",
    but I'd just like someone who knows for sure to say so.

    I have a superclass and a subclass.  The superclass is in the main
    bundle and the subclass is in a separate bundle.  The separate bundle
    will not link because it wants an address for the superclass.

    Is there any way to make this work, maybe give the linker some kind
    of dummy address which could be dynamically re-linked to the real
    address at runtime?

    Thanks,

    Jerry Krinock
  • On Oct 3, 2007, at 21:37, Jerry Krinock wrote:

    > This is probably a dumb question, and the answer is probably "no",
    > but I'd just like someone who knows for sure to say so.
    >
    > I have a superclass and a subclass.  The superclass is in the main
    > bundle and the subclass is in a separate bundle.  The separate
    > bundle will not link because it wants an address for the superclass.
    >
    > Is there any way to make this work, maybe give the linker some kind
    > of dummy address which could be dynamically re-linked to the real
    > address at runtime?

    You can use the linker's -bundle_loader option.  See <http://lists.apple.com/archives/Cocoa-dev/2005/Jun/msg01220.html>.

    hth,
    Adam
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today