Reply to Function returns an empty array but the same function can return a filled NSMenu Thanks for your answer. It took longer than it should but after som rewriting I finally got the program to work as intended. Thank you for your help and guidning and showing the escaping closures. UI Frameworks AppKit Dec ’21