Conversion to command line tool

  • I've got a programme that uses an NSView to draw a map based on data
    from a file, and then saves it as a PDF file. I set up the NSView in
    Interface Builder of course. But now I want to convert it to a command
    line tool. I don't care about displaying the map: all I want to do is
    use the data to produce the PDF. Is there a straightforward way of
    doing this? Or do I have to hand-code the whole NSView thing?
  • All you're doing, in theory, is changing the context of your drawing
    from a view to another place (like an NSImage). Draw there instead,
    and then create your PDF from that.

    --
    m-s

    On 06 Dec, 2007, at 00:14, D.K. Johnston wrote:

    > I've got a programme that uses an NSView to draw a map based on data
    > from a file, and then saves it as a PDF file. I set up the NSView in
    > Interface Builder of course. But now I want to convert it to a
    > command line tool. I don't care about displaying the map: all I want
    > to do is use the data to produce the PDF. Is there a straightforward
    > way of doing this? Or do I have to hand-code the whole NSView thing?
previous month december 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today