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

Similar Threads
thread Thread Starter Forum Replies Last Post
AppleScript Dialog NecroDayz Mac Programming 3 Apr 24, 2014 11:35 AM
Duplicate buttons in the choose photo dialog in contacts minimo3 iOS 7 3 Nov 17, 2013 08:17 AM
Retina+a dialog box rmger OS X 10.8 Mountain Lion 0 Jul 16, 2013 06:22 PM
Dialog sheet cpuin Mac Programming 0 Jun 19, 2013 04:38 AM
Up for a challenge? Highlighting dialog buttons with ARD kdpyke OS X 2 Dec 3, 2012 04:21 PM

Forum Jump

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

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

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