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

duplicating NSTextView


  • Subject: duplicating NSTextView
  • From: Fred Klein <email@hidden>
  • Date: Fri, 25 Jul 2003 10:12:32 +0200

Hi

I am new to Cocoa. I am trying to duplicate programaticaly an NSTextView in
my Window.
Here's my code, that obviously doesn't work:

- (IBAction)addSet:(id)sender
{
NSTextView *newTextView;
NSRect frameRect;
frameRect = [prototypeView frame];
frameRect = NSOffsetRect(frameRect, 0.0f, 20.0f);
newTextView = [[NSTextView alloc] initWithFrame:frameRect];
[[prototypeView superview] addSubview:newTextView];
[newTextView setNeedsDisplay:YES];
}

Help warmly appreciated in advance
Fred
_______________________________________________
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: duplicating NSTextView
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: NSPopupMenuButton represented object equivalence
  • Next by Date: working with font manager
  • Previous by thread: NSPopupMenuButton represented object equivalence
  • Next by thread: Re: duplicating NSTextView
  • Index(es):
    • Date
    • Thread