Re: Menu wierdness
Re: Menu wierdness
- Subject: Re: Menu wierdness
- From: Vince DeMarco <email@hidden>
- Date: Wed, 15 Aug 2001 11:10:17 -0700
On Wednesday, August 15, 2001, at 11:02 AM, Steven J. Sims wrote:
Hey gang,
First of all, thanks to Byron and Vince for your help.
Unfortunately my experience in using the inspector to adjust the title of
a menu item (as per Vince's suggestion) was much the same as Byron's - i.
e. it didn't work.
I had actually already discovered that the .nib file was a package and
looked at the enclosed files, however the contents aren't quite as
described by Byron below. The XML files are classes.nib and info.nib,
whereas objects.nib is the streamed object file. Neither of the XML
files contained "SubMenu", the duff menu title that was appearing in my
app, however the objects.nib file did...
My solution was as follows. I put in a new "File" menu, since that has
the same number of characters in the title as "Game", and put in all the
appropriate links (outlets and objects) to replace my existing "Game"
menu (which was appearing as "SubMenu"). I then saved the file, and
replaced the isolated instances of "File" with "Game" inside the objects.
nib file using BBEdit.
It should be noted though that this solution only worked because both
"Game" and "File" are 4 characters long. Unsurprisingly the format of
the objects.nib file doesn't seem to allow for variable length strings.
This obviously is not an acceptable situation. I'm just lucky that I
could get away with this hack, and that I'm not (currently) writing
commercial software.
So, Vince, this begs the question when can we expect to see this updated
Interface Builder that does not have this bug?
In the next release, whenever that is i'm only the engineer on IB i don't
work for product marketing :-)
The bug really is that IB forgets to set the title of the submenu, Try
editing the title with the submenu closed or open (I can't remember which)
ends up working correctly.
Sorry about this.
vince