Programmaticly creating buttons
Programmaticly creating buttons
- Subject: Programmaticly creating buttons
- From: Evan Schoffstall <email@hidden>
- Date: Wed, 03 Aug 2011 15:15:00 -0400
I understand the Objective-C method of integration..
NSView *superview = [window contentView];
NSRect frame = NSMakeRect(10, 10, 200, 100);
NSButton *button = [[NSButton alloc] initWithFrame:frame];
[button setTitle:@"Click me!"];
[superview addSubview:button];
[button release];
But when it comes down to ApplescriptObjC, apparently this is not a partial of the equivailant
set superview to NSView's window contentView
set frame to NSRect's NSMakeRect_(10,10,200,100)
Can you point me in the right direction?
--
Evan Schoffstall
Sent with Sparrow
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden