Re: NSWindow and NSImageView
Re: NSWindow and NSImageView
- Subject: Re: NSWindow and NSImageView
- From: Andy Lee <email@hidden>
- Date: Thu, 20 Oct 2005 13:50:07 -0400
On Oct 20, 2005, at 1:30 PM, Francesca Placido wrote:
[myView addSubview:myImage];
[myWindow setContentView:myView]
???
I've not tested it, but do you think It could be right???
I recommend you test it and see! :) But yes, I think that will do
it. Or you could try
[[myWindow contentView] addSubview:myImage];
(because by default a window has a plain NSView already as its
content view) or even
[myWindow setContentView:myImage];
But the last option is no good if you might want to put other things
in the window.
--Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden