Re: Using a NSTextField inside a NSMenuItem?
Re: Using a NSTextField inside a NSMenuItem?
- Subject: Re: Using a NSTextField inside a NSMenuItem?
- From: "email@hidden" <email@hidden>
- Date: Wed, 10 Mar 2010 10:08:41 +0000
On 10 Mar 2010, at 01:01, Robert Monaghan wrote:
> Hi Everyone,
>
> Another Question:
> How does one make a NSTextField work inside an NSMenuItem? (For 10.5/10.6)
>
> I can place the NSTextField into a View that I've created in a NIB file, and have added it to the NSMenuItem
> using setView:
> It shows up perfectly, and I can pre-populate the text field using a setStringValue call.
>
> However, NSControlTextDidEndEditingNotification (as well as the other NSTextField notifications) do not work,
> nor can I get any results back from the user. Doing a stringValue on the Textfield only returns the original data
> from the setStringValue call that I did when I attached the view to the NSMenuItem.
>
> What am I missing?
>
This is a non standard menu configuration.
You may not have a field editor available to handle the NSTextField text processing.
Regards
Jonathan Mitchell
Developer
http://www.mugginsoft.com
> Thanks!
>
> bob.
>
>
> _______________________________________________
>
> 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