I'm new to syncing data from iCloud so I have been using different tutorials to figure out how to upload my Core Data database to the iCloud. To do this I used a GitHub Source Code (https://github.com/mluisbrown/iCloudCoreDataStack). According to the Debug menu on Xcode 5 I am uploading Data to the iCloud and then it shows it is downloading however I see no data being returned, I think this is because I have nothing implemented in the -(void)storesDidChange:(NSNotification *)note method. I have no clue how to put this data into practice. Please let me know if there is anything you need from me and I'll be happy to get it to you! Thank You!
This is a standard Core Data iCloud issue and is not impacted by the code you are using.
You need to consume that notification when it comes back. You do this with your main NSManagedObjectContext using the method -[NSManagedObjectContext mergeChangesFromContextDidSaveNotification:]. This will cause your NSManagedObjectContext to tickle any NSFetchedResultsController instances that you have.
I am also using PersistanceStack. In storesDidChange:, I simply post a notification to the notification center. This is caught by any active view controller displaying any relevant data.
In the view controller I simply update the Interface, e.g. by performing a fetch on the fetched results controller and/or reloading a table view.
Related
My app uses parse and I've already migrate to heroku + mlab. However, the data's not always there when I open the parse dashboard. I often get the following (when i click into no class will appear)
My app login a user and display a tableview of uiimages at launch. My app would often try loading but not being able to fetch anything from the server. Every time that happens I checked the dashboard and get the above. Any help would be greatly appreciated!
Update
i'll try to provide as much info as possible, please tell me if you hv any specific info you want me to share
I'm not entirely sure I am asking the question correctly but here goes.
I am trying to view customer data via the REST service. I've gotten the login and and can view the servlet(Response as HTML), atleast i thought it was the servlet, i just realized its just the path to the servlet/start.
I think what I am seeing is just the hardcoded HTML messages that get viewed depending on customer data. Viewing as JSON doesn't work either i get "The content you are trying to view cannot be viewed as JSON"
I'm sorry I don't know enough to ask this properly
Well, it was a n00b mistake. I didnt call the action prior to loading the page so there was no data to ever load.
I would like to create a web page, which documents manually-inputted data about user permissions, that looks like below, which is really pulling data out of a MySQL table.
The way it should act is that whenever someone updates the table to overwrite a value, the old values are stored in a log as a "past revision" -- Which I have no problem on the database side, but I want those past revisions to show up behind the current data on the website, as seen below.
Someone needs to be able to see the current data at a glance, but also the past revisions that expand somehow when clicked. I want this done without having the page refreshed, so maybe jQuery or some active scripting?
That's the heart of the question here, is what technology can easily accomplish the needs of this interface? What do you guys recommend? Examples would be very beneficial. Thanks in advance.
You may try out SVG (along with some jquery for some rich interface):
http://www.w3schools.com/svg/default.asp
I am currently really new to Xcode and the whole Iphone App development but reasonable proficient in Javascript/HTML/SQL.
I am looking at creating a new App which queries its data from a Kumulos database (Kumulos API's).
Before i head down the path, i just want to know if it was possible to query the database(i know how to do this), but more importantly load the returned data into a webview control.
Similar sort of idea as facebook app. I know they use a webview control.
Ive searched, but currently haven't found an answer on how do do this.
Can you suggest a better method?
Excuse my lack of coding examples.
The best way to do this is create objecive-C methods that are called by the javascript in your web view as per this guide:
Calling Objective-C from UIWebView
This way you could call an objective-C function that returns the data loaded from Kumulos, you can then do what you like in the javascript with the loaded data.
I have a core data app set up, and everything is working pretty well. But there is one little problem. When I insert a new object into my entity I have it go to my NSTableViewCell, where I can edit it to the text I want, but there's one little issue, I can edit the cell, but I can't deselect it to save it to core data, it's stuck in edit mode and the only way I can get out of it is by quitting the application, AND it doesn't save the new name I just gave it in my cell.
This kind of functionality is covered in the Core Data tutorials provided by Apple. It will get you to make use of the NSArrayController which is a very helpful class for synchronising the view (NSTableView) and the model (Core Data).
I believe this is a great place to see how this works: http://developer.apple.com/cocoa/coredatatutorial/index.html
Hope that helps.
What method are you using to connect the table view to the core data store? Bindings? Data Source?
My guess is that you haven't implemented this at all. If you are just getting starting then I suggest implementing an NSTableViewDataSource instance.
http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSTableDataSource_Protocol/Reference/Reference.html