Files
cappuccino/AppKit
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
2013-02-23 13:53:20 -05:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-01-23 15:48:56 +07:00
2013-02-25 18:27:44 +00:00
2013-01-24 19:18:39 +08:00
2013-01-23 15:48:55 +07:00
2013-01-23 15:48:55 +07:00
2012-07-13 01:28:38 +01:00
2013-02-25 18:27:44 +00:00
2013-01-27 10:32:23 +08:00
2013-02-23 13:53:20 -05:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-01-23 15:48:55 +07:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-15 21:17:39 -05:00
2013-02-25 18:27:44 +00:00
2013-01-08 18:07:15 +00:00
2013-02-20 03:00:20 -05:00
2013-01-23 15:48:55 +07:00
2013-01-24 19:18:39 +08:00
2013-01-24 19:18:39 +08:00
2010-12-09 13:00:52 -08:00
2013-02-23 13:53:20 -05:00
2013-01-24 19:18:39 +08:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-23 00:01:19 -05:00
2013-01-23 15:48:55 +07:00
2011-03-25 22:52:57 -04:00
2011-04-03 17:45:53 -04:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-06 16:36:49 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-01-23 15:48:55 +07:00
2013-01-23 15:48:55 +07:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-01-23 15:48:56 +07:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2010-10-05 15:54:25 -07:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-01-11 00:48:18 +00:00
2013-01-24 19:18:39 +08:00
2013-02-25 18:27:44 +00:00
2013-02-25 18:27:44 +00:00
2013-02-15 23:47:01 -05:00
2013-02-25 18:27:44 +00:00
2011-10-25 14:33:47 +02:00