Re: AttributedString from NSData on iPhone.

2010-08-07 Thread Douglas Davidson
My recommendation would be that anyone who has needs of this sort should file a bug giving details of the particular needs you have for your application. Douglas Davidson ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

AttributedString from NSData on iPhone.

2010-08-05 Thread Sandro Noël
Hello. I'm trying to take an attributed string from a PDF document and reproduce it on the phone. passing thru a SQLite Database. basically, i write to the database using NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithObject:NSRTFDTextDocumentType

Re: AttributedString from NSData on iPhone.

2010-08-05 Thread Kyle Sluder
On Thu, Aug 5, 2010 at 8:16 AM, Sandro Noël apple.li...@gestosoft.com wrote: NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithObject:NSRTFDTextDocumentType forKey:NSDocumentTypeDocumentAttribute]; iOS has no RTF support. You'll need to use HTML (but I have no idea if

Re: AttributedString from NSData on iPhone.

2010-08-05 Thread Sandro Noël
Kyle. What does it have support for? On 2010-08-05, at 12:00 PM, Kyle Sluder wrote: On Thu, Aug 5, 2010 at 8:16 AM, Sandro Noël apple.li...@gestosoft.com wrote: NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithObject:NSRTFDTextDocumentType

Re: AttributedString from NSData on iPhone.

2010-08-05 Thread David Duncan
On Aug 5, 2010, at 9:00 AM, Kyle Sluder wrote: On Thu, Aug 5, 2010 at 8:16 AM, Sandro Noël apple.li...@gestosoft.com wrote: NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithObject:NSRTFDTextDocumentType forKey:NSDocumentTypeDocumentAttribute]; iOS has no RTF support. You'll

Re: AttributedString from NSData on iPhone.

2010-08-05 Thread Kyle Sluder
On Thu, Aug 5, 2010 at 9:10 AM, Sandro Noël apple.li...@gestosoft.com wrote: Kyle. What does it have support for? No idea, you'll have better luck getting an answer from someone who actively works on an iOS application. I just recall that the lack of RTF was an issue for our iPad apps that

Re: AttributedString from NSData on iPhone.

2010-08-05 Thread Kyle Sluder
On Thu, Aug 5, 2010 at 9:22 AM, David Duncan david.dun...@apple.com wrote: My recommendation to Sandro (assuming I understand his situation) would be to store a representation of the NSAttributedString (probably as strings with matching attribute dictionaries) and reassemble the

Re: AttributedString from NSData on iPhone.

2010-08-05 Thread Sandro Noël
David, you do understand properly as that was my question. how do i reassemble the NSAttributedString from a NSData where it was stored. On 2010-08-05, at 12:22 PM, David Duncan wrote: On Aug 5, 2010, at 9:00 AM, Kyle Sluder wrote: On Thu, Aug 5, 2010 at 8:16 AM, Sandro Noël

Re: AttributedString from NSData on iPhone.

2010-08-05 Thread David Duncan
On Aug 5, 2010, at 10:13 AM, Sandro Noël wrote: David, you do understand properly as that was my question. how do i reassemble the NSAttributedString from a NSData where it was stored. That is the code you have to write basically. NSAttributedString has the methods you need for both getting

Re: AttributedString from NSData on iPhone.

2010-08-05 Thread Sandro Noël
Thank you david, I think i'll try serializing it and de-serializing it that should do the trick. Best regards. Sandro. On 2010-08-05, at 1:18 PM, David Duncan wrote: On Aug 5, 2010, at 10:13 AM, Sandro Noël wrote: David, you do understand properly as that was my question. how do i