I have numerous Plist files that contains dictionaries in a project and I find that they reliably forget the data type of various entries and default to NSString.
For example, I might have a PLIST containing a dictionary with several keys set to a type of NSNumber, and after closing and reopening Xcode they all get defaulted to NSString...
I am using CFDocumentTypes and UTExportedType in my iphone plist to be able to download qif/ofx files straight to my application.
At the moment it can download them from the mailapp. Is there any way to get them to download from safari as well?
...
Hi! I'm new to Rails and I'm trying to learn it using Rails 3 (RC).
I have managed to use http://plist.rubyforge.org/ for supporting the output of plists. I would like to check with you guys to see if my approach is the right way to do it. Here goes:
In the gemfile I added gem 'plist'
In config/initializers/mime_types.rb I added Mime:...
I have a plist (dictionary type) populating text views and labels on one view. I would like to have an info UIButton on this first view that links to a separate view and displays some data from the same plist.
it has to be data from the same record in the plist though.
I have everything working, but I'm stuck at being able to pass that...
I have a .plist that I have had translated in my app. Originally, I had one .plist (icons.plist) at application root. I load the file as follows:
[[NSBundle mainBundle] pathForResource:@"icons" ofType:@"plist"]
After making the file localized, adding my specific language (de in this case) I have checked to ensure icons.plist exists i...
Is there an easy way in Common Lisp to merge two plists? Or from another point of view: is there a way to remove duplicates from a plist? I know I can just append plists (and GETF will take the first one it finds), but I'd like to not keep accumulating unused keys as my app runs.
I'm thinking about something like (loop for p on my-pli...
I have created a PLIST. The structure of the PLIST is like this
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://10.87.145.105:8080/copy/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>title</key>
<string>Sample</string>
<key>title.short</key>
...
is there a way to create binary plist in Java?
I can only find the open sourced C implementation at: http://opensource.apple.com/source/CF/CF-550/CFBinaryPList.c
thx
...
hi guys, i am trying to save data to the plist in my app per person, but it save it to everyone, so for example if i have a field for eye color and i enter brown in the textfield for john doe, it save brown for everyone else as well, is there a way to save this info per person in the app instead using plist, i have had no luck trying
th...
Hello,
I need to read a plist file and search for a string, then add a new line of text on the next line. I can't imagine it will take much to do this. However the plist is in binary format so not exactly sure how to deal with that.
Thanks in advance,
Aaron
#Convert plist to XML
os.system('plutil -convert xml1 com.apple.iChat.Jabber...
I am trying to create an app that has a list of users and each user will be assigned an array of data that is editable. I am new to persistent data so i thought a property list would be the easiest to use. The first view of the app will have a list of the users that have already edited at least their name, and then have "New User" for ...
Hi, does anybody know a way for allow multiple items selected for a setting in Application Settings? I know PSMultiValueSpecifier, but it only allows one and only one selected value.
Thanks!
...
Is there a pre-existing XPCOM guy that will let me interrogate a .plist file from Javascript, or do I need to use nsIFile and parse the XML myself?
(For background, there is a version number in a directory structure I don't control that I need to read from a .plist in order to be future-proof.)
...
I am writing an iPad app that will be expandable with new items via in-app purchasing. For example, my current plan is to have a jpg pattern and a matching plist file with the parameters I need to expand that pattern into a full picture.
The user will select one jpg/png from a list of small thumbnails - the list is held in Core Data - ...
I'm creating an application for Mac OS X, and I wanted to know whether I've used UTIs properly in the application's .plist file:
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>com.petroules.silverlock.database</string>
<key>UTTypeDescription</key>
<string>Silv...
I'm loading a plist file using a slightly tweaked version of the example in the developer docs
- (void) loadPlistIntoMemory
{
NSString *errorDesc = nil;
NSPropertyListFormat format;
NSString *plistPath;
NSString *rootPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0...
So here is my problem.
How can I extract those strings into 3 variables with a bash script?
So out of this:
<key>GameDir</key> <string>C:/Program Files/</string> <key>GameEXE</key> <string>C:/Program Files/any.exe</string> <key>GameFlags</key> <string>-anyflag</string>
I want:
GameDir=C:/Program Files/
GameEXE=C:/Program Files/any.e...
Hi,
i have a plist in the following form:
Root (array)---> item 1 (dictionary) ----> Sch (string)
---> Name (string)
----> price (number)
----> item 2 (dictionary)----> .....same as item 1
how can i access each row (item1 to ...) and the its child (Sch...
Hi, i have a plist which goes like this:
<dict>
<key>11231654</key>
<array>
<string>hello</string>
<string>goodbye</string>
</array>
<key>78978976</key>
<array>
<string>ok</string>
<string>cancel</string>
</array>
i've load the plist using this:
NSString *path = [[NSBundle mainBundle] pa...
Hi,for plist of the form:
Root-->
item1--->
item2--->
....
how can i obtain the count of the number of item1,2,3 etc? instead of using this:
int i = 0;
for(i=0; i<10; i++) //loop 9 times cos database got 10
{
NSDictionary *item1 = [array2 objectAtIndex:i];
i<10 is what i want to change
also for this plist:
Root-->
...