creating a nsview without IB
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