Inherits from NSWindowController
Declared in M2GalleryController.h
M2GalleryController.m

Overview

Manages gallery window.

  • Uses NSArrayController to manage gallery entries
  • Implements openAction: to open gallery entry when its button is clicked

Tasks

Other Methods

Opening gallery entries

  • – openAction:

    Action for opening gallery entry. Figures out the entry form passed sender. Sender has to be direct subview of collection view item.

  • – openEntry:

    Opens document for passed in entry. Silently fails if there’s an error.

Properties

arrayController

Array controller responsible for managing gallery entries

@property (assign) IBOutlet NSArrayController *arrayController

Discussion

Array controller responsible for managing gallery entries

Declared In

M2GalleryController.h

Instance Methods

openAction:

Action for opening gallery entry. Figures out the entry form passed sender. Sender has to be direct subview of collection view item.

- (IBAction)openAction:(id)sender

Discussion

Action for opening gallery entry. Figures out the entry form passed sender. Sender has to be direct subview of collection view item.

Declared In

M2GalleryController.h

openEntry:

Opens document for passed in entry. Silently fails if there’s an error.

- (void)openEntry:(M2GalleryEntry *)entry

Discussion

Opens document for passed in entry. Silently fails if there’s an error.

Declared In

M2GalleryController.h