Instance Method

setFrameUsingName:force:

Sets the window’s frame rectangle by reading the rectangle data stored under a given name from the defaults system. Can operate on non-resizable windows.

Declaration

- (BOOL)setFrameUsingName:(NSWindowFrameAutosaveName)name force:(BOOL)force;

Parameters

name

The name of the frame to read.

force

YES to use setFrameUsingName: on a non-resizable window; NO to fail on a non-resizable window.

Return Value

YES when name is read and the frame is set successfully; otherwise, NO.

See Also

Managing Window Frames in User Defaults

+ removeFrameUsingName:

Removes the frame data stored under a given name from the application’s user defaults.

- setFrameUsingName:

Sets the window’s frame rectangle by reading the rectangle data stored under a given name from the defaults system.

- saveFrameUsingName:

Saves the window’s frame rectangle in the user defaults system under a given name.

frameAutosaveName

The name used to automatically save the window’s frame rectangle data in the defaults system.

stringWithSavedFrame

A string representation of the window’s frame rectangle.

- setFrameFromString:

Sets the window’s frame rectangle from a given string representation.