• 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
Drag and Drop NSTextView (again)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag and Drop NSTextView (again)


  • Subject: Drag and Drop NSTextView (again)
  • From: "Andrew O. Mellinger" <email@hidden>
  • Date: Mon, 21 Jul 2003 08:38:35 -0700

Greetings!

I'm fairly new to the cocoa list and cocoa in general. I'm trying to implement Drag and Drop to drop file contents on to an NSTextView and I'm having trouble following posts I've found in the archive.

First off, the last post I saw was back in July 2002, maybe it has gotten easier since then? Or maybe Apple has a tech note on this? (That would be great!)

So what I've done:

1) Subclassed NSTextView for my view so that I'm supporting draggingEntered: method.
2) Subclassed NSTextView again to make the window's field editor.
3) Updated my window delegate to alloc and return the thing from #2 in windowWillReturnFieldEditor.

Here's the problem. In subclass for #1, I'm supposed to enable editing. Does this mean making it the first responder? How do I set the focus to my text view from the draggingEntered: method to activate the field editor?

And if anyone from apple is reading, this would be a great tutorial or technote.

Thanks,
Andrew
--
_______________________________________________
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.

  • Prev by Date: libcurl question
  • Next by Date: Re: determining encoding on documents
  • Previous by thread: libcurl question
  • Next by thread: [ANN] AppKiDo 0.891 -- patch release for Panther users
  • Index(es):
    • Date
    • Thread