Re: copyWithZone and NSImageView subclass
Re: copyWithZone and NSImageView subclass
- Subject: Re: copyWithZone and NSImageView subclass
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 30 Jan 2003 11:18:29 -0800
On Thursday, January 30, 2003, at 06:07 AM, Christopher Holland wrote:
First of all, what's going on that ANYTHING should be asking my object
for the copyWithZone method?
To find out, set a breakpoint on -copyWithZone:, and see what the
backtrace tells you. You'll probably want to add a copyWithZone:
method to your NSImageView subclass, so you're not stopping every time
something gets copied, vis:
- copyWithZone:(NSZone * zone)
{
return [super copyWithZone:zone]; // set a breakpoint here!
}
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.