• 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
Xcode splitter get size/set size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode splitter get size/set size


  • Subject: Xcode splitter get size/set size
  • From: Bill Hernandez <email@hidden>
  • Date: Thu, 11 Mar 2010 14:54:20 -0600

Hi,

I posted this somewhere else but still need to figure out a workaround...

I am trying to resize the Xcode "groups & files" view, and thought that if I set the (splitter group 1) to the width I want that should work.

I tried to set the left pane of an Xcode project to be 250 pixels wide. I observed the variables as I traced through using ScriptDebugger, and everything worked fine, except the pane did not resize.
Open this Scriplet in your Editor:

    set desired_width to 250
    activate application "Xcode"
    tell application "System Events"
        tell process "Xcode"
            -- get the {w, h} of the "groups & files" view
            set {groups_w, groups_h} to size of (splitter group 1) of group 1 of window 1

            -- don't change the height, only the width
            set (size of splitter group 1 of group 1 of window 1) to {desired_width, groups_h}
        end tell
    end tell
It appears to me that Xcode supports the get, but not the set {read only} for (splitter group 1)...

Any idea what I am missing ?

Thanks for any help you can provide...

------------------
Reply I received :
------------------

the size of the sidebar is not settable.

Check the value of property settable of attribute AXSize of splitter group 1 of group 1 of window 1 of process "Xcode"

------------------
My Response :
------------------

Thank you so much for the reply...

So that being the case, what other method can I use to accomplish what I need, i.e. change the width of the view ?

...and if there is now way to do this, how do I bring it to Apple's attention, so that hopefully they will add this to the list of things that do work?

Bill Hernandez
Plano, Texas

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode splitter get size/set size
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: EPS to PDF Watch Folder Dilemma
  • Next by Date: Re: Osascripting
  • Previous by thread: EPS to PDF Watch Folder Dilemma - Solved
  • Next by thread: Re: Xcode splitter get size/set size
  • Index(es):
    • Date
    • Thread