Are there any outlet collections for Mac apps?

There seems to be no way to use the outlet collection in a mac app. Why not?

+4
source share
3 answers

Just put your images in an array - if they are all subheadings of the same supervisor, you can go through this superview (testing that they are NSImageViews or checking the tag value) and adding them. This method also has the advantage that You do not need to create IBOutlets for them.

Whether snapping is appropriate for your problem depends on what you want to do with the images. I need more information to comment on this.

0
source

As a rule, if there is a function that you want within the framework of iOS or OS X and tools, it is best to raise a function request to bugreport.apple.com.

Should people demand this thing, then maybe engineering managers can pay attention (or not)

But yes, another answer about Bindings is a good suggestion. The bindings are very cool and useful.

0
source

The Mac application uses BINDINGS , which is very useful and does not exist in the iOS SDK. You can achieve the same.

Read Cocoa binding programming topics

-1
source

Source: https://habr.com/ru/post/1433124/


All Articles