• 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; How to get the current / active tab ..?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTabView; How to get the current / active tab ..?


  • Subject: Re: NSTabView; How to get the current / active tab ..?
  • From: Greg Guerin <email@hidden>
  • Date: Sun, 7 Jun 2009 11:48:22 -0700

Martin Batholdy wrote:

if([tabViewItemX isEqualTo:[tabView tabViewItemAtIndex:0]]){

Don't use isEqualTo: in this situation. Read the docs for isEqualTo:, and compare with the docs for isEqual:.


Use isEqual:, which I suspect will work, or just use == since you're probably interested in actual pointer equality.

  -- GG

_______________________________________________

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


  • Prev by Date: NSTabView; How to get the current / active tab ..?
  • Next by Date: NSMenuItem with CustomView - strange behavior
  • Previous by thread: Re: NSTabView; How to get the current / active tab ..?
  • Next by thread: NSMenuItem with CustomView - strange behavior
  • Index(es):
    • Date
    • Thread