NSSplitView
NSSplitView
- Subject: NSSplitView
- From: Chris Ross <email@hidden>
- Date: Thu, 29 Aug 2002 09:57:03 +0100
Hi,
I wish to create [at run time] NSSplitView and populate them each
with a 'copy' of the view I created in IB.
This is the code I did do:
NSView *topPane = [paneToCopy copy];
NSView *bottomPane = [paneToCopy copy];
NSSplitView *splitview = [[NSSplitView alloc] init];
[topPane retain];
[bottomPane retain];
[splitview addSubview:topPane];
[splitview addSubview:bottomPane];
[mainView addSubview:splitview];
But this doesn't work because NSView doesn't implement copyWithZone:
Any ideas how I can do this?
| will also need to be able to access the controls within view - normally
I would use IB and the outlets - but how do I do this in this situation ?
Do I need to build the interface by hand ?
Regards,
Chris
--
Chris Ross - email@hidden -
http://www.darkrock.co.uk
Ferite Programming Language -
http://www.ferite.org
_______________________________________________
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.