#184 ✓invalid
kfieldho

Can't Add Second CPTabViewItem to CPTabView

Reported by kfieldho | December 28th, 2008 @ 01:29 PM

With the latest (.6) Starter Package it does not appear to be possible to add a second CPTabViewItem to a CPTabView.

Essentially if more than one Item is created (note: the second item doesn't have to be added to activate the bug which is...odd) The tabs are created but their contents are not displayed.

I've attached a minimally modified AppController.j file that demonstrates the problem. if the indicated stanza is commented out, the first tab displays correctly, otherwise the bug is activated.

Comments and changes to this ticket

  • Ross Boucher

    Ross Boucher December 29th, 2008 @ 09:28 AM

    Do you know if this code worked before, on 0.5.5, or any previous version of Cappuccino? Or is this the first time you're trying it?

  • kfieldho

    kfieldho December 29th, 2008 @ 09:43 AM

    I'm afraid that this is the first time that I've tried Cappuccino, so I don't know if this was a problem in previous releases.

  • Francisco Tolmasky

    Francisco Tolmasky December 29th, 2008 @ 04:07 PM

    • State changed from “new” to “invalid”

    This seems to actually be a bug in CPWebView. When I take the code and replace the webviews with normals views, as so:

    tab1View = [[CPView alloc] initWithFrame:CGRectMakeZero()]; [tab1View setBackgroundColor:[CPColor redColor]]; //... tab2View = [[CPView alloc] initWithFrame:CGRectMakeZero()]; [tab2View setBackgroundColor:[CPColor blueColor]];

    It works just fine. I'm closing this and opening: #186

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins

People watching this ticket

Attachments

Pages