From 6fbd1581ae7baede892c543c05f3509ded1ce8ed Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 29 Aug 2013 15:35:33 -0700 Subject: [PATCH] Update for language changes --- macos.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/macos.rs b/macos.rs index 045e036..035e7d8 100644 --- a/macos.rs +++ b/macos.rs @@ -28,6 +28,7 @@ pub struct Alert { impl AlertMethods for Alert { /// Creates a new alert with an OK and Cancel button. + #[fixed_stack_segment] fn new(message_text: &str) -> Alert { unsafe { let alert_string = CFString::new(message_text); @@ -51,6 +52,7 @@ impl AlertMethods for Alert { } } + #[fixed_stack_segment] fn add_prompt(&mut self) { unsafe { // [NSTextField alloc] @@ -78,6 +80,7 @@ impl AlertMethods for Alert { } } + #[fixed_stack_segment] fn run(&self) { unsafe { let selector = sel_registerName(transmute(&"runModal"[0])); @@ -85,6 +88,7 @@ impl AlertMethods for Alert { } } + #[fixed_stack_segment] fn prompt_value(&self) -> ~str { unsafe { // [nstextfield stringValue]