• 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
Macro definitions for custom file templates?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Macro definitions for custom file templates?


  • Subject: Macro definitions for custom file templates?
  • From: Jeremy Dronfield <email@hidden>
  • Date: Tue, 19 Apr 2005 11:14:06 +0100

This question is a bit of a long-shot, but I thought I'd submit it one more time, in case anyone has an answer...

What I really miss in Xcode's file templates is a template for creating categories. Are there any macros which can be used for this? So that I can get the template to produce a file with the correct category pattern. For example, given a category on NSString with the filename "NSString+MyExtensions", it should come out as:

//NSString+MyExtensions.h

#import <Foundation/NSString.h>

@interface NSString (MyExtensions)

@end


//NSString+MyExtensions.m

#import "NSString+MyExtensions.h"

@implementation NSString (MyExtensions)

@end

The only macros I can see are "FILEBASENAME" and "FILEBASENAMEASIDENTIFIER", both of which use the full filename. Do any others exist, for getting the pre- and post-"+" parts of the filename?

Regards,

-Jeremy

_______________________________________________
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


  • Follow-Ups:
    • Re: Macro definitions for custom file templates?
      • From: Scott Tooker <email@hidden>
  • Prev by Date: Carbon Project, SIGBUS error on --Deployment-- build only.
  • Next by Date: Re: Giving up on build styles
  • Previous by thread: Carbon Project, SIGBUS error on --Deployment-- build only.
  • Next by thread: Re: Macro definitions for custom file templates?
  • Index(es):
    • Date
    • Thread