Re: Setting an NSColor crashes - probably very simple issue
Re: Setting an NSColor crashes - probably very simple issue
- Subject: Re: Setting an NSColor crashes - probably very simple issue
- From: John Stiles <email@hidden>
- Date: Tue, 05 Feb 2008 09:33:53 -0800
Actually, unlike C/C++ objects, newly alloc'ed Objective-C objects are
always initialized to zero.
Aulis Telle wrote:
Try adding the following init method setting myColor to nil.
- (id)init
{
if (self = [super init])
{
myColor = nil;
}
return self;
}
Aulis
_______________________________________________
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
_______________________________________________
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