Re: newbie resource question
Re: newbie resource question
- Subject: Re: newbie resource question
- From: Fritz Anderson <email@hidden>
- Date: Thu, 06 Jun 2013 16:30:51 -0500
On 6 Jun 2013, at 3:29 PM, "Ray, Jeffrey R. {Jeff} (DFRC-ME)" <email@hidden> wrote:
> I have an old Carbon/command line/OpenGL app that I am trying to convert
> into a Cocoa/semi-command line/OpenGL app. I'm using the GLFullScreen
> sample code, and am trying to start by tweaking the project and copying in
> the non-code bits first. (I realize the code will have to be done all at
> once, but I'm not at that point yet.)
I'm not sure what you mean by "semi-command line." Graphical-UI Mac applications rarely pay attention to the command line.
> My problem is MainMenu.xib. I've copied it into my project's Resource
> directory, tweaked it a bit, added a "Copy Bundle Resources" Build Phase,
> and dragged it into there, but it isn't getting copied (I can't see it in
> my application's bundle).
(Just to cover the trivial cases, do you see MainMenu.nib in Contents/Resources/en.lproj (or English.lproj) in your app bundle? That's it.
(Now for my usual suppositious screed.)
I don't understand. I downloaded the GLFullScreen example from <https://developer.apple.com/library/mac/#samplecode/GLFullScreen>. Its MainMenu.xib was present and correctly placed. No need to copy it around. I had to let it update the SDK selection, but once that was done, it built and ran with no problem.
Are you starting with some sort of raw project directory of your own, and trying to build an application project up in it from spare parts? That's possible, but it's easier if you accept Xcode's help.
For one thing, the Xcode build system works backwards from the product type (as well as forwards from the source types) to work out how to structure the product and how to treat the inputs. It's possible to wrench any kind of Xcode project into any other, but the easiest way is to start with a new project targeted at the kind of product you want, and work with that.
Make a new project, OS X > Cocoa application. MainMenu.xib will be present and the build system will know what to do with it.
> Xcode 3 had a way to see what was happening during a build, but I can't
> find the equivalent in xcode 4 in either the menus, help, or
> documentation. Can someone point me to which bit of documentation
> discusses copying of resources?
Seeing what is happening:
The view on the left side of the project window is the Navigator. The last tab is the Log navigator, containing items for each major event in the project's life. Select a build item, and find a summary of the log in the editor view. ("Recent" for the results of the last run, "All" for the cumulative status of each compiland.) Select any summary line and click the lines-of-text button on the right end of the line to expand it to the log listing for that item. The Editor menu, and right-clicking in the listing, give you more options.
— F
--
Fritz Anderson
Xcode 4 Unleashed: 4.5 supplement for free!
http://www.informit.com/store/xcode-4-unleashed-9780672333279
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden