Unorthodox, But Useful
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
************************************************