Lines Matching +refs:syntax +refs:literals +refs:count

9 *NSNumber Literals* provide a syntax for creating ``NSNumber`` from
36 control the size of numeric literals.
41 The following program illustrates the rules for ``NSNumber`` literals:
46 // character literals.
49 // integral literals.
55 // floating point literals.
59 // BOOL literals.
72 NSNumber literals only support literal scalar values after the ``'@'``.
83 the `boxed expression <#objc_boxed_expressions>`_ syntax, which is
108 ``BOOL`` and integer literals.
116 Objective-C provides a new syntax for boxing C expressions:
150 boxed literals (this avoids conflicts with future ``'@'``-prefixed
266 Objective-C now supports a new expression syntax for creating immutable
294 pointer typed, as in array literals. Key sub-expressions must be of an
305 Using array and dictionary literals is safer than the variadic creation
307 to ``+[NSArray arrayWithObjects:count:]``, which validates that all
311 literals are similarly created with
312 ``+[NSDictionary dictionaryWithObjects:forKeys:count:]`` which validates
326 The following code demonstrates the use of object subscripting syntax
400 element using an index outside the range ``[0, array.count)`` will raise
404 exception; no syntax is provided for inserting, appending, or removing
449 No syntax is provided for removing elements from mutable dictionaries.
485 Objects created using the literal or boxed expression syntax are not
493 This caveat applies to compile-time string literals as well.
494 Historically, string literals (using the ``@"..."`` syntax) have been
503 To support the new syntax described above, the Objective-C
554 NSArray *elements = [NSArray arrayWithObjects:objects count:4];
565 NSDictionary *masses = [NSDictionary dictionaryWithObjects:objects forKeys:keys count:4];
569 NSUInteger i, count = elements.count;
570 for (i = 0; i < count; ++i) {
576 NSUInteger i, count = [elements count];
577 for (i = 0; i < count; ++i) {
601 availability of numeric literals support. This checks for the new
603 ``@YES / @NO`` literals.