NSDocument based app takes each command line argument as a filename - MacRumors Forums
Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old Dec 31, 2012, 10:09 AM   #1
silvercircle
macrumors member
 
Join Date: Nov 2010
NSDocument based app takes each command line argument as a filename

For each argument I supply on the command line I get a message that the application can't open files of that type.
It is an NSDocument based application for OSX.
I want to use the arguments later on via [[NSProcessInfo processInfo] arguments], but how do I avoid that each argument is taken as a file to open?
silvercircle is offline   0 Reply With Quote

 
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Dictonary from command line Crusader007 OS X 1 Feb 25, 2014 07:21 PM
General: iOS7 command line... Equivalent of "say" command? RobertoG Jailbreaks and iOS Hacks 0 Jan 19, 2014 05:05 PM
Command Line newb jeanniebeannie Mac Basics and Help 8 Oct 9, 2013 11:25 AM
Need Command-line help EricBrian Community Discussion 1 Feb 20, 2013 08:40 PM
Getting Argument Exception (nil URL argument)! sridvijay Mac Programming 0 Jun 8, 2012 10:35 PM

Forum Jump

All times are GMT -5. The time now is 10:33 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC