Here’s what I want to do: in response to a user action (say “on click”) a new window shows up with an image view as it’s content view that I can load an image onto.
set m to make new window at the end of items
set n to make new image view at the end of items
set m's content view to n
--load image... set n's image...
show m
or
set m to make new window at the end of items
set n to make new image view at the end of items
call method "setContentView:" of m with parameter n
--load image... set n's image...
show m
an NSImageView inherits from NSView so this should work right?