• 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: Strange NSSlider / NSUserDefaults interaction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange NSSlider / NSUserDefaults interaction


  • Subject: Re: Strange NSSlider / NSUserDefaults interaction
  • From: Michael Jurewitz <email@hidden>
  • Date: Wed, 30 Aug 2006 10:33:24 -0700

Hi Stephen,

I'd encourage you to file a radar ( https://bugreport.apple.com ) against NSSlider with as much info as you can provide (including the sample project you created). Please also include as much information about your particular system as possible in the bug.

Thanks!

-Michael Jurewitz

*********************************************
Developer Technical Support Engineer

email@hidden
*********************************************

On Aug 30, 2006, at 9:32 AM, Stephen Deken wrote:

Hello all,

I've just found a rather strange bug that impacts NSSliders when an invalid registered default is written to NSUserDefaults. Once the invalid value is written, all NSSliders will no longer track the mouse -- instead they will 'snap back' when the mouse leaves a region loosely defined by the height of the control and the width of the screen.

I have a simple project (too large to post here) that demonstrates this problem, but the offending line is this:

[[NSUserDefaults standardUserDefaults] registerDefaults: [NSDictionary dictionaryWithObjectsAndKeys: [NSColor blackColor], @"dumb2", nil]];

Instead of [NSColor blackColor], I should have written [NSArchiver archivedDataWithRootObject:[NSColor blackColor]] -- that resolves the problem.

Has anyone else seen this behavior?  Is there a rdar: bug on this?

Stephen Deken
email@hidden
_______________________________________________
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

_______________________________________________ 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: 
 >Strange NSSlider / NSUserDefaults interaction (From: Stephen Deken <email@hidden>)

  • Prev by Date: Strange NSSlider / NSUserDefaults interaction
  • Next by Date: Re: How to create an NSEvent for Option-E?
  • Previous by thread: Strange NSSlider / NSUserDefaults interaction
  • Next by thread: Removing/Adding views in drawRect:
  • Index(es):
    • Date
    • Thread