• 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
NSSplitView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Setting up CVS Server in 10.2
  • Next by Date: Re: Subject: Re: NSTask _ NSFileHandle _ NSTexField
  • Previous by thread: gcc 3.1 produce slower code?
  • Next by thread: Re: NSSplitView
  • Index(es):
    • Date
    • Thread