Duh!  Thanks for hitting me in the head ... When the parent view is hidden, all 
the stuff contained in it will be invisible as well

-koko


On Apr 26, 2011, at 8:39 PM, Evadne Wu wrote:

> When the parent view is hidden, all the stuff contained in it will be 
> invisible as well.  So you might like to try sibling views instead of 
> hierarchical views?
> 
> -ev
> 
> On Apr 27, 2011, at 10:35, koko wrote:
> 
>> I though I was following a good example ... I do not get the results I 
>> expect.
>> 
>> I have a view controller.
>> 
>> To this I have added a second view and wired it up through its IBOutlet.
>> 
>> In viewDidLoad:
>> 
>>      [[self view] addSubview:m_projectSelector];
>>      
>>      m_projectSelector.hidden=NO;
>>      
>>      [super viewDidLoad];
>> 
>> and I see the subview,  as expected
>> 
>> In viewDidLoad:
>> 
>>      [[self view] addSubview:m_projectSelector];
>>      
>>      m_projectSelector.hidden=YES;
>>      
>>      [super viewDidLoad];
>> 
>> and I see the parent view, as expected
>> 
>> I click a button in the parent and in the action set parent hidden to YES 
>> and subview's hidden to NO
>> 
>> I do not see the sub view, just a blank screen.
>> 
>> I thought this would en easy and just work.
>> 
>> What am I missing?
>> 
>> -koko
>> 
>> 
>> 
>> _______________________________________________
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> 
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>> 
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/cocoa-dev/ev%40monoceroi.com
>> 
>> This email sent to e...@monoceroi.com
> 
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to