Re: AddressBook-like TextFields?
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