Files
cappuccino/Foundation
Aparajita Fishman 471641c228 Fixed: subviews in cib did not receive view(Will/Did)MoveToSuperview:
In Cocoa, viewWillMoveToSuperview: and viewDidMoveToSuperview: are called when views are instantiated from code or from a nib.

Previously in Cappuccino, when a view was instantiated from a cib, the _subviews of the view were directly set from the decoded subview array. This short-circuited all of the normal notifications a view receives when added to a superview, including viewWillMoveToSuperview: and viewDidMoveToSuperview:. As a result, some views that override these methods, such as CPSearchField, were not set up correctly when instantiated from a cib.

With this commit, subviews instantiated from a cib are manually added to their superview, thus ensuring they go through the same cycle as views instantiated from code, and ensuring that viewWillMoveToSuperview: and viewDidMoveToSuperview: are called.

Closes #1699
2013-02-25 20:09:18 -05:00
..
2013-02-25 18:27:44 +00:00
2012-07-17 15:10:58 -07:00
2013-02-03 08:39:30 +08:00
2013-02-25 18:27:44 +00:00
2010-12-26 01:34:37 +02:00
2012-05-13 14:26:19 +01:00
2010-12-26 01:34:37 +02:00
2013-02-02 11:14:45 +00:00
2010-12-26 01:34:37 +02:00
2013-01-20 19:10:41 +00:00
2011-05-04 19:07:06 +02:00
2010-12-26 01:34:37 +02:00
2010-12-26 01:34:37 +02:00
2011-11-23 00:28:27 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2010-12-26 01:34:37 +02:00
2010-12-26 01:34:37 +02:00
2013-01-25 19:19:01 +08:00
2012-07-08 21:26:47 +01:00
2012-07-08 21:26:47 +01:00
2013-01-23 15:45:08 +07:00
2013-01-23 15:45:08 +07:00
2010-12-16 19:16:33 +02:00
2010-12-16 19:16:33 +02:00
2008-09-04 03:52:20 -07:00
2012-07-13 01:28:38 +01:00
2011-05-26 23:59:08 -04:00