Skip to content

Commit

Permalink
core: Add generated NSObject
Browse files Browse the repository at this point in the history
  • Loading branch information
tmc committed Jul 7, 2023
1 parent a7ba9b1 commit de48908
Show file tree
Hide file tree
Showing 8 changed files with 5,575 additions and 43 deletions.
4,349 changes: 4,349 additions & 0 deletions api/objectivec/nsobject.objc.json

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions cocoa/cocoa_objc.gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -4746,6 +4746,16 @@ void NSWindow_inst_SetPreventsApplicationTerminationWhenModal(void *id, BOOL val
setPreventsApplicationTerminationWhenModal: value];
}

void* NSWindow_inst_AppearanceSource(void *id) {
return [(NSWindow*)id
appearanceSource];
}

void NSWindow_inst_SetAppearanceSource(void *id, void* value) {
[(NSWindow*)id
setAppearanceSource: value];
}

BOOL NSWindow_inst_HasDynamicDepthLimit(void *id) {
return [(NSWindow*)id
hasDynamicDepthLimit];
Expand Down Expand Up @@ -19595,6 +19605,31 @@ func (x gen_NSWindow) SetPreventsApplicationTerminationWhenModal(
return
}

// AppearanceSource an object that the window inherits its appearance from.
//
// See https://developer.apple.com/documentation/appkit/nswindow/2998855-appearancesource?language=objc for details.
func (x gen_NSWindow) AppearanceSource() core.NSObject {
ret := C.NSWindow_inst_AppearanceSource(
unsafe.Pointer(x.Pointer()),
)

return core.NSObject_FromPointer(ret)
}

// SetAppearanceSource an object that the window inherits its appearance from.
//
// See https://developer.apple.com/documentation/appkit/nswindow/2998855-appearancesource?language=objc for details.
func (x gen_NSWindow) SetAppearanceSource(
value core.NSObjectRef,
) {
C.NSWindow_inst_SetAppearanceSource(
unsafe.Pointer(x.Pointer()),
objc.RefPointer(value),
)

return
}

// HasDynamicDepthLimit returns a Boolean value that indicates whether the window’s depth limit can change to match the depth of the screen it’s on.
//
// See https://developer.apple.com/documentation/appkit/nswindow/1419330-hasdynamicdepthlimit?language=objc for details.
Expand Down
5 changes: 5 additions & 0 deletions core/NSObject.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package core

type NSObject struct {
gen_NSObject
}
Loading

0 comments on commit de48908

Please sign in to comment.