• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Programmaticly creating buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Programmaticly creating buttons
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: frustration with Xcode 4.1
  • Next by Date: Re: Grabbing the current URL of a webview
  • Previous by thread: Re: frustration with Xcode 4.1
  • Next by thread: Re: Programmaticly creating buttons
  • Index(es):
    • Date
    • Thread