Skip navigation.
 
mlRe: copyWithZone and NSImageView subclass
FROM : John C. Randolph
DATE : Thu Jan 30 20:18:29 2003

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_removed>>  (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlcopyWithZone and NSImageView subclass Christopher Hollan… Jan 30, 15:07
mlRe: copyWithZone and NSImageView subclass j o a r Jan 30, 16:14
mlRe: copyWithZone and NSImageView subclass John C. Randolph Jan 30, 20:18
mlRe: copyWithZone and NSImageView subclass John C. Randolph Jan 31, 00:47