Apple WebObjects 3.5 Uživatelský manuál Strana 191

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 218
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 190
Working With Strings
191
Note: The configuration of your HTTP server determines the user who owns
autostarted applications.
Reading From Files
The string, array, and dictionary classes provide methods of the form
classNameWithContentsOfFile:. These methods create a new object and initialize it
with the contents of a specified file, which can be specified with a full or
relative pathname.
Working With Strings
NSString and NSMutableString objects represent static and dynamic
character strings, respectively. They may be searched for substrings,
compared with one another, combined into new strings, and so on.
The difference between NSStrings and NSMutableStrings is that you can’t
change an NSString’s contents from its initial character string. While
NSMutableString provides methods such as
appendString: and setString: to add
to or replace the string’s contents, there are no such methods available for
NSStrings. It’s best to use NSStrings wherever possible. Only use an
NSMutableString if you need to modify its contents after you create it.
You can create NSStrings with WebScript’s at sign (@) syntax for defining
constant objects. For example, the following statement creates an NSString
object:
id msg = @"This option is no longer available. Please choose another.";
You can also create string objects with creation methods—methods whose
names are preceded by a + and that return new objects. The strings created
with the @ syntax are always NSStrings, so they can’t be modified. If you
use a creation method instead, you can choose to create either an NSString
or a NSMutableString. The following code excerpt illustrates the creation
of both NSString and NSMutableString objects:
// Create an immutable string
id message = [NSString stringWithString:@"Hi"];
// Create a mutable string
id message = [NSMutableString stringWithString:@"Hi"];
The methods provided by NSString and NSMutableString are described in
more detail in the next section.
Zobrazit stránku 190
1 2 ... 186 187 188 189 190 191 192 193 194 195 196 ... 217 218

Komentáře k této Příručce

Žádné komentáře

Desa VDDVF36STN/STP manuels

Manuels d'utilisation et guides de l'utilisateur pour Foyers Desa VDDVF36STN/STP.
Nous fournissons des manuels en pdf 1 Desa VDDVF36STN/STP à télécharger gratuitement par type de document : Manuel de l'utilisateur






Plus de produits et de manuels pour Foyers Desa

Modèles Type de document
VVDR30 Manuel de l'utilisateur   Desa VVDR30 User's Manual, 28 pages
H Manuel de l'utilisateur   Desa H User's Manual, 28 pages
T Manuel de l'utilisateur   Desa T User's Manual, 48 pages
CDR3924PT Manuel de l'utilisateur   Desa CDR3924PT User's Manual, 28 pages
CHDV36NR Manuel de l'utilisateur   Desa CHDV36NR User's Manual, 44 pages
(V)3612ST Manuel de l'utilisateur   Desa (V)3612ST User's Manual, 16 pages
Ga3750a Manuel de l'utilisateur   Desa Ga3750a User's Manual, 12 pages
V50S Manuel de l'utilisateur   Desa V50S User's Manual, 18 pages
CDCFTP Manuel de l'utilisateur   Desa CDCFTP User's Manual, 42 pages
VTGF33PRA Manuel de l'utilisateur   Desa VTGF33PRA User's Manual, 40 pages
(V)PN36-A Manuel de l'utilisateur   Desa (V)PN36-A User's Manual, 20 pages
CDV41N/P Manuel de l'utilisateur   Desa CDV41N/P User's Manual, 36 pages
CCL3930NR Manuel de l'utilisateur   Desa CCL3930NR User's Manual [en] , 28 pages
CGCFTP Manuel de l'utilisateur   Desa CGCFTP User's Manual, 28 pages
EVDDVF36STN Manuel de l'utilisateur   Desa EVDDVF36STN User's Manual, 28 pages
LDL3924NR Manuel de l'utilisateur   Desa LDL3924NR User's Manual, 28 pages
(V)TC36GPE Series Manuel de l'utilisateur   Desa (V)TC36GPE Series User's Manual, 38 pages
CFS18NR Manuel de l'utilisateur   Desa CFS18NR User's Manual, 26 pages
R Manuel de l'utilisateur   Desa R User's Manual, 40 pages
VMH26TNC Manuel de l'utilisateur   Desa VMH26TNC User's Manual, 32 pages