• 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
Fwd: Fielding a mouseDown in a textField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Fielding a mouseDown in a textField


  • Subject: Fwd: Fielding a mouseDown in a textField
  • From: Charlie Dickman <email@hidden>
  • Date: Thu, 05 Apr 2012 18:39:41 -0400

Begin forwarded message:

> From: Charlie Dickman <email@hidden>
> Date: April 5, 2012 9:28:41 AM EDT
> To: Graham Cox <email@hidden>
> 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
> email@hidden
>
>
>

Charlie Dickman
email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Prev by Date: Re: UITabBars and UITableViews
  • Next by Date: Re: Help debugging EXC_BAD_ACCESS
  • Previous by thread: Re: Fielding a mouseDown in a textField
  • Next by thread: "Allow location" dialog dismisses immediately after presenting
  • Index(es):
    • Date
    • Thread