home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!news.cs.indiana.edu!umn.edu!msus1.msus.edu!gacvx2.gac.edu!gacvax2!scott
- From: scott@nic.gac.edu (Scott Hess)
- Newsgroups: comp.sys.next.programmer
- Subject: Drag&drop of colors in Views - how does -acceptColor:atPoint: work?
- Message-ID: <SCOTT.92Aug17092008@nic.gac.edu>
- Date: 17 Aug 92 14:20:08 GMT
- Organization: Gustavus Adolphus College
- Lines: 30
-
- [Sorry if this article is a repeat - but it never seemed to show
- up on our newsfeed, and nobody's replied anyhow. Perhaps we've
- got NNTP problems? I don't know.]
-
- From View.rtf:
-
- acceptColor:atPoint:
- - acceptColor:(NXColor)color atPoint:(NXPoint *)aPoint
-
- Allows a View to accept a color. If your subclass of View
- implements this method, it will be invoked when the user
- drags a color (as from an NXColorWell) into your View.
-
- So, I implement -acceptColor:atPoint:. All it does yet is
- printf( "Here I am!\n"). But, when I pop up a color panel, and
- drag a color into the View, nothing happens. No printf, and later,
- when I add code to do something else, like change the View's color,
- that doesn't happen, either.
-
- So, what's up? Am I just not doing something right? There's not
- much area to go wrong, here, and I've checked the spelling against
- the documentation about a billion times. It just doesn't seem to
- work. Anyone out there got an example of receiving colors for your
- View?
-
- Later,
- --
- scott hess <shess@ssesco.com> <Who achieved programmer nirvana on Aug 11th>
- 12901 Upton Avenue South, #326 Burnsville, MN 55337 (612) 895-1208 Anytime!
- <Text: One Class to bring them all and in the darkness bind them ...>
-