• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSWindow and NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSWindow and NSImageView (From: Francesca P <email@hidden>)
 >Re: NSWindow and NSImageView (From: Andy Lee <email@hidden>)
 >Re: NSWindow and NSImageView (From: Francesca Placido <email@hidden>)
 >Re: NSWindow and NSImageView (From: Andy Lee <email@hidden>)
 >Re: NSWindow and NSImageView (From: Francesca P <email@hidden>)
 >Re: NSWindow and NSImageView (From: Jack Nutting <email@hidden>)

  • Prev by Date: Re: NSManagedObjectContextObjectsDidChangeNotification
  • Next by Date: Re: NSBezierPath containsPoint?
  • Previous by thread: Re: NSWindow and NSImageView
  • Next by thread: tabbing order not respected?
  • Index(es):
    • Date
    • Thread