Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
void local fn DoIt
|
||||
CFDictionaryRef dict = @{@"A":@"Alpha", @"B":@"Bravo", @"C":@"Charlie", @"D":@"Delta"}
|
||||
CFStringRef key
|
||||
|
||||
for key in dict
|
||||
print key, dict[key]
|
||||
next
|
||||
end fn
|
||||
|
||||
fn DoIt
|
||||
|
||||
HandleEvents
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
void local fn MyDictEnumerator( dict as CFDictionaryRef, key as CFTypeRef, obj as CFTypeRef, stp as ^BOOL, userData as ptr )
|
||||
print key, obj
|
||||
end fn
|
||||
|
||||
void local fn DoIt
|
||||
CFDictionaryRef dict = @{@"A":@"Alpha", @"B":@"Bravo", @"C":@"Charlie", @"D":@"Delta"}
|
||||
DictionaryEnumerateKeysAndObjects( dict, @fn MyDictEnumerator, NULL )
|
||||
end fn
|
||||
|
||||
fn DoIt
|
||||
|
||||
HandleEvents
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
void local fn DoIt
|
||||
CFDictionaryRef dict = @{@"A":@"Alpha", @"B":@"Bravo", @"C":@"Charlie", @"D":@"Delta"}
|
||||
CFArrayRef keys = fn DictionaryAllKeys( dict )
|
||||
CFStringRef key
|
||||
|
||||
for key in keys
|
||||
print key, dict[key]
|
||||
next
|
||||
end fn
|
||||
|
||||
fn DoIt
|
||||
|
||||
HandleEvents
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
void local fn DoIt
|
||||
CFDictionaryRef dict = @{@"A":@"Alpha", @"B":@"Bravo", @"C":@"Charlie", @"D":@"Delta"}
|
||||
CFArrayRef values = fn DictionaryAllValues( dict )
|
||||
CFStringRef value
|
||||
|
||||
for value in values
|
||||
print value
|
||||
next
|
||||
end fn
|
||||
|
||||
fn DoIt
|
||||
|
||||
HandleEvents
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
void local fn DoIt
|
||||
CFDictionaryRef dict = @{@"A":@"Alpha", @"B":@"Bravo", @"C":@"Charlie", @"D":@"Delta"}
|
||||
CFStringRef key
|
||||
CFTypeRef obj
|
||||
|
||||
EnumeratorRef keyEnumerator = fn DictionaryKeyEnumerator( dict )
|
||||
key = fn EnumeratorNextObject( keyEnumerator )
|
||||
while ( key )
|
||||
print key,dict[key]
|
||||
key = fn EnumeratorNextObject( keyEnumerator )
|
||||
wend
|
||||
|
||||
print
|
||||
|
||||
EnumeratorRef objectEnumerator = fn DictionaryObjectEnumerator( dict )
|
||||
obj = fn EnumeratorNextObject( objectEnumerator )
|
||||
while ( obj )
|
||||
print obj
|
||||
obj = fn EnumeratorNextObject( objectEnumerator )
|
||||
wend
|
||||
end fn
|
||||
|
||||
fn DoIt
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue