Re: [Pyobjc-dev] NibLoader.py: parsing nibs at runtime
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2002-11-17 13:13:29
|
Jack Jansen wrote: > What I do wonder, though, is whether this should be in AppKit. > Shouldn't we try to keep AppKit clean, so the Apple documentation > completely describes it, and put our own PyObjC-specific stuff > elsewhere? There isn't a good place right now, I think, but now might > be a good time to add one ("PyObjC" comes to mind as a name). Or does > the objc package fit this bill? I agree with Jack. I also understand Bill's concern that NibLoader/NibClassBuilder is an AppKit only tool. That said, I think it could be an options to _rename_ the objc package to PyObjC (or pyobjc, I don't care much). This allows us to use that package _both_ as an interface to objc as well as a collection of additional tools, that may or may not be specific to AppKit, Foundation or whatever. We should decide this pretty quickly, as I am with Bill that I think we can expect a lot of interest to PyObjC in the near future, and the more users are out there, the less we can afford such a change... And if we do rename the objc package, that would be a great opportunity to review the names of various other things as well. Eg. I don't think the python-style all-lowercase-and-underscores fits particularly well with PyObjC, as all Apple's names use [cC]amelCase. I would suggest (eg.) renaming lookup_class to lookupClass. A more religious issue (and therefore I shall not make a huge point of it ;-): I personally don't like spaces between parens in Python code. I can see it works well for other languages, but IMO it doesn't fit Python at all. I'd like to see foo(args) instead of foo( args ). A space _before_ an opening paren _really_ makes my stomach turn ;-) Just |