Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for language changes #9

Merged
merged 1 commit into from Aug 29, 2013
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Update for language changes

  • Loading branch information
brson committed Aug 29, 2013
commit 6fbd1581ae7baede892c543c05f3509ded1ce8ed
@@ -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,13 +80,15 @@ impl AlertMethods for Alert {
}
}

#[fixed_stack_segment]
fn run(&self) {
unsafe {
let selector = sel_registerName(transmute(&"runModal"[0]));
base::msg_send_void(transmute(self.nsalert), selector)
}
}

#[fixed_stack_segment]
fn prompt_value(&self) -> ~str {
unsafe {
// [nstextfield stringValue]
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.