Apple WebObjects 3.5 User Manual Page 197

  • Download
  • Add to my manuals
  • Print
  • Page
    / 218
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 196
Commonly Used Array Methods
197
Creating Arrays
The methods in this section are class methods, as denoted by the plus sign
(+). You use class methods to send messages to a class—in this case,
NSArray or NSMutableArray. For more information on class methods, see
“Sending a Message to a Class” (page 172).
+ array
Returns an empty array. Usually used to create NSMutableArrays.
NSArrays created with this method are permanently empty.
// Most common use
id mutableArray = [NSMutableArray array];
// May not be what you want
id array = [NSArray array];
+ arrayWithObject:
Returns an array containing the single specified object.
+ arrayWithObjects:
Returns an array containing the objects in the argument list. The
argument list is a comma-separated list of objects ending with
nil.
id array = [NSMutableArray arrayWithObjects:
@"Plates", @"Plasticware", @"Napkins", nil];
+ arrayWithArray:
Returns an array containing the contents of a specified array.
Usually used to create an NSMutableArray from an immutable
NSArray. For example, the following statement creates an
NSMutableArray from a constant NSArray object:
id mutableArray = [NSMutableArray
arrayWithArray:@("A", "B", "C")];
+ arrayWithContentsOfFile:
Returns an array initialized from the contents of a specified file.
The specified file can be a full or relative pathname; the file that it
names must contain a string representation of an array, such as that
produced by the
writeToFile:atomically: method.
See also
description (page 200) .
Querying Arrays
– count
Returns the number of objects in the array.
Page view 196
1 2 ... 192 193 194 195 196 197 198 199 200 201 202 ... 217 218

Comments to this Manuals

No comments

Morphy Richards Reflect glass kettle manuels

Manuels d'utilisation et guides de l'utilisateur pour Bouilloires électriques Morphy Richards Reflect glass kettle.
Nous fournissons des manuels en pdf 1 Morphy Richards Reflect glass kettle à télécharger gratuitement par type de document : Manuel de l'utilisateur






Plus de produits et de manuels pour Bouilloires électriques Morphy Richards

Modèles Type de document
Opera jug kettle Manuel de l'utilisateur   Morphy Richards Opera jug kettle User's Manual, 6 pages
Filter rapide kettle Manuel de l'utilisateur    Morphy Richards Filter rapide kettle User's Manual, 8 pages
43698 Fiche technique   Morphy Richards 43698 electrical kettle, 1 pages
43027 Manuel   Morphy Richards 43027 electrical kettle, 6 pages
120002 Manuel   Morphy Richards Brita, 8 pages
Retro Manuel   Morphy Richards Accents, 6 pages
101404 Manuel   Morphy Richards 101404 electrical kettle, 6 pages
102602 Manuel   Morphy Richards 102602 electrical kettle, 6 pages
43024 Manuel   Morphy Richards 43024 electrical kettle, 6 pages
Elipta Manuel   Morphy Richards Elipta, 6 pages
Chroma Manuel   Morphy Richards Chroma, 6 pages
Elipta Manuel   Morphy Richards Elipta, 6 pages
43827 Spécifications   Morphy Richards 43855 electrical kettle, 8 pages
43692 Spécifications   Morphy Richards 43692 electrical kettle, 5 pages
Jug Kettle Spécifications   Morphy Richards Jug Kettle Specifications, 8 pages
TRADITIONAL KETTLE - AUTRE Manuel de l'utilisateur   View instruction book, 6 pages
Jug Kettle Manuel de l'utilisateur   IntelliBoil Jug Kettle, 6 pages
TRADITIONAL KETTLE - AUTRE Manuel de l'utilisateur   Instruction manual, 6 pages
ESSENTIALS KETTLE Manuel de service   Morphy Richards ESSENTIALS KETTLE Technical data, 6 pages
ESSENTIALS KETTLE Manuel de l'utilisateur   Instruction manual, 6 pages