Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Split View sizing problems

Split View sizing problems
Thread Tools
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Oct 25, 2003, 01:09 PM
 
I'm trying to make an iTunes-like interface for an app. I have a table view on the left like the Playlist view in iTunes and a Custom View on the right. Inside the Custom View is horizontal Split View with two Table Views in the top and a Custom View in the bottom.

When I test the interface, I get the appropriate sizing in the vertical Split View between the 'playlist' table on the left and the custom view on the right, i.e. the table view adjusts it's size to fill the left part of the split view as does the custom view on the right. The problem is that all of the sub views contained within the custom view on the right 'slide' out of the custom view to the right rather than resizing. Is there any way to constrain these subviews such that they resize appropriately within the custom view?

thanks,
kman
     
Professional Poster
Join Date: Apr 2001
Location: Seattle, WA
Status: Offline
Reply With Quote
Oct 25, 2003, 01:30 PM
 
if i understand you correctly, hit shift+command+i, and look on the dropdown menu (while your views are selected) for size. see the autosizing box? one of the settings there may be what you want, although I'm not sure which one. hope that points ya in the right direction...
The short shall inherit the earth. Just you wait. You won't see us coming. We'll pop out from under tables, beds, and closets in hordes. So you're tall, huh? You won't be so tall when I chew off your ankles. Mofo
     
kman42  (op)
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Oct 26, 2003, 02:13 PM
 
Originally posted by cheerios:
if i understand you correctly, hit shift+command+i, and look on the dropdown menu (while your views are selected) for size. see the autosizing box? one of the settings there may be what you want, although I'm not sure which one. hope that points ya in the right direction...
I tried playing around with the springs, etc, but I think it only determines how the object resizes in relation to the window, rather than in relation to the enclosing view.

kman
     
Professional Poster
Join Date: Apr 2001
Location: Seattle, WA
Status: Offline
Reply With Quote
Oct 26, 2003, 04:35 PM
 
hmm. well that's kinda stupid! good luck, let us know what you find to fix it!
The short shall inherit the earth. Just you wait. You won't see us coming. We'll pop out from under tables, beds, and closets in hordes. So you're tall, huh? You won't be so tall when I chew off your ankles. Mofo
     
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Oct 26, 2003, 05:16 PM
 
Originally posted by kman42:
I tried playing around with the springs, etc, but I think it only determines how the object resizes in relation to the window, rather than in relation to the enclosing view.

kman
No, the "springy" autoresizing controls apply to the enclosing view (ie, the superview) of the selected object, and how the selected object is autoresized when its superview is resized.

My guess here is that there is an additional layer (ie, a superview of a superview, or a subview of a subview, depending on your point of view) that you also need to set to auto resize.

With the autoresizing info displayed, try clicking on each object in the hierarchy and clicking just outside each object, to see if there is another "in-between view" that you hadn't taken into account.

Or programatically (if you've got that far yet), try things like [[[object superview] superview] superview] and see if the result is the view you expected it to be.
     
Dedicated MacNNer
Join Date: Feb 2001
Location: Manhattan
Status: Offline
Reply With Quote
Oct 27, 2003, 07:43 AM
 
i too have been trying a similar interface (minus the "playlist" table view on the left, though that'll happen in time...) and have so far been short on luck. if you find the solution, please post a nib or how-to.

thanks

Originally posted by kman42:
I'm trying to make an iTunes-like interface for an app. I have a table view on the left like the Playlist view in iTunes and a Custom View on the right. Inside the Custom View is horizontal Split View with two Table Views in the top and a Custom View in the bottom.

When I test the interface, I get the appropriate sizing in the vertical Split View between the 'playlist' table on the left and the custom view on the right, i.e. the table view adjusts it's size to fill the left part of the split view as does the custom view on the right. The problem is that all of the sub views contained within the custom view on the right 'slide' out of the custom view to the right rather than resizing. Is there any way to constrain these subviews such that they resize appropriately within the custom view?

thanks,
kman
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:18 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2