Re: Problems with NSTabView and Key chain after adding and removing Tabs
Re: Problems with NSTabView and Key chain after adding and removing Tabs
- Subject: Re: Problems with NSTabView and Key chain after adding and removing Tabs
- From: Pontus Hulin <email@hidden>
- Date: Tue, 07 Aug 2007 16:15:48 +0200
Hi Andrew
I tried that, but I did not get it to work, so for the moment im
stinging to my "quick-and-dirty solution".
Best Regards
/ Pontus
Andrew Merenbach skrev:
Hi,
Hi, Pontus,
Have you considered connecting each text field to the next in
Interface Builder with the "nextKeyView" outlet? That should do what
you want, if I'm understanding your problem correctly.
Cheers,
Andrew
On Aug 6, 2007, at 7:31 AM, Pontus Hulin wrote:
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
_______________________________________________
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