Thread: Rich Text to HTML
06-20-2008, 12:57 PM #1
Rich Text to HTML
- Member Since
- May 13, 2005
I'm pretty new to coding but I'm working on a leopard app that can post entries to googles blogger service and at the moment it's just taking the contents of my NSTextView and setting them as NSString to be sent by the GData API. A developer over on the google discussions for the API said I can use a method which will take the contents of the text view as an NSAttributedString and then convert them to HTML.
The reason I want to do this is so the rich text I enter into the text view (Bold, italic & underline) will have the correct html tags attached to them when the post is sent to blogger. It's similar to saving a HTML file from TextEdit, except I dont want the excess stuff that gets generated, just the tags for adjusting the font type, like <b> for bold, <i> for italic and <u> for underline.
I know there are ways of doing it (becuase of TextEdit) but I need someone to give me a pretty good guide of implementing it as I have no experience with dictionaries. If someone here is willing to help out it would be awesome and I will credit you in my App (with your permission of coarse) or if you know of any good sources (apart from Apple's documentation) it would be very much appreciated.
I'm 17 and have only been developing for a couple of months so it's all pretty new to me.
Alex MillsMacbook (Late 2006 Core 2 Duo), Viewsonic VA1912w screen, Apple Keyboard & bluetooth Mighty mouse, Seagate 320GB USB Drive, Griffin Elevator laptop stand, 30GB iPod Photo, 2nd Gen silver iPod Shuffle 1GB, 8GB iPod touch
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By lemac in forum OS X - Apps and GamesReplies: 1Last Post: 07-08-2010, 09:18 PM
By camel77 in forum OS X - Operating SystemReplies: 1Last Post: 12-08-2009, 01:14 PM
By Gator626 in forum OS X - Operating SystemReplies: 6Last Post: 11-01-2009, 09:00 PM
By liveahsmama in forum Switcher HangoutReplies: 1Last Post: 01-04-2008, 12:48 AM
By tafika in forum Web Design and HostingReplies: 6Last Post: 07-04-2005, 10:45 AM