n/a is just a reminder for myself that an implementation wouldn’t be called, because I return an NSView in RBControlBehaviour.controlHandleGetter:
[code]static REALcontrolBehaviour SplitView_ControlBehaviour = {
/* constructorFunction / SplitView_ControlConstructor,
/ destructorFunction / SplitView_ControlDestructor,
/ redrawFunction n/a / NULL,
/ clickFunction n/a / NULL,
/ mouseDragFunction n/a / NULL,
/ mouseUpFunction n/a / NULL,
/ gainedFocusFunction n/a / NULL,
/ lostFocusFunction n/a / NULL,
/ keyDownFunction n/a / NULL,
/ openFunction / SplitView_OpenFunction,
/ closeFunction / SplitView_CloseFunction,
/ backgroundIdleFunction n/a / NULL,
/ drawOffscreenFunction / SplitView_DrawOffscreenFunction,
/ setSpecialBackground n/a / NULL,
/ constantChanging n/a / NULL,
/ droppedNewInstance n/a / NULL,
/ mouseEnterFunction n/a / NULL,
/ mouseExitFunction n/a / NULL,
/ mouseMoveFunction n/a / NULL,
/ stateChangedFunction / NULL,
/ actionEventFunction n/a / NULL,
/ controlHandleGetter / SplitView_ControlHandleGetter,
/ mouseWheelFunction n/a / NULL,
/ enableMenuItemsFunction / NULL,
/ menuItemActionFunction / NULL,
/ controlAcceptFocus n/a / NULL,
/ keyUpFunction n/a / NULL,
/ redrawWithRectsFunction n/a */ NULL
};
static REALcontrol SplitView_ControlDefinition = {
/* version / kCurrentREALControlVersion,
/ name / “NSSplitView”,
/ dataSize / sizeof(SplitView_ControlData),
/ flags / REALcontrolAcceptFocus,
/ toolbarPICT / 0,
/ toolbarDownPICT / 0,
/ defaultWidth / 300,
/ defaultHeight / 200,
/ properties / SplitView_ControlProperties,
/ propertyCount / sizeof(SplitView_ControlProperties) / sizeof(REALproperty),
/ methods / SplitView_ControlMethods,
/ methodCount / sizeof(SplitView_ControlMethods) / sizeof(REALmethodDefinition),
/ events / SplitView_ControlEvents,
/ eventCount / sizeof(SplitView_ControlEvents) / sizeof(REALevent),
/ behaviour / &SplitView_ControlBehaviour,
/ forSystemUse / 0,
/ eventInstances / SplitView_ControlEventInstances,
/ eventInstanceCount / sizeof(SplitView_ControlEventInstances) / sizeof(REALeventInstance),
/ interfaces / “”,
/ obsolete1 / NULL,
/ obsolete2 / 0,
/ constants / SplitView_ControlConstants,
/ constantCount */ sizeof(SplitView_ControlConstants) / sizeof(REALconstant)
};[/code]