Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cocoa/src/appkit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -679,12 +679,18 @@ pub trait NSRunningApplication: Sized {
runningApplicationWithProcessIdentifier: pid
]
}

unsafe fn processIdentifier(self) -> libc::pid_t;
}

impl NSRunningApplication for id {
unsafe fn activateWithOptions_(self, options: NSApplicationActivationOptions) -> BOOL {
msg_send![self, activateWithOptions: options as NSUInteger]
}

unsafe fn processIdentifier(self) -> libc::pid_t {
msg_send![self, processIdentifier]
}
}

pub trait NSPasteboard: Sized {
Expand Down
Loading