GithubHelp home page GithubHelp logo

yepher / coredatautility Goto Github PK

View Code? Open in Web Editor NEW
519.0 519.0 49.0 5.94 MB

An OSX application that simplifies development and debugging of CoreData enabled applications.

Objective-C 96.74% C 3.26%

coredatautility's People

Contributors

allenhsu avatar delebedev avatar ghecho avatar soxjke avatar timbroder avatar yepher avatar yoiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coredatautility's Issues

Empty Managed Object Model

Thanks for the work on this. the tool looks very useful. Can you provide a little more info on the modelURL in the workaround for XCode 6 and the generation of the .cdp file?

I can launch the generated file and see my schema, however there is 0 data. I have tried the full path of the mom file (without filename), full path of mom file (with correct file name - fitboardData.mom), and also tried omitting file:// at the start of the path. All 3 scenarios yield an empty model, yet my app has core data objects, and the core data mom file DOES exist in the location specified by the cdp file.

I am using CoreDataPro 1.4 (7) and here is an attempt at my generated cdp file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>modelFilePath</key>
    <string>file:///Users/matt/Library/Developer/CoreSimulator/Devices/013354DF-0911-4BB9-A6FD-4EFB9127F338/data/Containers/Bundle/Application/0BCB8189-F58D-4142-B121-737FE5178E95/GroupNerds.app/fitboardData.momd/fitboardData.mom</string>
    <key>storeFilePath</key>
    <string>file:///Users/matt/Library/Developer/CoreSimulator/Devices/013354DF-0911-4BB9-A6FD-4EFB9127F338/data/Containers/Data/Application/515FD720-73E7-443B-B199-CCA18F343C3E/Documents/test.sqlite</string>
    <key>storeFormat</key>
    <integer>1</integer>
    <key>v</key>
    <integer>1</integer>
</dict>
</plist>

No data is showing up in CoreDataPro viewer

I'm creating my .cdp file as shown in the ReadMe. It used to work just fine, but recently, I'm unable to view any data at all when I open the CoreDataPro viewer. I've confirmed that I'm using the correct URLs. My sql lite store and managed object model are present in the file system at the paths that I see in the .cdp file. I'm not getting any errors from the CoreDataPro application, just an empty screen. I know my data is there, because I can see it when I open my sql lite store in sqllitebrowser.

UI

Hello,
I did some ui upgrade. If you interested in it, I can make pull request.

UI

Can't select files

In new project window I can't select any type of file under File tab. When app start, sometimes I am able to select the File .app file and model but not the persistence file. Its like the button is dead and it wont open any Finder window. If I chose New Project then the .app file chooser button is also dead.

I am on Yosemite and have tried the July and Sep builds.

image

1.4.6 iOS Simulator / Devices broken

Having some critical problems here...

  1. In 1.4(6) the Devices list has multiple entries for the same Simulator. Do we need to reload the Devices list each time?
  2. When opening a Device type (iPad Retina) the app is not found. Opening the second instance of the same Device yields similar results. Any ideas?

Love your tool. Thanks in advance for your help.

First record has all Null column values in all Entity fetches

Me again :) This tool has been very helpful identifying my own CoreData problems, so thanks again.

Please see these screenshots below. In each of my entity tables, the first record has all NULL values. I believe that this is a display problem with CoreDataPro, as my app is behaving correctly and there are no validation errors anymore saving the context. I forked the repo and was going to try an debug it on my own and send a pull request, but my Dev team is not part of the Mac developer program (only iOS), so I'd have to pay $99 to help you debug this :)

Let me know if you've seen this before or if you need more info from me.

image1

image2

image3

Fetch Requests are not added to history

When selecting a fetch request it is not added to the history.

Steps to reproduce:

  1. Open CoreDataPro
  2. Open the test files fetchRequest.mom/sqlite
  3. select the entity "Event"
  4. Select the entity "Another Entity"
  5. Use the history button and notice you can move between the the previously selected entities.
  6. Select the fetch request "MoreThan2000"
  7. Select the fetch request "LessThank 2199"
  8. Use the history buttons and notice only the previous history items are navigated between.

Expected Result:

The history for Fetch Requests should perform the same way as entities.

Exception when filtering data of entity which contains transformable attribute

Here it the trace (1800 is 'NSTransformableAttributeType'):

2013-03-09 19:05:49.984 CoreDataPro[7015:303] NSPredicatePattern cannot create operators for an NSAttributeDescription with type 1800
2013-03-09 19:05:49.986 CoreDataPro 7015:303 (
0 CoreFoundation 0x00007fff86dd60a6 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff902a93f0 objc_exception_throw + 43
2 CoreFoundation 0x00007fff86dd5e7c +[NSException raise:format:] + 204
3 AppKit 0x00007fff8a373708 +[NSPredicateEditorRowTemplate _operatorsForAttributeType:] + 474
4 AppKit 0x00007fff8a373a1b +[NSPredicateEditorRowTemplate templatesWithAttributeKeyPaths:inEntityDescription:] + 478
5 CoreDataPro 0x0000000100023440 -[MFLMainWindowController showPredicateEditor:] + 1840
6 AppKit 0x00007fff89dd9a59 -[NSApplication sendAction:to:from:] + 342
7 AppKit 0x00007fff89dd98b7 -[NSControl sendAction:to:] + 85
8 AppKit 0x00007fff89dd97eb -[NSCell _sendActionFrom:] + 138
9 AppKit 0x00007fff89dd7cd3 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1855
10 AppKit 0x00007fff89dd7521 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 504
11 AppKit 0x00007fff89dd6c9c -[NSControl mouseDown:] + 820
12 AppKit 0x00007fff89dce60e -[NSWindow sendEvent:] + 6853
13 AppKit 0x00007fff89dca744 -[NSApplication sendEvent:] + 5761
14 AppKit 0x00007fff89ce02fa -[NSApplication run] + 636
15 AppKit 0x00007fff89c84cb6 NSApplicationMain + 869
16 CoreDataPro 0x0000000100001302 main + 34
17 CoreDataPro 0x00000001000012d4 start + 52
)

NSOrderedSet relations support?

Awesome tool, just one question. Is CoreDataPro able to view NSOrderedSet relations? I'm not sure if it is because my setup or it is not yet available.

Question about add persistence file to load

I just don't know which file is the persistence file. I run the project in simulator, and in the coredatautility I click the simulator app, choose the right app, but in the step 3, persistence file to load here, I choose the suggested Model.mom file here. and click open, I got "fatal error while opening persistent store". So which file and which file extension I should choose here?

Show the iOS version for simulator devices

First - THANK YOU for creating this app and for updating it through Apple's changes to how simulators are stored. It's incredibly hard to figure out where to find one's app with the XCode 6 changes.

When I am attempting to select my app, I get a list of devices such as "iPad Retina", "iPhone 5", etc, and the list repeats, I assume for different versions of iOS.

It would be great if you could list the version of iOS along with the device as currently I have to hunt through the list for each instance of the device I'm testing against looking for my app.

Transform to Document-Based application

It will be nice to create document based application.

http://developer.apple.com/library/mac/#documentation/DataManagement/Conceptual/DocBasedAppProgrammingGuideForOSX/Introduction/Introduction.html

The Cocoa document architecture provides your app with many built-in features, such as autosaving, asynchronous document reading and writing, file coordination, and multilevel undo support. In most cases, it is trivial to opt-in to these behaviors. If your app has particular requirements beyond the defaults, the document architecture provides many opportunities for extending and customizing your appโ€™s capabilities through mechanisms such as delegation, subclassing and overriding existing methods with custom implementations, and integration of custom objects.

Add support for physical device

The user should be able to plug in their device and get a list of apps on the device. The user should be prompted for the list of files in the store file.

The user must not be required to jailbreak their phone.

Application List

The app "deviceconsole" will list the installed app.
See: https://github.com/imkira/mobiledevice

Core Data Persistence File

The user will need to store their *.mom and persistence file in a locations that ITunes can access it.

Programatic access seems possible with MobieDevice.framework.

Better handling of iOS Simulator projects

CoreDataUtility should still be able to open an iOS Simulator project even if the app is uninstalled and reinstalled.

Problem

The problem is when an app is uninstalled from iOS it deletes the UUID that the .app and .mom files were in. Next time app is installed a new "UUID" is created.

Solution 1

If instead we tracked "iOS Simulator version", app name, and .mom file name we should be able to search through the list of apps for a given version of the simulator and still open the project.

Solution 2

Instead of pointing directly to .app and .mom file instead point at the XCode project and parse it. Use that to determine where the .app and .mom files are located.

This will be very problematic as the project file changes.

Refresh: the data is not reloaded from modified sql db

  1. Open Simulator app with Core Data
  2. Create some managed objects, save
  3. Create new project in CoreDataUtility
  4. Create some managed objects again, save
  5. Click Refresh

Actual result:
only objects from step 2 are displayed

Project setup: values are cleaned after switch to any other tab

  1. Pick *app file
  2. Pick *sqlite file
  3. Go to OSX Process/iOS Simulator tab
  4. Go to File tab

Result: the fields are empty

Also, I think it should be nice to save these fields content during the application restart (because often user works with one application for a long time)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.