Re: CFAttributedString and NSDATA
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 without the AppKitAdditions > AppKitAdditions require AppKit - they are specifically tied to AppKit graphics models and data structures, none of which exist on the iPhone. Nor, for that matter do any of the sophisticated AppKit based text rendering mechanisms that use the various things in AppKitAdditions. If you have specific things in mind that you need, you should file an enhancement request at bugreporter.apple.com. Glenn Andreas gandr...@gandreas.com The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CFAttributedString and NSDATA
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, at 10:28 PM, David Duncan wrote: > 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? (Or does the RTF import/export category on NSAttributedString not >> exist in UIKit?) > > > It doesn't exist in UIKit. > -- > David Duncan > Apple DTS Animation and Printing > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/chaitanya%40expersis.com > > This email sent to chaita...@expersis.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CFAttributedString and NSDATA
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? (Or does the RTF import/export category on NSAttributedString not exist > in UIKit?) It doesn't exist in UIKit. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CFAttributedString and NSDATA
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 NSAttributedString not exist in UIKit?) —Jens___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CFAttributedString and NSDATA
Le 3 juin 2010 à 14:07, Kyle Sluder a écrit : > 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. > > Is NSAttributedString a public type in 3.2? > Look like it is. NSAttributedString: Availability Available in iPhone OS 3.2 and later. And it conforms to NSCoding. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CFAttributedString and NSDATA
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. Is NSAttributedString a public type in 3.2? Check the Omni text editor source on Github and see if we have code to serialize attributed strings. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CFAttributedString and NSDATA
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 to NSData on 3.2? > I'd appreciate any help. > If it behaves as the Mac OS CFAttributedString, cast it into an NSAttributedString and use an archiver. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com