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 <jh...@gbis.com> wrote:
> 
> You can just do [[NSStackView alloc] initwithFrame:]
> 
> 
>> On Dec 6, 2015, at 6:23 AM, Dave <d...@looktowindward.com> 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 (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> https://lists.apple.com/mailman/options/cocoa-dev/jhull%40gbis.com
>> 
>> This email sent to jh...@gbis.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to