Apple WebObjects 3.5 Manual de usuario Pagina 180

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 218
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 179
Chapter 10 The WebScript Language
180
Modern:
function submit() {
// <body>
}
Method Definition With Arguments
Classic:
- takeValuesFromRequest:(WORequest *)request
inContext:(WOContext *)context {
// <body>
}
Modern:
//Note: no static typing allowed.
function takeValues(fromRequest:= request inContext:= context){
// <body>
}
Method Invocation — No Argument
Classic:
[self doIt];
Modern:
self.doIt();
Method Invocation — One Argument
Classic:
[guests addObject:newGuest];
Modern:
guests.addObject(newGuest);
Method Invocation — Two or More Arguments
Classic:
[guests insertObject:newGuest atIndex:anIndex];
Modern:
guests.insert(object := newGuest, atIndex := anIndex);
Vista de pagina 179
1 2 ... 175 176 177 178 179 180 181 182 183 184 185 ... 217 218

Comentarios a estos manuales

Sin comentarios