• 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: Jack Nutting <email@hidden>
  • Date: Fri, 21 Oct 2005 14:17:17 +0200

On 10/21/05, Francesca P <email@hidden> wrote:
> This code is ok. It works.
> But, now I have a new problem.
>
> I want open more istances of my window.
> So I open various window.
> But when I display the new image in the new window, in the first
> window the image disappear.
> This is caused by setContentView that delete the previous view... and
> I've to retain it... I've read it in the documentation.
> But I'm newbie and I don't know how I have to do..

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
 _______________________________________________
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

  • Follow-Ups:
    • Re: NSWindow and NSImageView
      • From: Francesca P <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>)

  • Prev by Date: __attribute__ in Objective-C
  • Next by Date: NSManagedObjectContextObjectsDidChangeNotification
  • Previous by thread: Re: NSWindow and NSImageView
  • Next by thread: Re: NSWindow and NSImageView
  • Index(es):
    • Date
    • Thread