File: class2.gsmarkup

package info (click to toggle)
renaissance 0.9.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,028 kB
  • sloc: objc: 12,332; makefile: 33; perl: 25
file content (23 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (5)
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>