Interface Builder can be buggy at times, leaving some "leftovers" around when they should be gotten rid of. I've got a couple of leftovers myself, but they're harmless so far; one of these days, I'll just go all down-and-dirty editing on it, but I don't have the time right now. If you've still got the buggy NIB, submit a bug with it included and describe what you see in IB edit mode, IB run mode, and application runtime. Also make sure to include what version of Interface Builder you used to create it and are using to edit it.

Paul Archibald wrote:
Yes, I did that. No dice.

At this point I am doing better. Since I have just barely begun, I just made a new branch of the codebase and started over (in the nib, the source code I copied and pasted into the new branch).

So, now the menu looks okay. I still don't understand what was going on, though. Maybe as I gain experience with Cocoa/IB I will figure it out.


On May 29, 2008, at 2:32 PM, Jean-Daniel Dupas wrote:


Le 29 mai 08 à 20:25, Paul Archibald a écrit :

Comrades,

-- Newbie Alert --
This is my first posting to this list, and has to do with my first foray into Cocoa + ObjC + Interface Builder. I am trying to understand the relationships between resource elements in the NIB and the ObjC code the the Xcode project, and how to modify them. I have worked a lot with CodeWarrior and VisualC++/MFC in the past, but the Xcode/IB interplay seems different from either of those systems.


-- The Project --
I am modifying an existing application. Its purpose is to allow a user to select a source directory and several destination directories into which copies of the source will be copied. The existing app has a single window with a bunch of controls for setting directory paths and some options for those copies (checksums, metadata, &etc). The app is used to make special backup copies of a specialized data type.


-- My Task --
My job is to hook up the controls for another window. That window has already been built in IB, but is not functional yet. This new window will do some similar tasks (setting source/destination directories), but also does some extra stuff.


-- The Problem --
I added a menu item to switch between the new window and the old window. The switching works okay (sort of), but somehow along the way I have gotten an extra menu item into the app.

When I run the app, I see a menu item that is not visible in the NIB file. I recognize the extra item, I built it. However, I had some problems with the NIB, so I reverted to an older copy of the NIB, and started modifying that. I thought I had gotten rid of the old menu item, and I can't see it anywhere in the NIB or the ObjC code, but I sure see it when I run the app. What gives?

-- My Question --
How can a running app show a menu item that is not in the NIB? Where else does Xcode/IB store resources that I am not seeing?

Thanks for any help. I am sure to lots more questions while I work through tutorials and wok on this project.

Paul Archibald


First,  try to clean your target (Buile Menu > Clean) and to rebuild it.





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/garywade%40desisoftsystems.com

This email sent to [EMAIL PROTECTED]
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to