Objective-C Load XML file into NSTableView - objective-c

Can anyone help me, I'm a n00b at this and still learning.
I simply need to load an XML file into a table view and add a search function to it which filters the table view. I was looking for a tutorial on this or some sample code.
This is for a Mac app.

Here is the apple tableview guide
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/TableView/TableView.html
and here is the NSXML guide
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/NSXML_Concepts/NSXML.html
If you look at my post here I am using a NSURL connection to get local xml, in place of a web service.
Accessing Local file using NSURL
I would strongly suggest getting a copy of the Big Nerd Ranch iOS programming guide, it covers exactly what I think you want to do near the end of the book.

Related

Creating a simple, single-view Quartz app

I'm an Objective-C newbie. Most of my experience is in Java. Also, I've never really used Xcode before and so I'm pretty new at that as well.
I'm trying to create a simple, single-view Quartz OS X app (not iOS) to display agent-modeling simulations. The graphics are pretty simple; just colored squares and grids. I have been looking at Quartz tutorials and I can see how I could accomplish this (as far as drawing things are concerned). What I can't find is an example that tells me how to tie it all together. What do I put in AppDelegate? Do I need a WindowController? How do I link that up with AppDelegate? I got as far as creating a Quartz Composer View in Interface Builder for my app, but I have no idea where to go from there.
As I mentioned before, I've looked for numerous tutorials but there is nothing that I can find that gives me information as far as linking everything together.
You should visit this web page before you do anything else. It will show you how a Cocoa application is structured and where the appropriate entry points are to place your code.
While the entire article merits reading, visit the section "Entry and Exit Points," which best addresses your particular questions.

Create PDF Annotations in iOS

I've been working on a pdf viewer with support for annotations and I need to be able to save new annotations that the user has created. I've seen tons of examples on how to draw text/lines/images, but that's only flattened content, I need to create actual annotation objects
I've found no documentation or examples about it, so if anyone could point me in the right direction I would be extremely grateful
Cheers!
Edit: After several months of work we could release the v1 of this. We ended up using an open source c++ library, and went through a huge pain to make it compile for iOS. The one in charge of that isn't working in the company any more so we can't publish how we managed to do it
Well, there are several paid/free source codes which are available which includes pspdfkit, fastpdfkit etc. Find the links below:
Well maintaining, support, and features but very expensive:
http://pspdfkit.com/
Looks nice, but not maintaining/support:
http://fastpdfkit.com/
https://github.com/vfr/Reader/
Other StackOverflow Threads:
add annotation to pdf
Add an annotation on a pdf
Annotation (notes, comments) using Quartz 2d in ios
Blogs:
http://codecanyon.net/item/html-pdf-viewer-ios-xcode-project/154673
http://www.binpress.com/app/pdftouch-sdk-for-ios/859
For free/open-source app you can check at
http://poppler.freedesktop.org/
Please read the issues before using this framework, this developer is no longer maintaining and it has some serious issues.
I created an open source framework for PDF annotation in IOS in GitHub. It supports both iPhone and iPad. Please check it out here.

How do I make a tracking map using KML on an iOS device?

I am trying to make a basic application which show my track on the map while walking. Is there any tutorial or source code.
Thanks in advance.
Edit: A friend helped me by this code sample code but it didn't run well http://dl.dropbox.com/u/31913717/MapTracking.zip
I am not at all an iOS developer, just never learned. However, I know that iOS has a KMLViewer that might be useful. Otherwise you will likely have to parse the KML as XML and then figure out what to do with it.

How to parse a simple XML file using Xcode 4.2.1

dont get to harsh on me for asking this question, I know this has been asked many times. But the examples I found on the internet are either old or I am having difficulties to port them on to iOS5-Xcode 4.2.1. So I am really looking for a updated simple example where I can parse a simple XML file from an URL, store the values and display them in a tableView. I am looking for some working examples using NSXMLParser. In case if one of you guys have some info about where I can find a working example/internet link which I can follow and make it work on my machine, so that I can play and get some hands of experience on dealing with XML data, before I go on to work with the complex XML data files.
Any one who can post some code is also highly appreciated, as it would help beginners like me.
have you checked this tutorial of parsing XML data with NSXMLParser -
http://wiki.cs.unh.edu/wiki/index.php/Parsing_XML_data_with_NSXMLParser
i think your are looking for this.
Also there is an another good way to do this is using TBXML framework - https://github.com/71squared/TBXML

Good Core Data Example Code with Subviews

I am having an issue with my Core Data app and I could probably figure it out if I could look at a good example. I have searched the web and I have only been able to find the same examples like Random Dates which is pretty much useless and only has one View Controller. I am looking for a Core Data app using multiple levels and real information, not random date inserts.
Thanks in advance
Marc Zarra, Core Data guru, has some helpful blog posts that might get you a little bit closer. Try starting here to get you started. This is just one way to go about it. I'm using a shared managed object context via a shared instance of my app controller, so all I have to do is call something like this from a view controller to start accessing my CD object:
AppController *ac = [AppController sharedAppController];
NSManagedObjectContext *moc = [ac managedObjectContext];
I can't find the relevant links right now, but I have a feeling that idea might have come out of the Big Nerd Ranch iPhone dev book. I hope this helps get you going on the right path for what you need.