• 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
Adding a tabviewitem with code.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding a tabviewitem with code.


  • Subject: Adding a tabviewitem with code.
  • From: Stéphane Sudre <email@hidden>
  • Date: Fri, 11 Jul 2003 18:36:09 +0200

There's something I must be missing.

I have an outlet to a NSTabView with one NSTabViewItem (identifier: 3, label: @"Tab") created in IB.

I want to add 2 NSTabViewItem to this NSTabView.

I'm using this code:

tRect=[IBTabView_ contentRect];
tRect.origin=NSZeroPoint;

nView=[[NSView alloc] initWithFrame:tRect];

tTabViewItem=[[NSTabViewItem alloc] initWithIdentifier:@"1"];
[tTabViewItem setLabel:@"Tab"];
[tTabViewItem setView:nView];

[IBTabView_ addTabViewItem:tTabViewItem];

nView=[[NSView alloc] initWithFrame:tRect];

tTabViewItem=[[NSTabViewItem alloc] initWithIdentifier:@"2"];
[tTabViewItem setLabel:@"View"];
[tTabViewItem setView:nView];

[IBTabView_ addTabViewItem:tTabViewItem];

The result is that I still have only one NSTabViewItem "in" my NSTabView.

Any idea?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Print Operation Name
  • Next by Date: Temperature Converter example
  • Previous by thread: Re: Print Operation Name
  • Next by thread: Temperature Converter example
  • Index(es):
    • Date
    • Thread