use crate::foundation::NSUInteger;
#[derive(Copy, Clone, Debug)]
pub enum PrintResponse {
Cancelled,
Success,
Failure,
ReplyLater
}
impl From<PrintResponse> for NSUInteger {
fn from(response: PrintResponse) -> NSUInteger {
match response {
PrintResponse::Cancelled => 0,
PrintResponse::Success => 1,
PrintResponse::Failure => 3,
PrintResponse::ReplyLater => 2
}
}
}