• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiples Views


  • Subject: Re: Multiples Views
  • From: Amilcar Meneses Viveros <email@hidden>
  • Date: Tue, 13 Nov 2001 17:33:48 -0600 (CST)

I had test
[[boxN contentView] retain]
in the "awakeFromNib" method, and in
[self setPagToView: [[infoPetriNet contentView] retain]];
in the "chooseBoxN" method... but 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


  • Prev by Date: Making SEARCH work for you... Re: Support for split panes?
  • Next by Date: NSWindowController that closes itself
  • Previous by thread: Multiples Views
  • Next by thread: Re: Multiples Views (fwd)
  • Index(es):
    • Date
    • Thread