Update on email delays: Greg, sorry it took so long to reply this; I was waiting to see if your email would arrive. Although I have definitely been foiled by delays of several hours on this list for many months, it appears that the even-longer delays I saw last week were due to IEEE mail servers in New Jersey being hit by Hurricane Sandy.
* * * On 2012 Nov 03, at 16:28, Greg Parker <[email protected]> wrote: > If you build with the 10.8 SDK, and your deployment target is 10.8 or later, > then dispatch objects and XPC objects become Objective-C objects. If you use > ARC then they are ordinary ARC-managed objects and you do not retain and > release them yourself. > > You can temporarily revert to the old behavior by defining > OS_OBJECT_USE_OBJC=0. Yes, setting setting -DOS_OBJECT_USE_OBJC=0 in the Compiler Flags of the file calling xpc_release(), which is compiled with ARC, fixed the problem. > Going forward the solution is to remove your manual retain/release calls and > let ARC do the work. Are you saying that if a file is compiled with ARC, I should delete calls to xpc_release()? Read on… > You might try re-running the ARC migrator on your ARC code and see if it > catches them. The little project was written with ARC from the ground up. So I just ran Edit ▸ Convert to Objective-C ARC on it, and was told that "No source file changes are necessary". The call to xpc_release() was not noticed. So, neither the xpc_release() documentation, nor the ARC migrator indicate that I should remove the call to xpc_release(). Are they both missing the boat? _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
