Re: NSTabView
Re: NSTabView
- Subject: Re: NSTabView
- From: Graham Cox <email@hidden>
- Date: Thu, 12 Sep 2013 17:43:57 +0200
On 12/09/2013, at 5:35 PM, Graham Cox <email@hidden> wrote:
> The NSTabViewItem is NOT the same object as the view it hosts, so your conditionals will always return false. [NSTabViewItem view] is the object you're looking for.
>
> That said, the rest of your code (which is rather difficult to read) does not appear to be setting the view - or I may have missed it, or it might be being done in a method not shown here.
>
Sorry, I mis-spoke. I didn't notice your outlets were for the tab view items, not the views…
I assumed they were the views without carefully reading because that's the obvious way to do it. I can't see a good reason to keep outlets to the tab view items, that seems to be an implementation detail that is clouding the bigger picture - how to know which view is being shown.
--Graham
_______________________________________________
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