Re: Custom View initialization: where?
Re: Custom View initialization: where?
- Subject: Re: Custom View initialization: where?
- From: Markus Spoettl <email@hidden>
- Date: Fri, 2 May 2008 19:34:56 -0700
On May 2, 2008, at 7:11 PM, Graham Cox wrote:
Sounds OK - so post your code. The documentation is correct.
Well the code is totally straight forward:
@interface MyView : NSView {
MyObjectData *data;
}
@property (readonly) MyObjectData *data;
- (id)initWithFrame:(NSRect)frame;
@end
@implementation MyView
@synthesize data;
- (id)initWithFrame:(NSRect)frame {
self = [super initWithFrame:frame];
if (self) {
data = [[MyObjectData alloc] init];
}
return self;
}
@end
The view is instantiated correctly because it draws right. When I put
the debugger breakpoint in initWithFrame: it doesn't get called. Is
there something wrong with this?
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden