• 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
Delegate: to retain or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Delegate: to retain or not?


  • Subject: Delegate: to retain or not?
  • From: petite_abeille <email@hidden>
  • Date: Mon, 15 Jul 2002 15:51:28 +0200

Hello,

A awful doubt crossed my tired mind: should I retain my delegates or not?

If I do, am I not creating "a clear and present danger" of retain cycles?

If I don't, should I use something along the line of [NSValue valueWithNonretainedObject]? Or simply assign the delegate to my ivar? Can I use NSIsFreedObject to check if the object is still around?

Am I hopelessly confused?!?

Thanks for any insights.

PA.
_______________________________________________
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: Delegate: to retain or not?
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: GNUStep and Cocoa Portabilitiy (Re: Carbon API with carbon)
  • Next by Date: Run Script from Cocoa
  • Previous by thread: IconKit?
  • Next by thread: Re: Delegate: to retain or not?
  • Index(es):
    • Date
    • Thread