Make SCStreamOutput protocol accessible in Rust

This commit is contained in:
Nathan Sobo 2022-08-29 11:15:49 -06:00 committed by Antonio Scandurra
parent 45519cdd27
commit d91f26d016
2 changed files with 2 additions and 9 deletions

View file

@ -33,16 +33,7 @@ fn main() {
}]);
unsafe {
let block = ConcreteBlock::new(move |content: id, error: id| {
println!(
"got response with shareable content {:?} {:?} {:?}",
content,
error,
string_from_objc(msg_send![error, localizedDescription]),
);
let displays: id = msg_send![content, displays];
if let Some(display) = (0..displays.count())
.map(|ix| displays.objectAtIndex(ix))