Re: addsubview
Re: addsubview
- Subject: Re: addsubview
- From: koko <email@hidden>
- Date: Fri, 20 Apr 2012 07:53:29 -0600
Good questions.
As an experiment, in the same method in which I create and add the subview which is not displaying I create an NSButton using the same frame as for the subview. I add the NSButton and it displays.
So, I am sure the NSTabviewItem view is correct.
As to the subview, I added a delegate method for when the tab is clicked. Breaking there and dumping the subviews I see my subview in the view hierarchy.
This seems such a trivial task that I am quite puzzled.
-koko
On Apr 19, 2012, at 9:27 PM, Keary Suska wrote:
> On Apr 19, 2012, at 5:34 PM, koko wrote:
>
>> I get the view for an NSTabViewItem.
>>
>> To this view I add a subview.
>
> How do you (in code) identify the correct NSTabViewItem, retrieve the view and add the subview? What is the frame of the subview?
>
>> In the debugger displaying the subviews of view I see the subview.
>
> How do you know it is the correct/same subview?
>
>> When the NSTabViewItem displays the subview is not being shown. The view does display.
>>
>> The subview is not set hidden in IB.
>>
>> Why would I not see the subview?
>
>
>
> Keary Suska
> Esoteritech, Inc.
> "Demystifying technology for your home or business"
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden