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 (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