• 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: [splitView setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable)];
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [splitView setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable)];


  • Subject: Re: [splitView setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable)];
  • From: Greg Casey <email@hidden>
  • Date: Fri, 13 Sep 2002 18:04:25 -0400

Ryan,

Thanks for the info. That does actually help quite a bit, but it doesn't answer my original question. I still have a need to create an NSSplitView on the fly and I need it to be resizable with the window. How do i do that? Setting the autoresizeMask doesn't seem to do the trick. Does anyone have any ideas? I'm running OS X 10.2.

-gtc

On Friday, September 13, 2002, at 11:05 AM, Ryan Stevens wrote:

On Thursday, September 12, 2002, at 07:53 PM, Greg Casey wrote:

(**Sorry for the repost, I sent the original message via the wrong
account**)

Hi,

I'm creating an NSSplitView on the fly and adding it as a subview to a
view which already exists in the main window. Before adding it, I set
it's autoresizing mask so that it will have a flexible width and
flexible height, using the following syntax:

[splitView setAutoresizingMask: (NSViewWidthSizable |
NSViewHeightSizable)];

After setting it, I've done a quick check to make sure that it is set
correctly and it appears to be set to the value "18" which is the
correct combination. However, when I resize my window, the NSSplitView
does not resize with it even though it's superview does resize.

What am I doing wrong?

Thanks for your help!

-gtc

P.S. As a side note, it would be nice if NSSplitViews were added to
the IB palette.


It's in IB's menu: Layout -> Make subviews of -> Split View

This has been said on the list more than a dozen times. HTH!
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.




-gtc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [splitView setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable)];
      • From: Ryan Stevens <email@hidden>
References: 
 >Re: [splitView setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable)]; (From: Ryan Stevens <email@hidden>)

  • Prev by Date: Re: mail.app plug-in API's (We need MAPI-like functionality)
  • Next by Date: Cocoa equivalents for carbon groupbox types?
  • Previous by thread: Re: [splitView setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable)];
  • Next by thread: Re: [splitView setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable)];
  • Index(es):
    • Date
    • Thread