• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTabView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTabView (From: Joseph Ayers <email@hidden>)
 >Re: NSTabView (From: Graham Cox <email@hidden>)
 >Re: NSTabView (From: Joseph Ayers <email@hidden>)
 >Re: NSTabView (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Analyser reports memory leak… where?
  • Next by Date: Re: Analyser reports memory leak… where?
  • Previous by thread: Re: NSTabView
  • Next by thread: Re: NSTabView
  • Index(es):
    • Date
    • Thread