Skip to content

Commit 6c731f5

Browse files
committed
fix IBOutlet types in NSViewController
Updates the NSViewController schema with the IBOutlet fix from progrium/macschema#12 to parse the types correctly.
1 parent 43761d0 commit 6c731f5

File tree

2 files changed

+69
-5
lines changed

2 files changed

+69
-5
lines changed

api/appkit/nsviewcontroller.objc.json

+9-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cocoa/cocoa_objc.gen.go

+60
Original file line numberDiff line numberDiff line change
@@ -3233,6 +3233,16 @@ void* NSViewController_inst_nibBundle(void *id) {
32333233
nibBundle];
32343234
}
32353235
3236+
void* NSViewController_inst_view(void *id) {
3237+
return [(NSViewController*)id
3238+
view];
3239+
}
3240+
3241+
void NSViewController_inst_setView_(void *id, void* value) {
3242+
[(NSViewController*)id
3243+
setView: value];
3244+
}
3245+
32363246
void* NSViewController_inst_title(void *id) {
32373247
return [(NSViewController*)id
32383248
title];
@@ -3303,6 +3313,16 @@ NSSize NSViewController_inst_preferredMinimumSize(void *id) {
33033313
preferredMinimumSize];
33043314
}
33053315
3316+
void* NSViewController_inst_sourceItemView(void *id) {
3317+
return [(NSViewController*)id
3318+
sourceItemView];
3319+
}
3320+
3321+
void NSViewController_inst_setSourceItemView_(void *id, void* value) {
3322+
[(NSViewController*)id
3323+
setSourceItemView: value];
3324+
}
3325+
33063326
void NSVisualEffectView_inst_viewDidMoveToWindow(void *id) {
33073327
[(NSVisualEffectView*)id
33083328
viewDidMoveToWindow];
@@ -13667,6 +13687,26 @@ func (x gen_NSViewController) NibBundle() (
1366713687
return
1366813688
}
1366913689

13690+
func (x gen_NSViewController) View() (
13691+
r0 NSView,
13692+
) {
13693+
ret := C.NSViewController_inst_view(
13694+
unsafe.Pointer(x.Pointer()),
13695+
)
13696+
r0 = NSView_fromPointer(ret)
13697+
return
13698+
}
13699+
13700+
func (x gen_NSViewController) SetView_(
13701+
value NSViewRef,
13702+
) {
13703+
C.NSViewController_inst_setView_(
13704+
unsafe.Pointer(x.Pointer()),
13705+
objc.RefPointer(value),
13706+
)
13707+
return
13708+
}
13709+
1367013710
func (x gen_NSViewController) Title() (
1367113711
r0 core.NSString,
1367213712
) {
@@ -13807,6 +13847,26 @@ func (x gen_NSViewController) PreferredMinimumSize() (
1380713847
return
1380813848
}
1380913849

13850+
func (x gen_NSViewController) SourceItemView() (
13851+
r0 NSView,
13852+
) {
13853+
ret := C.NSViewController_inst_sourceItemView(
13854+
unsafe.Pointer(x.Pointer()),
13855+
)
13856+
r0 = NSView_fromPointer(ret)
13857+
return
13858+
}
13859+
13860+
func (x gen_NSViewController) SetSourceItemView_(
13861+
value NSViewRef,
13862+
) {
13863+
C.NSViewController_inst_setSourceItemView_(
13864+
unsafe.Pointer(x.Pointer()),
13865+
objc.RefPointer(value),
13866+
)
13867+
return
13868+
}
13869+
1381013870
type NSVisualEffectViewRef interface {
1381113871
Pointer() uintptr
1381213872
Init_asNSVisualEffectView() NSVisualEffectView

0 commit comments

Comments
 (0)