Tagged Questions
0
votes
1answer
31 views
Problems with NSTabView autolayout (view based NSTableViews inside tabs)
I have an NSTabView which has 5 tabs. Each tab contains an NSTableView (which, as default, is nested in NSScrollView). This is all loaded from a xib file with autolayout turned on. I'd like each table ...
0
votes
1answer
27 views
NSWindow's top position is jumping during resize (auto layout)
I do heavily use auto layout in my new project, but I've got one issue related to NSWindow during resizing ...
NSWindow is borderless window,
during initial setup, frame of this window is set based ...
0
votes
0answers
60 views
Window resizing and view update of inactive tabs in NSTabView
I have an NSTabView with multiple tabs, each containing an NSScrollView. In the scollviews I dynamically place custom views which are sized using autolayout and constraints.
Now if I add my custom ...
2
votes
1answer
124 views
Autolayout NSImageView in NSView - scale size. Programmatically set NSLayoutConstraint
I have an NSImageView in a NSView set up in IB. The NSImageView is exactly the same size as the NSView.
Everything works fine and the NSImageView have the same size as the NSView when resizing the ...
1
vote
1answer
24 views
Autolayout - pull apart super view?
Is it possible to set height of super view relying on summarized height and padding between its child elements using auto layout?
Basically I'm trying to fill subviews with text from remote server, ...
0
votes
1answer
64 views
UILabel sizeToFit and constraints
Is there any simple way which can help me to change position of dependent views dynamically using their content size?
I want to show several views in column which all have varying content. And I want ...
0
votes
3answers
62 views
Content padding in custom view with Cocoa auto layout
I have a custom NSView subclass which has a border around itself. The border is drawn inside this view. Is it possible to respect this borders with auto layout?
For example, when I place the subview ...
1
vote
2answers
156 views
Cocoa Autolayout: content hugging vs content compression resistance priority
I don't found clear answer on Apple documentation regarded Cocoa Autolayout about difference between hugging and compression resistance.
Can somebody explain they usages and difference ?
0
votes
1answer
60 views
Cocoa autolayout constraint - programmatic padding of variable number of views
I want to be able to add new views to a superview but so that they keep a constant vertical distance between each other. For that I tried to programmatically set up a constraint for each view but I ...
0
votes
0answers
19 views
Why is it impossible to simultaneously satisfy two equal NSLayoutConstraints?
I accidentally put in two equal constraints, and when running my program I got the following error as a result:
2013-04-04 23:00:15.247 MyProject[123456] Unable to simultaneously satisfy constraints:
...
0
votes
1answer
44 views
NSLayoutConstraint Error: making full subview [duplicate]
I'm making full-frame subview, ( subview's frame = superview's bound )
I made expansion like following
[self addConstraints:[NSLayoutConstraint
...
1
vote
1answer
48 views
How can I modify a Mac OS X Cocoa Layout Constraint
I have a constraint setup in a Mac OS X project within Interface Builder as follows:
H:|-(61)-[webView]
I would like to modify that IB constraint from my code. I am able to add another constraint ...
0
votes
1answer
33 views
Scaling layer contents when animating layer-backed view
I'm animating a layer-backed view that contains several subviews. Everything is laid out using auto layout. Currently, as I animate the view, the subviews are not being scaled along with it:
I'd ...
0
votes
2answers
37 views
Adapt control to its content
I have an issues with my user interface. I want to make some controls (i.e. a readonly NSTextField (a.k.a. a multiline label) and a NSTokenField) display all the text they contains, which can vary a ...
1
vote
0answers
90 views
NSTableView's frame inside a NSClipView/NSScrollView using auto layout
I'm trying to create a NSTableView inside a NSScrollView (the standard configuration, that is) in code, using auto layout. I can't figure out how to make this work.
Here's my loadView:
- ...