Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
void local fn DoIt
|
||||
CFDictionaryRef dict1 = fn DictionaryWithObjects( @"Alpha", @"A", @"Bravo", @"B", @"Charlie", @"C", @"Delta", @"D", NULL )
|
||||
|
||||
CFDictionaryRef dict2 = @{@"A":@"Alpha", @"B":@"Bravo", @"C":@"Charlie", @"D":@"Delta"}
|
||||
|
||||
CFMutableDictionaryRef dict3 = fn MutableDictionaryWithCapacity(0)
|
||||
MutableDictionarySetObjectForKey( dict3, @"Alpha", @"A" )
|
||||
MutableDictionarySetObjectForKey( dict3, @"Bravo", @"B" )
|
||||
MutableDictionarySetObjectForKey( dict3, @"Charlie", @"C" )
|
||||
MutableDictionarySetObjectForKey( dict3, @"Delta", @"D" )
|
||||
|
||||
CFMutableDictionaryRef dict4 = fn MutableDictionaryWithDictionary( @{@"A":@"Alpha", @"B":@"Bravo", @"C":@"Charlie", @"D":@"Delta"} )
|
||||
|
||||
print fn DictionaryObjectForKey( dict1, @"A" )
|
||||
print dict1[@"B"]
|
||||
print dict2[@"C"]
|
||||
print dict3[@"D"]
|
||||
print dict4
|
||||
end fn
|
||||
|
||||
fn DoIt
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue