Where is plist preference file path located for FileMaker Pro Advanced 14? - filemaker

Some days ago I loose the plist items containing the custom functions for Data Viewer and while recovering the right file from backup I realised that my FileMaker Pro Advanced 14 application is using plist preferences named "com.filemaker.client.advanced12.plist"!
How is it possible?
Where may I reset the right path to the "com.filemaker.client.advanced14.plist"?

FileMaker is using the "com.FileMaker.client.advanced12.plist" preference file for all versions from 12 and onwards.

Related

Creating readable XML for iOS

My client uses a process that uses XMLSS to create XML documents that can be opened in Microsoft Excel. In fact, simply renaming the files to .XLS, will ensure that the documents open in Excel by default. These documents are emailed to our clients. The documents open successfully in for Excel for PC and MAC, as well as OpenOffice (both platforms). It's a pretty nice solution.
The problem is, some of our clients have started attempting to open these documents (for viewing) on their iPhones and iPads (iOS devices), and it doesn't work. We know that iOS devices can open actual Office files, but since our documents are really just XML (and not true Excel files), the viewer on iOS doesn't want to view them. At least that's my guess.
We have played with sending these files with both XML and XLS extensions.
I'm aware of the option of using different techniques for building these documents such that they become true XLS files... but obviously, we're not eager to rewrite the entire application when most of our functionality remains just fine.
Any tips, ideas, suggestions?

Use .mdb file instead of SQLite in iOS app ?

How can I use the .mdb file instead of SQLite, I am working on a project that will load and update data from .mdb file. I search about it but can't found anything can you poeple guide me.
MDB Tools is an opensource project that aims to bring support of the prorpietary MDB file format of Microsoft Access to POSIX systems. Since it's written in pure C, it should be fairly easy to integrate this project in your iOS app. (You should specifically be looking at its libmdb part.)
.mdb is not supported with iOS API. You should convert your .mdb file into sqlite file to access through iOS API.

iOS sort files in folder by date added

My app downloads files from the internet.
App stores them in Documents folder .
App uses iTunes Sharing feature, and user can store files in Documents folder through iTunes (when my application is launched and when my app is not launched).
In one of tableviews in my app I want to present files from Documents directory sorted by Date added (date, when files were added to Documents directory).
Is there any file attribute like "Date Added" on iOS?
How can I retrieve it?
I searched for this, but I cannot found an answer for now.
I think I can save the date for downloaded files and files that were added through iTunes when my app was launched, using DirectoryWatcher.
But I don't know how can I get the "date added" for files that were stored in Documents through iTunes when my app was not launched.
How can I do this?
I know that there is Arrange by Date Added in Finder on Mac OS 10.7. How they do it?
Thank you.
Yes you can use NSFileManager to do this, you can give it a file path to request a dictionary of attributes, one being the modification date
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSDictionary_Class/Reference/Reference.html#//apple_ref/occ/instm/NSDictionary/fileModificationDate
I found that file does not contain Date Added in its attributes.
After copying files through iTunes Connect from mac to app creation date and modification date remains unchanged (as they were on the mac).
Also I found that Finder on Mac uses external sqlite database ~/Library/Preferences/com.apple.dock.db for storing Date Added attribute.
So for my needs I have decided to use some kind of external database for storing "date added" value.
I think I will use NSUserDefaults, and I will use filename and inode number as a key.

PrefPanes & Plist Save Location in 10.7

I'm writing a preference pane & this prefpane saves a plist file with settings & I used to store this in the /Library/Preferences/ folder; This worked fine in OS X 10.6 but now we switched to 10.7 & apples has revoked the rights to write in the /Library/Preferences folder (without an administrator password) i.e. the prefpane can't write there. Is there a better location that is accessible by all the system where I can save my prefpane's plist file.
You should probably not explicitly write to Library/Preferences, but instead use NSUserDefaults. If that's not enough for you, I believe ~/Library/Application Support is an allowable option.

How to view data stored in Core Data?

I'm creating a Core Data model for my application. I would like to be able to look inside it to see what I have stored in there.
Is there an easier way than searching for the backing store (mine should be SQLite) and reading it from there? Doesn't seem very Apple-esque.
Once your app has run in the simulator and created the persistent store file, you can find the file in your app's Documents directory.
Your app data will be folder inside (~ is your home directory):
~/Library/Developer/CoreSimulator/<device>
In versions prior to XCode 6, the path was:
~/Library/Application Support/iPhone Simulator/User/Applications/
I sort by "Date Modified" to find the app that I just built.
For viewing a SQLite file, check out Base and/or Core Data Editor.
You can also use FireFox's Add-on tool SQLite Manager (FREE). I use it and it works well.
If you are using iOS 10 & Swift get it into your AppDelegate.swift:
let container = NSPersistentContainer(name: "***")
print(container.persistentStoreDescriptions.first?.url)
Then you'll see something like that:
Optional(file:///Users/<SomeUser>/Library/Developer/CoreSimulator/Devices/956F0003-5DA4-4588-97C1-A9A83767F341/data/Containers/Data/Application/9765FDE1-6971-4706-987B-96FBD3F462BF/Library/Application%20Support/***.sqlite)
You can try a little free tool called CoreDataPro. Pretty nice. Here
Core Data Lab is a dedicated Core Data viewer that offers everything to view and analyze the Core Data database of your app, like automatic search for databases, data change tracker, simulator browser, a predicate editor, data editor, a built-in web and image content viewer, and much more.
Info page: https://betamagic.nl/products/coredatalab.html
Free 14-trial: https://betamagic.nl/downloads/Core%20Data%20Lab%20Trial.zip
Diclaimer: I'm the creator of this tool.
I found a free version here:
http://sourceforge.net/projects/sqlitebrowser/files/sqlitebrowser/2.0%20beta1/sqlitebrowser_200_b1_osx.zip/download
Update to this thread, The iphone simulator location has been moved to a different location in Xcode7 and Xcode8. It is now in:
~/Library/Developer/CoreSimulator/...
where ~ is your home directory.
Any of the previous solutions will still work, but you won't be able to find the correct folder if you use the previous links.
Also try sqlite database browser. its free and reflects that fact. very useful though!
cheers.bo
I created a macOS app to browse your Core Data content. It hides Core Data implementation as you see when you use a SQLite browser. Also you can list all your latest run apps and simulators, with this you can easily find the app you are looking for. More info here:
http://www.microedition.biz/simMagnifier
It has other features like access Simulator's folders such as Documents, Application Support, etc. You can check the content of NSUserDefaults too.
The app is not free sorry! but at least you have a 7 days trial.
Here is the full path, apparently it changed since gerry3's answer
~/Library/Application Support/iPhone Simulator/<Simulator>/Applications/<ApplicationID>/Documents/<NAME>.sqlite
So a correct path would like this:
~/Library/Application Support/iPhone Simulator/7.1-64/Applications/C1F3C2E5-987A-4DF7-91EF-955AE6E52621/Documents/TestApp.sqlite
3 Easy Steps
install liya application, its free, Size 3.1 MB, so installs in 1 minute.
Link https://itunes.apple.com/us/app/liya/id455484422?mt=12.
Open Finder, Press "Ctrl + G" OR "CMD + Ctrl + G", Paste ~/Library/Developer/
In Developer Folder, search for your Core Data model name (eg. MyProjectModel).
Open MyProjectModel.d file Or 'MyProjectModel.sqlite' using liya. In liya, select a table, Click on "Run SQL Command".
Done.