Mads Paulin wrote:
#import <Cocoa/Cocoa.h>
@interface MyDocument : NSDocument
{
NSMutableArray *array;
}
@property (readonly) NSMutableArray* array;
@end
All I changed in the doc impl is
@synthesize array
and
array =[ [NSMutableArray]alloc init]; in the init method.
Does your MyDocument implementation ever release array? If not, then
what happens to the NSMutableArray and what it contains when
MyDocument is dealloc'ed? I don't think @synthesize will synthesize
any cleanup for you.
-- GG
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com