On Jun 15, 2012, at 1:41 PM, Kyle Sluder wrote:

> What do you want the trigger to be for selecting all the text? "Whenever the 
> user starts editing my text field, all the text should be selected so they 
> can hit one key to replace it all?"
> 
> If that's what you want, I'd just hook up an object as the text field's 
> delegate and implement -controlTextDidBeginEditing: to select all text in the 
> field editor (accessible via the @"NSFieldEditor" key of the notification's 
> user info dictionary).


Just what I was looking for!

-koko
_______________________________________________

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

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

Reply via email to