Re: Invoking a Callback Selector (Newbie question)
Re: Invoking a Callback Selector (Newbie question)
- Subject: Re: Invoking a Callback Selector (Newbie question)
- From: Philippe Mougin <email@hidden>
- Date: Sun, 1 Feb 2004 06:55:13 +0100
Look at the NSInvocation class.
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSInvocation.html
Best,
Philippe Mougin
> I'm overriding the function
>
> - (void)canCloseDocumentWithDelegate:(id)delegate
> shouldCloseSelector:(SEL)shouldCloseSelector contextInfo:
> (void *)contextInfo
>
> If the document should be closed, I'm supposed to invoke the
> shouldCloseSelector callback method with the signature:
>
> - (void)document:(NSDocument *)doc shouldClose:(BOOL)shouldClose
> contextInfo:(void *)contextInfo
>
> This may be a simple question -- but I can't find any examples of
> invoking a selector with three arguments. I've found examples of
> (performSelector:withObject:withObject:). All the different approaches
> I've tried have failed so far, so any help will be appreciated.
>
> Thanks to anyone that can get me out of this brain dead moment..
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.