Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 21, 2008, 04:51 AM   #1
Darkroom
Guest
 
Join Date: Dec 2006
Location: Montréal, Canada
Display NSSlider ToolTip Continuously While Dragging Slider?

is it possible?

Code:
- (IBAction)swatchSizeChange:(id)sender
	{
	[swatchDragSizeSlider setToolTip:[NSString stringWithFormat:@"%i",[sender intValue]]];
	}
with the code above i have the current location of the slider displaying as its tooltip, but it would be a million times better if it's possible to show the tooltip while the slider is moving. i'm hoping this is possible. i couldn't find anything in the documentation.

[EDIT] sorry, i meant to write "but it would be a million times better if it's possible to show the tooltip visible and updating while the slider is moving" if my intention wasn't clear...

Last edited by Darkroom; Oct 21, 2008 at 11:34 AM.
Darkroom is offline   0 Reply With Quote
Old Oct 21, 2008, 02:37 PM   #2
Sayer
macrumors 6502a
 
Sayer's Avatar
 
Join Date: Jan 2002
Location: Austin, TX
That is not the purpose of a tool tip. A slider's value should always be apparent, so put a static string next to it and update it as the slider's value changes.

Or make your own control where the value is part of the slider "thumb" like in Photoshop and other apps with lots of sliders.
__________________
Obama is a true statesman whose experience as a state senator, half-term US Senator & guest lecturer in a Constitutional Law class has fully prepared him to take control of our nuclear arsenal.-Me
Sayer is offline   0 Reply With Quote
Old Oct 22, 2008, 12:38 AM   #3
Darkroom
Thread Starter
Guest
 
Join Date: Dec 2006
Location: Montréal, Canada
Quote:
Originally Posted by Sayer View Post
That is not the purpose of a tool tip. A slider's value should always be apparent, so put a static string next to it and update it as the slider's value changes.

Or make your own control where the value is part of the slider "thumb" like in Photoshop and other apps with lots of sliders.
ok... you're right... so that is what i have done...

thanks.
Darkroom is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Finder obliterates Folder while dragging in Column view! Joseph Farrugia MacBook Pro 5 Jun 13, 2012 01:17 AM
Using Gestures while Dragging File geeman89 Mac OS X 10.7 Lion 2 Oct 28, 2011 03:13 PM
Turning off main display of an iMac while using a tv as a second display? GlobalMedia Mac Basics and Help 2 Mar 26, 2011 08:57 PM
Dragging with trackpad does not work any more Burny Mac Basics and Help 1 Nov 22, 2010 11:48 PM
Can Download Continue while MBP Sleeps? superspiffy MacBook Pro 1 May 12, 2007 06:30 AM


All times are GMT -5. The time now is 05:43 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC