• 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
Success with NSTableView weak delegates?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Success with NSTableView weak delegates?


  • Subject: Success with NSTableView weak delegates?
  • From: Sean McBride <email@hidden>
  • Date: Tue, 20 Sep 2016 16:21:53 -0400
  • Organization: Rogue Research Inc.

Hi all,

WWDC 2016 Session 203 "What's New in Cocoa" at around 43:37 in the video, says that if you link against the 10.11 SDK that NSTableView's delegate is weak.  So I went and wrapped my delegate nil-ing in:

#if MAC_OS_X_VERSION_MAX_ALLOWED < 101100
	[tableView setDelegate:nil];
	[tableView setDataSource:nil];
#endif

yet (with NSZombie especially), I easily reproduce message-to-zombie crashes with builds that are made against the Xcode 7.3.1 10.11 SDK.

Anyone have success with these supposedly weak tableview delegates?

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Success with NSTableView weak delegates?
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Conditionally declaring a BOOL in a .m file to be accessed in a .c function
  • Next by Date: Passing param by reference then using within block throws exception
  • Previous by thread: Re: Conditionally declaring a BOOL in a .m file to be accessed in a .c function
  • Next by thread: Re: Success with NSTableView weak delegates?
  • Index(es):
    • Date
    • Thread