On 12/09/2013, at 5:35 PM, Graham Cox <graham....@bigpond.com> 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 (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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com