Re: Selecting Tab Error
Re: Selecting Tab Error
- Subject: Re: Selecting Tab Error
- From: "Clark S. Cox III" <email@hidden>
- Date: Tue, 29 Jul 2003 15:58:06 -0400
On Tuesday, July 29, 2003, at 15:27, Seth Willits wrote:
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSTabView.html#//apple_ref/doc/
uid/20000365/selectLastTabViewItem_
The documentation cites that the NSTabView class has several messages
to select a specific tab, but when building, the compiler warns that
the object does not respond to any of the messages I choose.
My NSTabView is an IBOutlet defined as:
IBOutlet NSTabView * tabPanel;
And I try to select the tab with:
[tabPanel selectLastTabViewItem];
Am I missing something?
Yes, the parameter to selectLastTabViewItem: (notice the colon). Try
this:
[tabPanel selectLastTabViewItem: nil];
--
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.