• 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: maintaining group hierarchy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: maintaining group hierarchy


  • Subject: Re: maintaining group hierarchy
  • From: James Bucanek <email@hidden>
  • Date: Tue, 29 May 2007 11:32:11 -0700

David Harper <mailto:email@hidden> wrote (Tuesday, May 29, 2007 8:47 AM -0400):
I'm having trouble maintaining the group hierarchy when adding classes
to the project. I choose (add -> New file...) and it allows me to
select a directory for the filles, but it creates both the header and
.m file in the same directory, where I'd prefer the header to go in /include/group/subgroup and .m in /source/group/subgroup.

It's a tad bit more tedious, but just create the files individually. Create the .m file and uncheck the box to automatically create a matching .h file in the source group. Then create a single .h file in the include group. If you like that Xcode fills in the .h template for you, create both the .m (again) & .h file in the include group and delete the duplicate .m file when you're done.


I move the files, and xcode claims they have disappeared and i have to
delete and reset the references.

Simply choose the reference, open the Info window, and point Xcode to its new location.


Is there a better way to manage the
hierarchy than to separately create the header and source files?

You could stop fighting Xcode's preferred file organization. ;)

Is there a way to make xcode move the actual /files/ when I move the
references in the groups and files view?

Long ago I filed an enhancement request for Xcode to give one the option of moving the physical file if one moves its reference from one location in the project heirarchy to another and the locations of the enclosing groups are different. You might consider filing a similar request.




James Bucanek
____________________________________________________________________
Author of Beginning Xcode                           ISBN: 047175479X
<http://www.beginningxcode.com/>

_______________________________________________
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: 
 >maintaining group hierarchy (From: David Harper <email@hidden>)

  • Prev by Date: Re: maintaining group hierarchy
  • Next by Date: Re: What optimizations does -O really do?
  • Previous by thread: maintaining group hierarchy
  • Next by thread: Re: maintaining group hierarchy
  • Index(es):
    • Date
    • Thread