parentHandle= getContentView(parentHandle);
parentHandle= getContentView(parent); if (parentHandle == 0) parentHandle= getContentView(parent);
	static void insertControl(int controlHandle, int parentHandle, int pos) {				// make sure that parentHandle really refers to a Control		if (OS.IsValidControlHandle(parentHandle)) {			// it is a Control		} else if (OS.IsValidWindowPtr(parentHandle)) {			// it is a Window: get the Window's content Control			parentHandle= getContentView(parentHandle);		} else {			System.out.println("MacUtil.insertControl: parentHandle is neither control nor window");		}				int n= countSubControls(parentHandle);				int should= pos;		if (should < 0 || should > n)			should= n;				boolean add= false;		if (getSuperControl(controlHandle) != parentHandle) {			add= true;		} else {			System.out.println("MacUtil.insertControl: already there");			if (n == 1)				return;		}				if (n == 0) {			OS.HIViewAddSubview(parentHandle, controlHandle);			pos= 0;		} else {			if (pos >= 0 && pos < n) {				int[] where= new int[1];				getChild(parentHandle, where, n, pos);				if (add)					OS.HIViewAddSubview(parentHandle, controlHandle);				OS.HIViewSetZOrder(controlHandle, OS.kHIViewZOrderAbove, where[0]);			} else {				if (add)					OS.HIViewAddSubview(parentHandle, controlHandle);				if (OS.HIViewSetZOrder(controlHandle, OS.kHIViewZOrderBelow, 0) != OS.noErr)					System.out.println("error 2");				pos= n;			}		}			// verify correct position		int i= indexOf(parentHandle, controlHandle);		if (i != should)			System.out.println("MacUtil.insertControl: is: "+i+" should: "+ should  + " n:" + n + " add: " + add);	}