kimura wataru
kimur****@i*****
Sun Dec 10 00:11:09 JST 2006
Hi, There are no descriptions about NSNull value in class references of NSArray and NSMutableArray (except archiving). I suppose using NSNull into NSArray leads unexpected results. http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/Reference/Reference.html http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/Reference/Reference.html http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDictionary_Class/Reference/Reference.html http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSMutableDictionary_Class/Reference/Reference.html On Sat, 9 Dec 2006 13:43:11 +0100, Laurent Sansonetti wrote: > Hi Kimura-san, > > On Dec 9, 2006, at 11:54 AM, kimura wataru wrote: > >> Hi, >> >> RubyCocoa automatically converts Array->NSArray and Hash- >>> NSDictionary. >> But treatment of nil value is different between Ruby and Cocoa. >> > > Good catch! > > However, it looks like NSNull can also be used as NSArray value and > NSDictionary key. Why not always using NSNull? > -- kimura wataru