objective c - NSButton Inside NSTextField -


I'm trying to create a NSTextField with a button on my right (similar to NSSearchView), but I'll know how to scroll 'NSTextField's text without going under NSButton.

Here my code is as follows: rightButton = [[NSButton alloc] initWithFrame: rect]; [Right button set tag: self]; [[Right button cell] set Highlight By: NSNellLell Type]; [Right button set image: [nsimage image nominated: @ "right button"]]; [Right button set action: @ selector (action :)); [Right button is set: no];

Any ideas?

EDIT: Here is a screenshot of the problem a screenshot of the bug.

I think that's what you want. Basically adjusting the frame to fill the button inside the field you are doing.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -