• 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
NSSplitView not Resizing Subviews if Delegate is used
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSSplitView not Resizing Subviews if Delegate is used


  • Subject: NSSplitView not Resizing Subviews if Delegate is used
  • From: Michael Starke <email@hidden>
  • Date: Tue, 19 Feb 2013 16:53:27 +0100

Hello here,

Yesterday a ran into a strange problem that I could not get my head around. Simple setup created in InterfaceBuilder:

A window with a horizontal NSSplitview with two subviews.

If I run this without setting the delegate of the split view the two subviews get rescaled as expected.
When I hook up a delegate (for example via InterfaceBuilder) and the delegate does not implement any of the @optionals, all is fine.

But when I just add one implementation, e.g:

- (CGFloat)splitView:(NSSplitView *)splitView constrainMinCoordinate:(CGFloat)proposedMinimumPosition ofSubviewAt:(NSInteger)dividerIndex {
	return proposedMinimumPosition;
}

Which should interfere in any way, all goes down the drain. If i drag the Splitter, the left view gets resized, the right view just stays the same
If the delegate implements

- (void)splitViewDidResizeSubviews:(NSNotification *)notification

I just get notified for resizing the first view, not the second

Am I to stupid to see my error? Or might this be a bug?

Any help would be great,
Michael



___m i c h a e l   s t a r k e____
       geschäftsführer
       HicknHack Software GmbH
       www.hicknhack-software.com

___k o n t a k t____
       +49 (170) 3686136
       email@hidden

___H i c k n H a c k   S o f t w a r e   G m b H____
       geschäftsführer - maik lathan | andreas reischuck | michael starke
       bayreuther straße 32
       01187 dresden
       amtsgericht dresden HRB 30351
       sitz - dresden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSSplitView not Resizing Subviews if Delegate is used
      • From: Kevin Cathey <email@hidden>
    • Re: NSSplitView not Resizing Subviews if Delegate is used
      • From: Chuck Soper <email@hidden>
  • Prev by Date: Re: IOS iPad PopOver Nav bar color
  • Next by Date: iOS/RestKit/XCode 4.6
  • Previous by thread: Re: Custom drawn window like Game Center
  • Next by thread: Re: NSSplitView not Resizing Subviews if Delegate is used
  • Index(es):
    • Date
    • Thread