• 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
creating a nsview without IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

creating a nsview without IB


  • Subject: creating a nsview without IB
  • From: Andrea Salomoni <email@hidden>
  • Date: Mon, 19 Dec 2005 19:14:38 +0100

Hi to all,

I need to create a NSView inside a new NSTabViewItem created without IB.
The NSView must be resized as the window (as I can do using IB).
I wrote something like this:

int a = [theTabView indexOfTabViewItemWithIdentifier:aNick];
if (a == NSNotFound)
{
NSLog (@"create:%@", aMess);

id * lastTab;
NSTabViewItem * thePvtTab = [[NSTabViewItem alloc] initWithIdentifier:aNick];
[theTabView addTabViewItem:thePvtTab];
[thePvtTab setLabel:aNick];

_allMyViews = [[NSMutableArray alloc] init];
// setting up interface
theChatView = [[privateChat alloc]init];
[[theChatView mainView] setFrame:[placeholder bounds]];
[[theChatView mainView] setFrameOrigin:NSZeroPoint];
[placeholder addSubview:[theChatView mainView]];
[_allMyViews addObject:theChatView];
[privateChat release];


}
else
{
/////
}
The problem is placeholder outlet that I cannot use, because the NSView (placeholder) must be created without IB!

Thank you all for support!
Andrea

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: creating a nsview without IB
      • From: Daniel Jalkut <email@hidden>
    • Re: creating a nsview without IB
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: connecting a NSButtonCell in an outline view
  • Next by Date: NSBundle dynamic loading problem
  • Previous by thread: Re: connecting a NSButtonCell in an outline view
  • Next by thread: Re: creating a nsview without IB
  • Index(es):
    • Date
    • Thread