Skip navigation.
 
mlRe: How can I retrieve the control's message?
FROM : John Stiles
DATE : Tue Jan 29 03:06:02 2008

In Cocoa, you don't run the event loop yourself, so there aren't events
like this. Instead, most things like this happen via delegates, and in
some rare cases, subclassing.

For instance, when the user types into an NSTextField, the delegate
method "textDidChange:" is invoked. You need to set a delegate on the
NSTextField and implement textDidChange: in your delegate class.


王兆明 wrote:
> I'm a Windows programmer, and have been written program for Linux some
> times, now, I try to learn programming under Mac.
>
> But, as you know, in Windows, there are many System-Defined custom messages,
> such like WM_KEYDOWN, or, WM_NOTIFY, with these I can retrieve many
> information or actions occurred on controls, such like the TreeView.
>
> But in Mac, in cocoa, I can't find anything like them, I even don't know how
> to hook the action when user input some text into the TextBox or when user
> have select some node in TreeView, who can tell me, how to do this?
>
> Thanks again.
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>

Related mailsAuthorDate
mlHow can I retrieve the control's message? ??? Jan 29, 02:58
mlRe: How can I retrieve the control's message? Nick Zitzmann Jan 29, 03:05
mlRe: How can I retrieve the control's message? John Stiles Jan 29, 03:06
mlRe: How can I retrieve the control's message? Douglas Davidson Jan 29, 03:12
mlRe: How can I retrieve the control's message? Constantine Jan 29, 07:37