• 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: Multiples Views (fwd)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiples Views (fwd)


  • Subject: Re: Multiples Views (fwd)
  • From: Amilcar Meneses Viveros <email@hidden>
  • Date: Wed, 14 Nov 2001 15:40:23 -0600 (CST)

Thanks!

Now the application run very well. And if I connect whole box like
contents of the sourse box, i can display many objects!!!!

Thanks for you help!!

Atte
Amilcar

"...grabe en la penca de un maguey tu nombre..."

On Tue, 13 Nov 2001, Charles Bennett wrote:

> Interesting. I created a similar app just now, to test
> and I see the same thing. However, If I connect to the contents of the
> source box (and do the retain) then [mainBox setContentView:boxNContentView]
> works just fine. there must be something with getting the content view of boxN
> that is causing the problem.
>
> I coded up an an example at http://www.powerguardian.com/osx
>
> look for SwapViews.tar
>
> chuck
>
> Amilcar Meneses Viveros wrote:
> >
> > ---------- Forwarded message ----------
> > Date: Tue, 13 Nov 2001 15:54:37 -0600 (CST)
> > From: Amilcar Meneses Viveros <email@hidden>
> > To: Charles Bennett <email@hidden>
> > Cc: email@hidden
> > Subject: Re: Multiples Views
> >
> > I had test
> > [[boxN contentView] retain]
> > in the "awakeFromNib" method, and in
> > [self setPagToView: [[infoPetriNet contentView] retain]];
> > in the "chooseBoxN" method, the behaviour is the same
> >
> > ...I have not idea
> >
> > > Sure.. the setContentView autoreleases the old view and, since they have a retain count of 1,
> > > they drop to zero and are gone..
> > >
> > > If you retain the view before you give it to the setContentView
> > > then it's retain count will be 2
> > >
> > > before you do anything with the views try this for each box
> > > perhaps in awakeFromNib
> > >
> > > [[boxN contentView] retain] and see what happens.
> > >
> > >
> > > chuck
> > _______________________________________________
> > cocoa-dev mailing list
> > email@hidden
> > http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Prev by Date: RE: Dragging from NSTableView...
  • Next by Date: Re: NSWorkspaceDidLaunchApplicationNotification
  • Previous by thread: Re: Multiples Views (fwd)
  • Next by thread: Support for split panes?
  • Index(es):
    • Date
    • Thread