• 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
Setting an NSColor crashes - probably very simple issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting an NSColor crashes - probably very simple issue


  • Subject: Setting an NSColor crashes - probably very simple issue
  • From: Steve Cronin <email@hidden>
  • Date: Tue, 5 Feb 2008 00:36:01 -0600

Folks;
On Tiger - compiling for universal - running on Intel

@interface MyObject : NSObject
{
...
NSColor * myColor;
...
}


- (NSColor *) myColor { return myColor; }

- (void) setMyColor:(NSColor *)newColor
{
	if (myColor!=newColor)
	{
		[myColor release];
		[newColor retain];
		myColor = newColor;
	}
}


- awakeFromNib { .. [self setMyColor:[NSColor whiteColor]]; .. }

AwakeFromNib crashes on that line with:
2008-02-05 00:17:58.332 XYZ[3913] *** -[NSCachedWhiteColor bytes]: selector not recognized [self = 0x338b90]


What am I not seeing here?

Thanks,
Steve

_______________________________________________

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>
    • Re: Setting an NSColor crashes - probably very simple issue
      • From: Bill Bumgarner <email@hidden>
    • Re: Setting an NSColor crashes - probably very simple issue
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: ContextualMenu in text
  • Next by Date: Re: Setting an NSColor crashes - probably very simple issue
  • Previous by thread: Re: Trying to build a universal binary...
  • Next by thread: Re: Setting an NSColor crashes - probably very simple issue
  • Index(es):
    • Date
    • Thread