Re: AddressBook-like TextFields?
Re: AddressBook-like TextFields?
- Subject: Re: AddressBook-like TextFields?
- From: Jiri Volejnik <email@hidden>
- Date: Sat, 21 May 2005 01:01:31 +0200
On 21.5.2005, at 0:40, Corbin Dunn wrote:
AddressBook is probably using NSLayoutManager directly and some
custom subclass of NSView to layout and display the text. The text
field for editing appears on-demand only. It has been discussed some
time ago, so search the archives.
AB does use a custom subclass of NSView. Instead of laying out the
text, it might be easiest to draw the text in the desired locations
using an NSCell (like what the TableView does), and manually begin
editing the text in a single/double click (using: [NSCell
selectWithFrame:inView:editor:delegate:start:length]. A snippet of how
this is done would be:
...
Yes, it sounds good. But, in case of using cells, would it be possible
to select and copy the text as a whole, like it is possible with AB
view?
I'll send you a demo app that I have which does this. If anyone else
is interested in having it, drop me an email.
--corbin
Sure I am interested, thanks!
Jirka
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden