CFAttributedString and NSDATA

2010-06-03 Thread Chaitanya Pandit
It's really funny that the 3.2 SDk has incorporated the use of CFAttributedStrings, but its really funny theres no way to convert it to NSData and back. Does anyone have any idea about how to persist a CFAttributedString by converting it to NSData on 3.2? I'd appreciate any help. Thanks,

Re: CFAttributedString and NSDATA

2010-06-03 Thread Jean-Daniel Dupas
Le 3 juin 2010 à 12:14, Chaitanya Pandit a écrit : It's really funny that the 3.2 SDk has incorporated the use of CFAttributedStrings, but its really funny theres no way to convert it to NSData and back. Does anyone have any idea about how to persist a CFAttributedString by converting it

Re: CFAttributedString and NSDATA

2010-06-03 Thread Kyle Sluder
On Jun 3, 2010, at 4:24 AM, Jean-Daniel Dupas devli...@shadowlab.org wrote: If it behaves as the Mac OS CFAttributedString, cast it into an NSAttributedString and use an archiver. Is NSAttributedString a public type in 3.2? Check the Omni text editor source on Github and see if we have

Re: CFAttributedString and NSDATA

2010-06-03 Thread Jean-Daniel Dupas
Le 3 juin 2010 à 14:07, Kyle Sluder a écrit : On Jun 3, 2010, at 4:24 AM, Jean-Daniel Dupas devli...@shadowlab.org wrote: If it behaves as the Mac OS CFAttributedString, cast it into an NSAttributedString and use an archiver. Is NSAttributedString a public type in 3.2? Look like it

Re: CFAttributedString and NSDATA

2010-06-03 Thread Jens Alfke
On Jun 3, 2010, at 4:24 AM, Jean-Daniel Dupas wrote: If it behaves as the Mac OS CFAttributedString, cast it into an NSAttributedString and use an archiver. That will work, but wouldn’t saving it as RTF be a more standard way of doing it? (Or does the RTF import/export category on

Re: CFAttributedString and NSDATA

2010-06-03 Thread David Duncan
On Jun 3, 2010, at 9:54 AM, Jens Alfke wrote: On Jun 3, 2010, at 4:24 AM, Jean-Daniel Dupas wrote: If it behaves as the Mac OS CFAttributedString, cast it into an NSAttributedString and use an archiver. That will work, but wouldn’t saving it as RTF be a more standard way of doing it?

Re: CFAttributedString and NSDATA

2010-06-03 Thread Chaitanya Pandit
Yeah NSAttributedString is available in 3.2, but what would have been more helpful would be having the AppKit additions of NSAttributedStrings. The CFAttributedString and the NSAtttibutedString in 3.2 looks kinda half hearted effort without the AppKitAdditions Chaitanya Pandit On Jun 3, 2010,

Re: CFAttributedString and NSDATA

2010-06-03 Thread glenn andreas
On Jun 3, 2010, at 12:08 PM, Chaitanya Pandit wrote: Yeah NSAttributedString is available in 3.2, but what would have been more helpful would be having the AppKit additions of NSAttributedStrings. The CFAttributedString and the NSAtttibutedString in 3.2 looks kinda half hearted effort