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 (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/jonathan%40mugginsoft.com
> 
> This email sent to jonat...@mugginsoft.com

_______________________________________________

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

Reply via email to