Re: Dismissing The Keyboard

2013-05-22 Thread Marcus Staloff

Do you also have the text field hooked up to File Owner's delegate?
That needs to be done to dismiss KB.

On May 22, 2013, at 7:34 AM, Harmony Neil harmony.n...@gmail.com wrote:

 Hellow,
 I'm using the numberpad for entering text in the textFields in my iPhone app 
 which is fine, but for some reason I've resigned firstResponder to all the 
 textFields so I can dismiss the keyboard when I press the calculate button, 
 but when I press said button, the keyboard just stays on the screen.
 Does anyone know what is the best way of dismissing the keyboard?  I 
 preferably want to dismiss the keyboard for whichever of the 3 textFields I'm 
 writing in.  Also, I've called my textFields txt1, txt2 and txt3 to make it 
 easier, but I had to put an _ character when I wrote the resignFirstResponder 
 lines for the app to even build and run.
 Thanks for any help/suggestions,
 Harmony.
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
 
 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:
 https://lists.apple.com/mailman/options/cocoa-dev/mstaloff%40verizon.net
 
 This email sent to mstal...@verizon.net


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Radio Buttons not Selecting Properly

2009-02-26 Thread Marcus Staloff
This might have some bearing: In Cocoa Recipes for Mac OS X, pg. 212;  
Bill Cheeseman writes that There are two ways in which you can create  
a third button... This is where you need more than the two button  
group. He says you can use the info panel to change the number of  
rows. Then he goes on to say: The easier method is to Opton-drag the  
bottom border of the matrix and watch as new buttons appear before  
your eyes.


The first method, using the info panel did not work for me. My note  
for when I ran into this problem a while back, reads 'bug is it sends  
correct tag for 0,1 but always sends 0 for cells greater than 1.'


I had correct operation when using the Option-drag method.

Hope this is your problem.

Marcus

On Feb 26, 2009, at 1:53 AM, K. Darcy Otto wrote:

I have a window in which I'm swapping views.  The mechanism by which  
the user indicates the view should be swapped is a series of four  
radio buttons (so, it is sort of like having a tab view, except  
instead of tabs up the top, there are radio buttons in the view  
itself).  The radio buttons are in a matrix.  The views correspond  
to the radio button that should be selected.  So, view 0 should have  
radio button 0 selected; view 1 should have radio button 1 selected;  
and so on.


When view 0 is being displayed, and the user clicks on radio button  
1, view 0 is automatically swapped out for view 1, and radio button  
1 is selected in view 1.  The problem is, this only happens the  
first time the user clicks on radio button 1.  The rest of the time,  
the view changes, but the radio button selection does not change.


How do I force the radio button to change each time a new view is  
swapped in?  The strange thing is, I have used bindings to bind the  
radio button that is clicked to a variable, and the variable shows  
the right value.  The selection doesn't change though, except for  
the first time the button is clicked.


Any help would be greatly appreciated.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/mstaloff 
%40verizon.net


This email sent to mstal...@verizon.net


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com