• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How does Cocoa implement delegate/callback?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Cocoa-J and Interface Builder woes
  • Next by Date: Re: sending an email with cocoa
  • Previous by thread: Re: How does Cocoa implement delegate/callback?
  • Next by thread: Re: How does Cocoa implement delegate/callback?
  • Index(es):
    • Date
    • Thread