Re: How do I include a URL in a preprocessed Info.plist?
Re: How do I include a URL in a preprocessed Info.plist?
- Subject: Re: How do I include a URL in a preprocessed Info.plist?
- From: "Isaac Wankerl" <email@hidden>
- Date: Mon, 29 Dec 2008 12:41:19 -0600
On Sat, Dec 27, 2008 at 6:22 AM, Graham Cox <email@hidden> wrote:
> I'm preprocessing my info.plist file so I can automatically update it with
> version number, etc.
>
> I want to include a URL in my plist (to support Sparkle) but Xcode won't
> let me. If I include the URL directly, it causes an error (xml parse error).
> If I define a substitution for it in my plist preprocessing settings, I get
> no error, but only 'http:' is copied, and the rest of the URL is stripped.
>
> How do I do this?
>
> thanks, Graham
>
Here's how I do it...
My build settings have "Expand build settings in info.plist file" and
"Preprocess info.plist file" turned on.
Then in my Info.plist file I have
<key>SUFeedURL</key> <string>http://www.kerlmax.com/foo</string>
Note that you have to escape one of the slashes in http:// for the parsing
to work.
Isaac
Kerlmax LLC
http://www.kerlmax.com
_______________________________________________
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