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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/blachman%40mac.com

This email sent to blach...@mac.com

--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email: blach...@mac.com
twitter: @benlachman
mobile: 740.590.0009





--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email: blach...@mac.com
twitter: @benlachman
mobile: 740.590.0009



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to