|Jan 5, 2012, 11:27 AM||#1|
Help with text formatting in an NSTextView
I'm pretty inexperienced with Objective-C & Cocoa, but learning fast! I'm working on an app that needs to parse XML files, and format some text according to a few pseudo-HTML tags, such as <body>content</body> and <heading>content</heading> etc.
I've been doing some command-line app experiments with the NSXML API (NSXMLNode, NSXMLDocument, NSXMLElement etc.) and I'm happy about reading, writing, creating, parsing etc. an XML document.
What I'm not sure of is, once I've extracted the data from the XML document and got a tree of XML objects, how to format the text in the NSTextView, and also how to detect which ranges of text in the NSTextView are in what size, font weight etc.
Could somebody please point me towards the appropriate classes etc, and I'll try and work it out from the Apple docs.
|Jan 5, 2012, 04:20 PM||#2|
These guides should get you started:
Text System Overview
Cocoa Text Architecture Guide
Text System User Interface Layer Programming Guide
Attributed String Programming Guide
Text Layout Programming Guide
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Help with port forwarding for Security software?||PPFee||Mac Applications and Mac App Store||1||Dec 11, 2011 04:34 PM|
|help with text boxes in Pages||TonyBaloney||Mac Applications and Mac App Store||2||Dec 9, 2011 05:19 PM|
|Issue with rich text formatting in Mail.app||Ekim Neems||Mac Applications and Mac App Store||0||Jul 26, 2011 09:48 AM|
|Help with conditional formatting in Numbers||jakeene||Mac Applications and Mac App Store||0||May 4, 2010 03:33 PM|
|[solved] Help with CSS Formatting - text above image bug||Consultant||Web Design and Development||4||Feb 6, 2010 06:44 PM|
All times are GMT -5. The time now is 01:36 AM.