• 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: copyWithZone and NSImageView subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: copyWithZone and NSImageView subclass
      • From: "John C. Randolph" <email@hidden>
References: 
 >copyWithZone and NSImageView subclass (From: Christopher Holland <email@hidden>)

  • Prev by Date: Re: custom NSRulerView
  • Next by Date: Re: NSAttributedString error.... [a solution]
  • Previous by thread: Re: copyWithZone and NSImageView subclass
  • Next by thread: Re: copyWithZone and NSImageView subclass
  • Index(es):
    • Date
    • Thread