Hello,
could someone help me to remove the macros from sdk\examples\Reaction\os4examples\imageButton\imagebut.c?
i'm getting mad.
Mon, 2014-02-10 11:22
#1
Could someone strip out the macro from this?
IIntuition->NewObject(NULL, "chooser.gadget", ...
), you don't need a class pointer so OpenLibrary() will be allright because all you need is to have the class and its interface opened. On the other hand, if you instantiate from the class pointer (IIntuition->NewObject(ChooserClass, NULL, ...
), you'll need OpenClass() because OpenLibrary() does not provide the class pointer. Instantiating from the class pointer can be faster, depending on the number of objects and complexity of your GUI. Steven says there's hardly a noticeable difference compared to using the public name; this may be true on his X1000 but on a lowly 600MHz Sam I can definitely tell :-)