Re: Moving oneself to /Applications (or ~/Applications)
Re: Moving oneself to /Applications (or ~/Applications)
- Subject: Re: Moving oneself to /Applications (or ~/Applications)
- From: Tommy Nordgren <email@hidden>
- Date: Tue, 24 Feb 2009 01:32:34 +0100
Actually there is an easy way to find the apps runtime path:
[[NSBundle mainBundle] bundlePath]
You can extract the info from the returned string.
On Feb 24, 2009, at 1:04 AM, Alex Kac wrote:
Let me give you an example why I disagree with the advice. Yes, well
written applications can run from anywhere and all apps should!
However its a user experience issue. Not everyone wants to write a
pkg installer for a variety of reasons.
So first here is a story. I have a friend I switched over to the
Mac. She downloaded Firefox and started running it from the DMG. She
just is not advanced enough to move it to the Applications folder.
But she thinks her Mac is broken on why sometimes she can find it
and sometimes she can't. The reason sometimes it works is the DMG is
mounted, and other times its not.
If Firefox would just ask - would you like to install this to the
Applications dir *once* on first run - this issue would be negated.
Interestingly I can name dozens of users whom I've moved to the Mac
in the last 2-3 years that have had the exact same issue. Firefox is
not the only example.
People can suggest this is an issue with Firefox's distribution
mechanism - DMG, but frankly you as an engineer don't always have
control over that. Sometimes its easier to get management to accept
something like the above than to change distribution mechanisms.
Secondly, I think this group does a great job of pushing high
standards in development and I applaud it for that. However I also
think it tends to punish people who have innovative ideas to help
the user that does not hurt the Mac experience, but helps it. I
think Ben's question has a lot of merit and instead of having 50
emails about something obvious and had nothing to do with his
question, just assumptions, I think some help would've been more
appropriate.
On Feb 23, 2009, at 5:25 PM, Tommy Nordgren wrote:
On Feb 18, 2009, at 7:28 AM, Ben Lachman wrote:
Hi all:
I'm wanting to move away from DMGs to ZIP delivery. As part of
this move I'd like to have my app, SousChef, prompt the user on
first run to move itself to /Applications (or ~/Applications as
appropriate). In a short search I can't find any code examples
hanging about to do something like this. Would anyone mind
sharing ideas/code on how to do this?
Thanks,
->Ben
--
Ben Lachman
Acacia Tree Software
http://acaciatreesoftware.com
email: email@hidden
twitter: @benlachman
mobile: 740.590.0009
My advice is: Don't do that. Well written applications can run
from any directory the user have read access to;
for example a subdirectory of /Applications.
I have for example subdirectories of /Application for thirdparty
software development tools, and for webeditors
---------------------------------
How many National Democrats does it take to change a light bulb?
108: 8 who smashes the rest of the light bulbs, and 100 to blame a
zionist world conspiracy for the darkness
--------------------------
Tommy Nordgren
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Alex Kac - President and Founder
Web Information Solutions, Inc.
----------------------------------
The three things an undertaker should never say to a client:
-Nice doing business with you.
-Welcome back.
-Have a nice day. (The King of ID)
----------------------------------
Tommy Nordgren
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden