[futurebasic] Re: [FB] X-FB Awake from Nibmare

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2010 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Fri, 12 Feb 2010 21:52:04 -0500
Maybe somebody who is Cocoa-aware can verify if this is correct...

I control dragged the menu to FilesOwner application object, then set  
the QuitApplication to Terminate and connected all of the others  
(except for prefs, etc)

Seems to work now. Wondering what else is broken though still. Pooey.  
Anyhow, that was easy. If that's how it is supposed to be.

I notice a 'raw' made MainMenu has simply a 'delegate' outlet but no  
connection to NSApplication..

Mine says Delegate : NSApplication (on the connections pane of  
Inspector)

rc

On Feb 12, 2010, at 8:38 PM, Robert Covington wrote:

> I have a problem that I don't know how to fix.
>
> Restarting the project will be a pain....
>
> Being a Cocoa newbie I was throwing everything into one NIB. Would  
> have worked fine, but only for the taunting voices of the goobers  
> who might pass over the code in the future perchance, did i think,  
> I need to modularize it, but I think I killed my project.
>
> Anyway, since I had everything in MainMenu.nib, I thought I'd just  
> rename that, then copy the main menu object back to the new one I'd  
> make (empty)
>
> However, once I did that, I found that the copied menu results in a  
> non-working enable of the app menu for the most part, and a non- 
> working quit, even when it was enabled.
>
> To reproduce the issue I am describing try this.
>
> 1. Make a new XCode Cocoa Project
>
> 2. Open up the nib in that, then copy MainMenu object there.
>
> 3. Now, make a new (empty nib) and save that as "Other.nib" in the  
> project, when asked, add to project.
>
> 3a. Paste the MainMenu into that new one. Delete the original one.  
> Run your app. Note the problem, the menu is not loaded as before.
>
> 4. Now, copy the MainMenu from the Other.nib back to the original  
> MainMenu.nib, but note that while the menus are all loaded, the app  
> will not quit.
>
> My problem similarly, is getting back the default behavior from my  
> original menu object. Ideally, I'd like to convert what was  
> formerly my original MainMenu.nib to be Interface.nib, since it has  
> my main view and 70 buttons....and then make a new separate  
> MainMenu nib. Argh :(
>
> I hope my project is not killed, redoing all those buttons will be  
> a horrid pain, and the loss of about 10 hours. (aligning, setting  
> the up and down images and so on)
>
> Anybody know how to fix this?
>
> Robert
>
> --
> To unsubscribe, send ANY message to: futurebasic- 
> unsubscribe@...
>