В Tue, 22 May 2018 13:54:08 +0200, Andreas Höschler написа: > - (id)initWithFrame:(NSRect)frameRect { > NSLog(@"initWithFrame ..."); > self = [super initWithFrame: frameRect]; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > [self retain]; > ... > }
Good practice is to check the result of that assignment. If it fails for some reason, it would explain (to an extent) why your program crashes when you attempt to assign a value to the ivar at line 168. Also, if self is nil, -retain will do nothing. _______________________________________________ Discuss-gnustep mailing list Discuss-gnustep@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnustep