• 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: Checking when tabs are selected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking when tabs are selected


  • Subject: Re: Checking when tabs are selected
  • From: "Clark S. Cox III" <email@hidden>
  • Date: Wed, 18 Jun 2003 11:55:04 -0400

On Tuesday, Jun 17, 2003, at 16:56 US/Eastern, Chad Armstrong wrote:

How is it possible to check when an application with several tabs (NSTabView or NSTabViewItem) have been selected so the application can respond, such as resizing the window? Do I need to deal with one of the built in responders?


Read the documentation:

file:///System/Library/Frameworks/AppKit.framework/Versions/C/ Resources/English.lproj/Documentation/Reference/ObjC_classic/Classes/ NSTabView.html

Basically, you implement:

- (void)tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem *)tabViewItem
{
}

on the NSTabView's delegate. It will be called whenever a tab is selected.




--
http://homepage.mac.com/clarkcox3/
email@hidden
Clark S. Cox, III
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Checking when tabs are selected (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: Using drag-n-drop in an NSOpenPanel
  • Next by Date: Re: Getting notified when my cell is hidden in NSOutlineView
  • Previous by thread: Re: Checking when tabs are selected
  • Next by thread: Re: CDEF's in Cocoa
  • Index(es):
    • Date
    • Thread