Re: CFURLWriteDataAndPropertiesToResource as root?
Re: CFURLWriteDataAndPropertiesToResource as root?
- Subject: Re: CFURLWriteDataAndPropertiesToResource as root?
- From: Stephen Blinkhorn <email@hidden>
- Date: Mon, 08 Aug 2011 16:13:50 -0600
On 8 Aug 2011, at 14:56, Sean McBride wrote:
On Mon, 8 Aug 2011 14:42:54 -0600, Stephen Blinkhorn said:
OK, well /Library/Application Support/CompanyName/ is out I believe
as you're not supposed to store user data in there.
IIRC, the data you're talking about is registration information,
which is *not* what (I think) is meant by "user data". In fact,
Application Support seems like exactly the right place to put this
information (issues of trying to "hide" registration files from
users' casual inspection aside).
The desire to "hide" was indeed a consideration but Application
Support it is.
To be clear, you'd need to use ~/Library/App Support not the one in /
Library.
OK, no problem in Cocoa with the stringByExpandingTildeInPath: method
of NSString. More problematic for CFStringRef though. Is there an
acknowledged way of doing the equivalent with CFStringRefs? I
appreciate this is nolonger a Cocoa issue.
Stephen
You can use the latter, but you'll need to do so via SMJobBless()
since it requires root on 10.7 (and admin on 10.6). Going this root
is currently forbidden by the App Store, if you care about that,
ummm, thing.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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