Hello,
I am having some trouble using NSWindow's standardWindowButton: method.
This is what I have done:
I added three buttons to my window and created outlets for them. In awakeFromNib I did this:
To my knowledge this method changes the appearance of the buttons to look like the standard window button, (I'm not sure about this). Then I control-dragged from each button to the window and selected the actions:
performClose:
performMiniaturize:
performZoom:
The buttons work -- they close the window and min/max it, but they still look like buttons I dragged out of the IB Palette. Does this method actually change the appearance of the buttons?
I am having some trouble using NSWindow's standardWindowButton: method.
This is what I have done:
I added three buttons to my window and created outlets for them. In awakeFromNib I did this:
Code:
closeButton = [NSWindow standardWindowButton:NSWindowCloseButton forStyleMask:NSBorderlessWindowMask];
minButton = [NSWindow standardWindowButton:NSWindowMiniaturizeButton forStyleMask:NSBorderlessWindowMask];
maxButton = [NSWindow standardWindowButton:NSWindowZoomButton forStyleMask:NSBorderlessWindowMask];
To my knowledge this method changes the appearance of the buttons to look like the standard window button, (I'm not sure about this). Then I control-dragged from each button to the window and selected the actions:
performClose:
performMiniaturize:
performZoom:
The buttons work -- they close the window and min/max it, but they still look like buttons I dragged out of the IB Palette. Does this method actually change the appearance of the buttons?