Re: shouldSelectTabViewItem called twice
Re: shouldSelectTabViewItem called twice
- Subject: Re: shouldSelectTabViewItem called twice
- From: Frode <email@hidden>
- Date: Tue, 27 Jun 2006 11:13:03 +0200
Part 2 of 3
STEPS TO REPRODUCE THE BEHAVIOUR
1. Create a new Cocoa Document Application
2. In Interface Builder, create a NSTabView
3. Create a NSButton checkbox in the first pane. Set its text to
"Lock and don't allow switching".
4. Create a previous and next button. Place them outside the tab-view
of course.
5. Connect NSTabView's delegate outlet to the MyDocument
6. Create the following outlets for MyDocument and connect them to
their respective objects
• checkbox1 (connect to the check box in step 3)
• previousButton (connect to the previous button in step 4)
• nextButton (connect to the next button in step 4)
• mainWindow (connect to the NSWindow)
7. Connect the following actions
• NSTabView's action selectPreviousTabViewItem to the previous
button
• NSTabView's action selectNextTabViewItem to the next button
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden