Skip to content

Commit ba6ad26

Browse files
committed
Fix macOS subclassing adapter documentation
1 parent df3ee5d commit ba6ad26

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bindings/c/src/macos.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,15 @@ impl macos_subclassing_adapter {
137137
}
138138

139139
/// This function takes ownership of `handler`.
140+
///
141+
/// # Safety
142+
///
143+
/// `window` must be a valid, unreleased pointer to an `NSWindow`.
144+
///
145+
/// # Panics
146+
///
147+
/// This function panics if the specified window doesn't currently have
148+
/// a content view.
140149
#[no_mangle]
141150
pub unsafe extern "C" fn accesskit_macos_subclassing_adapter_for_window(
142151
window: *mut c_void,

0 commit comments

Comments
 (0)