[Pythonmac-SIG] Menus from pyobjc

Ronald Oussoren oussoren at cistron.nl
Tue Feb 17 01:53:01 EST 2004


On 17-feb-04, at 0:25, Bob Ippolito wrote:

>
> On Feb 16, 2004, at 6:08 PM, Dethe Elza wrote:
>
>>> Use bundlebuilder to create a nib-less bundle for your app and run 
>>> it from there.  You're running it from the Python.app bundle (via 
>>> pythonw), which does have a nib.
>>
>> OK, I've got my application working with bundlebuilder (had to copy 
>> in resource files and figure out how to get the current working 
>> directory from the list archives).
>>
[...]

>> So I'm still not sure how to deal with the menus when running 
>> nib-less.  Or is there still a nib being included from somewhere?  Do 
>> I have to tell bundlebuilder explicitly "No Nibs" or is it enough to 
>> not provide one?  I can't find any sign of a nib in the resulting 
>> .app.
>
> If you post a minimal sample of what you're trying to do, I'll 
> [attempt to] fix it and make a PyObjC example out of it.  IIRC, you 
> have to do some undocumented voodoo to get the menus to do what you're 
> asking... I did this in PyObjC for recentish versions of pygame (in 
> macosx.py), though it's not particularly well tested because sane 
> people use IB nibs ;)

Which brings us to a question nobody seems to have asked: why not use a 
nib in the first place?

Even if you want to build you menu dynamicly you could include a 
minimal menu in the nib and extend that.

Ronald

--
X|support bv            http://www.xsupport.nl/
T:  +31 610271479       F:  +31 204416173




More information about the Pythonmac-SIG mailing list