I made a tutorial on how to use nib files in DarwinKit #248
programmingkidx
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
In this example get top-level objects var myObjects = f.Array_Array()
status := myNib.InstantiateWithOwnerTopLevelObjects(nil, unsafe.Pointer(&myObjects)) But the signature of the method is: func (n_ Nib) InstantiateWithOwnerTopLevelObjects(owner objc.IObject, topLevelObjects []objc.IObject) bool Using this example //go:embed CollectionItem.nib
var collectionItemNib []byte
var objects = make([]objc.IObject, 0)
var nib = appkit.NewNibWithNibDataBundle(collectionItemNib, nil)
var status = nib.InstantiateWithOwnerTopLevelObjects(nil, objects) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is the tutorial: https://github.com/progrium/macdriver/wiki/How-to-use-nib-files-with-DarwinKit
Let me know what you think.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions