views:

144

answers:

1

I am trying to load nib at run time. I am using Button control & binding it to one method & outlet.

But problem is that when i load it run time it not display button.

Also When i click on position where i placed button in interface builder, it executes binded method. I don't understand what is happening ?

A: 

Found the exact problem. I am adding view like as below

  • [[NSWindow contentview] addsubview:newView];

This statement create so many problem. So i finally add one view & inside that view, insert one more view. Then replacing that view with other view. It works so fine.

Hiren Gujarati