• 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
Not possible to create tab view from code (Was: NSPro UI clone?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Not possible to create tab view from code (Was: NSPro UI clone?)


  • Subject: Not possible to create tab view from code (Was: NSPro UI clone?)
  • From: j o a r <email@hidden>
  • Date: Mon, 5 Jan 2004 14:20:48 +0100

I do that regularly. What's not working for you?

- (NSTabView *) tabView
{
NSSize mySize = [self frame].size;
NSRect tabViewRect = NSMakeRect(-xOffset, -yOffset, (mySize.width +
(2 * xOffset)), (mySize.height + yOffset));

NSTabView *tabView = [[[NSTabView alloc] initWithFrame:
tabViewRect] autorelease];

[tabView setControlSize: NSSmallControlSize];
[tabView setAutoresizingMask: (NSViewWidthSizable |
NSViewHeightSizable)];
[tabView setMenu: [self contextualMenu]];
[tabView setFont: [NSFont smallSystemFont]];

return tabView;
}

j o a r

On 2004-01-05, at 11.33, Stephane Sudre wrote:

> This reminds me I need to file a bug report on the AppKit because you
> can't create a NSTabView with just code. I thought it was a problem
> with the way I was dealing with the ProKit classes but it's not
> working either with the standard AppKit.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.

  • Follow-Ups:
    • Re: Not possible to create tab view from code (Was: NSPro UI clone?)
      • From: Stephane Sudre <email@hidden>
References: 
 >Re: NSPro UI clone? (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Intercepting JavaScript calls in WebViews
  • Next by Date: Re: Problem Regd. PDF rendering in Quartz( Carbon)
  • Previous by thread: Re: NSPro UI clone?
  • Next by thread: Re: Not possible to create tab view from code (Was: NSPro UI clone?)
  • Index(es):
    • Date
    • Thread