Re: [Pyobjc-dev] Re: Making List<->Array bridging transparent
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2002-11-09 18:27:09
|
Right -- and we absolutely must preserve the class hierarchy. That is, if something is to be used transparently as an array on the ObjC side of the bridge, it must be a subclass of NSArray. Many things do 'isKindOfClass:' style tests to figure out what kind of collection/data they are looking at. As well, NSArray provides the transparent bridging into the CFArray API-- the CF* APIs are used to implement a good chunk of the functionality found in the Foundation and AppKit. b.bum On Saturday, November 9, 2002, at 09:11 AM, Ronald Oussoren wrote: > That would work, but then NSArray would no longer by a subclass of > NSObject. This will probably cause subtle bugs and won't buy us much > in the long run. Especially because this will be a non-issue in Python > 2.3: I filed a bug-report related to this and the bug was fixed within > a day :-) |