Files
cappuccino/AppKit/Cib
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
..
2012-04-12 12:09:24 -04:00
2013-01-23 15:48:55 +07:00
2013-01-23 15:48:55 +07:00
2013-01-23 15:48:55 +07:00
2010-11-19 00:07:37 -03:00
2013-02-12 22:29:31 -05:00
2012-05-24 17:10:46 +01:00
2013-02-25 18:27:44 +00:00