Re: How does Cocoa implement delegate/callback?
Re: How does Cocoa implement delegate/callback?
- Subject: Re: How does Cocoa implement delegate/callback?
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 15 Nov 2002 11:13:04 -0500
on 02-11-15 6:23 AM, John Hvrnkvist at email@hidden wrote:
>
On Thursday, November 14, 2002, at 06:41 PM, Bill Cheeseman wrote:
>
>
> Telling the delegate to
>
> performSelector:withObject:withObject: won't work because the callback
>
> method I specify has too many parameters. And I can't figure out how
>
> to get
>
> NSInvocation to work.
>
>
>
> Is this the best approach? If so, I'll keep digging.
>
>
>
Why not just use objc_msgSend?
>
>
objc_msgSend(delegate, sel, arg1, arg2, ...)
I wanted to stay at a higher level. I've got the NSNotification stuff
working now -- my difficulty was mostly due to a typographical error in
methodSignatureForSelector: that went undetected due to the lateness of the
hour.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.