New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Rich Text to HTML


Post Reply New Thread Subscribe

 
Thread Tools
millsy05

 
Member Since: May 13, 2005
Posts: 18
millsy05 is on a distinguished road

millsy05 is offline
Hey Guys

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.

Cheers
Alex Mills

Macbook (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
QUOTE Thanks

Post Reply New Thread Subscribe


« Unix Crypting | Cocoa Programming for Mac OS X »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
html rich text how do I turn it off? liveahsmama Switcher Hangout 1 01-04-2008 12:48 AM
Opening an HTML file as an editable text file newmacmike Web Design and Hosting 6 04-10-2007 12:43 AM
Change text in 60 html files timswim78 Running Windows (or anything else) on your Mac 2 05-03-2006 06:11 PM
Plain text HTML editor for OSX? iMan Web Design and Hosting 10 09-01-2005 11:52 AM
LiveJournal rich text tafika Web Design and Hosting 6 07-04-2005 10:45 AM

All times are GMT -4. The time now is 11:00 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?