Problems with NSTabView and Key chain after adding and removing Tabs
Problems with NSTabView and Key chain after adding and removing Tabs
- Subject: Problems with NSTabView and Key chain after adding and removing Tabs
- From: Pontus Hulin <email@hidden>
- Date: Mon, 06 Aug 2007 16:31:44 +0200
Hello List
Im using XCode 2.4.1 on an Intel mac developing for 10.3.x
Im have some trouble with the tab key chain after programatically adding
tabs to a NSTabView item.
I add and remove tabs from my NSTabView using:
// add
NSTabViewItem *item = [[NSTabViewItem alloc] init];
[item setLabel:newtitle];
[item setIdentifier:key];
[myListController insertTabViewItem:item atIndex:0];
// remove
while ([myListController numberOfTabViewItems] > 1) {
[myListController removeTabViewItem:[myListController
tabViewItemAtIndex:0]];
}
My probles is thatt navigating trough the controls in my window get
messed up. If I navigate using the tab key, it works just fine the first
lap, but after i get to the NSTabView and and one of my added
NSTabViewItem gets focus, after that the tab key chain seems to be
totaly messed up, and I have to click on a control to get back on track.
This does not happen if I select a tab that is put in the list using
Interface builder and is never removed.
I would like to move to 10.4 and use
- setAutorecalculatesKeyViewLoop:TRUE
on my window but the customer still have to support macs running 10.3.x.
Has anyone else experienced this problem and is there a solution?
Best regards
/ Pontus
_______________________________________________
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