Re: How to: Address Book-like text UI
Re: How to: Address Book-like text UI
- Subject: Re: How to: Address Book-like text UI
- From: Uli Kusterer <email@hidden>
- Date: Wed, 5 Sep 2007 12:24:15 +0200
On 05.09.2007, at 09:38, Kai BrĂ¼ning wrote:
I want to create a view with similar behavior to the Address Book
card view: text blocks are positioned in the view under program
control, but can be selected as a continuous text (unless in edit
mode). Of course I want to use the Cocoa text system.
My understanding so far is as follows:
To enable the continuous selection, all text has to be in a single
NSTextStorage object.
I don't think address book actually does continuous selection. At
least it doesn't work reliably. So my guess would be that they're
probably using NSTextAttachments for the edit fields (or whatever the
class was named that does in-line images etc.), and have a separate
text view for the fields that aren't focused that is only selectable.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden