• 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
AddressBook-like TextFields?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AddressBook-like TextFields?


  • Subject: AddressBook-like TextFields?
  • From: email@hidden
  • Date: Fri, 20 May 2005 11:55:41 -0700 (PDT)
  • Importance: Normal

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?

The second question is about whether or not AddressBook actually uses
NSTextFields in the first place. The reason I ask is that when one field
has focus it draws a border and a drop shadow. The shadow actually
overlaps on adjacent fields. Unless NSViews are able to draw outside their
bounds rect then there's some trickery going on. Either the AddressBook
form is one big view that draws all the fields itself (very possible since
it's dynamically populated) or the fields actually do overlap.

I'm mostly concerned with getting the overall look, no matter how it'
implemented (as long as it works with bindings), so any suggestions are
greatly appreciated.

Thanks,
  Justin
 _______________________________________________
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

  • Prev by Date: Re: International date formatting
  • Next by Date: if an NSWindow is a drawer, how can I find the NSDrawer instance?
  • Previous by thread: Re: NSFileManager and Mac OS X: fully compatible before the end of days?
  • Next by thread: Re: AddressBook-like TextFields?
  • Index(es):
    • Date
    • Thread