Re: Handling mouse click event on a NSButton
Re: Handling mouse click event on a NSButton
- Subject: Re: Handling mouse click event on a NSButton
- From: "Felipe Monteiro de Carvalho" <email@hidden>
- Date: Sun, 2 Mar 2008 22:58:27 -0300
Hi, thanks, now I read those docs, but there is still something I
don't understand. There they recommend I should use something like:
[aControl setAction:@selector(deleteRecord:)];
But setAction expectes just a selector as parameter, so it seams to me
that a lot of information about the method to be called is missing.
AFAIK a selector just identifies the name of the method, but the class
to which it bellongs to is missing and also the pointer to it's
instance and the pointer to the method code.
I'm using Cocoa from Pascal using PasCocoa (
http://wiki.lazarus.freepascal.org/PasCocoa ), so I can't use
objective-c language constructions and need to get this working with
just objective-c runtime headers. I tryed to see the assembly for
@selector(something:); but it isn't promissing. It calls a objc_meth_
something that I can't find anywhere.
thanks,
--
Felipe Monteiro de Carvalho
_______________________________________________
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