This is NSArray+MiscExtensions.rtf in view mode; [Download] [Up]
paperh18648 margl-907 margr0 margt0 margb0fi0 ri0 ql sb0 f1 fs24 Copyright f3 'e3f1 1997, All Rights Reserved. pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 fs28 fs16 fs28 fs16 fs28 pard s5 li2116 fi0 ri1007 ql f0 b fs56 NSArray fs16 fs56 pard s17 li4888 fi-2771 ri1007 ql tx4888 f1 b0 fs28 fs16 fs28 f0 b fs28 Category Name: b0 fs28 f1 MiscExtensions fs16 s10 fs16 fs28 f0 b fs28 Declared In: b0 fs28 f1 NSArray+MiscExtensions.h fs16 fs28 pard s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 fs36 Category Description fs16 pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 b0 fs28 fs16 fs28 This category provides a number of generally useful convenience methods for the NSArray class cluster. fs28s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 fs36 Method Types fs16 f1 b0 fs28 s34 li6652 fi-503 ri1007 ql tx9676 tx10180 {f3 -} isEmpty {f3 -} firstObject {f3 -} boolAtIndex: {f3 -} charAtIndex: {f3 -} floatAtIndex: {f3 -} doubleAtIndex: pard s13 li1360 fi0 ri1007 ql f0 b fs36 fs16 fs36 Instance Methods fs16 fs36 s21 li2493 fi-1132 fi-376 fs28 fs16 fs29 b boolAtIndex: s20 li3249 fi-1132 fi-756 f1 b0 fs28 {f3 -} (BOOL)b boolAtIndex:b0 (unsigned)i indexi0 b b0 pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 fs16 fs28 Uses b objectAtIndex:b0 to find the right target and if it responds to the message b boolValueb0 it returns the related value. If the object does not respond to that message the value NO is returned (is NO really the best value for a failure ??) fs16 fs28 pard s19 li2493 fi-376 ri1007 ql f0 fs28 fs16 fs29 b charAtIndex: s20 li3249 fi-1132 fi-756 f1 b0 fs28 {f3 -} (char)b charAtIndex:b0 (unsigned)i indexi0 b b0 pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 fs16 fs28 Uses b objectAtIndex:b0 to find the right target and if it responds to the message b charValueb0 it returns the related value. If the object does not respond to that message the value 0 is returned (is "0" really the best value for a failure ??) fs16 fs28 pard s19 li2493 fi-376 ri1007 ql f0 fs28 fs16 fs29 b doubleAtIndex: s20 li3249 fi-1132 fi-756 f1 b0 fs28 {f3 -} (double)b doubleAtIndex:b0 (unsigned)i indexi0 b b0 pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 fs16 fs28 Uses b objectAtIndex:b0 to find the right target and if it responds to the message b doubleValueb0 it returns the related value. If the object does not respond to that message the value 0 is returned (is "0" really the best value for a failure ??) fs16 fs28 pard s19 li2493 fi-376 ri1007 ql f0 fs28 fs16 fs29 b firstObject s20 li3249 fi-1132 fi-756 f1 b0 fs28 {f3 -} (id)b firstObjectb0 pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 fs16 fs28 If there are object in this array this methods returns the b objectAtIndexb0 0. Returns b nilb0 if the array is empty. fs16 fs28 pard s19 li2493 fi-376 ri1007 ql f0 fs28 fs16 fs29 b floatAtIndex: s20 li3249 fi-1132 fi-756 f1 b0 fs28 {f3 -} (float)b floatAtIndex:b0 (unsigned)i indexi0 b b0 pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 fs16 fs28 Uses b objectAtIndex:b0 to find the right target and if it responds to the message b floatValueb0 it returns the related value. If the object does not respond to that message the value 0 is returned (is "0" really the best value for a failure ??) fs16 fs28 pard s19 li2493 fi-376 ri1007 ql f0 fs28 fs16 fs29 b isEmpty s20 li3249 fi-1132 fi-756 f1 b0 fs28 {f3 -} (BOOL)b isEmptyb0 pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 fs16 fs28 Returns YES if there are no objects inside the array. NO otherwise. }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.