Up

# NSObjectController

### Authors

Fred Kiefer (`fredkiefer@gmx.de`)

> Controller class

Copyright: (C) (C) 2006 Free Software Foundation, Inc.

# Software documentation for the NSObjectController class

## NSObjectController : NSController

> Declared in:
>   AppKit/NSObjectController.h

Availability: MacOS-X 10.3.0
Description forthcoming.

Instance Variables
Method summary

- -add:
- -addObject:
- -automaticallyPreparesContent
- -canAdd
- -canRemove
- -content
- -entityNameKey
- -fetch:
- -fetchPredicate
- -fetchWithRequest:merge:error:
- -initWithContent:
- -isEditable
- -managedObjectContext
- -newObject
- -objectClass
- -prepareContent
- -remove:
- -removeObject:
- -selectedObjects
- -selection
- -setAutomaticallyPreparesContent:
- -setContent:
- -setEditable:
- -setEntityName:
- -setFetchPredicate:
- -setManagedObjectContext:
- -setObjectClass:
- -validateMenuItem:

### add:

- (void) add: (id)sender;
Availability: MacOS-X 10.3.0
Description forthcoming.

### addObject:

- (void) addObject: (id)obj;
Availability: MacOS-X 10.3.0
Description forthcoming.

### automaticallyPreparesContent

- (BOOL) automaticallyPreparesContent;
Availability: MacOS-X 10.3.0
Description forthcoming.

### canAdd

- (BOOL) canAdd;
Availability: MacOS-X 10.3.0
Description forthcoming.

### canRemove

- (BOOL) canRemove;
Availability: MacOS-X 10.3.0
Description forthcoming.

### content

- (id) content;
Availability: MacOS-X 10.3.0
Description forthcoming.

### entityNameKey

- (NSString*) entityNameKey;
Availability: MacOS-X 10.4.0
Description forthcoming.

### fetch:

- (void) fetch: (id)sender;
Availability: MacOS-X 10.4.0
Description forthcoming.

### fetchPredicate

- (NSPredicate*) fetchPredicate;
Availability: MacOS-X 10.4.0
Description forthcoming.

### fetchWithRequest: merge: error:

- (BOOL) fetchWithRequest: (NSFetchRequest*)fetchRequest merge: (BOOL)merge error: (NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.

### initWithContent:

- (id) initWithContent: (id)content;
Availability: MacOS-X 10.3.0
Description forthcoming.

### isEditable

- (BOOL) isEditable;
Availability: MacOS-X 10.3.0
Description forthcoming.

### managedObjectContext

- (NSManagedObjectContext*) managedObjectContext;
Availability: MacOS-X 10.4.0
Description forthcoming.

### newObject

- (id) newObject;
Availability: MacOS-X 10.3.0
Description forthcoming.

### objectClass

- (Class) objectClass;
Availability: MacOS-X 10.3.0
Description forthcoming.

### prepareContent

- (void) prepareContent;
Availability: MacOS-X 10.3.0
Description forthcoming.

### remove:

- (void) remove: (id)sender;
Availability: MacOS-X 10.3.0
Description forthcoming.

### removeObject:

- (void) removeObject: (id)obj;
Availability: MacOS-X 10.3.0
Description forthcoming.

### selectedObjects

- (NSArray*) selectedObjects;
Availability: MacOS-X 10.3.0
Description forthcoming.

### selection

- (id) selection;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setAutomaticallyPreparesContent:

- (void) setAutomaticallyPreparesContent: (BOOL)flag;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setContent:

- (void) setContent: (id)content;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setEditable:

- (void) setEditable: (BOOL)flag;
Availability: MacOS-X 10.3.0
Description forthcoming.

### setEntityName:

- (void) setEntityName: (NSString*)entityName;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setFetchPredicate:

- (void) setFetchPredicate: (NSPredicate*)predicate;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setManagedObjectContext:

- (void) setManagedObjectContext: (NSManagedObjectContext*)managedObjectContext;
Availability: MacOS-X 10.4.0
Description forthcoming.

### setObjectClass:

- (void) setObjectClass: (Class)aClass;
Availability: MacOS-X 10.3.0
Description forthcoming.

### validateMenuItem:

- (BOOL) validateMenuItem: (id<NSMenuItem>)item;
Availability: MacOS-X 10.3.0
Description forthcoming.

## Instance Variables for NSObjectController Class

### _automatically_prepares_content

@protected BOOL _automatically_prepares_content;
Availability: MacOS-X 10.3.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _content

@protected id _content;
Availability: MacOS-X 10.3.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _entity_name_key

@protected NSString* _entity_name_key;
Availability: MacOS-X 10.3.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _fetch_predicate

@protected NSPredicate* _fetch_predicate;
Availability: MacOS-X 10.3.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _is_editable

@protected BOOL _is_editable;
Availability: MacOS-X 10.3.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _is_using_managed_proxy

@protected BOOL _is_using_managed_proxy;
Availability: MacOS-X 10.3.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _managed_object_context

@protected NSManagedObjectContext* _managed_object_context;
Availability: MacOS-X 10.3.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _managed_proxy

@protected id _managed_proxy;
Availability: MacOS-X 10.3.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _object_class

@protected Class _object_class;
Availability: MacOS-X 10.3.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _object_class_name

@protected NSString* _object_class_name;
Availability: MacOS-X 10.3.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _selection

@protected NSMutableArray* _selection;
Availability: MacOS-X 10.3.0
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

Up