This is NSUserDefaults+MiscColorExtensions.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 NSUserDefaults fs16 fs56 pard s17 li4888 fi-2771 ri1007 ql tx4888 f1 b0 fs28 fs16 fs28 f0 b fs28 Category Name: b0 fs28 f1 MiscColorExtensions fs16 s10 fs16 fs28 f0 b fs28 Declared In: b0 fs28 f1 NSUserDefaults+MiscColorExtensions.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 These are extensions to the NSUserDefaults class which can handle additional non-NSPPL compliant object values. The propalby most wanted is easy NSColor support. 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 -} setColor:forKey: {f3 -} colorForKey: 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 colorForKey: s20 li3249 fi-1132 fi-756 f1 b0 fs28 {f3 -} (NSColor *)b colorForKey:b0 (NSString *)i defaultNamei0 b b0 pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 fs16 fs28 Invokes b stringForKey:b0 with key i defaultNamei0 and uses the retrieved string to recreate the color object. This method uses NSColors b colorWithStringRepresentation:b0 method which has to ensure that decoding of NSColor sublasses is handled properly. fs16 fs28 pard s19 li2493 fi-376 ri1007 ql f0 fs28 fs16 fs29 b setColor:forKey: s20 li3249 fi-1132 fi-756 f1 b0 fs28 {f3 -} (void)b setColor:b0 (NSColor *)i aColori0 b forKey:b0 (NSString *)i defaultNamei0 b b0 pard s0 li2116 fi0 ri1007 ql tx2494 tx2872 tx3250 fs16 fs28 Uses b setObject:forKey:b0 to set the string value return by i aColori0 's b stringRepresentationb0 method. }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.