Merge pull request #325 from camjackson/master

Fix compilation by replacing "range" with ".." syntax in cocoa/mod.rs
This commit is contained in:
tomaka 2015-03-25 06:13:54 +01:00
commit d0dad79d4c

View file

@ -419,7 +419,7 @@ impl Window {
let count: NSUInteger = msg_send()(screens, selector("count")); let count: NSUInteger = msg_send()(screens, selector("count"));
let key = IdRef::new(NSString::alloc(nil).init_str("NSScreenNumber")); let key = IdRef::new(NSString::alloc(nil).init_str("NSScreenNumber"));
let mut matching_screen: Option<id> = None; let mut matching_screen: Option<id> = None;
for i in range(0, count) { for i in (0..count) {
let screen = msg_send()(screens, selector("objectAtIndex:"), i as NSUInteger); let screen = msg_send()(screens, selector("objectAtIndex:"), i as NSUInteger);
let device_description = NSScreen::deviceDescription(screen); let device_description = NSScreen::deviceDescription(screen);
let value = msg_send()(device_description, selector("objectForKey:"), *key); let value = msg_send()(device_description, selector("objectForKey:"), *key);