1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
<?xml version="1.0"?>
<!DOCTYPE gsmarkup>
<gsmarkup>
<objects>
<!-- Test that by using a instanceOf="xxx" attribute we can create an
instance of a subclass -->
<window instanceOf="NSPanel" id="window">
<!-- A hack to display the class of the window without
writing any code :-) -->
<button title="#window.className" width="200" height="100" />
<!-- The following was the original code, but apparently the Mac
OS X key-value coding is buggy and #window.class doens't work. :-(
-->
<!-- <button title="#window.class.description" width="200" height="100" /> -->
</window>
</objects>
</gsmarkup>
|