Rightpoint / RZImport

Automatic importing of data from NSDictionary to Cocoa objects
Other
18 stars 6 forks source link

Provide ability to handle unhandled key #31

Closed KingOfBrian closed 8 years ago

KingOfBrian commented 9 years ago

I have a .... strange API, where I may not know all of the keys I need to import before importing, and I need to return all values I received. This is a simple change to allow unhandled keys to be tracked in the object.

I get this is a bit weird, but I'm not sure how else to get this behavior without much pain.

Thoughts @nbonatsakis / @arrouse ?

ZevEisenberg commented 9 years ago

@KingOfBrian is the +rzi_foundUnhandledValue:forKey: method intended for you to override? If so, it should go in the header.

KingOfBrian commented 9 years ago

I left it out because it felt like it would be confusing being that it's such a weird use case.