print complete copy of program

Discussion in 'iOS Programming' started by theprizerevealed, Nov 17, 2016.

  1. theprizerevealed macrumors member

    Joined:
    Feb 26, 2016
    #1
    I want to print the entire code of my program. Is there somewhere is Xcode that you do that? - or must you just print each viewcontroller
     
  2. Dookieman macrumors 6502

    Joined:
    Oct 12, 2009
    #2
    What do you mean print? As in a "print()" statement or physically printing the source code out on paper?
     
  3. theprizerevealed thread starter macrumors member

    Joined:
    Feb 26, 2016
  4. Dookieman macrumors 6502

    Joined:
    Oct 12, 2009
    #4
    No clue, I guess just print every class.
     
  5. Mascots macrumors 65816

    Mascots

    Joined:
    Sep 5, 2009
    #5
    You can probably whip together an Apple Script or Automator task to do this, honestly.

    Curiously, why?
     
  6. dantastic macrumors 6502a

    dantastic

    Joined:
    Jan 21, 2011
    #6
    I imagine you need to print this for school/college. I'm also guessing you're programming in Swift.
    Easiest thing to do is to concatenate all your files into just one file you can print. do this in terminal in the root folder of your project.
    Code:
    find . -name '*.swift' -exec cat {} + > combined.swift
     
  7. lloyddean macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #7
    If you're familiar with the command line you could always use 'lp' to print.

    Check out the man page for 'lp' with 'man lp'.
     

Share This Page