• 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: Is NSNotification from NSStepper possible
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is NSNotification from NSStepper possible


  • Subject: Re: Is NSNotification from NSStepper possible
  • From: Hank Heijink <email@hidden>
  • Date: Thu, 19 Oct 2006 14:39:18 -0400

One way that comes to mind is this:

Bind the NSStepper to a value, and have a change in that value trigger a notification. Look in the Currency Converter using Bindings tutorial for an example of that: http://developer.apple.com/ documentation/Cocoa/Conceptual/CurrencyConverterBindings/ 02creatingproj/chapter_2_section_1.html

There might be a simpler way, but without knowing more about what's in your textfields and how it relates to the stepper value, I'm not sure what that would be.

Hank

On Oct 19, 2006, at 1:59 PM, Chris wrote:

Hi, I'm trying to create the following behavior. When a user clicks on the NSStepper (to change the value of the targeted NSTextField), I want the NSStepper to post a Notification so I can delegate it to another selector who then updates other NSTextFields in the same NSTabView. I'm currently able to receive NSControlTextDidEndEditingNotification and NSControlTextDidChangeNotification from the NSTextField but not NSStepper. The NSStepper docs doesn't mention Notifications. If NSStepper doesn't support NSNotification, any suggestion on how to achieve this desired behavior?

This is a single-thread universal app built using XCode 2.4 with 10.4u SDK on a PPC.

Thanks in advance
Chris
_______________________________________________
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


Hank Heijink www.hankheijink.com 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: 
 >Is NSNotification from NSStepper possible (From: Chris <email@hidden>)

  • Prev by Date: More : NSTableView who retains NSTableColumns?
  • Next by Date: Re: [SOLVED] Waiting for NSMetadataQuery to finish?
  • Previous by thread: Is NSNotification from NSStepper possible
  • Next by thread: drawing NSTextFieldCell nested inside NSTextFieldCell subclass causes crash
  • Index(es):
    • Date
    • Thread