• 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
Stepper inside table view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stepper inside table view


  • Subject: Stepper inside table view
  • From: "So Hok Chun, Bill" <email@hidden>
  • Date: Sun, 15 Feb 2004 05:06:05 +0800

Dear All,

I have put NSStepperCell into a table column and want to do sth described as below:

My GUI behaves as follow:

There are say 2 columns in an NSTableView.

1 column contains NSStepperCell. The other is a numeric field.

When user clicks on the stepper, the value in the numeric field should in/decrease.

My problem:

The stepper simply ignores double click, triple click and so on.... it only captures the 1st click. (Please help)

I think NSTableView does some filtering in its mouseDown:(NSEvent *)theEvent method.

How can I ask NSTableView to treat double-click, triple-click, any-click as single click for NSStepperCell only?

I think I should override the mouseDown: method, shouldn't I? If so, how can I look up the cell referred by the NSEvent passed by the mouseDown: method (so that I can further check whether the cell is an NSStepperCell)? Any tricks to do this job without writing code to do the transverse from table -> column -> cells -> check coordinates?

Thanks a lot for your help.

Yours,
Bill
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Problem Compiling Cocoa App
  • Next by Date: Quartz theory (Re: How to draw hairline ?)
  • Previous by thread: Binding <enter> key to different action in a textview?
  • Next by thread: To-Many editor using NSArrayControllers
  • Index(es):
    • Date
    • Thread