• 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
NSTabView help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTabView help


  • Subject: NSTabView help
  • From: Silicon <email@hidden>
  • Date: Sat, 24 Feb 2007 09:45:27 +0000

I want to add the tabViewItem to the tabView dynamically.
My code seems like this:
myTa    myTabView = [[NSTabView alloc] init];
[myTabView setTabViewType:NSTopTabsBezelBorder];
	[myWindow setContentView:myTabView];

Then I want to add a tabViewItem to myTabView:
                    currentTabViewItem =[[NSTabViewItem init]alloc];
	[myTabView insertTabViewItem:currentTabViewItem atIndex:0];

Just after that , my application crashed. Can anyone tell what goes wrong?
Thank you for your help.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: NSTabView help
      • From: email@hidden
  • Prev by Date: Re: NSTableView with LARGE dataset
  • Next by Date: Re: NSTabView help
  • Previous by thread: Can't append Spotlight Comments after -writeToFile:atomically
  • Next by thread: Re: NSTabView help
  • Index(es):
    • Date
    • Thread