• 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: Creating an NSForm programmatically & tabbing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating an NSForm programmatically & tabbing


  • Subject: Re: Creating an NSForm programmatically & tabbing
  • From: Eric Gorr <email@hidden>
  • Date: Sat, 27 Sep 2008 15:03:23 -0400

Here's some sample code demonstrating this two cases:

http://ericgorr.net/nsform.zip

Contacts-FormManual is where I am creating the NSForm programmatically. When I tab between the fields, I would like the formChanged: selection to be called.

Contacts-Form is where I am creating the NSForm via IB. When I tab between the fields, the updateContact: selector is called.


On Sep 27, 2008, at 12:29 PM, Eric Gorr wrote:

When I use interface builder to create a NSForm and hook up it's action, I see the action being executed when I tab between the fields as I am running the application.

However, when I create a NSForm programmatically and hook up it's action, I only see the action being executed when I press return or enter.

How can I have the NSForm send it's action when I tab between the fields when it is created programmatically?

Thank you.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
@ericgorr.net


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Creating an NSForm programmatically & tabbing
      • From: mmalc crawford <email@hidden>
References: 
 >Creating an NSForm programmatically & tabbing (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: showing window causes EXC_BAD_ACCESS
  • Next by Date: Re: problems in runModal in NSOpenPanel used with defaults
  • Previous by thread: Creating an NSForm programmatically & tabbing
  • Next by thread: Re: Creating an NSForm programmatically & tabbing
  • Index(es):
    • Date
    • Thread