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?



At 0:51 -0700 23/9/05, Rosyna wrote:
No, it really doesn't. They can just create a special file in the
preferences folder and your app can read from that.


again, this is a big deal for small arguments.

Furthermore, every single mac GUI Application tailors its user
experience based on preferences set by the user. I have no idea why
you can't do that as well. Just have a preferences window the user
sets.


sure, i can do that. no problems. thanks to apple, its fun to write code which will only be useful on OSX. argv parsing is useful everywhere.


I think the entire problem is that you're expecting OS X to behave
in a specific way and are unwilling to code anything that's OS X
specific.

yes, i'm trying to avoid having special-case code for a target platform for which, in fact, my app doesn't normally need a lot of special-case code in order for the port to run.


You say an option is a config xml file. That's what CFPreferences
and registering default values are for. I've yet to see any reason
why you want OS X to behave the way you're suggesting other than
you're being too lazy to do it the proper OS X way.

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?


come on people, OSX is not just a development target, its a port target too ..

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?


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.


but, for now, i just want an easy way to have an argv worth parsing, and still have a single-click icon that will launch the app. an Info.plist key for ArgV is a good solution ..


--

;

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



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.