Files
core-foundation-rs/test.rs
T
Patrick Walton dfec7c491f Add CFNumbers
2012-08-30 19:14:36 -07:00

19 lines
569 B
Rust

use base::CFTypeOps;
use boolean::CFBoolean;
use number::CFNumber;
use dictionary::CFDictionary;
use string::CFString;
fn main() {
/*let n = CFNumber::new_number(42 as i32);
io::println(fmt!("%d", (&n).retain_count() as int));
(&n).show();*/
let d = CFDictionary::new_dictionary([
(CFString::new_static("Foo"), (&CFString::new_static("Bar")).as_type()),
(CFString::new_static("Baz"), (&CFBoolean::true_value()).as_type()),
(CFString::new_static("Boo"), (&CFNumber::new_number(42 as i32)).as_type()),
]);
(&d).show();
}