Re: NSWindow and NSImageView
Re: NSWindow and NSImageView
- Subject: Re: NSWindow and NSImageView
- From: Francesca P <email@hidden>
- Date: Fri, 21 Oct 2005 15:12:48 +0200
That's a conquence of the way views work. An instance of NSView can
only be "inside" one other view; If view X is a subview of view Y,
and then you put view X inside of view Z, it will first remove itself
from view Y.
For what you want to do, you'll need to create a new NSImageView for
each new NSWindow you create.
--
// jack
// http://www.nuthole.com
Thanks!
But, I create a window when I press a button.
How can I create different views??
In the code of the action I set the new window and set image...
I think I have to create new views, but how can I create different
views? With random names?????
I works with php, and I think to this code but I think it is not
right for cocoa:
int i;
i=0;
NSImageView *immaginelargeCat[i]; -> where i is 0 then 1 then 2 etc
etc.. so are different NSview
i++;
OBviously it doesn't work.
How can I assign different names???
Thanks...
_______________________________________________
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