Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Text Field Return

Text Field Return
Thread Tools
Fresh-Faced Recruit
Join Date: Aug 2002
Status: Offline
Reply With Quote
Aug 10, 2004, 06:09 PM
 
Excuse me for my ignorance, but I have just started learning Cocoa/Objective-C and have a question that I can't figure out searching through apple documentation. I have made a very simple web browser, and, as it is now, when the NSTextField for the address loses focus, it loads the address. I only want to address field to perform this action when i hit return/enter. I've played around with the delegates, but can't figure it out. Any help would be appreciated.
     
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Aug 12, 2004, 06:51 PM
 
Are you creating the text field in IB? There should be an option in the inspector for the text field to only send events on enter.
     
Fresh-Faced Recruit
Join Date: Aug 2002
Status: Offline
Reply With Quote
Aug 13, 2004, 06:07 AM
 
Wow, I can't believe I over looked something so simple. I was trying to get it to work with delegates and notifications. Thanks so much.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:08 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2