Files
cappuccino/AppKit
Aparajita Fishman 8c811ba9ca Fixed: instantiating a cib with no owner would generate nil warning
Previously, when a view-based table:

- Had no delegate.
- Used bindings for its data source, thus obviating the need for makeViewWithIdentifier:owner:.

it would eventually call CPCib -instantiateCibWithOwner:topLevelObjects: with a nil owner (the nil table delegate). This method would try to construct a dictionary with the nil owner, which would generate a deprecation warning, and will in the future fail altogether.

In Cocoa, this is exactly what happens, the owner is nil. And the documentation for -instantiateNibWithOwner:topLevelObjects: clearly states that the owner may be nil.

This commit only adds the owner to the name table dictionary if the owner is non-nil. Since objectForKey: with a non-existent key returns nil, this is the same as storing nil for that key.
2013-03-24 19:46:53 -04:00
..
2013-01-23 15:48:56 +07: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-25 18:27:44 +00:00
2013-01-23 15:48:55 +07:00
2013-02-15 21:17:39 -05: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
2010-12-09 13:00:52 -08:00
2013-03-14 23:49:14 -04:00
2013-01-24 19:18:39 +08: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
2013-02-06 16:36:49 +00:00
2013-01-23 15:48:55 +07:00
2013-01-23 15:48:55 +07:00
2013-01-23 15:48:56 +07:00
2010-10-05 15:54:25 -07: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-27 09:07:21 -05:00
2013-03-06 10:19:26 -05:00
2009-11-02 15:59:42 -08:00