UISlider.value only KVO's on touchesBegan

Originator:joachimb
Number:rdar://7713337 Date Originated:03-Mar-2010 11:32 PM
Status:Open Resolved:
Product:iPhone Product Version:3.1.2
Classification:Other Bug Reproducible:Always
 
03-Mar-2010 11:32 PM Joachim Bengtsson:
Summary:
Registering for observations on the "value" key of a UISlider yields a single notification when manipulation of the control starts, and none during (even if it is continuous), nor after manipulation ends. This is pretty useless.

Steps to Reproduce:
1. Add a UISlider to a view.
2. Add an observation like so:
	[slider addObserver:self
			 forKeyPath:@"value"
				options:NSKeyValueObservingOptionNew
				context:NULL];
3. Receive notifications in
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context

Expected Results:
4. Notifications come in once when manipulation ends, and continuously if the slider is continuous; never when manipulation begins.

Actual Results:
4. Notifications come in when manipulation begins.

Regression:
Unknown.

Notes:
What.

Comments

Sample code


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!