File: ViewRedirect.schelp

package info (click to toggle)
supercollider 1%3A3.7.0~repack-4%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 34,364 kB
  • sloc: cpp: 197,140; ansic: 72,013; lisp: 63,505; sh: 14,009; python: 1,992; perl: 766; makefile: 679; java: 677; xml: 326; yacc: 309; lex: 175; ruby: 173; objc: 65
file content (20 lines) | stat: -rw-r--r-- 1,022 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class:: ViewRedirect
summary:: An abstract super class for gui redirection classes
categories:: GUI>Kits
related:: Classes/GUI, Overviews/GUI-Classes, Guides/GUI-Introduction

description::
You will never call this class directly, but will only call its subclasses. ViewRedirect is the abstract superclass of all gui redirect classes. These subclasses in turn use the code::GUI.myView:: mechanism to redirect to the currently active gui kit. ViewRedirect's subclasses provide a simple syntax for creating gui views and widgets, while transparently making the code work with different gui kits.

Each subclass uses a code::*key:: class method to return a key appropriate to the desired link::Classes/GUI:: redirect method:

code::
MyGUIClass : ViewRedirect { *key { ^\myGUIClass }}
::

classmethods::

method:: redirectQueries
argument:: bool
A link::Classes/Boolean:: indicating whether or not code::openClassFile:: queries will redirect to the active implementation class (Cocoa or Swing). The default is code::false::.