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 Jun 8, 2009, 08:56 AM   #1
satyam90
macrumors regular
 
Join Date: Jul 2007
Location: Bangalore, India
Send a message via Yahoo to satyam90
Dialog with few buttons

I am using Cocoa with Obj C.
I am showing some dialogs using "NSRunAlertPanel". One button is made default (which is shown in blue color). When that dialog popsup, by clicking "tab", I am able to change the focus to different button (I am seeing buttons surrounded by "blue" color). But when I press enter, that particular button is not clicked. But the default button is only getting clicked.
Is it the default behavior on Mac or do I have to write any additional code for this?
satyam90 is offline   0 Reply With Quote
Old Jun 8, 2009, 09:00 AM   #2
wrldwzrd89
macrumors G4
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
Try testing your application with full keyboard access turned off and turned on, just to see how this particular dialog behaves under both settings. I suspect that you press a different key other than Enter/Return to select a tabbed-to non-default button (Space?) on the Mac OS.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   0 Reply With Quote
Old Jun 9, 2009, 02:13 AM   #3
satyam90
Thread Starter
macrumors regular
 
Join Date: Jul 2007
Location: Bangalore, India
Send a message via Yahoo to satyam90
It's happening not only with my application, but also with default dialogs/windows of other Applications too.
satyam90 is offline   0 Reply With Quote
Old Jun 9, 2009, 04:09 AM   #4
McBgnr
macrumors regular
 
Join Date: Apr 2009
In Mac buttons that have focus respond to the click of space bar instead of Enter Key. A dialog can have only one default button which will respond to Enter Key press.
McBgnr 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

Posting 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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
How to close page when dialog box with 'OK' button appears mac06 Mac Applications and Mac App Store 2 Aug 13, 2011 09:49 PM
Mac OS Lion dev. 4 Curious Dialog Box -BigMac- Mac OS X 10.7 Lion 5 Aug 9, 2011 06:11 PM
Update dialog in R U S S I A N! Odisey Windows, Linux & Others on the Mac 0 May 27, 2011 08:50 AM
How to create a dialog after click button? pnitnam iPhone/iPad Programming 0 Jul 30, 2008 03:21 AM
OSX Dialog boxes, glowing buttons? Uoila Mac Basics and Help 2 Feb 7, 2008 06:30 PM


All times are GMT -5. The time now is 12:11 PM.

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

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