Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
extending [2016/03/24 12:08]
christian [Customize an object type]
extending [2016/09/28 23:05] (current)
93.204.170.83 ↷ Links adapted because of a move operation
Line 42: Line 42:
 === Choose a class name === === Choose a class name ===
  
-As name for this example, I use ''BorderStyle''. Ideally the name should be the same as used in the PDF specification.+As name for this example, I use ''BorderStyle''. Ideally the name should be the same as used in the PDF specification. If the name does not match the name in the specification, be it because the name is already defined or for estetic reasons, the class method ''type'' (or ''subtype'', depending on the type inference mechanism) needs to be implemented.
  
 === Choose the superclass === === Choose the superclass ===
Line 147: Line 147:
 === The type: pragma === === The type: pragma ===
  
-Mandatory is the ''<type: aSymbol>'' pragma: it takes the name symbol of the Smalltalk class implementing the PDF type. This is derived from the "Type" column of the definition table. For more information about typing and the possible type pragmas, see [[Typing]].+Mandatory is the ''<type: aSymbol>'' pragma: it takes the name symbol of the Smalltalk class implementing the PDF type. This is derived from the "Type" column of the definition table. For more information about typing and the possible type pragmas, see [[typing]].
  
 === The documentation pragma === === The documentation pragma ===
  • extending.1458817723.txt.gz
  • Last modified: 2016/03/24 12:08
  • by christian