• 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
How do copy:/past: messages get sent to NSDocument?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do copy:/past: messages get sent to NSDocument?


  • Subject: How do copy:/past: messages get sent to NSDocument?
  • From: Adam P Jenkins <email@hidden>
  • Date: Mon, 25 Feb 2008 15:55:40 -0500

I'm going through the NSPersistentDocument Core Data Tutorial, which leads you through creating a Core Data Document based application. In the section where they demonstrate implementing copy/paste, they have you add copy: and paste: methods to the MyDocument class, which is a subclass of NSPeristentDocument. What I don't see is how these methods end up getting called. I see in IB that the Copy and Paste commands are setup to send a copy: and paste: message to the FirstResponder object. NSDocument is not itself a NSResponder subclass so I assume it can't be in the responder chain, which means that there must be some setup in document based apps so that certain messages get forwarded on to the current NSDocument under some circumstances. Does anyone know where this is documented, so I can see exactly which events get forwarded to the document and under which circumstances? Thank you.

Adam
_______________________________________________

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: How do copy:/past: messages get sent to NSDocument?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: NSInvocation question
  • Next by Date: Re: How do copy:/past: messages get sent to NSDocument?
  • Previous by thread: Re: Table column index
  • Next by thread: Re: How do copy:/past: messages get sent to NSDocument?
  • Index(es):
    • Date
    • Thread