• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting an NSColor crashes - probably very simple issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Setting an NSColor crashes - probably very simple issue
      • From: Aulis Telle <email@hidden>
References: 
 >Setting an NSColor crashes - probably very simple issue (From: Steve Cronin <email@hidden>)
 >Re: Setting an NSColor crashes - probably very simple issue (From: Aulis Telle <email@hidden>)

  • Prev by Date: Re: Memory(?) issue
  • Next by Date: Re: NSOutlineView and reload
  • Previous by thread: Re: Setting an NSColor crashes - probably very simple issue
  • Next by thread: Re: Setting an NSColor crashes - probably very simple issue
  • Index(es):
    • Date
    • Thread