Hi Gregory,

On Friday, February 28, 2025 12:28 CET, Gregory Casamento 
<[email protected]> wrote:

> Multiple connections work properly...  See the attached picture.  You
> simply need to click on the outlet that doesn't have the indicator next to
> it.

I didn't yet came across a use-case, where I would need to have multiple 
outlets steer the same
item in Gorm, but good to know.

> 
> No, the IBImportCollection feature is not supported.

But I have MANY use-cases, where I have many similar UI elements in .gorm 
files, and I just number
them from item0, item1, item2, .... and then iterate over it in code, with some 
NSString concatenation.
That's also why I have tens of outlets defined in some my .gorm files. 

With support for the IBImportCollection(), it would drastically reduce the 
number of outlets in some of
the .gorm files, and I would assume, would make loading them faster as well.

Any plan on supporting IBImportCollection() in Gorm?
In any case, I'll create an issue ;)

thanks,
Sebastian

> 
> GC
> 
> On Thu, Feb 27, 2025 at 4:37 PM Sebastian Reitenbach <
> [email protected]> wrote:
> 
> > Hi,
> >
> > to prevent me from defining
> > @property (weak) IBOutlet NSImageView *imagePartyMember0;
> > @property (weak) IBOutlet NSImageView *imagePartyMember1;
> > @property (weak) IBOutlet NSImageView *imagePartyMember2;
> > @property (weak) IBOutlet NSImageView *imagePartyMember3;
> > @property (weak) IBOutlet NSImageView *imagePartyMember4;
> > @property (weak) IBOutlet NSImageView *imagePartyMember5;
> >
> > it was suggested to me to use:
> > @property (strong) IBOutletCollection(NSImageView) NSArray
> > *partyMemberImages;
> >
> > Awesome, that builds, however, When trying to drag n drop a connection
> > from the Class to the second NSImageView, I only have the "disconnect"
> > button,
> > allowing me to disconnect the first connected NSImageView, then afterward
> > connect the second.
> >
> > Does Gorm support IBOutletCollection() ?
> >
> > Of the first pattern, I actually have quite a lot, so using
> > IBOutletCollection
> > would help dramatically to reduce the number of outlets in my .gorm files
> > dramatically.
> >
> > thanks,
> > Sebastian
> >
> >
> >
> 
> -- 
> Gregory Casamento
> GNUstep Lead Developer / Black Lotus, Principal Consultant
> http://www.gnustep.org - http://heronsperch.blogspot.com
> https://www.patreon.com/bePatron?u=352392 - Become a Patron
> https://www.openhub.net/languages/objective_c
> https://www.gofundme.com/f/cacao-linux-a-gnustep-reference-implementation


Reply via email to