• 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: Custom Target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Target


  • Subject: Re: Custom Target
  • From: Scott Tooker <email@hidden>
  • Date: Fri, 13 Aug 2004 15:10:54 -0700

You could also look at the "Rules" tab in the target inspector. This allows you to associate a given compiler or tool with a file type or extension.

Scott

On Aug 12, 2004, at 1:03 PM, Chris Espinosa wrote:

On Aug 12, 2004, at 12:11 PM, Sam Robbins wrote:

I want to make a target that will allow me to use a third party compiler / script for files I have open in Xcode. I have looked at the Targets in the in the dev folders but most use functions that I don't need. Basically this is what I want to happen, I have a file open and if I "compile it" using apple + k of menus, it will run a script, i.e. a JSFL( Javascript Flash) file. So I know there needs to a target for Xcode to have the compile function available, but can you write a custom target that would just open a file to run it? Any help would be great. If I have been unclear feel free to contact me directly.

Easy. In xcode 1.5, use the "Shell Script Target." Set up its input and output dependencies and put your shell script code there.


That won't wire up the command-K "compile" flag; for that you need to go the whole route and build a compiler specification and bind it to your extension type etc. (which we don't support well in 1.5 but are working to improve). But at least you can select the target and do Build and it'll do what you want.

Chris
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Custom Target (From: Sam Robbins <email@hidden>)
 >Re: Custom Target (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Interface Builder Problems/Bugs
  • Next by Date: Re: pbxproj and pbxuser files hammered in CVS; using -z3?
  • Previous by thread: Re: Custom Target
  • Next by thread: Can't debug in 1.5
  • Index(es):
    • Date
    • Thread