I thought i had memory management all figured out, but I have this line of code:
which I am not quite sure how to release, i tried this:
but this causes a crash...
.....subscriptionsDS is a class, how do I release a class?.....
<edit>how do I release an NSTableView, I have created programatically?</edit>
Code:
[subscriptionTable setDataSource:[[subscriptionsDS alloc] initWithSubscriptions:[self subscriptions]]];
which I am not quite sure how to release, i tried this:
Code:
[subscriptionTable setDataSource:[[[subscriptionsDS alloc] initWithSubscriptions:[self subscriptions]] autorelease]]
but this causes a crash...
.....subscriptionsDS is a class, how do I release a class?.....
<edit>how do I release an NSTableView, I have created programatically?</edit>