• 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
Re: Programmatically adding an NSTextField to an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically adding an NSTextField to an NSTextView


  • Subject: Re: Programmatically adding an NSTextField to an NSTextView
  • From: Nathan Day <email@hidden>
  • Date: Sun, 9 Feb 2003 17:16:39 +1030

removeFromSuperview will release the view, so you will have to retain it before hand and then release it after adding it to a different view.

On Sunday, February 9, 2003, at 03:47 PM, Keith Bauer wrote:

[textField removeFromSuperview];
[textView addSubview: textField];
[textField setFrame:cellFrame];

Well, I've solved my problem. The problem was the removeFromSuperview call. If I remove that, everything works as expected.

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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: Programmatically adding an NSTextField to an NSTextView
      • From: Keith Bauer <email@hidden>
References: 
 >Re: Programmatically adding an NSTextField to an NSTextView (From: Keith Bauer <email@hidden>)

  • Prev by Date: Re: Weird problem with array declaration in action
  • Next by Date: Re: Programmatically adding an NSTextField to an NSTextView
  • Previous by thread: Re: Programmatically adding an NSTextField to an NSTextView
  • Next by thread: Re: Programmatically adding an NSTextField to an NSTextView
  • Index(es):
    • Date
    • Thread