markdown to uiview/nsview [closed] - objective-c

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am trying to process a markdown string to display it in either a scrollable UIView or NSView on iOS and OSX in Objective-C/Cocoa. Is there a library available to implement this?
I have had a quick look on Google and there doesn't seem to be any obvious library to use.

I'm not sure if there is a library out there for Markdown, but if I had to add support for it in my app I'd directly translate it to HTML markup and show that in a webview. Provided it doesn't have to be editable, of course.

Following up on what Lvsti said, if you make use of one of the many Javascript Markdown interpreters through a Webview, you wouldn't even need to do the translation yourself; just make sure the script is loaded in your Webview and fire the appropriate Javascript selector to feed in the Markup.

Related

How do you make a simple Cocoa/Objective-C text editor [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want to know how to make a very, very simple text editor with Xcode. I only want it to be able to save, load, and write text files. I am just doing it out of curiosity.
Here's a complete project for TextEdit the text editor that comes with OS X: https://developer.apple.com/library/mac/samplecode/TextEdit/Introduction/Intro.html#//apple_ref/doc/uid/DTS40011741
If you want to start from scratch and do it yourself, take a look at the NSTextField class, or for saving, take a look at NSArchiver. All your pretty much have to do is create a new project, add an NSTextField to your window, and write the code to load and save the file.
Get the book Cocoa Programming for Mac OS X by Aaron Hillegass. It will show you how to get started, or just check out developer.apple.com. Lots of documentation there.

Can someone explain WebKit? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am trying to understand WebKit properly. I understand its the browser engine. But its not clear to me what exactly it contains and more importantly what does it not contain? The one thing I am having trouble placing is the JS engine. Is the DOM implementation part of WebKit?
Where does the JS engine (like V8) fit? Going by this page I assume that the SubResourceLoader towards the end of the image is loading the JS. But the JS also changes the DOM (or uses the DOM) so it needs to be integral part of the WebKit engine.
So can some one explain what WebKit does and more importantly what it does not do?
Thanks a lot for your help.
EDIT: I found this document which explains all I need very clearly.
Have you looked at the documentation? This part describes the various components.
Also, Paul Irish wrote a decent overview that you should read.

Draw along a path detection in iOS [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am writing a writing app for Kids.
I need to enforce writing along a define path like in Dora ABC apps. For example, writing A.
When user touch and draw, it draw only when user finger are along the defined path and can detect whether user follow that path or not.
My path are defined in UIBezierpath.
I try to use CGRectContainsPoint but it seem to be too much code when I have so many alphabet.
Any suggestion is much appreciated.
Thanks!
you may try another approach-
Using Custom gestures in ios: Using this feature you can have predefined gestures for alphabets and you can use these gestures for detection. demo code available at https://github.com/britg/MultistrokeGestureRecognizer-iOS
Or if you want to implement it from scratch- http://blog.federicomestrone.com/2012/01/31/creating-custom-gesture-recognisers-for-ios/

How to create adjustable UIView similar to the Pic Jointer / Diptic apps in iOS [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am working on app like on Pic Jointer / Diptic. I am successfully able to create two separate view which are re-sizable separately, but I want to implement an adjustable view like the Pic Jointer and Diptic apps.
I have tried lot to make a UIView similar to some example apps, however I've failed to implement this kind functionality. I have also successfully been able to create two separate UIViews which can be resized and dragged.
Can any one guide me how can I achieve this kind of functionality? Tutorials, links, explanations, open source libraries, anything?
What kind of functionality would this require, and how would one go about implementing that using UIImageView and / or UIView?

How to display a PDF in Objective-C? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How to read and display PDF in Objective-C?
If you just want to display it, the easiest way is to load it in a UIWebView.
If you want to solely read and display PDFs to users, as the Mail app does on your iOS device with all the scrolling and zooming done for you, then I would use a UIDocumentInteractionController.
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIDocumentInteractionController_class/Reference/Reference.html
You'll find some useful code in one of my recent questions, here:
UIDocumentInteractionController crashing upon exit
Hope this helps.
the easiset way is with the UIDocumentInteractionController
Drawback: you need a local file-url