• 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: Address Book-style editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Address Book-style editing


  • Subject: Re: Address Book-style editing
  • From: Ben Lachman <email@hidden>
  • Date: Mon, 05 Oct 2009 14:42:59 -0400

Brad:

My app, SousChef, does this. The way adress book and SousChef do it is to use a customized textview. You add custom attributes to mark the different fields (textview's NSTextStorage is a subclass of NSAttributedString). Then you control selection based on these attributes when in edit mode. When a field is selected, you just draw a editing box + drop shadow around the full range of the field. To get the plus/minus buttons (which I'm actually kind of thinking about removing from SousChef), you can stick them in a customized rulerview as markers and show/hide the ruler based on editing mode.

Hope this helps,
->Ben

On Oct 1, 2009, at 1:21 PM, Brad Gibbs wrote:

Hi,

I'm trying to re-create Address Book's editing style - if a user pushes a button labeled Edit, subsequent clicks on a label bring up what looks like a separate view for the new information. Clicking return after editing commits the edit and moves on to the next field.

I'd also like to be able to have the plus and minus signs next to phone numbers, email fields, etc.

I don't see a stock Cocoa / AppKit way to do this. Does anyone know of a public framework that mimics this behavior? Short of that, any ideas on how to re-create the editing field that pops up?


Thanks.

Brad
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

-- Ben Lachman Acacia Tree Software

http://acaciatreesoftware.com

email: email@hidden
twitter: @benlachman
mobile: 740.590.0009





--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email: email@hidden
twitter: @benlachman
mobile: 740.590.0009



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Address Book-style editing (From: Brad Gibbs <email@hidden>)

  • Prev by Date: Storing UInt64 in a Core Data attribute ?
  • Next by Date: Re: Checking whether a file is a genuine PDF file
  • Previous by thread: Re: Address Book-style editing
  • Next by thread: Order of CALayer's
  • Index(es):
    • Date
    • Thread