• 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
Notifications with an autoreleased object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Notifications with an autoreleased object?


  • Subject: Notifications with an autoreleased object?
  • From: Rich Long <email@hidden>
  • Date: Sat, 6 Apr 2002 19:13:57 -0500

I am posting some notifications with an object that has been autoreleased (as, for example, [postNotificationName: foo object: autoreleased-obj]). This seems to work fine, but is it OK?

My understanding of autorelease objects is that they go away at the end of the current event handler, so are notifications handled within an event context?

Thanks for any help...

Rich
_______________________________________________
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: Notifications with an autoreleased object?
      • From: Andy Lee <email@hidden>
    • Re: Notifications with an autoreleased object?
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Cocoa File Copy on MacOS X
  • Next by Date: Re: Color entire table view row
  • Previous by thread: Re: readInBackgroundAndNotifyForModes problems - mystery solved !
  • Next by thread: Re: Notifications with an autoreleased object?
  • Index(es):
    • Date
    • Thread