On 26.08.2016 at 17:52 Gary L. Wade wrote:

> You would not see this if you hid or removed the table view first
> since it would not need its data source or delegate then. Try going
> with ARC or at least use autorelease on your delegate/data source.

I'm not using autorelease on the delegate/data source on purpose because
AFAIU autoreleased objects are (potentially) killed whenever the application
is in an event loop and this is the case with runModalForWindow(). AFAIU
if I used autorelease on the delegate/data source then both would be
killed in the run loop started by runModalForWindow() because both setDelegate()
and setDatasource() don't retain. So using autorelease doesn't make sense
to me here. Is this right or did I get anything wrong here?

-- 
Best regards,
 Andreas Falkenhahn                            mailto:andr...@falkenhahn.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to