• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ZeroLink and dynamic discovered Classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ZeroLink and dynamic discovered Classes


  • Subject: Re: ZeroLink and dynamic discovered Classes
  • From: Greg Parker <email@hidden>
  • Date: Mon, 24 Nov 2003 15:15:56 -0500

email@hidden wrote:
> I'd like to do automatic test-case discovery and currently get a list
> of all classes from the runtime before I filter out those that are no
> testcases.
>
> BUT if zero-link is enabled I never get my testclasses listed. Well
> that is to be expected as those classes are not explicitely
> specified/instantiated anywhere else in the source.
>
> Is there a different way to get a list of classes? Or perhaps a list
> of classes just from my applications? Or even just my Test-Classes
> whithout specifying them by name?

This is a case where ZeroLink falls down. Objective-C classes are
installed into the runtime when the image binary is loaded. ZeroLink
tries very hard *not* to load image binaries. When you examine the
list of classes known by the runtime, some of them will be missing
becase ZeroLink has not loaded their image binaries yet.

The only solution is to turn off ZeroLink for this project.


--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: ZeroLink and dynamic discovered Classes
      • From: Martin Häcker <email@hidden>
  • Prev by Date: Re: NSStatusBar malfunctioning in Panther?
  • Next by Date: Network-based data source for NSOutlineViews
  • Previous by thread: Re: ZeroLink and dynamic discovered Classes
  • Next by thread: Re: ZeroLink and dynamic discovered Classes
  • Index(es):
    • Date
    • Thread