• 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
Cocoa's custom class delegate conventions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa's custom class delegate conventions


  • Subject: Cocoa's custom class delegate conventions
  • From: Jean-Francois Roy <email@hidden>
  • Date: Fri, 13 Jun 2003 23:25:29 -0400

Hey

I have written several custom classes (NSObject subclasses) and I want to give a delegate to several of them. But I have hit what seems a lack of documentation on how delegate methods should be called.

In particular, I was wondering how delegate methods should be called. Once an object has checked if it has a delegate, should it simply call the appropriate selector for the given context directly, use NSObject's performSelector methods, which does not allow for more than one parameter, use NSObject's performSelectorOnMainThread methods to ensure that the delegate receives the message on the main thread, but again with a one parameter limitation, or what?

What is Foundation and AppKit's behavior?

Thanks for any pointers.

Jeff Roy

--
Co-Founder of MacStorm
Programmer at MacStorm

http://www.macstorm.org
http://www.theworldcrafters.com
email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: Cocoa's custom class delegate conventions
      • From: Marco Scheurer <email@hidden>
  • Prev by Date: Re: NSApplication delegate not released on quit?
  • Next by Date: Re: On more newbie question about init...
  • Previous by thread: Re: NSApplication delegate not released on quit?
  • Next by thread: Re: Cocoa's custom class delegate conventions
  • Index(es):
    • Date
    • Thread