Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to pass cmd line arguments to my carbon app?



Who is suggesting that? Just have an option in the preference window
of your application to specify a config file. And you can still pipe
all your preferences into your command line argument handler.


what preferences window? why should prefs be changeable during runtime? what if you don't want prefs to be dynamic at any point other than startup time?


ermm.. which Mac users are you talking about, the ones buying Mac
apps, or the ones who have moved to OSX from Unix and still want to
run the Unix apps they expect to be able to run, smoothly, just
like the good ol' (irix) days?

You seem to be contradicting yourself here. You won't use a terminal command because it is too difficult and yet you say you're targeting people moving from Unix to OS X.

why is it you associate "Unix" with "command line user"? i think this is quite a bit braindead. Unix is not the command line. Unix does GUI too, yo.


i want argv for the -administrators of existing Unix systems- who can set up these options remotely, change them on a day to day basis, update the key args which will be used in the launch. yes, for the admins, having to resort to anything more than the command line to change such args is a drag. but when the app launches, it can be because the user, possibly a Unix user, just wants to use it.

well, fortunately, editing a .plist is somewhat akin to editing a
Windows shortcut, and pretty much everyone i know, who will run the
apps i'm porting from Unix->OSX, will have no problems with that.
if there is time to over-Apple'ify the port codebase, maybe i will
add a prefpane, a startup items link, an argv list parser Dashboard
widget, an RSS screensaver feed reading my xml files, etc.

No, editing a plist is nothing like editing a windows shortcut.

Windows:

Right click Shortcut, select "Edit Shortcut" (or whatever it is), find Args field, edit.

OSX:

Right click .app bundle, select "Show Package Contents", navigate to Info.plist, double click it, find Args key, edit.

Bonus for the Info.plist-savvy Administrator:

ssh to remote OSX installation, navigate to app bundle, vi Info.plist, change todays key args, save, quit. user notices nothing.

Bonus: with minimal effort, same effect across all Unix targets, including OSX.


And
Mac OS X isn't Windows. No one's asking you to make all that. I'm
not suggesting making a preference pane. I'm suggesting making a
preference window that's opened via a menu item. Which isn't that
hard at all to do.

look, its not hard. true. but it is code that is only useful for OSX.

--

;

Jay Vaughan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: How to pass cmd line arguments to my carbon app? (From: Jay Vaughan <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Chris Espinosa <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Jay Vaughan <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Eric Schlegel <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Chris Espinosa <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Jay Vaughan <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Lyndsey Ferguson <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Jay Vaughan <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Lyndsey Ferguson <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Jay Vaughan <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Rosyna <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Jay Vaughan <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Rosyna <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Jay Vaughan <email@hidden>)
 >Re: How to pass cmd line arguments to my carbon app? (From: Rosyna <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.