• 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
Re: Programmaticly creating buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmaticly creating buttons


  • Subject: Re: Programmaticly creating buttons
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 04 Aug 2011 09:41:23 +1000
  • Thread-topic: Programmaticly creating buttons

AppleScriptObjC pre-10.7 only supports Objective-C calls, not C functions or
macros like NSMakeRect(). Use a record:

set frame to  {origin:{x:10, y:10}, |size|:{|width|:200, height:100}}

As of 10.7, you can use NSMakeRect -- but without any underscore.

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


 _______________________________________________
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

References: 
 >Programmaticly creating buttons (From: Evan Schoffstall <email@hidden>)

  • Prev by Date: Re: Doubling issue
  • Next by Date: Re: Grabbing the current URL of a webview
  • Previous by thread: Programmaticly creating buttons
  • Next by thread: Re: Grabbing the current URL of a webview
  • Index(es):
    • Date
    • Thread