Re: Multiples Views
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