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

Fix visibility for mac. #6

Merged
merged 1 commit into from Aug 16, 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

Fix visibility for mac.

  • Loading branch information
metajack committed Aug 16, 2013
commit 3b83da643750380b86aa98e7bcca3f6cc0abb1f2
@@ -51,7 +51,7 @@ impl AlertMethods for Alert {
}
}

pub fn add_prompt(&mut self) {
fn add_prompt(&mut self) {
unsafe {
// [NSTextField alloc]
let class = objc_getClass(transmute(&"NSTextField"[0]));
@@ -78,14 +78,14 @@ impl AlertMethods for Alert {
}
}

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

pub fn prompt_value(&self) -> ~str {
fn prompt_value(&self) -> ~str {
unsafe {
// [nstextfield stringValue]
let selector = sel_registerName(transmute(&"stringValue"[0]));
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.