• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why are my Foo.h and Foo.m files not in the Classes folder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why are my Foo.h and Foo.m files not in the Classes folder?


  • Subject: Re: Why are my Foo.h and Foo.m files not in the Classes folder?
  • From: Sandy Santra <email@hidden>
  • Date: Fri, 27 Mar 2009 09:35:47 -0400

Found the answer to my problem:

When you Write Class Files from IB, XCode puts the files in the Xcode Group in the left-hand sidebar that was selected when you executed the write command.

Obviously afterward you can drag and drop the files to whatever Group folder you want if you made a mistake; but if you select the correct Group folder ahead of time before doing the save in IB, then they land exactly where you want them.

This is courtesy of robbieduncan from the MacRumors "Mac Programming" forum.


--Sandy

Sandy Santra
email: email@hidden
twitter: sandysantra
917-204-3977








On Mar 26, 2009, at 8:30 PM, Sandy Santra wrote:


I'm a newbie at this, so I'm kind of clueless, and I'm definitely at the beginning of the learning curve, but this is the 2nd time out of 2 tries that I've seen this happen.


A book tells me to:

"Go to the File menu in Interface Builder and choose Write Class Files. Interface Builder then asks you where you want
your generated file to be put on disk. Navigate to the project folder of our application and overwrite the MAFoo class
that exists there."


So I do that, OK, and I overwrite, and it all seems fine. Then the book says:

"switch back to Xcode, you'll see the generated files in your project window, inside the Classes group"

but the Foo.h and Foo.m files are NOT in the Classes folder. They seem to be in the Resources folder.

I'm not sure if they're the right (the latest versions) of the files, and I'm also not sure if I'm supposed to copy or move them to the Classes folder; and of course I'm wondering if I'm doing something wrong.

I've seen this weird anomaly in exercises from both BecomeAnXcoder and the Hillegass Cocoa book, so now I'm starting to think it's something wrong with my setup. I'm running Xcode 3.1.2.

Anyone can shed light on this, much thanks in advance.

--Sandy Santra
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@me.com


This email sent to email@hidden

_______________________________________________ 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
References: 
 >Why are my Foo.h and Foo.m files not in the Classes folder? (From: Sandy Santra <email@hidden>)

  • Prev by Date: Re: Where do templates go now?
  • Next by Date: Why can't Xcode find this file?
  • Previous by thread: Why are my Foo.h and Foo.m files not in the Classes folder?
  • Next by thread: Where do templates go now?
  • Index(es):
    • Date
    • Thread