• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Interface Builder input panel fields not updated when OK button clicked
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interface Builder input panel fields not updated when OK button clicked


  • Subject: Re: Interface Builder input panel fields not updated when OK button clicked
  • From: Mike Abdullah <email@hidden>
  • Date: Fri, 9 Apr 2010 08:22:41 +0100

Are you using bindings for this field? If so, your action method should send -commitEditing… to the object controller. Only then actually close the sheet if you get back YES.

On 9 Apr 2010, at 06:22, Ben Golding wrote:

>
> On 09/04/2010, at 15:08, Jon Pugh wrote:
>
>> At 3:02 PM +1000 4/9/10, Ben Golding wrote:
>>> I can't seem to find a way of ending editing on all the fields when the button is pressed?  Is there a way to do this?
>>
>> NSWindow
>>
>> endEditingFor:
>> Forces the field editor to give up its first responder status and prepares it for its next assignment.
>>
>> - (void)endEditingFor:(id)object
>
> That's great, works exactly how I'd asked.  Thanks.
>
> If the user has entered, say, a non-numeric value in a numeric field and they then hit "OK", this closes the sheet and accepts whatever the input field can make sense of.  Is there a way to make the app go "boop" (say) and leave the sheet present until the user inputs conforming text?
>
> 	Ben._______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Interface Builder input panel fields not updated when OK button clicked (From: Ben Golding <email@hidden>)
 >Re: Interface Builder input panel fields not updated when OK button clicked (From: Jon Pugh <email@hidden>)
 >Re: Interface Builder input panel fields not updated when OK button clicked (From: Ben Golding <email@hidden>)

  • Prev by Date: Re: CFRunLoopStop exception
  • Next by Date: Re: CFRunLoopStop exception
  • Previous by thread: Re: Interface Builder input panel fields not updated when OK button clicked
  • Next by thread: Re: Interface Builder input panel fields not updated when OK button clicked
  • Index(es):
    • Date
    • Thread