objc2_app_kit/generated/NSSplitViewItem.rs
1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nssplitviewitembehavior?language=objc)
13// NS_ENUM
14#[repr(transparent)]
15#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
16pub struct NSSplitViewItemBehavior(pub NSInteger);
17impl NSSplitViewItemBehavior {
18 #[doc(alias = "NSSplitViewItemBehaviorDefault")]
19 pub const Default: Self = Self(0);
20 #[doc(alias = "NSSplitViewItemBehaviorSidebar")]
21 pub const Sidebar: Self = Self(1);
22 #[doc(alias = "NSSplitViewItemBehaviorContentList")]
23 pub const ContentList: Self = Self(2);
24 #[doc(alias = "NSSplitViewItemBehaviorInspector")]
25 pub const Inspector: Self = Self(3);
26}
27
28unsafe impl Encode for NSSplitViewItemBehavior {
29 const ENCODING: Encoding = NSInteger::ENCODING;
30}
31
32unsafe impl RefEncode for NSSplitViewItemBehavior {
33 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
34}
35
36/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nssplitviewitemcollapsebehavior?language=objc)
37// NS_ENUM
38#[repr(transparent)]
39#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
40pub struct NSSplitViewItemCollapseBehavior(pub NSInteger);
41impl NSSplitViewItemCollapseBehavior {
42 /// The item uses the default collapsing behavior for its set `behavior`. The default may change over time.
43 #[doc(alias = "NSSplitViewItemCollapseBehaviorDefault")]
44 pub const Default: Self = Self(0);
45 /// The item prefers to keep the other panes at their current size and position on screen, potentially growing or shrinking the window in the direction to best preserve that. But it will break that preference in order to keep the window fully on screen or when in full screen.
46 #[doc(alias = "NSSplitViewItemCollapseBehaviorPreferResizingSplitViewWithFixedSiblings")]
47 pub const PreferResizingSplitViewWithFixedSiblings: Self = Self(1);
48 /// The item prefers to resize the other split panes. This will be broken when uncollapsing if the item can't fully uncollapse before hitting the minimum size of the other panes or the window.
49 #[doc(alias = "NSSplitViewItemCollapseBehaviorPreferResizingSiblingsWithFixedSplitView")]
50 pub const PreferResizingSiblingsWithFixedSplitView: Self = Self(2);
51 /// The item will collapse/uncollapse purely from a constraint animation, with a constraint priority of the item’s `holdingPriority`. This could result in a partial internal content resize and window resize, and has no implications for keeping the window on screen. External constraints can be used to tweak exactly how the animation affects item, sibling, and window size and positions.
52 #[doc(alias = "NSSplitViewItemCollapseBehaviorUseConstraints")]
53 pub const UseConstraints: Self = Self(3);
54}
55
56unsafe impl Encode for NSSplitViewItemCollapseBehavior {
57 const ENCODING: Encoding = NSInteger::ENCODING;
58}
59
60unsafe impl RefEncode for NSSplitViewItemCollapseBehavior {
61 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
62}
63
64extern "C" {
65 /// This constant can be used with any sizing related
66 /// `NSSplitViewItem`properties to unset their values.
67 ///
68 /// See also [Apple's documentation](https://developer.apple.com/documentation/appkit/nssplitviewitemunspecifieddimension?language=objc)
69 #[cfg(feature = "objc2-core-foundation")]
70 pub static NSSplitViewItemUnspecifiedDimension: CGFloat;
71}
72
73extern_class!(
74 /// NSSplitViewItem implements the items used in an NSSplitViewController.
75 /// The item describes a child ViewController's state in a SplitViewController, e.g. its collapsibility, holding priority and other metrics, and collapsed state.
76 ///
77 /// See also [Apple's documentation](https://developer.apple.com/documentation/appkit/nssplitviewitem?language=objc)
78 #[unsafe(super(NSObject))]
79 #[derive(Debug, PartialEq, Eq, Hash)]
80 pub struct NSSplitViewItem;
81);
82
83#[cfg(feature = "NSAnimation")]
84extern_conformance!(
85 unsafe impl NSAnimatablePropertyContainer for NSSplitViewItem {}
86);
87
88extern_conformance!(
89 unsafe impl NSCoding for NSSplitViewItem {}
90);
91
92extern_conformance!(
93 unsafe impl NSObjectProtocol for NSSplitViewItem {}
94);
95
96impl NSSplitViewItem {
97 extern_methods!(
98 #[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
99 /// Creates an autoreleased SplitViewItem that represents the provided ViewController. All other properties are left at their default.
100 ///
101 /// Parameter `viewController`: The view controller used to set the viewController property
102 ///
103 /// Returns: An autoreleased SplitViewItem.
104 #[unsafe(method(splitViewItemWithViewController:))]
105 #[unsafe(method_family = none)]
106 pub fn splitViewItemWithViewController(
107 view_controller: &NSViewController,
108 ) -> Retained<Self>;
109
110 #[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
111 /// Creates a split view item representing a sidebar for the provided ViewController.
112 /// Sidebars have standard system behavior, specifically:
113 /// - Translucent material background
114 /// - The ability to collapse/uncollapse on split view size changes
115 /// - The ability to overlay at small split view sizes when in fullscreen
116 /// - canCollapse is set to YES
117 /// - minimumThickness and maximumThickness are set to the standard minimum and maximum sidebar size
118 /// - preferredThicknessFraction is set to the standard fraction for sidebars (0.15)
119 /// - springLoaded is set to YES
120 ///
121 /// Parameter `viewController`: The view controller used to set the viewController property
122 ///
123 /// Returns: An autoreleased SplitViewItem that acts as a sidebar.
124 #[unsafe(method(sidebarWithViewController:))]
125 #[unsafe(method_family = none)]
126 pub fn sidebarWithViewController(view_controller: &NSViewController) -> Retained<Self>;
127
128 #[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
129 /// Creates a split view item representing a content list for the provided ViewController, akin to Mail's message list, Note's note list.
130 /// Content lists have system standard defaults, specifically:
131 /// - minimumThickness and maximumThickness are set to the system standard for content lists
132 /// - automaticMaximumThickness is set to the system standard for content lists
133 /// - preferredThicknessFraction is set to the standard fraction for content lists (0.28 when a neighbor sidebar is visible, 0.33 if not)
134 ///
135 /// Parameter `viewController`: The view controller used to set the viewController property
136 ///
137 /// Returns: An autoreleased SplitViewItem that acts as a content list.
138 #[unsafe(method(contentListWithViewController:))]
139 #[unsafe(method_family = none)]
140 pub fn contentListWithViewController(view_controller: &NSViewController) -> Retained<Self>;
141
142 #[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
143 /// Creates a split view item representing an inspector for the provided ViewController.
144 /// On macOS 14.0 and above inspectors have the following standard system behavior:
145 /// - canCollapse is set to YES
146 /// - minimumThickness and maximumThickness are set to the standard inspector size (270) and are not resizable by default
147 ///
148 /// Parameter `viewController`: The view controller used to set the viewController property
149 ///
150 /// Returns: An autoreleased SplitViewItem that acts as an inspector.
151 #[unsafe(method(inspectorWithViewController:))]
152 #[unsafe(method_family = none)]
153 pub fn inspectorWithViewController(view_controller: &NSViewController) -> Retained<Self>;
154
155 /// The standard behavior type of the receiver. See initializers for descriptions of each behavior.
156 #[unsafe(method(behavior))]
157 #[unsafe(method_family = none)]
158 pub fn behavior(&self) -> NSSplitViewItemBehavior;
159
160 #[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
161 /// The view controller represented by the SplitViewItem. An exception will be thrown if a new viewController is set while the receiving SplitViewItem is added to a SplitViewController.
162 #[unsafe(method(viewController))]
163 #[unsafe(method_family = none)]
164 pub fn viewController(&self, mtm: MainThreadMarker) -> Retained<NSViewController>;
165
166 #[cfg(all(feature = "NSResponder", feature = "NSViewController"))]
167 /// Setter for [`viewController`][Self::viewController].
168 #[unsafe(method(setViewController:))]
169 #[unsafe(method_family = none)]
170 pub fn setViewController(&self, view_controller: &NSViewController);
171
172 /// Whether or not the child ViewController corresponding to the SplitViewItem is collapsed in the SplitViewController. The default is
173 /// `NO.`This can be set with the animator proxy to animate the collapse or uncollapse. The exact animation used can be customized by setting it in the -animations dictionary with a key of "collapsed". If this is set to YES before it is added to the SplitViewController, it will be initially collapsed and the SplitViewController will not cause the view to be loaded until it is uncollapsed. This is KVC/KVO compliant and will be updated if the value changes from user interaction.
174 #[unsafe(method(isCollapsed))]
175 #[unsafe(method_family = none)]
176 pub fn isCollapsed(&self) -> bool;
177
178 /// Setter for [`isCollapsed`][Self::isCollapsed].
179 #[unsafe(method(setCollapsed:))]
180 #[unsafe(method_family = none)]
181 pub fn setCollapsed(&self, collapsed: bool);
182
183 /// Whether or not the child view controller is collapsible from user interaction - whether by dragging or double clicking a divider. The default is
184 /// `NO.`
185 #[unsafe(method(canCollapse))]
186 #[unsafe(method_family = none)]
187 pub fn canCollapse(&self) -> bool;
188
189 /// Setter for [`canCollapse`][Self::canCollapse].
190 #[unsafe(method(setCanCollapse:))]
191 #[unsafe(method_family = none)]
192 pub fn setCanCollapse(&self, can_collapse: bool);
193
194 /// The resize behavior when the receiver toggles its `collapsed` state programmatically, both animatedly and not. Defaults to `.Default`.
195 #[unsafe(method(collapseBehavior))]
196 #[unsafe(method_family = none)]
197 pub fn collapseBehavior(&self) -> NSSplitViewItemCollapseBehavior;
198
199 /// Setter for [`collapseBehavior`][Self::collapseBehavior].
200 #[unsafe(method(setCollapseBehavior:))]
201 #[unsafe(method_family = none)]
202 pub fn setCollapseBehavior(&self, collapse_behavior: NSSplitViewItemCollapseBehavior);
203
204 #[cfg(feature = "objc2-core-foundation")]
205 /// A convenience to set the minimum thickness of the split view item -- width for "vertical" split views, height otherwise. If NSSplitViewItemUnspecifiedDimension, no minimum size is enforced by the SplitViewItem, although constraints in the contained view hierarchy might have constraints specify some minimum size on their own. Defaults to NSSplitViewItemUnspecifiedDimension.
206 #[unsafe(method(minimumThickness))]
207 #[unsafe(method_family = none)]
208 pub fn minimumThickness(&self) -> CGFloat;
209
210 #[cfg(feature = "objc2-core-foundation")]
211 /// Setter for [`minimumThickness`][Self::minimumThickness].
212 #[unsafe(method(setMinimumThickness:))]
213 #[unsafe(method_family = none)]
214 pub fn setMinimumThickness(&self, minimum_thickness: CGFloat);
215
216 #[cfg(feature = "objc2-core-foundation")]
217 /// A convenience to set the maximum thickness of the split view item -- width for "vertical" split views, height otherwise. If NSSplitViewItemUnspecifiedDimension, no maximum size is enforced by the SplitViewItem, although constraints in the contained view hierarchy might have constraints specify some maximum size on their own. Defaults to NSSplitViewItemUnspecifiedDimension.
218 #[unsafe(method(maximumThickness))]
219 #[unsafe(method_family = none)]
220 pub fn maximumThickness(&self) -> CGFloat;
221
222 #[cfg(feature = "objc2-core-foundation")]
223 /// Setter for [`maximumThickness`][Self::maximumThickness].
224 #[unsafe(method(setMaximumThickness:))]
225 #[unsafe(method_family = none)]
226 pub fn setMaximumThickness(&self, maximum_thickness: CGFloat);
227
228 #[cfg(feature = "objc2-core-foundation")]
229 /// The percentage of the contained NSSplitView that the NSSplitViewItem prefers to encompass. This is used when double-clicking on a neighbor divider to return to that standard ratio. As well as after entering fullscreen to determine the initial size of the receiver. Defaults to NSSplitViewItemUnspecifiedDimension, which means no resize will occur on double-clicks, and the absolute size is preserved when entering fullscreen.
230 #[unsafe(method(preferredThicknessFraction))]
231 #[unsafe(method_family = none)]
232 pub fn preferredThicknessFraction(&self) -> CGFloat;
233
234 #[cfg(feature = "objc2-core-foundation")]
235 /// Setter for [`preferredThicknessFraction`][Self::preferredThicknessFraction].
236 #[unsafe(method(setPreferredThicknessFraction:))]
237 #[unsafe(method_family = none)]
238 pub fn setPreferredThicknessFraction(&self, preferred_thickness_fraction: CGFloat);
239
240 #[cfg(feature = "NSLayoutConstraint")]
241 /// Sets the priority under which a SplitViewItem will hold its width (for a vertical split view) or height (for a horizontal split view). The view with the lowest priority will be the first to take on additional width if the split view grows or shrinks. The default is
242 /// `NSLayoutPriorityDefaultLow.`
243 #[unsafe(method(holdingPriority))]
244 #[unsafe(method_family = none)]
245 pub fn holdingPriority(&self) -> NSLayoutPriority;
246
247 #[cfg(feature = "NSLayoutConstraint")]
248 /// Setter for [`holdingPriority`][Self::holdingPriority].
249 #[unsafe(method(setHoldingPriority:))]
250 #[unsafe(method_family = none)]
251 pub fn setHoldingPriority(&self, holding_priority: NSLayoutPriority);
252
253 #[cfg(feature = "objc2-core-foundation")]
254 /// The maximum thickness of the split view item when resizing due to automatic sizing, such as entering fullscreen with a set preferredThicknessFraction or proportional sizing. The user can still resize up to the absolute maximum size by dragging the divider or otherwise. If NSSplitViewItemUnspecifiedDimension, no automatic maximum is enforced. Defaults to NSSplitViewItemUnspecifiedDimension.
255 #[unsafe(method(automaticMaximumThickness))]
256 #[unsafe(method_family = none)]
257 pub fn automaticMaximumThickness(&self) -> CGFloat;
258
259 #[cfg(feature = "objc2-core-foundation")]
260 /// Setter for [`automaticMaximumThickness`][Self::automaticMaximumThickness].
261 #[unsafe(method(setAutomaticMaximumThickness:))]
262 #[unsafe(method_family = none)]
263 pub fn setAutomaticMaximumThickness(&self, automatic_maximum_thickness: CGFloat);
264
265 /// If YES, the split view item can be temporarily uncollapsed during a drag by hovering or deep clicking on its neighboring divider. Defaults to NO.
266 #[unsafe(method(isSpringLoaded))]
267 #[unsafe(method_family = none)]
268 pub fn isSpringLoaded(&self) -> bool;
269
270 /// Setter for [`isSpringLoaded`][Self::isSpringLoaded].
271 #[unsafe(method(setSpringLoaded:))]
272 #[unsafe(method_family = none)]
273 pub fn setSpringLoaded(&self, spring_loaded: bool);
274
275 /// If YES, the item can be collapsed from a window resize. This can differ from `canCollapse`, to allow divider collapsing but not window resize collapsing or vice versa.
276 /// Defaults to YES for Sidebars and NO for Inspectors.
277 /// - Note: Setting `canCollapse` for sidebars will reset this value to that new value.
278 #[unsafe(method(canCollapseFromWindowResize))]
279 #[unsafe(method_family = none)]
280 pub fn canCollapseFromWindowResize(&self) -> bool;
281
282 /// Setter for [`canCollapseFromWindowResize`][Self::canCollapseFromWindowResize].
283 #[unsafe(method(setCanCollapseFromWindowResize:))]
284 #[unsafe(method_family = none)]
285 pub fn setCanCollapseFromWindowResize(&self, can_collapse_from_window_resize: bool);
286
287 /// Whether or not a sidebar or inspector is allowed to be full height in the window when the `NSFullSizeContentViewWindowMask` style mask is also set. Only applies to NSSplitViewItemBehaviorSidebar and NSSplitViewItemBehaviorInspector. Defaults to YES.
288 #[unsafe(method(allowsFullHeightLayout))]
289 #[unsafe(method_family = none)]
290 pub fn allowsFullHeightLayout(&self) -> bool;
291
292 /// Setter for [`allowsFullHeightLayout`][Self::allowsFullHeightLayout].
293 #[unsafe(method(setAllowsFullHeightLayout:))]
294 #[unsafe(method_family = none)]
295 pub fn setAllowsFullHeightLayout(&self, allows_full_height_layout: bool);
296
297 #[cfg(feature = "NSWindow")]
298 /// Specifies a preference for the style of separator displayed between the titlebar and the content of the split view item.
299 ///
300 /// For this value to be applicable, the item's view must be associated with its own titlebar section (see `NSTrackingSeparatorToolbarItem` for more info).
301 /// The default value is NSTitlebarSeparatorStyleAutomatic. This value is subject to the containing window's preference and can be overridden.
302 #[unsafe(method(titlebarSeparatorStyle))]
303 #[unsafe(method_family = none)]
304 pub fn titlebarSeparatorStyle(&self) -> NSTitlebarSeparatorStyle;
305
306 #[cfg(feature = "NSWindow")]
307 /// Setter for [`titlebarSeparatorStyle`][Self::titlebarSeparatorStyle].
308 #[unsafe(method(setTitlebarSeparatorStyle:))]
309 #[unsafe(method_family = none)]
310 pub fn setTitlebarSeparatorStyle(&self, titlebar_separator_style: NSTitlebarSeparatorStyle);
311
312 /// When YES, other items such as sidebars or inspectors may appear overlaid on top of this item's `viewController` and this item's `safeAreaInsets` will be adjusted with respect to overlaid content. Defaults to `NO`.
313 #[unsafe(method(automaticallyAdjustsSafeAreaInsets))]
314 #[unsafe(method_family = none)]
315 pub fn automaticallyAdjustsSafeAreaInsets(&self) -> bool;
316
317 /// Setter for [`automaticallyAdjustsSafeAreaInsets`][Self::automaticallyAdjustsSafeAreaInsets].
318 #[unsafe(method(setAutomaticallyAdjustsSafeAreaInsets:))]
319 #[unsafe(method_family = none)]
320 pub fn setAutomaticallyAdjustsSafeAreaInsets(
321 &self,
322 automatically_adjusts_safe_area_insets: bool,
323 );
324
325 #[cfg(all(
326 feature = "NSResponder",
327 feature = "NSSplitViewItemAccessoryViewController",
328 feature = "NSViewController"
329 ))]
330 /// The following methods allow you to add accessory views to the top/bottom of this splitViewItem. See `NSSplitViewItemAccessoryViewController` for more details.
331 #[unsafe(method(topAlignedAccessoryViewControllers))]
332 #[unsafe(method_family = none)]
333 pub fn topAlignedAccessoryViewControllers(
334 &self,
335 mtm: MainThreadMarker,
336 ) -> Retained<NSArray<NSSplitViewItemAccessoryViewController>>;
337
338 #[cfg(all(
339 feature = "NSResponder",
340 feature = "NSSplitViewItemAccessoryViewController",
341 feature = "NSViewController"
342 ))]
343 /// Setter for [`topAlignedAccessoryViewControllers`][Self::topAlignedAccessoryViewControllers].
344 ///
345 /// This is [copied][objc2_foundation::NSCopying::copy] when set.
346 #[unsafe(method(setTopAlignedAccessoryViewControllers:))]
347 #[unsafe(method_family = none)]
348 pub fn setTopAlignedAccessoryViewControllers(
349 &self,
350 top_aligned_accessory_view_controllers: &NSArray<
351 NSSplitViewItemAccessoryViewController,
352 >,
353 );
354
355 #[cfg(all(
356 feature = "NSResponder",
357 feature = "NSSplitViewItemAccessoryViewController",
358 feature = "NSViewController"
359 ))]
360 #[unsafe(method(addTopAlignedAccessoryViewController:))]
361 #[unsafe(method_family = none)]
362 pub fn addTopAlignedAccessoryViewController(
363 &self,
364 child_view_controller: &NSSplitViewItemAccessoryViewController,
365 );
366
367 #[cfg(all(
368 feature = "NSResponder",
369 feature = "NSSplitViewItemAccessoryViewController",
370 feature = "NSViewController"
371 ))]
372 #[unsafe(method(insertTopAlignedAccessoryViewController:atIndex:))]
373 #[unsafe(method_family = none)]
374 pub fn insertTopAlignedAccessoryViewController_atIndex(
375 &self,
376 child_view_controller: &NSSplitViewItemAccessoryViewController,
377 index: NSInteger,
378 );
379
380 /// NOTE: you can use this method, or `-removeFromParentViewController:`, whichever is easier.
381 #[unsafe(method(removeTopAlignedAccessoryViewControllerAtIndex:))]
382 #[unsafe(method_family = none)]
383 pub fn removeTopAlignedAccessoryViewControllerAtIndex(&self, index: NSInteger);
384
385 #[cfg(all(
386 feature = "NSResponder",
387 feature = "NSSplitViewItemAccessoryViewController",
388 feature = "NSViewController"
389 ))]
390 #[unsafe(method(bottomAlignedAccessoryViewControllers))]
391 #[unsafe(method_family = none)]
392 pub fn bottomAlignedAccessoryViewControllers(
393 &self,
394 mtm: MainThreadMarker,
395 ) -> Retained<NSArray<NSSplitViewItemAccessoryViewController>>;
396
397 #[cfg(all(
398 feature = "NSResponder",
399 feature = "NSSplitViewItemAccessoryViewController",
400 feature = "NSViewController"
401 ))]
402 /// Setter for [`bottomAlignedAccessoryViewControllers`][Self::bottomAlignedAccessoryViewControllers].
403 ///
404 /// This is [copied][objc2_foundation::NSCopying::copy] when set.
405 #[unsafe(method(setBottomAlignedAccessoryViewControllers:))]
406 #[unsafe(method_family = none)]
407 pub fn setBottomAlignedAccessoryViewControllers(
408 &self,
409 bottom_aligned_accessory_view_controllers: &NSArray<
410 NSSplitViewItemAccessoryViewController,
411 >,
412 );
413
414 #[cfg(all(
415 feature = "NSResponder",
416 feature = "NSSplitViewItemAccessoryViewController",
417 feature = "NSViewController"
418 ))]
419 #[unsafe(method(addBottomAlignedAccessoryViewController:))]
420 #[unsafe(method_family = none)]
421 pub fn addBottomAlignedAccessoryViewController(
422 &self,
423 child_view_controller: &NSSplitViewItemAccessoryViewController,
424 );
425
426 #[cfg(all(
427 feature = "NSResponder",
428 feature = "NSSplitViewItemAccessoryViewController",
429 feature = "NSViewController"
430 ))]
431 #[unsafe(method(insertBottomAlignedAccessoryViewController:atIndex:))]
432 #[unsafe(method_family = none)]
433 pub fn insertBottomAlignedAccessoryViewController_atIndex(
434 &self,
435 child_view_controller: &NSSplitViewItemAccessoryViewController,
436 index: NSInteger,
437 );
438
439 /// NOTE: you can use this method, or `-removeFromParentViewController:`, whichever is easier.
440 #[unsafe(method(removeBottomAlignedAccessoryViewControllerAtIndex:))]
441 #[unsafe(method_family = none)]
442 pub fn removeBottomAlignedAccessoryViewControllerAtIndex(&self, index: NSInteger);
443 );
444}
445
446/// Methods declared on superclass `NSObject`.
447impl NSSplitViewItem {
448 extern_methods!(
449 #[unsafe(method(init))]
450 #[unsafe(method_family = init)]
451 pub fn init(this: Allocated<Self>) -> Retained<Self>;
452
453 #[unsafe(method(new))]
454 #[unsafe(method_family = new)]
455 pub fn new() -> Retained<Self>;
456 );
457}
458
459impl DefaultRetained for NSSplitViewItem {
460 #[inline]
461 fn default_retained() -> Retained<Self> {
462 Self::new()
463 }
464}