private static int getContentView(int wHandle) { int[] cv= new int[1]; OS.HIViewFindByID(OS.HIViewGetRoot(wHandle), OS.kHIViewWindowContentID(), cv); return cv[0];
private static int getContentView(int windowHandle) { int rootControl= OS.HIViewGetRoot(windowHandle); if (rootControl == 0) { System.out.println("getContentView: could not find root control"); return 0; } int[] contentView= new int[1]; int rc= OS.HIViewFindByID(rootControl, OS.kHIViewWindowContentID(), contentView); if (rc != OS.noErr) { if (rc != OS.errUnknownControl) System.out.println("getContentView: errNo: " + rc); return rootControl; } return contentView[0];
	private static int getContentView(int wHandle) {		int[] cv= new int[1];		OS.HIViewFindByID(OS.HIViewGetRoot(wHandle), OS.kHIViewWindowContentID(), cv);		return cv[0];	}