File: NSApp.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 (17 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0"?>
<!DOCTYPE gsmarkup>
<gsmarkup>
  <!-- This example will likely only work on GNUstep -->
  <objects>
    <menu id="menu">
      <menuItem title="Quit" action="terminate:" keyEquivalent="q" />
    </menu>
  </objects>

  <connectors>
    <!-- We use this to test that we can access NSApp using #NSApp.
         We set the mainMenu of the NSApp to be #menu, by using
         an outlet.  -->
    <outlet source="#NSApp" target="#menu" key="mainMenu" />
  </connectors>
</gsmarkup>