• 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
Possible to manipulate file template variable contents?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible to manipulate file template variable contents?


  • Subject: Possible to manipulate file template variable contents?
  • From: Daniel Jalkut <email@hidden>
  • Date: Sun, 04 Dec 2005 12:18:00 -0500


I find it tedious to create new ObjC "Category" implementation files. I always start with an "Objective-C Class" template and end up editing it to suit "category" style.


I'm interesting in creating a custom template, but it seems the variables available to me don't really allow what I want. Is it possible to manipulate the value of, say, FILEBASENAME, before injecting it into the resulting file?

I would like to, given a file name like "NSString+Extras", be able to produce a template file with a line that looks like this:

@interface NSString (Extras)

I don't see any way to do this with the existing template variables. Is there by any chance a magic "regex substitution" invoker or anything that I can ask the template machinery to apply?

Daniel

_______________________________________________
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


  • Prev by Date: Re: Applescript application compiler question
  • Next by Date: Add a Favorites Section to File Templates
  • Previous by thread: Regular expression case translation
  • Next by thread: Add a Favorites Section to File Templates
  • Index(es):
    • Date
    • Thread