• 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 00:16:04 +0200

I'd like to create a form like in AddressBook or the Info window for iCal.

The most interesting part is the text fields, which have no border until
they have the focus. My questions break down into two parts.


First, I had assumed that the best way to so this is to subclass
NSTextView, but being a Cocoa newbie I don't know much about Cells. Now,
after reading a bit about NSTextFieldCell, I'm thinking maybe I'd need to
subclass that. Do I need to subclass both? How would I get NSTextField to
use my NSTextFieldCell subclass?

Hi Justin,
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.


You may also look at here:
file:///Developer/ADC Reference Library/documentation/Cocoa/ Conceptual/TextLayout/TextLayout.html


and here:
/Developer/Examples/AppKit/CircleView

Nice reading,
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>
  • Prev by Date: Creating an Offscreen NSView
  • Next by Date: Re: "Selector not recognized" for existing selector : how is this possible??
  • Previous by thread: AddressBook-like TextFields?
  • Next by thread: Re: AddressBook-like TextFields?
  • Index(es):
    • Date
    • Thread