Windows menu woes
Windows menu woes
- Subject: Windows menu woes
- From: Errol Sayre <email@hidden>
- Date: Wed, 15 Jun 2005 15:27:52 -0500
I'm working on building a simple CoreData app to learn the process and have come along a bug in my program that I don't understand where its coming from. I haven't written any code, so the mistake must be coming from how I'm connecting items in Interface Builder...
The app uses four windows, one main viewer and three windows to manage subordinate entities. To allow quick selection of each window I added a menu item for each in the window menu of the application and gave them each a command key. When I open a window and then close it, the application removes the command key item and adds a new item with the title of the window at the bottom of the window menu along with a separator. If I open that same window again, using the item from the window menu, it removes the item, leaves the separator and does the same process again. After opening and closing windows a few times I'll end up with a menu full of separators and four window items.
Can anyone tell me what I've done wrong? Please email back with the information you may need, but I've included the basics. All four are buffered windows with one visible at runtime and the other three deferred. Am I doing something wrong with these settings? None of the example code that I'm looking at, nor any of my intro-to-cocoa books talk about these settings in detail, so I'm not sure I know what these mean. Perhaps a mistaken assumption is to blame for the problem I'm experiencing.
Thank you in advance for your help.
Errol Sayre
--
Errol Leighton Sayre Web Application Developer Office of Research and Sponsored Programs The University of Mississippi
662.915.7482
125 Old Chemistry University, MS 38677
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden