Skip navigation.
 
mlRe: Handling mouse click event on a NSButton
FROM : Felipe Monteiro de Carvalho
DATE : Mon Mar 03 02:58:27 2008

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

Related mailsAuthorDate
mlHandling mouse click event on a NSButton Felipe Monteiro de… Mar 3, 01:25
mlRe: Handling mouse click event on a NSButton I. Savant Mar 3, 01:40
mlRe: Handling mouse click event on a NSButton Felipe Monteiro de… Mar 3, 02:58
mlRe: Handling mouse click event on a NSButton I. Savant Mar 3, 03:04
mlRe: Handling mouse click event on a NSButton I.Savant Mar 3, 03:10