Mac Developer Library

Developer

AppKit Framework Reference NSToolbarItemGroup Class Reference

Options
Deployment Target:

On This Page
Language:

NSToolbarItemGroup

NSToolbarItemGroup is a subclass of NSToolbarItem which contains subitems. The views and labels of the subitems are used, but the parent's attributes take precedence. More...

Inheritance


Import Statement


import AppKit @import AppKit;

Availability


Available in OS X v10.5 and later.
  • Returns the subitems for the receiver.

    Declaration

    Swift

    var subitems: [AnyObject]

    Objective-C

    @property(copy) NSArray *subitems

    Return Value

    The subitems for the receiver.

    Discussion

    By default, an NSToolbarItemGroup instance has an empty array of subitems.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.5 and later.

  • Sets the subitems for the receiver.

    Declaration

    Swift

    var subitems: [AnyObject]

    Objective-C

    @property(copy) NSArray *subitems

    Parameters

    subitems

    An array of instances of NSToolbarItem objects that form the subitems for the receiver.

    Discussion

    You should call this method to set the subitems before returning the item to the toolbar. NSToolbarItemGroup objects cannot contain other NSToolbarItemGroup objects as subitems.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.5 and later.