[Python-checkins] CVS: python/dist/src/Mac/Modules/menu _Menumodule.c,1.7,1.8 menuedit.py,1.8,1.9 menusupport.py,1.14,1.15

Jack Jansen jack@oratrix.nl
Thu, 03 Jan 2002 23:37:50 +0100


Recently, Just van Rossum <jvr@users.sourceforge.net> said:
> - Added support for optional MenuObj arguments
> - Added a bunch of calls as functions with an optional
>   MenuObj first argument. The same calls already
>   exist as methods, but then the first arg isn't
>   optional... The method versions could go as far as I'm
>   concerned. Jack?

Hmm, hmm, this duplicates a lot of code. How about having a special
MenuObject (accessible as Carbon.Menu.anyMenu? The name is based on my
understanding of passing NULL to the C functions, feel free to pick
another one)? Or would that complicate things overmuch?

Alternatively the functions could always pass NULL as the first
argument...
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.cwi.nl/~jack        | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm