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: Displaying a version number?



Try adding a:

plist.overrideMimeType ('text/xml');


Thanks,
jl

> When I tried this using the syntax: 
> plist = new XMLHttpRequest();
> plist.open("GET","version.plist",true);
> my async listener reported a status != 200 with a statusText of undefined. 
> The responseText was null, and the responseXML contained no nodes.  
> 
> Are we sure you can use relative urls referencing files inside the wdgt
> bundle, or did I mess up on my syntax?
> 
> 
>>> Say you want to display a version number on the backside
>>> of the widget (is this a bad idea or good idea?), then
>>> what's the easiest way to get the value of the
>>> CFBundleShortVersionString key of the Info.plist
>>> file of our widget bundle?
>>>  
>>> Or should we just rely on the Get Info command of the
>>> Finder?
>> 
>> 
>> I would just let the user use Get Info.
>> 
>> If you feel you must have it, you can sue the XMLHttpRequest object to get
>> your info.plist and parse it.  You can pass relative urls to XMLHttpRequest.
>> 
>> On the other hand you could hard code it in your HTML, and update the
>> version when you update your widget.
>> 
>> Thanks,
>> jl
>> 
>> --------------------------------------------------
>> John Louch         Internet #: email@hidden
>> (805) 541 2965
> 
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Dashboard-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
> 
> This email sent to email@hidden


--------------------------------------------------
John Louch         Internet #: email@hidden
(805) 541 2965


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Displaying a version number? (From: Niels Meersschaert <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.