• 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
Re: NSTableViews with NSSliderCells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableViews with NSSliderCells


  • Subject: Re: NSTableViews with NSSliderCells
  • From: Jeffrey Johnson <email@hidden>
  • Date: Thu, 6 Apr 2006 09:46:40 -0400

On 4/5/06 at 4:57 PM, email@hidden (Corbin Dunn) wrote:
>On Apr 4, 2006, at 7:47 AM, Jeffrey Johnson wrote:
>> 1) To get the column 2 cell to display the value from the slider in
>> column 3, I'm getting the doubleValue: from the slider, pushing it
>> to my data source, then calling reloadData on the table in the
>> slider's action method. This seems to work, but it seems a waste to
>> reload the whole table for one cell- is there a way to target and
>> update a single cell?
>
>You should use:
>[table setNeedsDisplayInRect:[table frameOfCellAtColumn:col row:row]];

Ah! Exactly what I needed. Thanks!

>> 2) I need to do certain things when the slider starts and stops
>>tracking (besides what happens in the action method) and I haven't
>> found a way to trap these events for the NSSliderCell in a
>> NSTableView, like I would with mouseUp and mouseDown if I was working
>> with an NSSlider control.
>
>Your best bet probably is to subclass NSSliderCell and do it there
>when tracking starts and stops

Ok- I overrode startTrackingAt:inView and
stopTracking:at:inView:mouseIsUp: and it works like a charm. Thanks
again!


Thanks
Jeffrey Johnson
Macintosh Development
Wavefunction, Inc.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: NSTableViews with NSSliderCells (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: Check the class of a variable?
  • Next by Date: Programmatic web form fill-in?
  • Previous by thread: Re: NSTableViews with NSSliderCells
  • Next by thread: untar into app bundle
  • Index(es):
    • Date
    • Thread