Re: How to create an empty stack view in code
Re: How to create an empty stack view in code
- Subject: Re: How to create an empty stack view in code
- From: Dave <email@hidden>
- Date: Sun, 06 Dec 2015 16:10:10 +0000
Hi,
I’m not sure what to use for the Frame though? The way this is setup is that I have a Stack View an empty Stack View in a NIB, as so:
@property (nonatomic,strong) IBOutlet NSStackView* pLabelMainRowStackView; //Vertical
There is a then a Row Array which contains Column Arrays and each item in a Column Array is a Dictionary that contains the data for the Corresponding View.
So in code, I create a Column (Horizontal) Stack View, Create a New View for the Dictionary Item and add it to the newly created Stack View. When all Columns in the Array have been added, add the Column Stack view to the pLabelMainRowStackView Stack view.
All the Best
Dave
> On 6 Dec 2015, at 15:48, Jonathan Hull <email@hidden> wrote:
>
> You can just do [[NSStackView alloc] initwithFrame:]
>
>
>> On Dec 6, 2015, at 6:23 AM, Dave <email@hidden> wrote:
>>
>> Hi All,
>>
>> How do I create an Empty Stack View in code? The only method I can find that that creates a Stack View is stackViewWithViews and you can’t pass nil to this. Do I have to pass an empty array or can I just do [[NSStackView alloc] init]; ?
>>
>> All the Best
>> Dave
>>
>>
>> _______________________________________________
>>
>> 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
_______________________________________________
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