Re: How to parse a search string..
Re: How to parse a search string..
- Subject: Re: How to parse a search string..
- From: Uli Kusterer <email@hidden>
- Date: Mon, 13 Feb 2012 10:26:17 +0100
On 13.02.2012, at 00:22, Graham Cox wrote:
> If you really have to annoy the user by rejecting their input as they go, there are delegate methods on the field editor which would allow you to validate the text as they type - look up "field editor" in the guides.
Isn't that what NSFormatter is for? Allow only input of numbers into a text field, and the likes? That's how NSOpenPanel does, it substitutes any colon character you type in (which is, to criminally simplify, the path component separator character on HFS) with a minus sign.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.masters-of-the-void.com
_______________________________________________
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