• 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: Problems with NSTabView and Key chain after adding and removing Tabs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Problems with NSTabView and Key chain after adding and removing Tabs (From: Pontus Hulin <email@hidden>)
 >Re: Problems with NSTabView and Key chain after adding and removing Tabs (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: drawing a simple string with NSFont
  • Next by Date: Re: How packages are recognized...
  • Previous by thread: Re: Problems with NSTabView and Key chain after adding and removing Tabs
  • Next by thread: NSSearchField small size
  • Index(es):
    • Date
    • Thread