Skip to content
Closed
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
2 changes: 1 addition & 1 deletion examples/pasteboard/nspasteboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn get_text_2(pasteboard: &NSPasteboard) -> Option<Retained<NSString>> {
let obj = objects?.firstObject()?;
// We now have to convert the object into an NSString, which we know it to
// be since that's what we told `readObjectsForClasses:options:` we wanted.
Some(obj.downcast::<NSString>().unwrap())
obj.downcast::<NSString>().ok()
}

pub fn set_text(pasteboard: &NSPasteboard, text: &NSString) {
Expand Down
Loading