How to insert text on button click?
How to insert text on button click?
- Subject: How to insert text on button click?
- From: Magnus Strand <email@hidden>
- Date: Wed, 26 Jan 2005 15:40:52 +0100
Hi!
I have a window with buttons, an NSForm with text fields etc.
When the user clicks a button I would like to insert some characters
where the text caret is blinking.
How can I do this?
My button sends an action to MyDocument.
I have tried sending keyDown messages, but failed (perhaps I got wrong
context or time in NSEvent).
I also tried getting the field editor and calling insertText, but the
field editor seemed to be in wrong state.
I have a custom field editor for my NSForm.
--
Regards,
Magnus Strand
System Developer, MSc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden