• 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
Unorthodox, But Useful
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unorthodox, But Useful


  • Subject: Unorthodox, But Useful
  • From: "Erik J. Barzeski" <email@hidden>
  • Date: Sat, 21 Jul 2001 18:30:08 -0400

Hi,

Here's something I'd like to do.

I've subclassed NSButton. My buttons work fine (I had to override
drawRect:).

Now, I wish to allow users to drag my buttons into a text editor. That's
the unorthodox part.

Why? Well, the buttons (there are many) pop up a "more info" window with
a lot of information: I wish to allow users to copy that information to a
text editor with drag and drop.

Alternatively - and I like this idea more - I'd like to allow people to
drag a proxy icon from the "more info" window to the text editor instead of
the button. This may be more in line with standards (though still not quite
right).

I currently don't even have a proxy icon, however.

Anyone have any thoughts? I've over-ridden mouseDown: and mouseDragged:
on my buttons. MouseDown: is only ever called (I call super's mouseDown:)
unless I remove the call to super. MouseDragged, in other words, doesn't get
called... Otherwise I think the rest of my "stuff" should work.

Thoughts? Respond off-list if you wish. Thanks. If there's a great way
to do this that meets the HIG, I'm all for it! I just haven't thought of it
yet...


--
Best wishes,
Erik J. Barzeski

The best things are not always the most popular.
The most popular things are not always the best.
************************************************
Email: email@hidden
Web: http://www.barzeski.com/
http://www.cocoadevcentral.com/
http://www.soundsetcentral.com/
http://www.applescriptcentral.com/
AIM: iacas ICQ: 8186546
************************************************


  • Prev by Date: Re: Static Variable Question...
  • Next by Date: Re: Static Variable Question...
  • Previous by thread: Re: Static Variable Question...
  • Next by thread: Authentication
  • Index(es):
    • Date
    • Thread