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?



Ack, at 9/23/05, Jay Vaughan said:

okay, well don't be so lazy. i've got an app i'm porting to OSX, not writing for OSX. this app has config files, already, a vast plethora of them in fact, which will be useful for this app when it runs on OSX. must i convert all of those .xml files to Apples prefs format, just to get around the hijack of argv?

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.



The way Mac
users expect an application to work. Not some obscure way that none
of them will have any idea about.

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.


And editing an info.plist file is infinitely more difficult for a
user to accomplish than it is for you to simply add a checkmark in
your preference dialog.

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. 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.
--



Sincerely, Rosyna Keller Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
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>)



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.