Skip navigation.
 
mlRe: Problems subclassing NSTextField
FROM : matt neuburg
DATE : Mon Nov 25 17:45:48 2002

On Fri, 22 Nov 2002 18:15:05 +0200, Kalle Soiha <kalle.<email_removed>> said:

>My plan was simple: subclass NSTextField and override the -keyDown:
>method.
>
>Good and simple plan, yes, except that it does not work. My own
>-keyDown: -method is not even called and the control works just like a
>regular NSTextField. I cannot even seem to *break* the control in any
>way


>1) Why don't my overridden functions get called?

This is has been discussed many times here, so check the archives. The short answer is simple: when the user is typing an an NSTextField, it is not the NSTextField but its "field editor" that s/he is really typing in. Therefore it is the "field editor" whose behavior you would need to modify. m.

matt neuburg, phd = <email_removed>, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlProblems subclassing NSTextField Kalle Soiha Nov 22, 17:15
mlRe: Problems subclassing NSTextField matt neuburg Nov 25, 17:45