• 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
Changing boxes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing boxes


  • Subject: Changing boxes
  • From: Chris Swain <email@hidden>
  • Date: Wed, 17 Nov 2010 22:11:04 +0000

I am in the process of updating an ASS application to ApplescriptObjC, because there are large number of input options I change the display based on the choice from a dropdown menu as shown below.


on switchView(theChosen)
-- first we need to put back the last view we took
if not lastChosen is "Choose" then


set content view of box lastChosen of window "Boxes" to content view of box "Master" of tab view item "Tools" of tab view "nstab" of window "main"
end if
-- now we can take the view we want
if not theChosen is "Choose" then
set content view of box "Master" of tab view item "Tools" of tab view "nstab" of window "main" to content view of box theChosen of window "Boxes"
end if
-- finally we reset the property lastChosen for the next time through
set lastChosen to theChosen



end switchView


How do I convert this to ApplescriptObjC?

Kind Regards,

Chris


 _______________________________________________
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: Changing boxes
      • From: Shane Stanley <email@hidden>
  • Prev by Date: ( NSAlert ) - Creating a simple Display Alert in ASOC
  • Next by Date: Re: Changing boxes
  • Previous by thread: ( NSAlert ) - Creating a simple Display Alert in ASOC
  • Next by thread: Re: Changing boxes
  • Index(es):
    • Date
    • Thread