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: Any ideas? EDIT: Here is a screenshot of the problem I think that's what you want. Basically adjusting the frame to fill the button inside the field you are doing. 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];
Comments
Post a Comment