• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AddressBook-like TextFields?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: AddressBook-like TextFields?
      • From: Corbin Dunn <email@hidden>
References: 
 >Re: AddressBook-like TextFields? (From: Jiri Volejnik <email@hidden>)
 >Re: AddressBook-like TextFields? (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: Core Data, Document based app, and a structure
  • Next by Date: Re: International date formatting
  • Previous by thread: Re: AddressBook-like TextFields?
  • Next by thread: Re: AddressBook-like TextFields?
  • Index(es):
    • Date
    • Thread