🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1207

Re: Drag&drop of colors in Views - how does -acceptColor: atPoint: work?

#1207
From: Pete Clark
Date: Tue, 18 Aug 1992 06:32
34 lines
1666 bytes
In article <SCOTT.92Aug17092008@nic.gac.edu>  writes:
> 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?
> 

Scott:

	This class works as expected under 3.0PR2. The instance of MyView is a  
subview of a Box, which is in a Window. 

@implementation MyView
- acceptColor:(NXColor)color atPoint:(NXPoint *)aPoint
{
	printf("ouch!\n");
	return self;
}
@end

	Other advice:
	1) Are you sure that your view is an instance of the right object,  
rather than being a CustomView?
	2) Is there a superview of your view that might be catching that  
message?

	Best,
		Pete C
-- 
*********************************************************************
Pete Clark -	 Software Engineer          | You know that way that  
Integrity Solutions, Inc.                    | you always are?
pclark@is.com    NeXTMail preferred           | Don't be that way.
Technical Details
Message-ID: <1992Aug18.063238.3891@bosslogic.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!caen!umeecs!umn.edu!mmm.serc.3m.com!pwcs!hawkmoon!mspboss!milo!pclark
References: <SCOTT.92Aug17092008@nic.gac.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!caen!umeecs!umn.edu!mmm.serc.3m.com!pwcs!hawkmoon!mspboss!milo!pclark
From: pclark@bosslogic.com (Pete Clark)
Subject: Re: Drag&drop of colors in Views - how does -acceptColor: atPoint: work?
Message-ID: <1992Aug18.063238.3891@bosslogic.com>
Keywords: colors, dragging, views
Sender: pclark@bosslogic.com
Reply-To: pclark@bosslogic.com (Pete Clark)
Organization: Boss Logic
References: <SCOTT.92Aug17092008@nic.gac.edu>
Date: Tue, 18 Aug 1992 06:32:38 GMT
Lines: 34