Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dbrayford

macrumors member
Original poster
Feb 22, 2010
41
0
I am trying to add a button to an existing window that already contains a button using interface builder. However, I can't get a handle to the new button in the code.

Existing code
Code:
@interface MyFooGLView : NSOpenGLView
{
	IBOutlet NSButton *SelectSurf0;
}

I want to be able to add, but don't know how to add a reference to the new button and name it MyButton.
Code:
IBOutlet NSButton *MyButton;
 

dbrayford

macrumors member
Original poster
Feb 22, 2010
41
0
Thanks, I did that and restarted x-code and interface builder and it was there.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.