[Pythonmac-SIG] Getting None in KVC objectInKeyAtIndex_
Johan Rydberg
johan.rydberg at gmail.com
Mon Apr 13 11:10:10 CEST 2009
David Hain skrev:
> I'm trying to use bindings to hook up my model to an NSOutlineView, and
> I'm attempting to use the countOf<Key>, objectIn<Key>AtIndex_ methods to
> do the KVC half. The problem I'm running into is that I'm getting None
> for the index argument, and I can't figure out what to do with that. The
> reference materials[1] say that the method corresponds to the NSArray
> objectAtIndex: method, which takes an NSUInteger, but doesn't mention
> anything about null or nil or whatever it is in objc-land.
Maybe this will help you:
http://jimmatthews.wordpress.com/2007/07/12/objcselector-and-objcsignature/
More information about the Pythonmac-SIG
mailing list