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 Mar 18, 2013, 08:33 AM   #1
KieferThomas
macrumors newbie
 
Join Date: Mar 2012
Override NSTextFields Default Action

Hi All,

I have a Xcode project I am working on which has two NSTextFields in it. This project is being written using OS X.

What I wish to do is override the default action of the Enter Key on these text fields. Currently Xcode uses for the Action: Send On Enter Only for the texts fields. What this is doing is inserting a new record into the data base when the Enter Key is pressed this is not what I want to happen.

What I want to happen when the enter key is pressed is to tab to the next text field.

Can anyone help with this problem...?

Thanks,
Kiefer

Last edited by KieferThomas; Mar 18, 2013 at 09:00 AM. Reason: Figured out myself
KieferThomas is offline   0 Reply With Quote
Old Mar 18, 2013, 09:04 AM   #2
KieferThomas
Thread Starter
macrumors newbie
 
Join Date: Mar 2012
Changed Field Type and Attribute Settings

Hey all,

I was able to figure this out on my own.

I changed my field type from: NSTextField to NSWrappingTextField and set Layout to wraps and checked uses single line mode.

This has not add the tab action but this keeps things from inserting a new record...
KieferThomas 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

Similar Threads
thread Thread Starter Forum Replies Last Post
Iphone 5S - Phone Volume Override ptrainerny iPhone 13 Oct 3, 2013 01:29 PM
Can Apple override Activation Lock? pmontanarella iOS 7 8 Jul 5, 2013 07:05 AM
Apps can override Notification approval? iSensei iOS 6 4 Dec 22, 2012 03:16 AM
iPad Mini: Default font override in Perfect Browser makes things much easier to read Jacoblee23 iPad 47 Nov 19, 2012 12:31 PM
AT&T - Upgrade override Valis33 iPhone 21 Sep 19, 2012 07:44 AM

Forum Jump

All times are GMT -5. The time now is 03:28 PM.

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

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC