Revision: 5925
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5925&view=rev
Author:   hofman
Date:     2009-10-21 17:13:34 +0000 (Wed, 21 Oct 2009)

Log Message:
-----------
remove typeselect helper datasource when removing it

Modified Paths:
--------------
    trunk/SKOutlineView.m
    trunk/SKTableView.m

Modified: trunk/SKOutlineView.m
===================================================================
--- trunk/SKOutlineView.m       2009-10-21 17:02:23 UTC (rev 5924)
+++ trunk/SKOutlineView.m       2009-10-21 17:13:34 UTC (rev 5925)
@@ -100,6 +100,8 @@
 
 - (void)setTypeSelectHelper:(SKTypeSelectHelper *)newTypeSelectHelper {
     if (typeSelectHelper != newTypeSelectHelper) {
+        if ([typeSelectHelper dataSource] == self)
+            [typeSelectHelper setDataSource:nil];
         [typeSelectHelper release];
         typeSelectHelper = [newTypeSelectHelper retain];
         [typeSelectHelper setDataSource:self];

Modified: trunk/SKTableView.m
===================================================================
--- trunk/SKTableView.m 2009-10-21 17:02:23 UTC (rev 5924)
+++ trunk/SKTableView.m 2009-10-21 17:13:34 UTC (rev 5925)
@@ -94,6 +94,8 @@
 
 - (void)setTypeSelectHelper:(SKTypeSelectHelper *)newTypeSelectHelper {
     if (typeSelectHelper != newTypeSelectHelper) {
+        if ([typeSelectHelper dataSource] == self)
+            [typeSelectHelper setDataSource:nil];
         [typeSelectHelper release];
         typeSelectHelper = [newTypeSelectHelper retain];
         [typeSelectHelper setDataSource:self];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to