Begin forwarded message:

> From: Charlie Dickman <3tothe...@comcast.net>
> Date: April 5, 2012 9:28:41 AM EDT
> To: Graham Cox <graham....@bigpond.com>
> Subject: Re: Fielding a mouseDown in a textField
> 
> Sorry.
> 
> I am writing a Sudoku program and for a standard sudoku puzzle text fields do 
> the job just fine.
> 
> I am adding killer sudoku to it and I want to use the same text fields for 
> it. To define the zones I want to use the ability of the text field to draw 
> its background in different colors. When the program enters the mode for the 
> user to enter a puzzle of his/her own I want to use a mouse click in a text 
> field to present the color chooser and determine which field gets the color.
> 
> I am able to accomplish this by going into a modal state waiting for a mouse 
> click and then determining which field, if any,  was clicked by comparing the 
> location of the click to each field's frame until I find the appropriate one.
> 
> It would be neater if I could field the click in the field directly.
> 
> On Apr 5, 2012, at 1:27 AM, Graham Cox wrote:
> 
>> 
>> On 05/04/2012, at 9:51 AM, Charlie Dickman wrote:
>> 
>>> Good people,
>>> 
>>> How do I go about fielding a mouseDown event in an NSTextField?
>> 
>> 
>> 
>> For what purpose? NSTextField generally works without you having to do 
>> anything special. If you have some unusual requirement, you'll need to tell 
>> us what it is.
>> 
>> --Graham
>> 
>> 
> 
> Charlie Dickman
> 3tothe...@comcast.net
> 
> 
> 

Charlie Dickman
3tothe...@comcast.net



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to