| 
 Q:
      I called HIObjectRegisterSubclassto register my custom subclass
      ofHIView, and got backparamErr(-50). Why? A:
      Assuming all your other parameters are correct, the problem
      may be that the HIViewobject class is registered a little
      too lazily. Ordinarily the class is registered when the firstHIViewis instantiated. However, if you try to register a
      subclass ofHIViewbefore instantiating any HIViews (any 
      windows or controls), then theHIViewclass hasn't been
      registered yet, andHIObjectRegisterSubclasscan't find it
      and returns an error.       This problem (r. 3020648) will be fixed in an upcoming software update; with that
      fix, HIObjectRegisterSubclasswill allow lazily registered
      classes to register themselves if it can't find the base
      class already registered.       Until then, you can work around
      this by creating an instance of some other Apple-defined control, for example a
      pushbutton that you can create passing NULLas window parameter since you don't need
      a valid window with the new HIToolbox creation scheme. You can then dispose that control. This instantiation
      of a knownHIViewclass will ensure that theHIViewclass itself 
      will be registered and later calls toHIObjectRegisterSubclasswill succeed. 
 [Nov 12 2002] |