#67 new
mbrugger

BWSplitView does not properly clean up NSNotificationCenter Notifications

Reported by mbrugger | September 24th, 2010 @ 07:04 AM

I wrote some code for my own software to check if all registered observers in NSNotificationCenter are properly removed and found out, that BWSplitView breaks NSSplitviews functionality by overriding setDelegate:

-[BWSplitView initWithCoder:] calls [super setDelegate:] which registers two observings in the NSNotificationCenter

    NSSplitViewDidResizeSubviewsNotification
    NSSplitViewWillResizeSubviewsNotification

Those two notification observings are never removed because probably in dealloc of NSSplitView another setDelegate:nil call would remove them but the overriden method is executed instead.

As a workaround I recommend calling [super setDelegate:nil]; within -[BWSplitView dealloc]

btw: thanks for the great work!

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

BWToolkit is an Interface Builder plugin that contains commonly used UI elements and other objects designed to simplify Mac development.

Shared Ticket Bins

People watching this ticket

Pages