Re: Programmatically adding an NSTextField to an NSTextView
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.